/* ==========================================================================
   Longevity Coach IQ -- v2 site foundation (clinical-premium)
   Wider 1300px container, dark nav/hero/footer anchors, light content
   sections in between for readability. Colors extend the app's own
   tailwind.config.js tokens rather than replacing them.
   ========================================================================== */

:root {
  /* Uniform vertical section rhythm. Change here, not per-section. */
  --sec-y: 100px;
  /* Light surface (content sections, docs, cards) */
  --paper: #F8FAFC;
  --paper-panel: #FFFFFF;
  --paper-alt: #F1F5F9;
  --border: #e2e8f0;
  --ink: #0f172a;
  --slate: #64748b;
  --slate-light: #94a3b8;

  /* Dark surface (nav, hero, CTA bookends, footer) -- validated in the
     hero mockup, reused exactly, not re-derived. */
  --dark-bg: #090d16;
  --dark-panel: rgba(255,255,255,0.035);
  --dark-panel-border: rgba(255,255,255,0.09);
  --dark-ink: #f4f6f9;
  --dark-slate: #93a0b8;
  --dark-slate-dim: #5c6a85;
  --dark-track: rgba(255,255,255,0.07);

  --emerald: #0e9668;
  --emerald-bright: #14b981; /* dark-surface variant, verified for contrast in the hero mockup */
  --emerald-deep: #0c7f59;
  --emerald-glow: rgba(14,150,104,0.14);
  --emerald-tint: rgba(14,150,104,0.08);
  --indigo: #5457e0;
  --indigo-bright: #6366f1;
  --indigo-glow: rgba(84,87,224,0.14);
  --amber: #b45309;

  --font-display: 'Atkinson Hyperlegible Next', sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-panel: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-lifted: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(16,24,40,0.08);
  --shadow-dark-lifted: 0 24px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  --container: 1300px;
}
@media (max-width: 900px) { :root { --sec-y: 50px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--emerald-glow); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 640px) { .container { padding: 0 20px; } }
.metric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------------------- */
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-display); letter-spacing: 0.01em; font-size: 20px; }
.wordmark .w-bold { font-weight: 700; color: var(--dark-ink); }
.wordmark .w-mid { font-weight: 400; color: var(--emerald-bright); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; padding: 14px 28px; border: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-primary { background: var(--emerald-bright); color: #04120c; }
.btn-primary:hover { background: #0fd694; }
.btn-outline { background: transparent; color: var(--dark-ink); border: 1px solid rgba(255,255,255,0.18); }
.btn-outline:hover { border-color: rgba(255,255,255,0.35); }
.btn-secondary-light { background: white; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary-light:hover { background: var(--paper-alt); }

/* -------------------------------------------------------------------------
   Nav -- persistent dark, stays consistent regardless of section beneath
   ------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(9,13,22,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--dark-slate); font-size: 16px; font-weight: 600; padding: 10px 16px; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--dark-ink); background: rgba(255,255,255,0.05); }
.nav-links a.active:not(.btn) { color: var(--dark-ink); }
/* Five desktop links plus the wordmark and two buttons no longer fit below
   ~900px, so the hamburger takes over there rather than shrinking the type. */
@media (max-width: 900px) {
  .nav-links .nav-link-desktop { display: none; }
  .nav-links .btn-primary { display: none; }
}

/* -------------------------------------------------------------------------
   Footer -- dark, matches nav
   ------------------------------------------------------------------------- */
.footer { background: var(--dark-bg); border-top: 1px solid rgba(255,255,255,0.08); padding: var(--sec-y) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-brand p { max-width: none; }
}
.footer-brand p { color: var(--dark-slate-dim); font-size: 14.5px; margin-top: 14px; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-slate); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--dark-slate-dim); font-size: 14.5px; padding: 6px 0; }
.footer-col a:hover { color: var(--dark-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 13.5px; color: var(--dark-slate-dim); }

/* -------------------------------------------------------------------------
   Dark decorative background (grid + glow) -- used on hero and any other
   dark "moment" section, verified in the hero mockup.
   ------------------------------------------------------------------------- */
.dark-surface { background: var(--dark-bg); color: var(--dark-ink); position: relative; overflow: hidden; }
.dark-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.dark-glow { position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: radial-gradient(ellipse at center, rgba(20,185,129,0.16) 0%, transparent 65%); pointer-events: none; }

/* -------------------------------------------------------------------------
   Eyebrows
   ------------------------------------------------------------------------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.eyebrow.emerald { color: var(--emerald); }
.eyebrow-mono { font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 9px; background: rgba(20,185,129,0.1); color: #5eead4; border: 1px solid rgba(20,185,129,0.25); padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.eyebrow-mono .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-bright); }

/* -------------------------------------------------------------------------
   Shared FAQ grid -- used on Pricing and Home
   ------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 15.5px; color: var(--slate); line-height: 1.65; }
.faq-grid-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: var(--container); margin: 0 auto; }
@media (max-width: 800px) { .faq-grid-wide { grid-template-columns: 1fr; } }
.faq-grid-wide .faq-item { break-inside: avoid; }

/* -------------------------------------------------------------------------
   Mobile navigation -- <details> disclosure, no JS required.
   Desktop links are hidden below 720px, so this is the only nav there.
   ------------------------------------------------------------------------- */
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-burger { display: grid; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--dark-ink); }
.nav-mobile[open] summary { border-color: rgba(20,185,129,0.5); }
.nav-mobile-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: #10151f; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 10px; box-shadow: 0 24px 48px -18px rgba(0,0,0,0.7); display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.nav-mobile-panel a:not(.btn) { color: var(--dark-slate); font-size: 16px; font-weight: 600; padding: 11px 14px; border-radius: 10px; }
.nav-mobile-panel a:not(.btn):hover { color: var(--dark-ink); background: rgba(255,255,255,0.06); }
.nav-mobile-cta { margin-top: 8px; justify-content: center; }
@media (max-width: 720px) {
  .nav-mobile { display: block; }
  .nav-links .btn-outline { display: none; }
  .nav-inner { gap: 12px; }
}
