/* The app's v2 look (src/app.css): Geist, one indigo accent, neutral ink,
   and the same slow drifting wash behind the page. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-2: #4a4c55;
  --ink-3: #80838e;
  --line: #e4e4e0;
  --pill: #ecece8;
  --accent: oklch(0.52 0.19 272);
  --accent-ink: #ffffff;
  --accent-soft: oklch(0.95 0.03 272);
  --over-text: #b42318;
  --wash-1: oklch(0.86 0.07 272 / 0.45);
  --wash-2: oklch(0.88 0.06 200 / 0.35);
  --wash-3: oklch(0.9 0.05 330 / 0.3);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --surface: #16171b;
    --ink: #ececef;
    --ink-2: #b4b6be;
    --ink-3: #7d808a;
    --line: #26272d;
    --pill: #22232a;
    --accent: oklch(0.7 0.15 272);
    --accent-ink: #0c0d10;
    --accent-soft: oklch(0.28 0.06 272);
    --over-text: #ff8a7a;
    --wash-1: oklch(0.42 0.12 272 / 0.35);
    --wash-2: oklch(0.4 0.08 200 / 0.25);
    --wash-3: oklch(0.38 0.08 330 / 0.22);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* `.form { display: flex }` would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
body::before {
  background:
    radial-gradient(closest-side at 30% 35%, var(--wash-1), transparent),
    radial-gradient(closest-side at 70% 65%, var(--wash-2), transparent);
  animation: wash-a 48s ease-in-out infinite alternate;
}
body::after {
  background: radial-gradient(closest-side at 60% 30%, var(--wash-3), transparent);
  animation: wash-b 67s ease-in-out infinite alternate;
}
@keyframes wash-a {
  0% { transform: translate(-6%, -4%) rotate(0deg) scale(1); }
  50% { transform: translate(5%, 3%) rotate(25deg) scale(1.08); }
  100% { transform: translate(-3%, 6%) rotate(-15deg) scale(0.96); }
}
@keyframes wash-b {
  0% { transform: translate(8%, 4%) scale(1.05); }
  50% { transform: translate(-6%, -5%) scale(0.92); }
  100% { transform: translate(3%, -8%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible + span, input[type='email']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.top { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.top img { width: 28px; height: 28px; border-radius: 8px; }

/* ---- hero: the pitch and the form on the left, the phone on the right ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 56px;
  align-items: start;
}
.pitch { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.lede { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 34em; }

.form {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* iOS zooms below 16 */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
}
.btn {
  font: 500 16px var(--font);
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: default; }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.chips input:checked + span { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.optional { font-size: 13px; color: var(--ink-3); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; font-size: 14px; color: var(--over-text); min-height: 1.4em; }
.msg:empty { display: none; }
.done { display: flex; flex-direction: column; gap: 8px; }
.done h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.done p { margin: 0; color: var(--ink-2); }
.fine { margin: 0; font-size: 13px; color: var(--ink-3); }

.phone {
  width: 100%;
  max-width: 360px;
  border-radius: 40px;
  border: 10px solid #111216;
  box-shadow: 0 30px 80px rgba(20, 20, 40, 0.18);
  overflow: hidden;
  background: #111216;
  justify-self: end;
}
.phone img { display: block; width: 100%; height: auto; }

/* ---- three reasons ---- */
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reason { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.reason h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.reason p { margin: 0; color: var(--ink-2); font-size: 15px; }
.fig { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: underline dotted var(--accent); text-underline-offset: 3px; }

/* ---- the plan screen beside the trust list ---- */
.second {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.second .phone { justify-self: start; max-width: 320px; }
.trust { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.trust h2 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.trust ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.trust li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.trust li b { color: var(--ink); font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 900px) {
  .hero, .second { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .phone, .second .phone { justify-self: center; max-width: 320px; }
  .second .phone { order: 2; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .page { gap: 56px; }
}
@media (max-width: 480px) {
  .form { padding: 18px; }
  .row .btn { flex: 1 1 100%; }
}

/* /leave and other one-line pages */
body.plain .note { max-width: 520px; margin: 18vh auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
body.plain h1 { font-size: 32px; }
body.plain p { margin: 0; color: var(--ink-2); }
