/* Adaptive Strength Coach — site styles. Palette and type mirror the app itself. */
/* Self-hosted fonts: the CSP is same-origin only (style-src 'self', no font-src
   exception), so an external Google Fonts @import is silently blocked. Font files
   live at /assets/fonts/ — see the repo's font README for exact source/licence. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-400-italic.woff2") format("woff2"); }

:root {
  --bg: #060b14;
  --bg-2: #0a1220;
  --panel: #0c1524;
  --panel-2: #111d2f;
  --line: rgba(243, 208, 138, 0.16);
  --line-soft: rgba(151, 163, 181, 0.16);
  --text: #f3e9da;
  --muted: #97a3b5;
  --subtle: #5c6c82;
  --gold: #f3d08a;
  --gold-deep: #c9973f;
  --gold-ink: #1a1408;
  --green: #7fb088;
  --danger: #e97872;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --content: 1120px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.2px; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 84px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.2vw, 48px); text-transform: uppercase; }
h3 { font-size: 22px; }
h1 strong, h2 strong { color: var(--gold); font-weight: 600; }
p { margin: 0; }
ol, ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 6px; }
.small { font-size: 14px; color: var(--muted); }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 11, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner, .section, .footer__inner {
  width: min(var(--content), 100% - 40px);
  margin-inline: auto;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav__cta { color: var(--gold-ink); background: var(--gold); padding: 9px 16px; border-radius: 999px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; white-space: nowrap; }
.nav__cta:hover { color: var(--gold-ink); background: #f7dba3; }
@media (max-width: 720px) { .nav a:not(.nav__cta) { display: none; } .brand__sub { display: none; } .brand__name { font-size: 15px; white-space: normal; line-height: 1; } }

/* Sections */
.section { padding-block: 72px; }
.section--tight { padding-block: 40px; }
.section--rule { border-top: 1px solid var(--line-soft); }
.section__header { max-width: 62ch; display: grid; gap: 14px; margin-bottom: 36px; }
.section__header--center { margin-inline: auto; text-align: center; }
.section__header p, .section__eyebrow, .eyebrow { color: var(--muted); }
.eyebrow, .section__eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.8px; text-transform: uppercase;
  border: 1px solid transparent; transition: transform 120ms ease, background 120ms ease;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--gold); color: var(--gold-ink); }
.button--primary:hover { background: #f7dba3; }
.button--secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button--secondary:hover { border-color: var(--gold); }
.button--danger { background: var(--danger); color: #1a0a08; }
.button:focus-visible, .nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button:disabled { opacity: 0.5; }

/* Hero */
.hero { padding-block: 56px 24px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero__copy h1 { margin: 0; }
.offer-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.offer-row span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 18px;
  border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); line-height: 1.15;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.5px;
}
.store-button span { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.store-button:hover { border-color: var(--gold); }

/* Phone frame */
.phone { position: relative; width: min(320px, 100%); margin-inline: auto; aspect-ratio: 600 / 1060; border-radius: 40px; padding: 10px; background: #0a0f18; border: 1px solid #22304a; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #05080e; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #05080e; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone--sm { width: min(260px, 100%); border-radius: 32px; padding: 8px; }
.phone--sm img { border-radius: 24px; }
.hero__visual { position: relative; }
.chip {
  position: absolute; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(16, 37, 25, 0.96); border: 1px solid rgba(127, 176, 136, 0.5); color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); min-width: 210px;
}
.chip b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.chip small { font-size: 12px; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }
.chip--a { right: -8px; top: 46%; }
.chip--b { left: -8px; bottom: 8%; background: rgba(36, 30, 16, 0.96); border-color: rgba(243, 208, 138, 0.5); }
.chip--b small { color: var(--gold); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .chip { position: static; margin: 14px auto 0; width: min(320px, 100%); }
}

/* Strip */
.strip { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; font-family: var(--display); font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--gold); }
.step .n { font-family: var(--display); font-size: 13px; letter-spacing: 2px; color: var(--gold); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line-soft); }
.feature:first-of-type { border-top: 0; }
.feature--flip .feature__visual { order: -1; }
.feature__copy { display: grid; gap: 14px; }
.feature__copy p { color: var(--muted); max-width: 52ch; }
.feature-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.feature-list li { position: relative; padding-left: 22px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature--flip .feature__visual { order: 0; } }

/* Compare table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--panel); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-family: var(--display); font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; font-size: 13px; color: var(--muted); background: var(--panel-2); }
.compare thead th.us { color: var(--gold); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.y { color: var(--green); font-weight: 600; }
.compare td.n { color: var(--subtle); }
.compare td.p { color: var(--muted); }

/* Cards & grids (shared with subpages) */
.grid { display: grid; gap: 20px; }
.grid--two { grid-template-columns: repeat(2, 1fr); }
.grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--two, .grid--three { grid-template-columns: 1fr; } }
.card, .pricing-card, .faq-card, .store-box, .download-panel, .alert {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px;
}
.card h2, .pricing-card h2, .faq-card h3 { font-size: 26px; text-transform: none; letter-spacing: 0; margin: 6px 0 10px; }
.card p, .pricing-card > p, .faq-card p { color: var(--muted); }
.card a { color: var(--gold); }
.card ol, .card ul:not(.feature-list) { color: var(--muted); margin-block: 8px; }
.card__kicker { color: var(--gold); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-family: var(--display); }
.pricing-card--featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(243, 208, 138, 0.08), transparent 60%), var(--panel); }
.price { font-family: var(--display); font-size: 44px; font-weight: 600; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 400; }
.alert h3 { font-size: 24px; text-transform: uppercase; }
.alert p { color: var(--muted); margin-top: 8px; }
.alert a:not(.button) { color: var(--gold); }

/* Page heroes (subpages) */
.page-hero { display: grid; gap: 16px; max-width: 70ch; padding-block: 24px 8px; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 64px); }

/* FAQ */
.faq-card summary { cursor: pointer; font-weight: 600; font-size: 18px; }

/* Final CTA */
.final-cta { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 100% 0%, rgba(243, 208, 138, 0.12), transparent 50%), var(--panel); display: grid; gap: 16px; }
.final-cta p { color: var(--muted); max-width: 56ch; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* Subpage layouts */
.page-hero--campaign, .download-panel--campaign { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; max-width: none; }
.download-panel--campaign { grid-template-columns: 1.2fr 0.9fr; }
.download-panel--campaign .download-poster { display: none; }
.page-hero__poster img, .campaign-art img { width: min(340px, 100%); margin-inline: auto; border-radius: 18px; border: 1px solid var(--line-soft); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.campaign-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.campaign-feature--reverse .campaign-art { order: -1; }
.campaign-feature__copy { display: grid; gap: 14px; }
.campaign-feature__copy p { color: var(--muted); }
.feature-list--gold { display: grid; gap: 8px; }
.feature-list--gold span { position: relative; padding-left: 22px; }
.feature-list--gold span::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.card h3 { font-size: 22px; margin: 6px 0 8px; }
.store-box h2 { font-size: 24px; text-transform: none; }
.store-box .store-buttons { margin-block: 14px; flex-direction: column; }
@media (max-width: 860px) { .page-hero--campaign, .download-panel--campaign, .campaign-feature { grid-template-columns: 1fr; } .campaign-feature--reverse .campaign-art { order: 0; } }
