/* The early-adopter page. Markos's tokens (tokens.css, unchanged) in their light scheme: Geist and Sora,
   the radii and the teal accent family, tuned here to a warm paper ground, a deep green ink and a
   deep-green offer band. Only this page's palette and layout live here. */

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f5f3ee;
  --card: #ffffff;
  --foreground: #0f1f1b;
  --muted-foreground: #5b6863;
  --border: #e3dfd5;
  --input: #d6d1c5;
  --tool-accent: #0b7a5f;
  --pink-ink: #0a6a52;
  --on-pink: #ffffff;
  --mint: #d9f2e7;
  --deep: #0d2622;
  --glow: #8fe3c0;
  --bad: #c2410c;
  --shadow-lg: 0 24px 60px -24px rgb(13 38 34 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--background); }
body {
  margin: 0; min-height: 100dvh; color: var(--foreground);
  font: 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--mint); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 2 * clamp(20px, 5vw, 56px)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; }
.logo { width: 92px; height: 18px; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--pink); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }
.fine { font-size: 14px; color: var(--muted-foreground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--r-xl);
  height: 44px; padding: 0 18px; font-weight: 500; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: filter 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s, scale 0.12s;
}
.btn:active { scale: 0.98; }
.btn.primary { background: var(--pink); color: var(--on-pink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16.5px; font-weight: 600; }
.btn.wide { width: 100%; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--background) 88%, transparent); backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: var(--foreground); }

/* Hero: one promise, one action; the photo with the product working on it */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; right: -30vmax; top: -30vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--glow) 45%, transparent), transparent);
}
.hero-in { display: grid; gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 22px; max-width: 600px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted-foreground); max-width: 34ch; }
.hero-act { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }

.stage { position: relative; justify-self: center; width: min(100%, 480px); }
.stage-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 6 / 7; box-shadow: var(--shadow-lg); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.pill {
  position: absolute; top: 20px; left: -24px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--mint); }
.card {
  position: absolute; left: -40px; bottom: 28px; width: min(320px, 82%); display: grid; gap: 10px;
  padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted-foreground); }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--pink-ink); font-weight: 600; }
.card-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; min-height: 2.7em; }
.approve { height: 40px; background: var(--foreground); color: var(--card); }
.approve:hover { filter: brightness(1.25); }
.approve.ok { background: var(--mint); color: var(--pink-ink); pointer-events: none; }
.approve .i { width: 18px; height: 18px; }
.card.swap > * { animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Three steps, three lines */
.how { padding: clamp(56px, 8vw, 104px) 0; background: var(--card); border-block: 1px solid var(--border); }
.how h2 { max-width: 16ch; margin-bottom: clamp(32px, 5vw, 56px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; gap: 6px; padding-top: 22px; border-top: 2px solid var(--border); }
.steps .n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pink); }
.steps p { color: var(--muted-foreground); }

/* The offer and the form, on the deep band */
.offer { background: var(--deep); color: #eef6f2; padding: clamp(64px, 9vw, 120px) 0; }
.offer-in { display: grid; gap: 40px; align-items: center; }
.offer-copy { display: grid; gap: 28px; }
.offer h2 { max-width: 13ch; }
.price { display: block; margin-top: 10px; font-size: clamp(4.2rem, 10vw, 6.5rem); line-height: 0.95; letter-spacing: -0.045em; color: var(--glow); }
.price small { font-size: 0.24em; letter-spacing: 0; font-weight: 600; color: #b9cfc7; margin-left: 6px; }
.tick { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 17px; }
.tick li { display: flex; gap: 12px; align-items: center; }
.tick .i { color: var(--glow); }

.form { display: grid; gap: 16px; background: var(--card); color: var(--foreground); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.6); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 2px; }
.input {
  width: 100%; min-width: 0; border: 1px solid var(--input); border-radius: var(--r-xl); background: var(--background);
  padding: 12px 14px; font-size: 16px; line-height: 1.4;
}
.input::placeholder { color: var(--muted-foreground); opacity: 0.75; }
.input:focus-visible { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 3px var(--mint); background: var(--card); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.err { margin: 0; font-size: 13.5px; color: var(--bad); }
.err:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; border-radius: var(--r-xl);
  border: 1px solid var(--input); background: var(--background); font-size: 15px; transition: background-color 0.15s, border-color 0.15s;
}
.seg input:hover + span { border-color: var(--muted-foreground); }
.seg input:checked + span { background: var(--mint); border-color: var(--pink); color: var(--pink-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-foreground); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--pink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { text-align: center; color: var(--muted-foreground); }

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted-foreground); font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot .logo { color: var(--foreground); }

/* On a phone the offer follows you, until the form is on screen */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dock.on { transform: none; }

/* Entrances: visible without script; with it, eased in once */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--k, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-copy > *, .stage { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.stage { animation-delay: 0.2s; }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
  .stage { justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .offer-in { grid-template-columns: 1fr minmax(0, 460px); gap: 80px; }
  .dock { display: none; }
}
@media (max-width: 899px) {
  .stage { width: min(100% - 24px, 440px); justify-self: end; }
  .pill { left: -12px; top: 14px; font-size: 13px; }
  .card { left: -12px; bottom: 16px; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
