/* ====================================================================
   Maximum Performance Wellness Center - new pages design system
   Paper/cream aesthetic matching the live site, with a .far-theme
   override that swaps crimson for terracotta and adds Fraunces for
   titles (per Dr. Tim's FAR brief).
   ==================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette (paper, ink, muted + crimson site accent) */
  --paper: #f7f3ec;
  --paper-card: #fffcf8;
  --paper-soft: #efe8db;
  --ink: #1c1915;
  --ink-soft: #3d3832;
  --muted: #6d655c;
  --line: #e4ddd2;
  --dark-bar: #0d0d10;
  --dark-bar-ink: #ffffff;

  --accent: #d63e3e;        /* crimson used in buttons/icons/labels */
  --accent-deep: #a62b2b;
  --accent-soft: #faeae9;

  --sage: #3f5346;          /* FAR secondary (meter marks) */
  --warn: #8a5a1a;
  --warn-soft: #f6ecdc;

  --shadow-sm: 0 2px 6px rgba(28, 25, 21, 0.06);
  --shadow-md: 0 12px 30px rgba(28, 25, 21, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 25, 21, 0.10);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-deep); }
hr { border: none; height: 1px; background: var(--line); margin: 32px 0; }

/* ---------- Base typography ---------- */
body {
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #f3e4d4 0%, transparent 55%),
    radial-gradient(900px 420px at -10% 20%, #ebe6dc 0%, transparent 50%),
    var(--paper);
  font-weight: 380;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 560; }
p  { margin: 0 0 1em; }
.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 740px;
  margin: 0 0 24px;
}
.kicker, .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.muted { color: var(--muted); }
.ink-soft { color: var(--ink-soft); }

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--dark-bar);
  color: var(--dark-bar-ink);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0;
}
.topbar a { color: inherit; text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar .locations { opacity: .8; }
.topbar .tels { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--dark-bar);
  color: var(--dark-bar-ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.brand .name {
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em; line-height: 1.2;
}
.brand .name small {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: #c9c7c3;
}
nav.primary { margin-left: auto; display: flex; align-items: center; gap: 6px; }
nav.primary > a, nav.primary .svc-trigger {
  color: var(--dark-bar-ink);
  background: transparent; border: 0;
  text-decoration: none; font-size: 15px; font-weight: 500;
  font-family: inherit;
  padding: 10px 14px; border-radius: 10px;
  cursor: pointer;
  transition: background .18s var(--ease);
}
nav.primary > a:hover, nav.primary .svc-trigger:hover { background: rgba(255,255,255,.08); }
nav.primary > a.current { color: #fff; }
nav.primary > a.current::after {
  content: ""; display: block; height: 2px; background: var(--accent); margin-top: 4px; border-radius: 2px;
}
.svc-wrap { position: relative; }
.svc-trigger::after {
  content: "▾"; margin-left: 6px; font-size: 10px; opacity: .7;
}
.svc-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: #141418; color: #fff; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 8px; min-width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.svc-wrap:hover .svc-menu, .svc-wrap:focus-within .svc-menu, .svc-wrap.open .svc-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Mockup preview strip — temporary nav aid for client approval */
.mockup-strip {
  background: #fff8dc; border-bottom: 1px solid #e8d989;
  padding: 10px 0; font-size: 13px;
}
.mockup-strip .wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.mockup-strip .label {
  color: #7a5a0f; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: 11px; white-space: nowrap;
}
.mockup-strip a {
  color: var(--ink); text-decoration: none; padding: 4px 10px;
  background: rgba(255,255,255,.6); border: 1px solid #e8d989;
  border-radius: 999px; font-weight: 500; font-size: 12.5px;
  white-space: nowrap;
}
.mockup-strip a:hover { background: #fff; border-color: var(--accent); color: var(--accent-deep); }
.mockup-strip a.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.svc-menu a {
  display: block; text-decoration: none; color: #fff;
  padding: 10px 12px; border-radius: 8px; font-size: 14px;
}
.svc-menu a:hover { background: rgba(255,255,255,.06); }
.svc-menu a small { display: block; opacity: .6; font-size: 12px; margin-top: 2px; }

.btn-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-cta svg { flex-shrink: 0; width: 16px; height: 16px; }
.btn-dark, .btn-ghost, .btn-light, .btn-outline { white-space: nowrap; }
.btn-dark svg, .btn-ghost svg, .btn-light svg, .btn-outline svg { flex-shrink: 0; width: 16px; height: 16px; }
.btn-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-cta.on-dark { box-shadow: 0 10px 24px rgba(214, 62, 62, .35); }

.btn-dark {
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-dark:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Mobile menu */
.burger {
  display: none; background: transparent; border: 0; padding: 8px;
  color: var(--dark-bar-ink);
}
.burger svg { width: 24px; height: 24px; }
.mobile-menu {
  position: fixed; inset: 56px 0 0 0; background: var(--dark-bar);
  padding: 20px; z-index: 99; display: none; overflow: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 10px; color: #fff;
  text-decoration: none; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-menu a.sub { padding-left: 26px; font-size: 15px; color: #c9c7c3; }
.mobile-menu .btn-cta { margin-top: 16px; width: 100%; justify-content: center; }

@media (max-width: 920px) {
  nav.primary > a:not(.btn-cta), nav.primary .svc-wrap { display: none; }
  .burger { display: inline-flex; }
  nav.primary { gap: 10px; }
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(214, 62, 62, .07) 0%, transparent 60%),
    transparent;
}
.page-hero .crumbs {
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
  letter-spacing: .02em;
}
.page-hero .crumbs a { color: var(--muted); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lede { margin-bottom: 22px; }
.page-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero with a logo brand mark (used by PCT / MaxsTim / FAR) */
.brand-hero {
  padding: 48px 0 32px;
  background: var(--dark-bar);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.brand-hero .mark {
  background: #000; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
}
.brand-hero .mark img { width: 100%; max-width: 440px; }
.brand-hero .crumbs { color: rgba(255,255,255,.55); font-size: 13px; margin-bottom: 10px; }
.brand-hero .crumbs a { color: inherit; text-decoration: none; }
.brand-hero .kicker { color: #ff8686; }
.brand-hero h1 { color: #fff; }
.brand-hero .lede { color: rgba(255,255,255,.78); }
.brand-hero .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.brand-hero .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 860px) {
  .brand-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .brand-hero .mark { order: 2; }
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section.tight { padding: 42px 0; }
.section.pad-top { padding-top: 60px; padding-bottom: 0; }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.section.alt { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--dark-bar); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .kicker { color: #ff8686; }
.section.dark .section-head p { color: rgba(255,255,255,.75); }

/* Prose block */
.prose { max-width: 760px; }
.prose p { font-size: 17px; color: var(--ink-soft); margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin-top: 32px; font-size: 20px; color: var(--ink); }
.prose h4 { margin-top: 24px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin: .35em 0; color: var(--ink-soft); }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col .col-media {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; box-shadow: var(--shadow-sm);
}
.two-col .col-media img { max-width: 100%; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Checklist (ticks) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  color: var(--ink); font-size: 16px; line-height: 1.45;
}
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d63e3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.checklist.two-col-list { grid-template-columns: 1fr 1fr; gap: 10px 32px; }
@media (max-width: 620px) { .checklist.two-col-list { grid-template-columns: 1fr; } }

/* ---------- Steps (numbered) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; position: relative; box-shadow: var(--shadow-sm);
}
.step .num {
  color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Feature grid (why us etc.) ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.feature {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Compare table (used on FAR and comparisons) ---------- */
.cmp {
  width: 100%; border-collapse: collapse; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.cmp th, .cmp td { text-align: left; padding: 14px 16px; font-size: 15px; vertical-align: top; border-top: 1px solid var(--line); }
.cmp thead th { background: var(--paper-soft); font-weight: 600; color: var(--ink); border-top: 0; }
.cmp tbody tr:first-child td { border-top: 0; }
.cmp td:first-child { color: var(--ink); font-weight: 500; width: 24%; }
@media (max-width: 720px) {
  .cmp-wrap { overflow-x: auto; }
  .cmp { min-width: 640px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; padding: 46px 0; border-top: 1px solid rgba(0,0,0,.05);
}
.cta-band .wrap {
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn-light {
  background: #fff; color: var(--accent-deep);
  padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.cta-band .btn-light:hover { background: var(--paper); }
.cta-band .btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.9);
  padding: 12.5px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111115; color: #c7c6c3; padding: 54px 0 24px;
  font-size: 14px;
}
.site-footer h5 {
  color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; margin: 0 0 14px;
}
.site-footer a { color: #c7c6c3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.site-footer .brand-blurb img { width: 46px; height: 46px; border-radius: 8px; margin-bottom: 12px; }
.site-footer .brand-blurb p { font-size: 13.5px; line-height: 1.6; color: #a9a8a4; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 6px 0; }
.site-footer .clinics .clinic { margin-bottom: 14px; }
.site-footer .clinics strong { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.site-footer .fine {
  margin-top: 36px; border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; color: #8a8984; font-size: 12.5px;
}
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--line); padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: 20px; font-weight: 500;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin-top: 10px; padding-right: 32px; }

/* ---------- Pills / badges ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.pill {
  background: var(--paper-card); border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
}

/* ---------- Jump nav (FAR) ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.jump a {
  background: var(--paper-card); border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.jump a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- FAR theme override ---------- */
body.far-theme {
  --accent: #8c3d2a;
  --accent-deep: #6e2e1f;
  --accent-soft: #f3e2db;
}
body.far-theme .kicker,
body.far-theme .site-footer h5 { letter-spacing: .18em; }
body.far-theme h1, body.far-theme h2, body.far-theme h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 620;
}
body.far-theme h1 { letter-spacing: -0.03em; }
body.far-theme .brand-hero { background: #0d0d10; }
body.far-theme .section.alt { background: var(--paper-soft); }
body.far-theme .checklist li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c3d2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
body.far-theme .tier-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
body.far-theme .tier-card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
}
body.far-theme .tier-card .tag {
  display: inline-block; font-family: "Outfit", sans-serif;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 5px 10px; border-radius: 999px; font-weight: 600; margin-bottom: 10px;
}
body.far-theme .tier-card h3 { font-size: 20px; margin-bottom: 8px; }
body.far-theme .tier-card .pass {
  background: var(--paper-soft); border-left: 3px solid var(--accent);
  padding: 10px 12px; margin-top: 12px; border-radius: 6px;
  font-size: 14px; color: var(--ink);
}
body.far-theme .tier-card .pass strong { color: var(--accent-deep); display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 820px) { body.far-theme .tier-cards { grid-template-columns: 1fr; } }

body.far-theme .keep-drop {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
body.far-theme .kd {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px;
}
body.far-theme .kd.keep { border-top: 3px solid var(--sage); }
body.far-theme .kd.drop { border-top: 3px solid var(--accent); }
body.far-theme .kd h4 { font-family: "Outfit", sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
body.far-theme .kd ul { list-style: none; padding: 0; margin: 0; }
body.far-theme .kd ul li { padding: 6px 0; font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--line); }
body.far-theme .kd ul li:first-child { border-top: 0; }
@media (max-width: 620px) { body.far-theme .keep-drop { grid-template-columns: 1fr; } }

body.far-theme .disclaimer {
  margin: 32px 0 0; padding: 18px 20px;
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  color: var(--ink-soft); font-size: 14px; border-radius: 6px;
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Forms (intake) ---------- */
.form-wrap { max-width: 820px; margin: 0 auto; }
.form-progress {
  position: sticky; top: 72px; z-index: 50;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px; font-size: 13.5px;
}
.form-progress .bar { flex: 1; height: 6px; background: var(--paper-soft); border-radius: 999px; overflow: hidden; }
.form-progress .fill { height: 100%; background: var(--accent); width: 0; transition: width .3s var(--ease); }
.form-progress .count { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.form-section {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px 28px 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.form-section > header {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center;
  margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.form-section .sec-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.form-section .sec-title { margin: 0; font-size: 20px; line-height: 1.2; }
.form-section .sec-note { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }

.field { margin-bottom: 18px; }
.field label.lbl, .field > legend {
  display: block; font-size: 14.5px; font-weight: 500;
  color: var(--ink); margin: 0 0 8px; padding: 0;
}
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 62, 62, .15);
}
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field .sub {
  display: flex; flex-direction: column; gap: 6px;
}
@media (max-width: 620px) {
  .field.row, .field.row-3 { grid-template-columns: 1fr; }
}

.choice-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
  margin-top: 8px;
}
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; cursor: pointer;
  font-size: 14.5px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.choice input { margin: 2px 0 0; accent-color: var(--accent); }
.choice:hover { border-color: var(--accent-soft); background: #fff; }
.choice input:checked ~ span { color: var(--accent-deep); font-weight: 500; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: all .15s var(--ease);
}
.radio-row label input { margin: 0; accent-color: var(--accent); }
.radio-row label:has(input:checked) {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.scale {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin-top: 6px;
}
.scale label {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; cursor: pointer;
  transition: all .15s var(--ease);
}
.scale label input { margin: 0; accent-color: var(--accent); }
.scale label .num { font-weight: 600; font-size: 15px; color: var(--ink); }
.scale label .lb { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.1; min-height: 1.1em; }
.scale label:has(input:checked) {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.scale label:has(input:checked) .num,
.scale label:has(input:checked) .lb { color: #fff; }
.scale-row {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,2fr); gap: 20px;
  align-items: center; padding: 10px 0; border-top: 1px solid var(--line);
}
.scale-row:first-child { border-top: 0; }
.scale-row .q { font-size: 14.5px; color: var(--ink); }
.scale-row-scale { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.scale-row-scale label {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s var(--ease);
}
.scale-row-scale label input { position: absolute; opacity: 0; pointer-events: none; }
.scale-row-scale label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 620px) {
  .scale-row { grid-template-columns: 1fr; gap: 8px; }
  .scale-row-scale { justify-content: flex-start; }
}

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--paper-soft);
  border: 1px solid var(--line); border-radius: 10px;
  margin: 18px 0; font-size: 14.5px;
}
.consent input { margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }

.form-actions {
  display: flex; gap: 12px; align-items: center; margin-top: 20px;
}
.form-actions .meta { color: var(--muted); font-size: 13px; }
.form-submit {
  background: var(--accent); color: #fff; border: 0;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .18s var(--ease);
}
.form-submit:hover { background: var(--accent-deep); transform: translateY(-1px); }
.form-submit:disabled { background: var(--muted); cursor: not-allowed; transform: none; }
.form-submit svg { width: 16px; height: 16px; }

.form-success {
  display: none; background: #e9f5ec; border: 1px solid #bcd9c4;
  border-left: 4px solid #3f8b55; padding: 24px 28px; border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-success h3 { margin: 0 0 6px; color: #275b36; font-size: 20px; }
.form-success p { margin: 0; color: #275b36; }

.required { color: var(--accent); margin-left: 2px; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .page-hero { padding: 36px 0 24px; }
  .brand-hero { padding: 36px 0 28px; }
  .brand-hero .mark { padding: 18px; }
}
