/* ============================================================
   Ingreview Landing Page — main.css
   Design tokens consistent with mobile app (PLAN.md §13)
   ============================================================ */

:root {
  --bg:        #F2F4F0;   /* sage cream */
  --bg-warm:   #ECE9DF;   /* deeper cream band */
  --paper:     #FBFAF4;   /* card paper */
  --ink:       #0F1A14;
  --ink-soft:  #4E5B53;
  --ink-mute:  #8A958D;
  --rule:      #D9DCD2;
  --forest:    #1F4D3F;
  --forest-2:  #14382C;
  --sage:      #C8D4B8;
  --sage-2:    #DDE4D0;
  --amber:     #C9923B;
  --amber-soft:#EBC783;
  --terra:     #B05A3F;
  --terra-soft:#E8B59C;
  --mist:      #B9C7BA;
  --shadow: 0 1px 0 rgba(31,77,63,.06), 0 12px 32px -16px rgba(15,26,20,.18);
  --shadow-lg: 0 30px 70px -32px rgba(15,26,20,.35), 0 6px 18px -8px rgba(15,26,20,.18);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; padding: 0; background-color: #F2F4F0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: "JetBrains Mono", monospace; font-feature-settings: "ss01"; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content:""; width: 22px; height: 1px; background: var(--forest); display:inline-block;
}

/* ---------- NAV ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.logo-mark { width: 28px; height: 28px; }
.logo-word {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.logo-word .dot { color: var(--amber); }
nav ul {
  list-style: none; display: flex; gap: 36px; margin:0; padding:0;
  font-size: 14.5px; color: var(--ink-soft);
}
nav ul a { color: inherit; text-decoration: none; }
nav ul a:hover { color: var(--ink); }
.nav-cta {
  display:inline-flex; align-items: center; gap: 10px;
  background: var(--forest); color: #F8F6EE;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--forest-2);
}
.nav-cta:hover { background: var(--forest-2); }

/* hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 16px 40px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--ink-soft); text-decoration: none;
  padding: 10px 0; font-size: 16px;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile .nav-cta-mobile {
  margin-top: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--forest); color: #F8F6EE;
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--forest-2);
}

/* ---------- HERO ---------- */
header.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
}
h1.headline {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 22px 0 28px;
  color: var(--ink);
}
h1.headline em {
  font-style: italic;
  color: var(--forest);
}
h1.headline .swash {
  color: var(--amber);
  font-style: italic;
}
p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 36px;
}

/* ---------- WAITLIST FORM ---------- */
.waitlist-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
  max-width: 480px;
}
.waitlist-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  outline: none;
  transition: border-color .15s;
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--forest);
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-mute); }
.waitlist-form button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--forest); color: #F8F6EE;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid var(--forest-2);
  font-size: 15px; font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.waitlist-form button:hover { background: var(--forest-2); }
.waitlist-form button:disabled { opacity: .6; cursor: default; }
.waitlist-sub {
  font-size: 13px; color: var(--ink-mute);
  margin: 8px 0 0;
}
.waitlist-success {
  display: none;
  align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--forest);
  padding: 12px 18px;
  background: var(--sage-2);
  border: 1px solid var(--sage);
  border-radius: 14px;
  max-width: 480px;
}
.waitlist-success.visible { display: flex; }
.waitlist-error {
  font-size: 13px; color: var(--terra);
  margin: 6px 0 0;
  display: none;
}
.waitlist-error.visible { display: block; }

/* banner waitlist — dark bg variant */
.banner .waitlist-form input[type="email"] {
  background: rgba(255,255,255,.08);
  border-color: rgba(200,212,184,.3);
  color: #F4F1E6;
}
.banner .waitlist-form input[type="email"]::placeholder { color: rgba(200,212,184,.6); }
.banner .waitlist-form input[type="email"]:focus { border-color: var(--amber-soft); }
.banner .waitlist-form button {
  background: var(--amber); border-color: #a6791f; color: #1a0f00;
}
.banner .waitlist-form button:hover { background: var(--amber-soft); }
.banner .waitlist-sub { color: rgba(200,212,184,.7); }
.banner .waitlist-success {
  background: rgba(200,212,184,.15);
  border-color: rgba(200,212,184,.4);
  color: var(--amber-soft);
}

/* social proof row */
.micro-proof {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px;
  color: var(--ink-soft); font-size: 13.5px;
  flex-wrap: wrap;
}
.micro-proof .sep { width:1px; height: 14px; background: var(--rule); display: inline-block; }

/* hero illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1/1.05;
  min-height: 560px;
}
.hero-art svg { width: 100%; height: 100%; }

/* ---------- HOW IT WORKS ---------- */
section { padding: 96px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
}
.section-head h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 12px 0 0;
  max-width: 740px;
  color: var(--ink);
}
.section-head h2 em { color: var(--forest); font-style: italic; }
.section-head .right {
  color: var(--ink-soft); max-width: 320px;
  font-size: 15px;
}
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
}
.step {
  background: var(--paper);
  padding: 28px 24px 28px;
  display: flex; flex-direction: column; min-height: 280px;
}
.step .num {
  font-family: "Instrument Serif", serif;
  font-size: 36px; color: var(--forest);
  line-height: 1;
}
.step .label {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 4px;
}
.step .illu { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.step .illu svg { width: 100%; max-width: 180px; height: auto; }
.step h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400; font-size: 26px; margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- EVIDENCE LADDER ---------- */
.ladder-section { background: var(--bg-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ladder {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.ladder-rows { display: grid; gap: 14px; }
.lrow {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 16px;
}
.lrow .chip {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
}
.lrow h4 {
  font-family: "Instrument Serif", serif;
  font-weight: 400; font-size: 21px;
  margin: 0; letter-spacing: -0.005em;
}
.lrow p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.lrow .src {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-mute);
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 4px 8px; border-radius: 6px;
}

/* ---------- FEATURES GRID ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 32px;
  min-height: 320px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.feature .ico { height: 64px; margin-bottom: 16px; }
.feature h3 {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: 28px; margin: 0 0 10px; letter-spacing: -0.01em;
}
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.feature.tall { grid-row: span 2; }

/* ---------- STATS ---------- */
.stats-section {
  background: var(--forest);
  color: #F1EEE2;
  border-top: 1px solid var(--forest-2);
  border-bottom: 1px solid var(--forest-2);
}
.stats-section .eyebrow { color: var(--sage); }
.stats-section .eyebrow::before { background: var(--sage); }
.stats-section h2 { color: #F4F1E6; }
.stats-section h2 em { color: var(--amber-soft); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  margin-top: 56px;
}
.stat {
  padding: 36px 24px 0 0;
  border-right: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: "Instrument Serif", serif;
  font-size: 76px; line-height: 1; letter-spacing: -0.02em;
  color: #F8F4E6;
}
.stat .num .sup {
  font-size: 28px; vertical-align: top; color: var(--amber-soft);
  margin-left: 2px;
}
.stat .lab {
  margin-top: 12px; font-size: 14px;
  color: color-mix(in srgb, #F4F1E6 70%, transparent);
  max-width: 220px;
}

/* ---------- TESTIMONIAL ---------- */
.quote {
  margin-top: 64px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: #F8F4E6;
  max-width: 920px;
}
.quote-meta {
  margin-top: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: color-mix(in srgb, #F4F1E6 65%, transparent);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px;
}
details {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
details:last-child { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: "Instrument Serif", serif;
  font-weight: 400; font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary .icn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-2); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform .2s ease;
  flex-shrink: 0;
}
details[open] summary .icn { transform: rotate(45deg); background: var(--forest); color: var(--sage); }
details p {
  margin: 14px 0 0; color: var(--ink-soft); font-size: 15px;
  max-width: 540px;
}

/* ---------- GET APP BANNER ---------- */
.banner {
  position: relative;
  margin: 0 40px 80px;
  background: var(--forest);
  color: #F1EEE2;
  border-radius: 28px;
  padding: 80px 64px;
  overflow: hidden;
}
.banner h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: #F4F1E6;
  margin: 0 0 28px;
  max-width: 760px;
}
.banner h2 em { color: var(--amber-soft); font-style: italic; }
.banner .deco {
  position: absolute; right: -40px; bottom: -40px;
  width: 460px; height: 460px; opacity: .9;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-mute);
}
footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px;
}
footer h5 {
  margin: 0 0 14px; color: var(--ink);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
}
footer ul { list-style:none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .colophon {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 28px; margin-top: 24px;
  font-size: 12.5px;
}
.disclaimer {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 720px;
  margin: 24px 0 0;
}
.disclaimer strong { color: var(--ink); font-weight: 500; }

/* ---------- UTILITY ---------- */
.chip-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  background: var(--sage-2); color: var(--forest);
  border: 1px solid color-mix(in srgb, var(--sage) 70%, transparent);
  white-space: nowrap;
}
.chip-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

/* ---------- PERSONALIZATION ---------- */
.person-section { background: var(--bg); }
.person {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.person-copy ul.checks {
  list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px;
}
.person-copy ul.checks li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  align-items: start;
}
.person-copy ul.checks .b {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage-2); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--sage) 70%, transparent);
}
.person-copy ul.checks h4 {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: 22px; margin: 2px 0 4px; letter-spacing: -0.005em;
}
.person-copy ul.checks p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* profile mock */
.profile-mock {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.profile-mock .ph-head {
  display: flex; align-items: center; gap: 14px; padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.ph-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #DDE4D0, #C9923B);
  display:flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-style: italic; color: var(--forest);
  font-size: 26px;
}
.ph-head .meta { flex: 1; }
.ph-head .name { font-weight: 600; font-size: 15px; }
.ph-head .sub { font-size: 12.5px; color: var(--ink-mute); }
.ph-head .edit {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--forest); font-size: 14px; text-decoration: none;
}
.ph-group { padding: 22px 0; border-bottom: 1px dashed var(--rule); }
.ph-group:last-child { border-bottom: none; padding-bottom: 4px; }
.ph-group .lab {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.ph-group .count { color: var(--forest); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  background: var(--bg); color: var(--ink-soft);
  border: 1px solid var(--rule);
  cursor: pointer;
}
.chip.on {
  background: var(--forest); color: #F4F1E6; border-color: var(--forest-2);
}
.chip.warn {
  background: #EFE3CB; color: #5F4720; border-color: #E3CE94;
}
.chip.warn::before { content: "×"; font-weight: 600; }
.chip .ico {
  width: 14px; height: 14px; border-radius: 50%;
  background: currentColor; opacity: .4; display: inline-block;
}
.ph-toggles { display: grid; gap: 10px; }
.ph-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--rule);
}
.ph-toggle .label { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.ph-toggle .icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--sage-2); display:flex; align-items: center; justify-content: center;
  color: var(--forest); font-size: 14px;
}
.sw {
  width: 36px; height: 20px; border-radius: 999px; background: var(--rule);
  position: relative; flex-shrink: 0;
}
.sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #FBFAF4;
  transition: left .15s;
}
.sw.on { background: var(--forest); }
.sw.on::after { left: 18px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid, .ladder, .person { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  nav ul { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-art { display: none; }
  header.hero { padding: 40px 0 60px; }
  section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head .right { max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .banner { margin: 0 16px 60px; padding: 48px 32px; }
  .banner .deco { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"],
  .waitlist-form button { width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--sage) 30%, transparent); padding: 24px 0; }
  .stat:last-child { border-bottom: none; }
  .person { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .banner { padding: 40px 24px; }
  .faq-grid { grid-template-columns: 1fr; }
}
