/* Paltheon — shared styles. System fonts only, no external resources. */

:root {
  --bg: #0b0b0d;
  --bg-elevated: #131316;
  --bg-card: #17171b;
  --border: #26262b;
  --text: #ececef;
  --text-muted: #a3a3ab;
  --text-faint: #6f6f78;
  --accent: #c9a15a;
  --accent-strong: #e0b96b;
  --accent-text: #14110a;
  --radius: 14px;
  --max-width: 960px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f4;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --border: #e7e2d8;
    --text: #1c1a16;
    --text-muted: #57534a;
    --text-faint: #857f70;
    --accent: #a97d2f;
    --accent-strong: #8f6a26;
    --accent-text: #fffaf0;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--accent-strong), var(--accent));
  flex-shrink: 0;
}

/* App icon image (used on the company page and the GymTracker page) */

.icon-img {
  display: block;
  border-radius: 22%;
  border: 1px solid var(--border);
}

.icon-img--sm {
  width: 56px;
  height: 56px;
}

.icon-img--lg {
  width: 96px;
  height: 96px;
}

nav.site-nav {
  display: flex;
  gap: 24px;
}

nav.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.site-nav a[aria-current="page"] {
  color: var(--text);
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--accent-strong);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 88px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 40px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(160deg, var(--accent-strong), var(--accent));
  color: var(--accent-text);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  text-decoration: none;
  filter: brightness(1.06);
}

.cta-note {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* Store badge (disabled "coming soon" state — plain HTML/CSS, not Apple artwork) */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-faint);
  cursor: not-allowed;
  user-select: none;
}

.store-badge-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--border), var(--bg-elevated));
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-badge-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Company hero (index.html) */

.company-hero {
  padding: 104px 0 64px;
  text-align: center;
}

.company-hero .wrap {
  max-width: 640px;
}

.company-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.company-hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* Apps grid (company page) */

.apps-section {
  padding: 24px 0 100px;
}

.apps-section .wrap {
  max-width: 640px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-card .app-link {
  font-weight: 600;
  font-size: 0.92rem;
  align-self: flex-start;
}

/* GymTracker hero identity row */

.hero-icon-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-icon-row .eyebrow {
  margin-bottom: 0;
}

/* Phone mockup */

.phone-shell {
  justify-self: center;
  width: 220px;
  height: 448px;
  border-radius: 42px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  padding: 12px;
  position: relative;
}

@media (prefers-color-scheme: light) {
  .phone-shell {
    box-shadow: 0 30px 60px -25px rgba(30, 25, 10, 0.25);
  }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 12px;
  background: var(--bg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(120% 90% at 30% 0%, rgba(201, 161, 90, 0.22), transparent 60%), var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.phone-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--accent-strong), var(--accent));
  position: relative;
}

.phone-avatar::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.15;
}

.phone-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.phone-bar span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.phone-caption {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Features */

.features {
  padding: 40px 0 72px;
}

.section-heading {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 40px;
  max-width: 60ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(201, 161, 90, 0.25), rgba(201, 161, 90, 0.08));
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Waitlist band */

.waitlist {
  padding: 56px 0 88px;
}

.waitlist-card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}

@media (max-width: 600px) {
  .waitlist-card {
    padding: 32px 20px;
  }
}

.waitlist-card h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.waitlist-card p {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* Content pages (privacy / terms) */

.content-page {
  padding: 56px 0 88px;
}

.content-page h1 {
  font-size: 2.1rem;
  margin-bottom: 4px;
}

.content-page .updated {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.content-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-page p,
.content-page li {
  color: var(--text-muted);
  font-size: 1rem;
}

.content-page ul {
  padding-left: 22px;
}

.content-page strong {
  color: var(--text);
}
