:root {
  --ink: #14211a;
  --ink-soft: #3d4a42;
  --muted: #6b766f;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --leaf: #2f6b4a;
  --leaf-2: #4f9a6c;
  --clay: #c8643b;
  --water: #5aa9d6;
  --line: rgba(20, 33, 26, 0.12);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(640px, 100% - 32px); text-align: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 14px;
}
.eyebrow.light { color: #9fd3b2; }
.section-title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.section-title.light { color: var(--paper); }
.body { color: var(--ink-soft); font-size: 18px; max-width: 34em; }
.body.light { color: rgba(245, 241, 232, 0.8); margin: 0 auto; }
.body.small { font-size: 15px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 600 16px var(--sans);
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--leaf); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: rgba(20, 33, 26, 0.06); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #fff; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  background: rgba(245, 241, 232, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 22px var(--serif); text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: var(--leaf); }
.brand.small { font-size: 18px; }
.brand.small svg { width: 20px; height: 20px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--ink-soft); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 9px 18px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--paper); background: var(--leaf); }

/* Story */
.story {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr;
  width: min(1240px, 100% - 32px); margin: 0 auto;
}
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 154, 108, 0.22), rgba(79, 154, 108, 0) 68%);
}
#pot { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#pot:active { cursor: grabbing; }
.stage-loading {
  position: absolute; font-size: 14px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  animation: pulse 1.4s ease-in-out infinite;
}
.stage-loading.done { display: none; }
@keyframes pulse { 50% { opacity: .4; } }
.stage-hint {
  position: absolute; bottom: 28px; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6);
  transition: opacity .6s;
}
.stage-hint.gone { opacity: 0; }

.chapters { position: relative; z-index: 2; }
.chapter {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 80px 24px;
  opacity: .28; transition: opacity .5s ease;
}
.chapter.active { opacity: 1; }
.chapter h1 { font-size: clamp(48px, 7vw, 92px); margin-bottom: 24px; }
.chapter h1 em { font-style: italic; color: var(--leaf); }
.chapter h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.chapter p { color: var(--ink-soft); font-size: 19px; max-width: 26em; }
.chapter .lede { font-size: 20px; }
.chapter .num {
  font: 600 14px var(--sans); color: var(--clay); letter-spacing: .1em; margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* How */
.how { padding: 130px 0 110px; background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 30px 28px 32px; }
.step-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(47, 107, 74, 0.1); margin-bottom: 22px;
}
.step-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); }

/* App */
.app { padding: 130px 0; }
.app-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.phone {
  justify-self: center; width: min(330px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 46px; padding: 12px; background: #0f1712;
  box-shadow: 0 40px 80px -30px rgba(20, 33, 26, .55), inset 0 0 0 2px #2b3a31;
}
.phone-screen {
  height: 100%; border-radius: 36px; background: linear-gradient(180deg, #f8f5ee, #efe9dc);
  padding: 18px 18px 14px; display: flex; flex-direction: column; overflow: hidden;
}
.p-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink); padding: 0 6px; }
.p-dots { letter-spacing: 1px; font-size: 8px; }
.p-hello { font: 600 22px var(--serif); margin: 20px 4px 14px; }
.p-card { background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 10px 30px -18px rgba(20, 33, 26, .4); }
.p-head { display: flex; align-items: center; gap: 10px; }
.p-plant { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(47, 107, 74, .12); }
.p-plant svg { width: 22px; height: 22px; fill: var(--leaf); }
.p-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.p-sub { font-size: 11px; color: var(--muted); }
.p-ok { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--leaf); background: rgba(47, 107, 74, .12); padding: 4px 9px; border-radius: 999px; }
.p-ring { position: relative; width: 60%; margin: 14px auto 10px; }
.p-ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e7efe9; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--water); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.phone.in .ring-fg { stroke-dashoffset: 144; }
.p-ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.p-ring-txt b { font: 700 28px var(--serif); line-height: 1; }
.p-ring-txt span { font-size: 10px; color: var(--muted); }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.p-stats div { background: #f6f3ec; border-radius: 12px; padding: 8px 4px; }
.p-stats b { display: block; font-size: 14px; }
.p-stats span { font-size: 10px; color: var(--muted); }
.p-next { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin: 12px 2px 10px; color: var(--muted); }
.p-next b { color: var(--ink); font-size: 13px; }
.p-btn { width: 100%; border: 0; border-radius: 14px; padding: 11px; background: var(--ink); color: #fff; font: 600 13px var(--sans); }
.p-note { margin-top: auto; text-align: center; font-size: 10px; color: var(--muted); padding-top: 8px; }

/* Privacy */
.privacy { padding: 130px 0; background: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { border-radius: var(--radius); padding: 30px 28px; background: rgba(245, 241, 232, .06); box-shadow: inset 0 0 0 1px rgba(245, 241, 232, .1); }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: rgba(245, 241, 232, .75); }

/* Specs */
.specs { padding: 130px 0; }
.specs-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--ink-soft); }

/* Waitlist */
.waitlist { padding: 130px 0; background: linear-gradient(160deg, var(--leaf), #1f4a33); }
#wl { display: flex; gap: 10px; margin: 34px auto 0; max-width: 480px; }
#wl input[type=email] {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 0;
  font: 16px var(--sans); background: rgba(255, 255, 255, .95); color: var(--ink);
}
#wl input[type=email]:focus { outline: 3px solid rgba(255, 255, 255, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl-msg { min-height: 1.6em; margin-top: 14px; color: #fff; font-weight: 500; }
.fine { font-size: 13px; color: rgba(245, 241, 232, .65); margin-top: 6px; }

.foot { padding: 30px 0; background: var(--paper); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* AR */
.ar-btn { gap: 10px; background: var(--leaf); }
.ar-btn:hover { background: var(--ink); }
.ar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ar-btn.pulse { animation: arpulse 1.4s ease-out 3; }
@keyframes arpulse { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 74, .55); } 100% { box-shadow: 0 0 0 18px rgba(47, 107, 74, 0); } }
.chapter p.ar-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 33, 26, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(420px, 100%); background: var(--paper); border-radius: var(--radius);
  padding: 34px 30px 28px; text-align: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.modal-card h2 { font-size: 30px; margin-bottom: 10px; }
.modal-card p { color: var(--ink-soft); font-size: 16px; }
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.modal-x:hover { background: rgba(20, 33, 26, .07); }
.qr { display: block; margin: 22px auto 16px; background: #fff; padding: 12px; border-radius: 16px; width: 200px; height: 200px; }
.fine-dark { font-size: 13px !important; color: var(--muted) !important; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.toast[hidden] { display: none; }

/* Tablet / phone: model stays pinned at the top, chapter cards scroll over it */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .story { display: block; width: 100%; }
  .stage { top: 62px; height: 56vh; height: 56svh; z-index: 0; }
  #pot { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%); }
  .stage-hint { bottom: 2px; }
  .chapters { margin-top: 0; }
  .chapter.hero { margin-bottom: 60vh; }
  .chapter {
    min-height: 0; opacity: 1; justify-content: flex-start;
    margin: 0 12px 78vh; padding: 24px 22px 26px; border-radius: var(--radius);
    background: rgba(245, 241, 232, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px -20px rgba(20, 33, 26, .35);
  }
  .chapter:last-child { margin-bottom: 40vh; }
  .chapter h1 { font-size: clamp(38px, 11vw, 60px); margin-bottom: 16px; }
  .chapter h2 { margin-bottom: 10px; }
  .chapter p, .chapter .lede { font-size: 16px; }
  .hero-actions { margin-top: 22px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .app-grid, .specs-grid { grid-template-columns: 1fr; gap: 48px; }
  .how, .app, .privacy, .specs, .waitlist { padding: 90px 0; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  #wl { flex-direction: column; }
}
