/* ===========================================================
   BikeFit website
   Palette and type drawn from the app:
     - Deep blue gradient (icon background)
     - Warm orange accent (icon focus dot)
     - Off-white background
   =========================================================== */

:root {
  /* Surface */
  --bg:           #fafaf7;
  --bg-warm:      #fffefb;
  --paper:        #ffffff;
  --paper-soft:   #f4f3ef;

  /* Brand */
  --blue:         #1A55C5;
  --blue-deep:    #08226E;
  --blue-bright:  #4F8FF0;
  --blue-soft:    #e8eef9;
  --orange:       #FF8A2B;
  --orange-deep:  #d96915;
  --orange-soft:  #fff1e0;

  /* Type */
  --ink:          #15171b;
  --ink-soft:     #3b3f47;
  --ink-faint:    #6a6f78;
  --ink-mute:     #9da2aa;

  /* Lines & shadows */
  --rule:         #e1e1da;
  --rule-strong:  #cdcdc4;
  --shadow-sm:    0 1px 2px rgba(8, 34, 110, 0.04), 0 2px 6px rgba(8, 34, 110, 0.05);
  --shadow-md:    0 2px 6px rgba(8, 34, 110, 0.06), 0 12px 32px rgba(8, 34, 110, 0.08);
  --shadow-lg:    0 4px 12px rgba(8, 34, 110, 0.10), 0 24px 56px rgba(8, 34, 110, 0.10);

  /* Type stacks */
  --serif:        Georgia, 'Times New Roman', serif;
  --sans:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono:         'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

::selection { background: var(--orange-soft); color: var(--ink); }

/* ===========================================================
   Layout primitives
   =========================================================== */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 16px; color: white; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================================================
   Header / nav
   =========================================================== */

.site-header {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--sans);
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a.current { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-deep); color: white !important; }

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 138, 43, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 560px;
}
.hero h1 .accent { color: var(--blue); }

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 18px;
}
.hero .price-tag strong { color: var(--ink); }

/* App Store CTA — styled to feel native without copying Apple artwork */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--sans);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.app-store-btn:hover {
  background: black;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.app-store-btn .apple-logo {
  width: 28px;
  height: 28px;
  fill: white;
  flex-shrink: 0;
}
.app-store-btn .label-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-store-btn .pre {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.app-store-btn .name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Phone mockup / hero video */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Real-app demo video. The recording is cropped to just the screen
   content (no iPhone bezel from the simulator); the .phone-frame
   wrapper provides the polished bezel from CSS so the result is
   consistent with the rest of the design system. */
.phone-screen-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 32px;
  background: white;
  object-fit: cover;
  overflow: hidden;
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  /* Outer aspect chosen so the screen interior (after 12px padding on
     each side) matches the V2 demo video's 360x846 ratio exactly. */
  aspect-ratio: 320 / 720;
  background: linear-gradient(160deg, #1f2024 0%, #0e0f12 100%);
  border-radius: 42px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 6px 14px rgba(8, 34, 110, 0.16),
    0 32px 64px rgba(8, 34, 110, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: black;
  border-radius: 14px;
  z-index: 5;
}

.phone-content {
  padding: 56px 20px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.phone-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.phone-sub {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.4;
  margin-bottom: 16px;
}

.symptom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink);
}
.symptom-row .sym-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}
.symptom-row .sym-name { font-weight: 600; flex: 1; }
.symptom-row .sym-chev {
  width: 10px; height: 10px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.symptom-row.is-active {
  background: var(--blue-soft);
  outline: 2px solid var(--blue);
}

/* ===========================================================
   Sections
   =========================================================== */

section { padding: 80px 0; }
section.dim { background: var(--paper-soft); }
section.tight { padding: 56px 0; }

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
  display: inline-block;
}

h2 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

p { margin-bottom: 14px; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

ul.standard {
  margin: 8px 0 16px 22px;
}
ul.standard li {
  margin-bottom: 6px;
  color: var(--ink-soft);
  line-height: 1.55;
}
ul.standard li::marker { color: var(--blue); }

/* ===========================================================
   Symptom grid (the 5 problems BikeFit addresses)
   =========================================================== */

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.symptom-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.symptom-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}
.symptom-card .card-icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
  margin-bottom: 14px;
}
.symptom-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.symptom-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0;
}

/* ===========================================================
   How-it-works (3 steps)
   =========================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.step {
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

/* ===========================================================
   Comparison (vs video apps)
   =========================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.compare-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px;
  position: relative;
  overflow: hidden;
}
.compare-card.this {
  border-color: var(--blue);
  border-width: 2px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--blue-soft) 100%);
}
.compare-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.compare-card.others .badge { color: var(--ink-faint); }
.compare-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.compare-list .check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.compare-list .check.yes { color: var(--blue); }
.compare-list .check.no  { color: var(--ink-mute); }

/* ===========================================================
   Research citation callout (in symptoms header)
   =========================================================== */

.research-cite {
  margin: 24px auto 0;
  max-width: 640px;
  padding: 16px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  text-align: left;
}
.research-cite .cite-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.research-cite p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.research-cite p cite {
  font-style: italic;
  color: var(--ink-faint);
}

/* ===========================================================
   Step-sequence list (the full 5-step flow for a symptom)
   =========================================================== */

.step-sequence {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 22px 26px;
  background: var(--paper-soft);
  border-radius: 12px;
  border: 1px solid var(--rule);
}
.step-sequence-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.step-sequence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stepseq;
}
.step-sequence-list li {
  counter-increment: stepseq;
  position: relative;
  padding: 10px 0 10px 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.step-sequence-list li:first-child { border-top: none; padding-top: 4px; }
.step-sequence-list li::before {
  content: counter(stepseq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.step-sequence-list li:first-child::before { top: 6px; }
.step-sequence-list li.is-shown {
  color: var(--ink);
  font-weight: 500;
}
.step-sequence-list li.is-shown::before { color: var(--blue); }
.step-sequence-list li.is-shown::after {
  content: "shown above";
  margin-left: 8px;
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: 2px;
}
.step-sequence-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.55;
  font-style: italic;
}

/* ===========================================================
   Guard-rail grid (when this isn't for you)
   =========================================================== */

.guard-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.guard-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink-mute);
  border-radius: 12px;
  padding: 22px 22px;
}
.guard-item h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.3;
}
.guard-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ===========================================================
   FAQ
   =========================================================== */

.faq-list {
  margin-top: 8px;
}
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 0; padding-top: 4px; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.faq-item h3::before {
  content: "Q.";
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
  margin-right: 10px;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 26px;
}
.faq-more {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
}

/* ===========================================================
   Sample-step preview (shows a real adjustment from the app)
   =========================================================== */

.step-preview {
  max-width: 640px;
  margin: 32px auto 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.step-preview-head {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--paper) 100%);
  padding: 24px 32px 28px;
  border-bottom: 1px solid var(--rule);
}

.step-preview-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.step-preview-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-preview-instruction {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

.step-preview-body {
  padding: 22px 32px 26px;
}

.step-preview-h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 8px;
}

.step-preview-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.step-preview-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-soft);
  padding: 14px 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.step-preview-foot .feedback-pills {
  display: flex;
  gap: 6px;
}
.step-preview-foot .pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.better   { background: #e1f1e3; color: #1d6b34; }
.pill.same     { background: #fff4dc; color: #8a6116; }
.pill.worse    { background: #fce5e0; color: #a13322; }

/* ===========================================================
   Step preview — divider between "Why it works" and "How to"
   =========================================================== */

.step-preview-divider {
  border-top: 1px solid var(--rule);
  margin: 18px 0;
}
.step-preview-body .step-preview-h4 + p { margin-bottom: 0; }
.step-preview-body .step-preview-divider + .step-preview-h4 { margin-top: 0; }

/* ===========================================================
   Tools strip (in How-it-works section)
   =========================================================== */

.tools-strip {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.tools-strip-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 10px;
  display: inline-block;
}

.tools-strip h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.tools-strip-intro {
  margin-bottom: 24px;
  color: var(--ink-soft);
  max-width: 600px;
}

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

.tool-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tool-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-soft);
}

.tool-icon {
  width: 26px;
  height: 26px;
  color: var(--blue);
  margin-bottom: 14px;
}

.tool-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.tool-detail {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .tools-strip { margin-top: 40px; padding-top: 28px; }
}

/* ===========================================================
   Status dot under the hero price-tag
   =========================================================== */

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0.5;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; opacity: 0.5; }
}

/* Small disclaimer under buy CTAs */
.cta-disclaimer {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ===========================================================
   Author / about band
   =========================================================== */

.about-band {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.about-card .author-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ===========================================================
   CTA band (final)
   =========================================================== */

.cta-band {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 138, 43, 0.18), transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  color: white;
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-band .price-tag {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 18px;
}
.cta-band .price-tag strong { color: white; }
.cta-band .app-store-btn {
  background: white;
  color: var(--ink);
}
.cta-band .app-store-btn:hover { background: var(--paper-soft); color: var(--ink); }
.cta-band .app-store-btn .apple-logo { fill: var(--ink); }

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  max-width: 260px;
  line-height: 1.5;
}

.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.site-footer a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* ===========================================================
   Long-form pages (privacy, support)
   =========================================================== */

.page-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { color: var(--blue); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
}

article.prose {
  padding: 40px 0 80px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
article.prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
article.prose h2:first-child { margin-top: 0; }
article.prose h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 28px 0 8px;
}
article.prose p { margin-bottom: 14px; }
article.prose ul, article.prose ol { margin: 8px 0 18px 24px; }
article.prose li { margin-bottom: 6px; }
article.prose a { color: var(--blue); }
article.prose .updated {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
article.prose dl { margin: 16px 0; }
article.prose dl dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
  font-size: 16px;
}
article.prose dl dd {
  margin: 4px 0 0 0;
  color: var(--ink-soft);
}

.callout-box {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.callout-box strong:first-child {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 6px;
}
.callout-box p { margin: 0; color: var(--ink-soft); }

/* ===========================================================
   Hamburger / mobile nav
   =========================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 920px) {
  .hero h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { order: -1; }
  .phone-frame { max-width: 280px; }
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-band { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 920px) {
  .guard-rail { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .research-cite { padding: 14px 18px; }
  .step-sequence { padding: 18px 20px; }
  .step-sequence-list li.is-shown::after { display: block; margin: 4px 0 0 0; }
  .faq-item h3 { font-size: 17px; }
  .faq-item p { padding-left: 0; }
  .step-preview-head { padding: 20px 22px 22px; }
  .step-preview-body { padding: 18px 22px 22px; }
  .step-preview-foot { padding: 12px 22px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .step-preview-title { font-size: 22px; }
  .step-preview-instruction { font-size: 16px; }
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 32px; line-height: 1.1; }
  .hero .lede { font-size: 17px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .section-header { margin-bottom: 32px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .symptom-grid { grid-template-columns: 1fr; }
  .compare-card { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero { padding: 40px 0 24px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
  }
  .site-nav a:last-child { border-bottom: none; margin-top: 8px; }
  .nav-cta { padding: 12px 18px !important; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .site-footer, .cta-band, .nav-cta, .app-store-btn { display: none; }
  section { padding: 24px 0; page-break-inside: avoid; }
  .hero { padding: 24px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone-frame { display: none; }
}

/* ============================================================
   Price anchor (sits below .price-tag in the hero)
   ============================================================ */
.price-anchor {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.55;
  max-width: 480px;
  font-style: italic;
}

/* ============================================================
   COMPOSITE BAND — 8 mocked symptom phone-frames
   ============================================================ */
.composite-band {
  background: linear-gradient(180deg, #f8fafd 0%, #eef3fa 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 64px 0;
}
.composite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.mini-phone {
  display: flex;
  justify-content: center;
}
.mini-phone-frame {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 19.5;
  background: #0d0d12;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 8px 22px -8px rgba(15, 28, 48, 0.30);
}
.mini-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1A55C5 0%, #143f97 70%, #0e2f6e 100%);
  border-radius: 16px;
  padding: 14px 14px 16px;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.mini-phone-screen::before {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: #0d0d12;
  border-radius: 0 0 10px 10px;
}
.mini-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.mini-phone-header > span:first-child {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.95);
}
.mini-step {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.mini-phone-axis {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.mini-phone-action {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  color: white;
  margin-bottom: 10px;
}
.mini-phone-why {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.20);
}
.composite-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 32px auto 0;
  max-width: 640px;
  font-style: italic;
}

@media (max-width: 920px) {
  .composite-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .composite-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mini-phone-frame { max-width: 160px; }
  .mini-phone-screen { padding: 12px 10px 12px; }
  .mini-phone-action { font-size: 13.5px; }
  .mini-phone-why { font-size: 10px; }
}

/* ============================================================
   ARC BAND — 30-day timeline
   ============================================================ */
.arc-band {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: white;
}
.arc {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.arc::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent, #1A55C5) 0%, var(--accent, #1A55C5) 75%, #2F6F4F 100%);
  z-index: 0;
}
.arc-step {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  text-align: center;
}
.arc-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent, #1A55C5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px -4px rgba(26, 85, 197, 0.45);
  border: 4px solid white;
}
.arc-marker-end {
  background: #2F6F4F;
  box-shadow: 0 6px 16px -4px rgba(47, 111, 79, 0.45);
}
.arc-day { text-align: center; line-height: 1.05; }
.arc-step h3 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}
.arc-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 920px) {
  .arc { grid-template-columns: 1fr; gap: 12px; }
  .arc::before { display: none; }
  .arc-step {
    padding: 16px 16px 16px 84px;
    text-align: left;
    background: var(--bg-soft, #f7faff);
    border-radius: 8px;
  }
  .arc-marker {
    top: 16px;
    left: 16px;
    transform: none;
    width: 52px;
    height: 52px;
  }
}

/* ============================================================
   SYMPTOM-DEEP LANDING PAGES (knee-pain.html, etc.)
   ============================================================ */
.hero-symptom {
  padding: 80px 0 56px;
  background: linear-gradient(180deg, #f8fafd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--rule);
}
.symptom-hero-inner {
  max-width: 760px;
}
.hero-symptom h1 {
  font-size: 42px;
  line-height: 1.12;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.hero-symptom .lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 28px;
}

.symptom-why {
  padding: 64px 0;
  background: white;
}
.symptom-why h2 {
  font-size: 28px;
  margin: 10px 0 18px;
}
.symptom-why p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.research-cite {
  background: var(--bg-soft, #f7faff);
  padding: 18px 20px;
  border-left: 3px solid var(--accent, #1A55C5);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.research-cite .cite-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #1A55C5);
  margin-bottom: 6px;
}
.research-cite p { margin: 0; color: var(--ink-soft); }
.research-cite cite { font-style: italic; color: var(--ink-faint); }

.symptom-first {
  background: linear-gradient(180deg, #eef3fa 0%, #e0eaf6 100%);
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.first-adjust-card {
  max-width: 560px;
  margin: 32px auto 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 12px 32px -16px rgba(15, 28, 48, 0.20);
  text-align: center;
}
.first-adjust-axis {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #1A55C5);
  margin-bottom: 8px;
}
.first-adjust-action {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.first-adjust-reason {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  text-align: left;
}

.symptom-flow {
  padding: 64px 0;
  background: white;
}
.symptom-flow h2 { font-size: 28px; margin: 10px 0 14px; }
.flow-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg-soft, #f7faff);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.flow-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #1A55C5);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.flow-step div { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.flow-step strong { color: var(--ink); }
.flow-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(47, 111, 79, 0.06);
  border-left: 3px solid #2F6F4F;
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* CTA band on symptom pages */
.cta-band {
  background: linear-gradient(180deg, #1A55C5 0%, #143f97 100%);
  padding: 64px 0;
  color: white;
}
.cta-band .cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-band h2 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; color: white; }
.cta-band p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 28px;
  max-width: 560px;
}

@media (max-width: 600px) {
  .hero-symptom h1 { font-size: 30px; }
  .hero-symptom .lede { font-size: 17px; }
  .first-adjust-action { font-size: 24px; }
  .first-adjust-card { padding: 24px 22px; }
  .cta-band h2 { font-size: 22px; }
}

/* Symptom cards on the homepage are now <a> links into landing pages */
.symptom-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.symptom-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #1A55C5);
  box-shadow: 0 10px 20px -8px rgba(15, 28, 48, 0.15);
}
.symptom-card-link::after {
  content: "Read more →";
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #1A55C5);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.symptom-card-link:hover::after { opacity: 1; }
