/* ============================================================
   We Got AI at Home — Design System
   Modern editorial: warm paper, deep ink, one terracotta accent.
   Line icons (hand-drawn feel), hairlines, generous whitespace.
   No emojis — icons are inline SVG, stroke style.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:            #f7f2de;
  --bg-surface:    #f0e9ce;
  --bg-surface-2:  #e8dfc0;
  --ink:           #1e4d2b;
  --ink-soft:      #2a5c38;
  --text-primary:  #1e4d2b;
  --text-secondary:#4a6350;
  --text-muted:    #8a937f;
  --accent:        #4e8a4c;
  --accent-hover:  #3e7040;
  --accent-soft:   #e3ebcb;
  --teal:          #2f6b5e;
  --teal-soft:     #e4ecd4;
  --white:         #fffdf6;
  --border:        rgba(30, 77, 43, .12);
  --border-strong: rgba(30, 77, 43, .22);
  --shadow-sm:     0 1px 2px rgba(30,77,43,.07);
  --shadow-md:     0 8px 30px rgba(30,77,43,.09);
  --shadow-lg:     0 20px 60px rgba(30,77,43,.13);
  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:  'DM Serif Display', Georgia, serif;
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
code {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .45em;
  font-size: .85em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; }

/* ── Icons (inline SVG, line/sketch style) ──────────────── */
.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.card-icon { color: var(--accent); margin-bottom: 16px; }
.card-icon .icon { width: 30px; height: 30px; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section + .section { padding-top: 0; }
.section-tint { background: var(--bg-surface); }
.section-dark { background-color: var(--ink); color: #f6f3f0; }
.section-dark .section-sub, .section-dark .text-secondary { color: rgba(246,243,240,.65); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 44px;
}

/* ── Text utilities ─────────────────────────────────────── */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-xl { font-size: 1.125rem; }
.link-accent { color: var(--accent); font-weight: 600; }
.link-accent:hover { color: var(--accent-hover); text-decoration: underline; }
.link-teal { color: var(--teal); font-weight: 600; }
.link-teal:hover { text-decoration: underline; }

/* ── Header / nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 222, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 77, 43, .08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { display: block; border-radius: 8px; }
.logo-text { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: -.01em; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn-dark { background-color: var(--ink); color: #f6f3f0; }
.btn-dark:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-xl { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }

/* Home hero — the one that stands out */
.hero-home { padding: 130px 0 100px; }
.hero-home .hero-sub { color: var(--ink-soft); }

/* Sub-page heroes — deliberately smaller, they introduce, not dazzle */
.hero-compact { padding: 56px 0 44px; text-align: left; }
.hero-compact .hero-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); max-width: 640px; margin: 0 0 14px; }
.hero-compact .hero-sub { font-size: 1.05rem; margin: 0; max-width: 560px; }
.hero-compact .hero-actions { justify-content: flex-start; margin-top: 26px; }

/* Site-wide living background */
.bg-nodes {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body > *:not(.bg-nodes) { position: relative; z-index: 1; }

/* Split heroes — text left, brand art right */
.hero-split { padding: 64px 0 52px; }
.hero-split-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-split .hero-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; text-align: left; }
.hero-split .hero-sub { margin: 0; max-width: 500px; text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; margin-top: 26px; }
.hero-art { animation: art-in .7s ease both; }
.hero-art svg { width: 100%; height: auto; display: block; }
.art-float { animation: float-slow 7s ease-in-out infinite; }
.art-float-2 { animation: float-slow 8.5s ease-in-out 1.2s infinite; }
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes art-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Centered compact hero (assessment) */
.hero-compact-center { padding: 64px 0 52px; }
.hero-compact-center .hero-title { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-left: auto; margin-right: auto; }
.hero-compact-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 400;
  max-width: 840px;
  margin: 0 auto 22px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .85rem; color: var(--text-muted); }

/* Hand-drawn underline accent for key words */
.sketch-underline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 25 2 50 7 T 98 5' stroke='%234e8a4c' stroke-width='4' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .32em;
  padding-bottom: .08em;
}

/* ── Stat strip ─────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 64px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  background: var(--white);
}
.stat-num { font-family: var(--font-display); font-size: 1.75rem; color: var(--ink); }
.stat-label { font-size: .83rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Cards ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: .95rem; }
.card .card-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.card-featured { border-color: rgba(78, 138, 76, .5); box-shadow: var(--shadow-sm); }

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: .95rem; margin-bottom: 10px; }
.step-card .step-time { display: block; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--teal); }

/* ── Callout ────────────────────────────────────────────── */
.callout {
  border-top: 2px solid var(--accent);
  padding: 18px 0 0;
  margin-top: 40px;
}
.callout h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  margin-bottom: 10px;
}
.callout p, .callout li { font-size: .95rem; color: var(--text-secondary); max-width: 720px; }
.callout-accent { border-top-color: var(--teal); }
.callout-accent h3 { color: var(--teal); }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-hover);
  padding: 16px 18px 13px;
  border-bottom: 2px solid var(--accent);
  background: transparent;
}
.table td { padding: 15px 18px; border-bottom: 1px solid rgba(78, 138, 76, .16); vertical-align: top; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: rgba(78, 138, 76, .07); }
.table tbody tr:hover td:first-child { color: var(--accent-hover); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; white-space: nowrap; transition: color var(--transition); }

/* ── Model Scout ────────────────────────────────────────── */
.model-scout { margin-top: 8px; }
.scout-header { margin-bottom: 26px; }
.scout-header h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.scout-subtitle { color: var(--text-secondary); margin-top: 6px; }
.scout-freshness { font-size: .82rem; color: var(--text-muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.scout-freshness::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.scout-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-tab {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.active { background: var(--ink); border-color: var(--ink); color: #f6f3f0; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }

.model-list { border-top: 1px solid var(--border); }
.model-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.model-row:hover { background: var(--bg-surface); }
.model-rank {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-muted);
  text-align: center;
}
.model-row:first-child .model-rank { color: var(--accent); }
.model-row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.model-row-title strong { font-size: 1.02rem; }
.model-row-title .model-family { font-size: .78rem; color: var(--text-muted); text-transform: capitalize; }
.model-row .model-description { font-size: .88rem; color: var(--text-secondary); max-width: 560px; }
.model-row-meta { display: flex; align-items: center; gap: 16px; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.model-row-meta .cap-stars { color: #d9950f; letter-spacing: .05em; font-size: .85rem; }
.model-row-meta a { font-weight: 600; color: var(--accent); }
.model-row-meta a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .model-row { grid-template-columns: 32px 1fr; }
  .model-row-meta { grid-column: 2; margin-top: 6px; flex-wrap: wrap; gap: 10px; }
}

.scout-footer { margin-top: 30px; }
.scout-empty, .scout-loading {
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}
.scout-spinner {
  width: 32px; height: 32px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-surface-2);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Carousel ───────────────────────────────────────────── */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 min(330px, 84%); scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; gap: 10px; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.carousel-btn .icon { width: 18px; height: 18px; }
.carousel-hint { font-size: .8rem; color: var(--text-muted); margin-left: 8px; }

/* ── Mock chat window (home hero graphic) ───────────────── */
.mock-window {
  max-width: 540px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.mock-header i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-header p { margin-left: auto; font-size: .75rem; color: var(--text-muted); }
.mock-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mock-msg { max-width: 85%; padding: 11px 16px; border-radius: 16px; font-size: .89rem; line-height: 1.55; }
.mock-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.mock-msg.ai { align-self: flex-start; background: var(--bg-surface); border-bottom-left-radius: 5px; }
.mock-typing { display: inline-flex; gap: 5px; padding: 13px 16px; background: var(--bg-surface); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.mock-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.mock-typing i:nth-child(2) { animation-delay: .2s; }
.mock-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ── Scroll cue (home hero) ─────────────────────────────── */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  background: var(--white);
  transition: opacity .4s ease, transform var(--transition);
  animation: cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { transform: translateY(2px); }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Device Check ───────────────────────────────────────── */
.device-check {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.dc-intro { text-align: center; }
.dc-consent { font-size: .85rem; color: var(--text-muted); max-width: 500px; margin: 16px auto 0; }

.dc-verdict { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.dc-verdict-icon { color: var(--accent); }
.dc-verdict-icon .icon { width: 34px; height: 34px; }
.dc-verdict h3 { font-size: 1.3rem; margin-bottom: 6px; }
.dc-verdict p { color: var(--text-secondary); }

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dc-panel { background: var(--bg-surface); border-radius: var(--radius-md); padding: 24px; }
.dc-panel h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.dc-panel h4 + .dc-list { margin-bottom: 20px; }
.dc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.dc-rows li:last-child { border-bottom: 0; }
.dc-rows span { color: var(--text-secondary); }
.dc-list li { font-size: .9rem; color: var(--text-secondary); margin-bottom: 10px; }
.dc-list a { color: var(--accent); }
.dc-list a:hover { text-decoration: underline; }
.dc-models { font-size: .95rem; font-weight: 600; }

.dc-notes { margin-top: 22px; }
.dc-notes li { font-size: .85rem; color: var(--text-muted); padding-left: 18px; position: relative; margin-bottom: 6px; }
.dc-notes li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }

.dc-privacy { margin-top: 22px; font-size: .87rem; color: var(--teal); display: flex; gap: 10px; align-items: flex-start; }
.dc-privacy .icon { width: 18px; height: 18px; margin-top: 2px; }
.dc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.dc-next {
  margin-top: 24px;
  background-color: var(--ink);
  color: #f6f3f0;
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dc-next p { color: rgba(246,243,240,.72); font-size: .93rem; max-width: 480px; }
.dc-next strong { display: block; color: #f6f3f0; font-size: 1.05rem; margin-bottom: 4px; }

/* ── Lead capture ───────────────────────────────────────── */
/* Shared texture for dark surfaces */
.capture, .dc-next, .section-dark, .btn-dark {
  background-image: radial-gradient(rgba(247, 242, 222, .07) 1px, transparent 1.5px),
                    radial-gradient(rgba(78, 138, 76, .3) 1px, transparent 1.5px);
  background-size: 26px 26px, 58px 58px;
  background-position: 0 0, 13px 13px;
}
.capture {
  background-color: var(--ink);
  color: #f6f3f0;
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  text-align: center;
}
#book .capture { margin-top: 32px; }
.capture h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.capture p { color: rgba(246,243,240,.68); max-width: 480px; margin: 0 auto 26px; font-size: .97rem; }
.capture-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.capture-form input {
  flex: 1;
  border: 1.5px solid rgba(246,243,240,.25);
  background: rgba(246,243,240,.08);
  color: #f6f3f0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.capture-form input::placeholder { color: rgba(246,243,240,.45); }
.capture-form input:focus { border-color: var(--accent); }
.capture-note { font-size: .78rem; color: rgba(246,243,240,.45); margin-top: 16px; }

/* ── Assessments band ───────────────────────────────────── */
.assess-band {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--white);
}
.assess-band h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.assess-band p { color: var(--text-secondary); max-width: 540px; font-size: .97rem; }
.assess-band .btn { flex-shrink: 0; }

/* ── Price cards ────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.price-amount { font-family: var(--font-display); font-size: 2.1rem; }
.price-amount small { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.price-card ul li { font-size: .92rem; color: var(--text-secondary); padding-left: 26px; position: relative; margin-bottom: 10px; }
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: .5em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* ── Gear / affiliate ───────────────────────────────────── */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gear-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gear-card .gear-price { font-weight: 700; color: var(--teal); font-size: .9rem; }
.gear-card h3 { font-size: 1.08rem; }
.gear-card p { font-size: .92rem; color: var(--text-secondary); flex: 1; }
.gear-card .gear-link { font-weight: 600; color: var(--accent); font-size: .9rem; }
.gear-card .gear-link:hover { text-decoration: underline; }
.disclosure { font-size: .8rem; color: var(--text-muted); margin-top: 20px; }

/* ── Prose ──────────────────────────────────────────────── */
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.14rem; margin: 30px 0 10px; }
.prose ul { margin: 0 0 16px; }
.prose ul li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--text-secondary); }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 10px; height: 2px; background: var(--accent); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-secondary); font-size: .95rem; }

/* ── CTA section ────────────────────────────────────────── */
.final-cta { text-align: center; padding: 88px 0; }
.final-cta .section-title { margin-bottom: 16px; }
.final-cta .section-sub { margin-left: auto; margin-right: auto; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: 88px;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .9rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 9px; }
.social-icon { width: 17px; height: 17px; flex-shrink: 0; opacity: .75; transition: opacity var(--transition), color var(--transition); }
.footer-col a:hover .social-icon { opacity: 1; color: var(--accent); }
.footer-col a:hover { color: var(--text-primary); }
.footer-brand p { font-size: .9rem; color: var(--text-secondary); margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Intake form (free setup report) ────────────────────── */
.intake {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.intake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intake-field { display: flex; flex-direction: column; gap: 8px; }
.intake-field.full { grid-column: 1 / -1; }
.intake-field label { font-size: .85rem; font-weight: 600; }
.intake-field label span { color: var(--text-muted); font-weight: 400; }
.intake-field input,
.intake-field select,
.intake-field textarea {
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}
.intake-field input:focus,
.intake-field select:focus,
.intake-field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(78, 138, 76, .14);
}
.intake-field input,
.intake-field select,
.intake-field textarea { transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.intake-field:focus-within label { color: var(--accent); transition: color var(--transition); }
.intake-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4d2b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
.intake-actions .btn { transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.capture-form input:focus { box-shadow: 0 0 0 4px rgba(246, 243, 240, .14); border-color: var(--accent); }
.capture-form input { transition: border-color var(--transition), box-shadow var(--transition); }
.intake-field textarea { resize: vertical; min-height: 90px; }
.intake-actions { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.intake-privacy { font-size: .8rem; color: var(--text-muted); }

/* ── Coming soon tooltip (socials) ──────────────────────── */
[data-coming-soon] { position: relative; cursor: default; }
[data-coming-soon]::after {
  content: 'Coming soon';
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  background: var(--ink);
  color: #f6f3f0;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity var(--transition), transform var(--transition);
}
[data-coming-soon]:hover::after { opacity: 1; transform: translateY(0); }

/* ── Benchmarks ─────────────────────────────────────────── */
.bench-note {
  background: var(--teal-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: .9rem;
  color: var(--text-secondary);
  margin-top: 22px;
}
.bench-note strong { color: var(--teal); }


/* ── Modal popup ────────────────────────────────────────── */
dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 460px;
  width: calc(100% - 48px);
  margin: auto;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
dialog.modal::backdrop { background: rgba(30, 77, 43, .35); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: modal-in .25s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.modal-card > p { font-size: .92rem; color: var(--text-secondary); margin-top: -8px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-note { font-size: .78rem; color: var(--text-muted); text-align: center; }

/* ── Report CTA card (opens the popup) ──────────────────── */
.report-cta { text-align: center; }
.report-cta .section-sub { margin-left: auto; margin-right: auto; }
.report-cta form { margin-top: 28px; }

/* Submit confirmation (replaces the form) */
.gate-confirm {
  margin-top: 28px;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 107, 94, .25);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  text-align: center;
}
.gate-confirm .icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 10px; }
.gate-confirm h3 { font-size: 1.15rem; margin-bottom: 8px; }
.gate-confirm p { font-size: .92rem; color: var(--text-secondary); }
.gate-confirm .gate-note { margin-top: 10px; font-size: .8rem; color: var(--text-muted); }
.report-cta .intake-privacy-note { font-size: .82rem; color: var(--text-muted); margin-top: 16px; }

/* bigger social icons */
.social-icon { width: 21px; height: 21px; }
.social-row { display: flex; gap: 16px; margin-bottom: 14px; }
.social-row a { padding: 6px; border-radius: 8px; }
.social-row a:hover { background: var(--bg-surface-2); }
.social-row .social-icon { width: 22px; height: 22px; }


/* ── Instant device readout ─────────────────────────────── */
.dc-auto {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}
.dc-auto-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.dc-auto .dc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.dc-auto .dc-rows li:last-child { border-bottom: 0; }
.dc-auto .dc-rows span { color: var(--text-secondary); }
.dc-auto .dc-rows strong { text-align: right; }
.dc-auto-verdict { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--teal); }
.dc-auto-note { margin-top: 10px; font-size: .78rem; color: var(--text-muted); }


.capture-input {
  border: 1.5px solid rgba(246,243,240,.25);
  background: rgba(246,243,240,.08);
  color: #f6f3f0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.capture-input::placeholder { color: rgba(246,243,240,.45); }
.capture-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(246,243,240,.12); }
select.capture-input option { color: #1e4d2b; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dc-grid { grid-template-columns: 1fr; }
  .intake-grid { grid-template-columns: 1fr; }
  .hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .hero-title, .hero-split .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-art { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 52px; }
  .intake { padding: 26px 18px; }
  .modal-card { padding: 28px 20px; }
  .dc-auto { padding: 18px; }
  .hero-split { padding: 48px 0 40px; }
  .prose h2 { margin: 32px 0 12px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: 10px 0; font-size: 1rem; }

  .capture { padding: 36px 24px; }
  .capture-form { flex-direction: column; }
  .assess-band { padding: 30px 24px; }
  .device-check { padding: 26px 18px; }
}

/* ── Motion preferences ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
