/* ============================================================
   Tutela — landing page styles
   Palette: "Forest" — warm off-white + deep emerald
   Type: Schibsted Grotesk (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  /* surfaces */
  --bg: #F3F0E8;
  --bg-2: #ECE7DC;
  --surface: #FBFAF5;
  --sage: #E3E8DC;
  --sage-2: #D7DECB;

  /* ink */
  --ink: #20201B;
  --ink-soft: #46433B;
  --muted: #7C766B;
  --line: rgba(32, 32, 27, 0.10);
  --line-strong: rgba(32, 32, 27, 0.16);

  /* brand greens */
  --emerald: #2C4A3E;
  --emerald-deep: #1C342A;
  --emerald-700: #244538;
  --emerald-600: #2F5946;
  --emerald-500: #3A6E55;
  --on-emerald: #EEF2E9;

  /* accent (security signal) — overridable by Tweaks */
  --accent: #2E7D5B;
  --accent-ink: #21503B;
  --accent-soft: #DDEBE0;

  /* warning / "others" */
  --clay: #B0482E;
  --clay-soft: #F1E1DA;

  /* shape & motion — overridable by Tweaks */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(28, 40, 32, 0.06), 0 2px 8px rgba(28, 40, 32, 0.05);
  --shadow-md: 0 6px 18px rgba(28, 40, 32, 0.08), 0 18px 44px rgba(28, 40, 32, 0.10);
  --shadow-lg: 0 18px 40px rgba(20, 34, 27, 0.16), 0 40px 90px rgba(20, 34, 27, 0.22);

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shield mark ---------- */
.shield {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--emerald);
}
.brand .mark svg { width: 19px; height: 19px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(243, 240, 232, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg-btn: var(--emerald);
  --fg-btn: var(--on-emerald);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-btn);
  color: var(--fg-btn);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--emerald-600); }
.btn:active { transform: translateY(0); }
.btn.lg { padding: 17px 30px; font-size: 17px; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface); border-color: var(--ink-soft); transform: translateY(-2px); }
.btn.on-dark {
  background: var(--on-emerald);
  color: var(--emerald-deep);
}
.btn.on-dark:hover { background: #fff; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
}
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow.on-dark {
  color: var(--on-emerald);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.section-head { max-width: 660px; }
.section-head .kicker {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-ink); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(17px, 1.7vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(60px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: -0.03em;
}
.hero h1 .soft { color: var(--emerald); }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 52ch;
}
.highlight {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  max-width: 56ch;
}
.highlight .ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
}
.highlight .ico svg { width: 20px; height: 20px; }
.highlight p { font-size: 16px; color: var(--ink); line-height: 1.5; }
.highlight strong { color: var(--emerald); font-weight: 700; }

.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
}
.hero-trust .dot { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; opacity: .9; }
.store-row { display: inline-flex; align-items: center; gap: 8px; }
.store-row .store {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--ink-soft); font-size: 14px;
}
.store-row svg { width: 16px; height: 16px; }

/* phone */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 448 / 810;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a26, #141412);
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 7px; border-radius: 99px;
  background: rgba(255,255,255,0.16);
  z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #fff;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .screen.gallery { position: relative; }
.phone .screen.gallery img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.phone .screen.gallery img.active { opacity: 1; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.float-chip svg { width: 17px; height: 17px; color: var(--accent); }
.float-chip.tl { top: 12%; left: -6%; }
.float-chip.br { bottom: 14%; right: -8%; }
.float-chip .mut { color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .float-chip.tl { animation: floaty 6s ease-in-out infinite; }
  .float-chip.br { animation: floaty 6s ease-in-out infinite 1.5s; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* glow behind phone */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(60% 50% at 50% 40%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(34px);
  z-index: -1;
}

/* ============================================================
   LOGO / TRUST STRIP
   ============================================================ */
.assurance {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-2) 60%, var(--bg));
}
.assurance .wrap {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  gap: 16px 30px;
  padding-block: 22px;
}
.assurance .item { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.assurance .item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
@media (max-width: 820px) {
  .assurance .wrap { grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px 44px; }
}
@media (max-width: 460px) {
  .assurance .wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.fcard .ico {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--sage);
  color: var(--emerald);
  margin-bottom: 22px;
}
.fcard .ico svg { width: 27px; height: 27px; }
.fcard h3 { font-size: 22px; margin-bottom: 11px; }
.fcard p { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   CONTROL / "YOU DECIDE" SECTION
   ============================================================ */
.control { background: color-mix(in oklab, var(--bg-2) 55%, var(--bg)); }
.control-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.control-visual { display: grid; place-items: center; position: relative; }
.control-visual .phone { width: min(290px, 72vw); }
.control-visual::before {
  content: "";
  position: absolute; inset: 10%;
  background: radial-gradient(55% 50% at 45% 45%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 72%);
  filter: blur(30px); z-index: -1;
}
.ctrl-list { margin-top: 34px; display: grid; gap: 4px; }
.ctrl-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.ctrl-item:last-child { border-bottom: 0; }
.ctrl-item .chk {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-top: 1px;
}
.ctrl-item .chk svg { width: 17px; height: 17px; }
.ctrl-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin-bottom: 3px; letter-spacing: 0; }
.ctrl-item p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ============================================================
   WHY DIFFERENT — dark section
   ============================================================ */
.different {
  background: var(--emerald-deep);
  color: var(--on-emerald);
  overflow: hidden;
}
.different::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 85% 10%, rgba(80,140,108,0.22), transparent 60%),
    radial-gradient(45% 50% at 8% 100%, rgba(80,140,108,0.16), transparent 60%);
  pointer-events: none;
}
.different .shield-watermark {
  position: absolute;
  right: -4%; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.different .section-head h2 { color: var(--on-emerald); }
.different .section-head h2 .soft { color: color-mix(in oklab, var(--accent) 70%, white); }
.different .section-head p { color: rgba(238,242,233,0.72); }

.compare {
  position: relative;
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-col {
  border-radius: var(--r-lg);
  padding: 34px 32px;
  border: 1px solid rgba(255,255,255,0.10);
}
.compare-col .tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 24px;
}
.compare-col.others { background: rgba(176,72,46,0.13); }
.compare-col.others .tag { background: rgba(176,72,46,0.22); color: #F0C6B7; }
.compare-col.tutela { background: rgba(91,160,124,0.14); border-color: rgba(120,190,150,0.32); }
.compare-col.tutela .tag { background: rgba(120,200,150,0.20); color: #BFE6CC; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.compare-col li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; }
.compare-col li svg { flex: none; width: 21px; height: 21px; margin-top: 1px; }
.compare-col.others li { color: rgba(238,242,233,0.78); }
.compare-col.others li svg { color: #D98A72; }
.compare-col.tutela li { color: var(--on-emerald); }
.compare-col.tutela li svg { color: #8FD6A8; }
.compare-col h3 { color: var(--on-emerald); font-size: 23px; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

.statement {
  position: relative;
  margin-top: 38px;
  text-align: center;
  padding: 14px;
}
.statement p {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--on-emerald);
  max-width: 22ch;
  margin-inline: auto;
}
.statement p .hl { color: #8FD6A8; font-style: normal; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing { background: var(--bg); }
.cta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 620px; height: 620px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.cta-card .eyebrow { margin-bottom: 22px; }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta-card .lede { margin: 18px auto 0; max-width: 50ch; color: var(--ink-soft); font-size: 18px; }

.beta-form {
  position: relative;
  margin: 34px auto 0;
  max-width: 540px;
  display: flex;
  gap: 11px;
}
.beta-form .field { flex: 1; position: relative; }
.beta-form input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.beta-form input::placeholder { color: var(--muted); }
.beta-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.beta-form.invalid input[type="email"] {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(176,72,46,0.14);
}
.form-msg {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
}
.form-msg.err { color: var(--clay); }
.form-msg.ok { color: var(--accent-ink); }

/* consent checkbox (design) + honeypot + loading */
.consent-row {
  margin: 16px auto 0;
  max-width: 540px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.consent-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.consent-box {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.6px solid var(--line-strong);
  background: var(--bg);
  display: grid; place-items: center;
  color: var(--on-emerald);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.consent-box svg { width: 15px; height: 15px; opacity: 0; transform: scale(.6); transition: opacity .16s ease, transform .16s ease; }
.consent-row input:checked + .consent-box { background: var(--accent); border-color: var(--accent); }
.consent-row input:checked + .consent-box svg { opacity: 1; transform: scale(1); }
.consent-row input:focus-visible + .consent-box {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.consent-row.invalid .consent-box {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(176,72,46,0.14);
}
.privacy-link {
  font: inherit;
  color: var(--accent-ink);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.privacy-link:hover { color: var(--emerald); }
.footer-linkbtn {
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: rgba(238,242,233,0.8);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .18s ease;
}
.footer-linkbtn:hover { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.loading, .btn:disabled { opacity: 0.65; pointer-events: none; }

.platform-pick {
  margin: 20px auto 0;
  display: inline-flex;
  gap: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid var(--line);
}
.platform-pick button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  border: 0; background: transparent;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s ease, color .18s ease;
}
.platform-pick button svg { width: 15px; height: 15px; }
.platform-pick button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.cta-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.cta-success.show { display: flex; animation: pop .4s cubic-bezier(.2,.8,.2,1); }
.cta-success .badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
}
.cta-success .badge svg { width: 32px; height: 32px; }
.cta-success h3 { font-size: 24px; }
.cta-success p { color: var(--ink-soft); max-width: 40ch; }
.success-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.success-note a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

.cta-stores { margin-top: 26px; display: inline-flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.cta-stores .store { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-soft); }
.cta-stores svg { width: 16px; height: 16px; }
.cta-stores .sep { width: 1px; height: 16px; background: var(--line-strong); }

/* ============================================================
   PRIVACY MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 27, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFade .25s ease;
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { animation: none; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
  z-index: 2;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--bg-2); color: var(--ink); transform: rotate(90deg); }
.modal-head {
  padding: clamp(28px, 5vw, 40px) clamp(26px, 5vw, 40px) 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head .eyebrow { margin-bottom: 16px; }
.modal-head h2 { font-size: clamp(26px, 4vw, 34px); }
.modal-meta { margin-top: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.modal-body {
  padding: clamp(22px, 4vw, 32px) clamp(26px, 5vw, 40px);
  overflow-y: auto;
}
.modal-intro {
  font-size: 16px;
  color: var(--ink);
  background: var(--sage);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 26px;
  line-height: 1.5;
}
.pp-item { margin-bottom: 22px; }
.pp-item:last-child { margin-bottom: 0; }
.pp-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 5px;
  color: var(--ink);
}
.pp-item p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.pp-item a, .modal-foot a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-item a:hover, .modal-foot a:hover { color: var(--emerald); }
.modal-foot {
  padding: 18px clamp(26px, 5vw, 40px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg-2) 50%, var(--surface));
}
body.modal-open { overflow: hidden; }
@media (max-width: 480px) {
  .modal-foot { flex-direction: column; align-items: stretch; }
  .modal-foot .btn { width: 100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--emerald-deep);
  color: rgba(238,242,233,0.74);
  padding-block: 54px 40px;
}
.footer .brand { color: var(--on-emerald); }
.footer .brand .mark { background: rgba(255,255,255,0.08); color: #A7D8B8; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: flex-start; justify-content: space-between;
}
.footer-top .tag { margin-top: 14px; max-width: 34ch; font-size: 15px; line-height: 1.55; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: rgba(238,242,233,0.8); font-weight: 500; font-size: 15px; transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: rgba(238,242,233,0.55);
}
.footer-bottom .stores { display: inline-flex; gap: 16px; }
.footer-bottom .stores span { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom svg { width: 15px; height: 15px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}
/* failsafe: guarantee content is shown even where transitions can't progress */
body.force-reveal .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .control-grid { grid-template-columns: 1fr; }
  .control-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .compare { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { height: 64px; }
  .nav-right .btn span { display: none; }
  .nav-right .btn { padding: 11px 16px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .beta-form { flex-direction: column; }
  .beta-form .btn { width: 100%; }
  .float-chip.tl { left: -2%; top: 8%; }
  .float-chip.br { right: -2%; }
  .footer-top { flex-direction: column; }
}
