/*
 * TheFitHero public website — one stylesheet for every Blade page (layouts/site.blade.php).
 * The :root block is a verbatim copy of the Volt colour/radius/motion tokens in
 * web/design-system/src/tokens/tokens.css; change them there first, then here.
 * Volt rules: solid lime CTAs, 1px borders instead of shadows, no blur, tabular figures for numbers.
 */
:root {
  --fh-bg: #0b0d10;
  --fh-surface: #14181d;
  --fh-surface-2: #1c2128;
  --fh-border: #262c34;
  --fh-text: #f4f6f8;
  --fh-text-muted: #9ba4ae;
  --fh-text-subtle: #5e6671;
  --fh-primary: #c6ff3d;
  --fh-primary-ink: #0b0d10;
  --fh-primary-soft: rgba(198, 255, 61, 0.1);
  --fh-primary-line: rgba(198, 255, 61, 0.35);
  --fh-radius-sm: 6px;
  --fh-radius-md: 10px;
  --fh-radius-lg: 16px;
  --fh-radius-pill: 999px;
  --fh-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fh-duration: 200ms;
  --fh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --maxw: 1180px;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--fh-bg); color: var(--fh-text); font-family: var(--fh-font-sans);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--fh-primary); outline-offset: 3px; border-radius: 4px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fh-primary); color: var(--fh-primary-ink); padding: 8px 14px; border-radius: var(--fh-radius-md); font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Wordmark: small "The" stacked over Fit + lime Hero ---------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: .84; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.wordmark .the { font-size: .36em; font-weight: 700; letter-spacing: .04em; color: var(--fh-text-muted); margin-left: .08em; line-height: 1; }
.wordmark .hi { color: var(--fh-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: 15px; border-radius: var(--fh-radius-md); padding: 11px 20px; text-align: center;
  transition: background var(--fh-duration) var(--fh-ease), border-color var(--fh-duration) var(--fh-ease);
}
.btn-primary { background: var(--fh-primary); color: var(--fh-primary-ink); }
.btn-primary:hover { background: #d4ff5e; }
.btn-ghost { border: 1px solid var(--fh-border); background: var(--fh-surface); color: var(--fh-text); }
.btn-ghost:hover { border-color: #3a4450; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--fh-bg); border-bottom: 1px solid var(--fh-border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand .wordmark { font-size: 23px; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { color: var(--fh-text-muted); font-size: 14.5px; font-weight: 500; transition: color var(--fh-duration); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fh-text); }
.nav-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--fh-border); border-radius: var(--fh-radius-md); font-weight: 600; font-size: 14.5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--fh-surface); border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 12px; border-radius: var(--fh-radius-md); font-weight: 600; color: var(--fh-text-muted); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { color: var(--fh-text); background: var(--fh-surface-2); }
.menu-panel .btn { margin-top: 6px; color: var(--fh-primary-ink); }
.menu-panel .btn:hover { background: #d4ff5e; color: var(--fh-primary-ink); }
@media (min-width: 900px) {
  .nav-links, .nav-cta { display: flex; }
  .menu { display: none; }
}

/* ---------- Beta banner ---------- */
.beta { border: 1px solid var(--fh-primary-line); text-align: left; background: var(--fh-primary-soft); border-radius: var(--fh-radius-lg); padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; color: var(--fh-text); font-size: 15px; }
.beta b { color: var(--fh-primary); }
.beta .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fh-primary); margin-top: 8px; }

/* ---------- Type & sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding-top: 0; }
.kicker { display: inline-block; color: var(--fh-primary); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.accent { color: var(--fh-primary); }
.lede { color: var(--fh-text-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; max-width: 560px; }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--fh-text-muted); font-size: 17px; }
.center { text-align: center; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .cta-row, .cta-row.center { justify-content: center; }
.fine { color: var(--fh-text-muted); font-size: 14px; }
.fine a, .prose a, .link { color: var(--fh-primary); font-weight: 600; }

/* ---------- Hero (photo + scrim) ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: min(760px, calc(100svh - 64px)); }
.hero-img { position: absolute; inset: 0; background: var(--fh-bg) url('/hero.jpg') no-repeat; background-size: cover; background-position: 68% center; }
.hero-img.pricing { background-image: url('/pricing-bg.jpg'); background-position: 80% 22%; }
.scrim { position: absolute; inset: 0; background: linear-gradient(0deg, var(--fh-bg) 8%, rgba(11, 13, 16, .82) 52%, rgba(11, 13, 16, .35) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 48px; }
.hero-col { max-width: 600px; }
.hero h1 { margin-top: 16px; }
.hero .lede { margin-top: 18px; color: #c4cbd4; }
.hero-note { margin-top: 18px; color: var(--fh-text-muted); font-size: 14px; }
.page-hero { min-height: 0; }
.page-hero .hero-inner { padding-top: 72px; padding-bottom: 40px; }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .scrim { background: linear-gradient(90deg, var(--fh-bg) 0%, rgba(11, 13, 16, .92) 32%, rgba(11, 13, 16, .45) 62%, rgba(11, 13, 16, .1) 100%), linear-gradient(0deg, var(--fh-bg) 0%, rgba(11, 13, 16, 0) 36%); }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .page-hero .hero-inner { padding-top: 88px; padding-bottom: 72px; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--fh-surface); border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); padding: 24px; }
.card p { margin-top: 8px; color: var(--fh-text-muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--fh-primary-soft); border: 1px solid var(--fh-primary-line); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; stroke: var(--fh-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band { border-top: 1px solid var(--fh-border); border-bottom: 1px solid var(--fh-border); background: var(--fh-surface); }
.band .card { background: var(--fh-bg); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-primary); }
.duo h3 { margin-top: 10px; font-size: 22px; }
.ticks { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--fh-text-muted); font-size: 15px; }
.ticks svg { flex: none; width: 18px; height: 18px; stroke: var(--fh-primary); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.card .link { display: inline-block; margin-top: 20px; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fh-primary-line); background: var(--fh-primary-soft); color: var(--fh-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.steps.card-steps li { background: var(--fh-surface); border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); padding: 24px 24px 24px 76px; }
.steps.card-steps li::before { left: 22px; top: 22px; }
.steps p { margin-top: 6px; color: var(--fh-text-muted); font-size: 15px; }
.steps .btn { margin-top: 14px; }

/* ---------- Pricing ---------- */
.plans { margin-top: 32px; }
.plan { display: flex; flex-direction: column; }
.plan.feat { border-color: var(--fh-primary-line); }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-text-muted); display: flex; align-items: center; gap: 10px; }
.plan.feat .plan-name { color: var(--fh-primary); }
.pill { font-size: 10.5px; letter-spacing: .08em; background: var(--fh-primary); color: var(--fh-primary-ink); border-radius: var(--fh-radius-pill); padding: 3px 9px; font-weight: 800; }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--fh-text-muted); font-size: 15px; font-weight: 600; }
.plan .cap { margin-top: 6px; color: var(--fh-text-muted); font-size: 15px; }
.plan .cap b { color: var(--fh-text); font-variant-numeric: tabular-nums; }
.plan .rate { margin-top: auto; padding-top: 18px; color: var(--fh-text-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tablewrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--fh-border); font-size: 15px; font-variant-numeric: tabular-nums; }
thead th { background: var(--fh-surface-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fh-text-muted); }
th:first-child, td:first-child { text-align: left; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--fh-border); padding: 22px 0; }
.qa h3 { font-size: 17px; }
.qa p { margin-top: 8px; color: var(--fh-text-muted); font-size: 15px; }
.qa a { color: var(--fh-primary); font-weight: 600; }
.doc .qa h3 { margin-top: 0; }

/* ---------- Documents (privacy, terms, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { margin-top: 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; }
.meta { margin-top: 14px; color: var(--fh-text-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.draft { margin-top: 24px; border: 1px solid var(--fh-primary-line); border-radius: 14px; background: var(--fh-surface); padding: 16px 18px; color: var(--fh-text-muted); font-size: 14.5px; }
.draft b { color: var(--fh-primary); }
.doc h2 { margin-top: 44px; font-size: clamp(20px, 2.6vw, 24px); letter-spacing: -.015em; line-height: 1.2; }
.doc h3 { margin-top: 24px; font-size: 16.5px; }
.doc p, .doc li { color: var(--fh-text-muted); font-size: 15.5px; line-height: 1.7; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin-top: 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--fh-primary); }
.doc strong { color: var(--fh-text); }
.doc a { color: var(--fh-primary); font-weight: 600; overflow-wrap: anywhere; }
.ph { color: var(--fh-primary); background: var(--fh-primary-soft); border: 1px dashed var(--fh-primary-line); border-radius: var(--fh-radius-sm); padding: 0 5px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--fh-border); padding: 40px 0 32px; }
.foot { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot .wordmark { font-size: 22px; }
.foot-tag { margin-top: 12px; color: var(--fh-text-muted); font-size: 14px; max-width: 280px; }
.foot-cols { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.foot h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-text-muted); font-weight: 700; }
.foot ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.foot ul a { display: inline-block; padding: 4px 0; color: var(--fh-text); font-size: 14.5px; overflow-wrap: anywhere; }
.foot ul a:hover { color: var(--fh-primary); }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--fh-border); color: var(--fh-text-muted); font-size: 13px; }
@media (min-width: 760px) {
  .foot { grid-template-columns: 1.2fr 2fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
