/* NeuroLoad website. Same palette as the app (src/constants/brand.js). */
:root {
  --bg: #F3F6FA;
  --card: #FFFFFF;
  --border: #D5DEE9;
  --text: #0B2545;
  --muted: #526377;
  --blue: #1F5FBF;
  --blue-dark: #174A96;
  --teal: #0F766E;
  --amber: #B45309;
  --tint: #E3EEFB;
  --tint-teal: #E6F4F1;
  --on-blue: #FFFFFF;
  --red: #C0392B;
  --green: #15803D;
  --tint-red: #FDECEA;
  --tint-amber: #FDF3E1;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --card: #131C2E;
    --border: #26344D;
    --text: #E6EDF7;
    --muted: #A9B6C8;
    --blue: #6EA8FF;
    --blue-dark: #8DBBFF;
    --teal: #4FD1C5;
    --amber: #F6B25C;
    --tint: #18284A;
    --tint-teal: #12302E;
    --on-blue: #0B1220;
    --red: #FF8A7A;
    --green: #6EE7A0;
    --tint-red: #3A1A1A;
    --tint-amber: #3A2A12;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ---- hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px;
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; }
.hero-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.ath { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.ath:first-of-type { border-top: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ath b { display: block; font-size: 14px; }
.ath span { color: var(--muted); font-size: 12.5px; }
.pill { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.red { background: var(--tint-red); color: var(--red); }
.pill.amber { background: var(--tint-amber); color: var(--amber); }
.pill.green { background: var(--tint-teal); color: var(--green); }

/* ---- sections */
section { padding: 64px 0; scroll-margin-top: 96px; }
.section-head { max-width: 680px; margin-bottom: 36px; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.alt .feature { background: var(--bg); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--tint-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin: 0 0 14px; font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.alt .step { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--blue); color: var(--on-blue); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; color: var(--blue); }
.plan .who { color: var(--muted); font-size: 14px; margin: 4px 0 16px; min-height: 42px; }
.price { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.per { color: var(--muted); font-size: 13px; min-height: 20px; margin: 6px 0 16px; }
.cap { font-weight: 700; margin: 0 0 14px; }
.plan .checks { gap: 8px; font-size: 14.5px; margin-bottom: 22px; }
.plan .btn { margin-top: auto; width: 100%; }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---- faq */
.faq { max-width: 780px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---- final cta + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
.final p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 560px; }
footer { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }

/* ---- legal / simple pages */
.doc { max-width: 760px; padding: 56px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 34px; }
.doc p, .doc li { color: var(--muted); }
.doc ol li { margin-bottom: 8px; }

/* ---- inner pages */
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }
section.tight { padding-top: 16px; }
.crumb { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.crumb:hover { color: var(--blue); }
.feature-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature-head .eyebrow { margin: 0; }
.ico-lg { width: 46px; height: 46px; border-radius: 13px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.ico-lg svg { width: 24px; height: 24px; }

/* feature cards that link to their page */
.feature-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.feature-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.feature-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.feature-link .more { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 700; font-size: 14px; }

/* feature page: screenshots + detail */
.feature-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.detail { display: grid; gap: 16px; min-width: 0; }
.detail .panel h3 { font-size: 17px; margin-bottom: 12px; }
.detail .checks { font-size: 15px; }
.shots { display: grid; gap: 20px; align-items: start; min-width: 0; }
.shots-2:has(.shot-phone + .shot-phone) { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; min-width: 0; }
.shot a { display: block; cursor: zoom-in; }
.shot a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 14px; }
.shot img, .shot-missing { width: 100%; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.shot-desktop img, .shot-desktop .shot-missing { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-phone { max-width: 300px; justify-self: center; width: 100%; }
.shot-phone img, .shot-phone .shot-missing { border-radius: 28px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-width: 6px; border-color: var(--text); }
.shot-missing { display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--card) 0 14px, var(--bg) 14px 28px); }
.shot-missing span { font-weight: 700; color: var(--text); }
.shot-missing code { font-size: 12px; word-break: break-all; }
.shot figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }
.shot .illus { font-weight: 700; color: var(--amber); }

.next { padding: 28px 0; }
.next-link { display: grid; gap: 4px; text-decoration: none; color: var(--text); max-width: 640px; }
.next-link .eyebrow { margin: 0; }
.next-link strong { font-size: 22px; color: var(--blue); }
.next-link span:last-child { color: var(--muted); }
.next-link:hover strong { text-decoration: underline; }

.doc .meta { color: var(--muted); font-size: 14px; margin: -6px 0 8px; }

/* ---- audiences (home) */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.audience:hover { border-color: var(--blue); transform: translateY(-2px); }
.audience:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.audience .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.audience .ico svg { width: 22px; height: 22px; }
.audience .eyebrow { margin: 4px 0 0; }
.audience h3 { margin: 0; font-size: 20px; line-height: 1.25; text-wrap: balance; }
.audience .checks { gap: 8px; font-size: 15px; }
.audience .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 700; font-size: 14px; }
.sub-h { font-size: 22px; margin: 0 0 18px; }
.page-head .split { align-items: center; }

/* ---- responsive */
@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feature-body { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px 16px; }
  .top .btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .hero { padding: 44px 0 32px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid, .steps, .plans { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 16px; }
  section { padding: 48px 0; }
  footer .links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
