:root {
  --duck: #FFD23F;
  --wing: #F2B705;
  --beak: #FF8A00;
  --dot: #FFB800;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --paper: #FFFFFF;
  --paper-2: #F6F5F1;
  --line: #E7E5DF;
  --water: #1E8FF2;
  --water-2: #6CC0FF;
  --water-3: #8CD0FF;
  --orange-2: #FF9A2E;
  --orange-3: #FFC27D;
  --yellow-3: #FFE14D;
  --green: #1F9D55;
  --red: #C2410C;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --border: 2px solid var(--ink);
  --wrap: 1180px;
  --spring: cubic-bezier(.3, 1.6, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--duck); color: var(--ink); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.small { font-size: 13px; }
.muted { color: var(--ink-3); }
.hl { background: var(--duck); padding: 1px 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- stickers ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; line-height: 1;
  padding: 8px 14px; border: var(--border); border-radius: 999px;
  background: var(--paper); color: var(--ink); white-space: nowrap;
  transition: transform .25s var(--spring);
}
.sticker--sm { font-size: 12.5px; padding: 6px 11px; }
.sticker--xs { font-size: 10.5px; padding: 3px 7px; border-width: 1.5px; }
.sticker--ink { background: var(--ink); color: var(--paper); }
.sticker--yellow { background: var(--duck); }
.sticker--tilt-l { transform: rotate(-3deg); }
.sticker--tilt-r { transform: rotate(3deg); }

/* loose stickers scattered on the page */
.loose { position: absolute; z-index: 2; pointer-events: none; box-shadow: 3px 3px 0 var(--ink); }
.loose--1 { top: 2%; right: 4%; transform: rotate(8deg); }
.loose--3 { top: 12%; left: 2%; transform: rotate(-5deg); }
.loose--4 { top: 80px; right: 8%; transform: rotate(-10deg); }


/* ---------- buttons ---------- */
.btn {
  appearance: none; cursor: pointer; text-decoration: none;
  font: 700 16px/1 var(--sans); letter-spacing: -0.01em;
  padding: 16px 22px; border-radius: 999px; border: var(--border);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--wing); }
.btn--ink:hover { box-shadow: 0 6px 0 var(--wing); }
.btn--ink:active { box-shadow: 0 1px 0 var(--wing); }
.btn--sm { font-size: 14px; padding: 11px 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__duck { width: 40px; height: 32px; transition: transform .4s var(--spring); }
.logo:hover .logo__duck { transform: rotate(-10deg) translateY(-2px); }
.logo__word { font-weight: 700; font-size: 24px; letter-spacing: -0.05em; }
.dot { color: var(--dot); }
.logo--sm .logo__duck { width: 30px; height: 24px; }
.logo--sm .logo__word { font-size: 19px; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a, .nav__signin { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover, .nav__signin:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--duck); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; }
.hero__title { font-size: clamp(60px, 9.6vw, 136px); margin: 22px 0 24px; letter-spacing: -0.06em; line-height: .94; }
.hero__copy { padding-bottom: 56px; }
.hero__lede { font-size: 21px; color: var(--ink-2); max-width: 31ch; margin-bottom: 30px; }

.hero__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 440px; padding-bottom: 6px; }
.bigduck { position: relative; z-index: 3; width: min(100%, 420px); aspect-ratio: 166 / 134; padding: 0; border: 0; background: none; cursor: pointer; animation: bob 2.8s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.bigduck__svg { width: 100%; height: 100%; overflow: visible; }
.duckart { transform-origin: 50% 100%; transform-box: fill-box; }
.bigduck.is-quack .duckart { animation: quack .55s var(--spring); }
.bigduck.is-quack .beak { animation: beak .3s ease 2; transform-origin: 0% 50%; transform-box: fill-box; }
#pupil { transition: transform .12s ease-out; }
@keyframes quack { 0% { transform: scale(1,1); } 25% { transform: scale(1.08,.88); } 55% { transform: translateY(-28px) scale(.96,1.06) rotate(-4deg); } 100% { transform: none; } }
@keyframes beak { 50% { transform: rotate(-12deg); } }
.bubble { position: absolute; top: 14%; right: 6%; z-index: 4; font: 700 22px var(--sans); background: var(--paper); border: var(--border); border-radius: 18px; padding: 10px 16px; box-shadow: 4px 4px 0 var(--ink); transform: scale(0) rotate(-8deg); transform-origin: 0 100%; transition: transform .35s var(--spring); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 16px; bottom: -11px; width: 18px; height: 18px; background: var(--paper); border-right: var(--border); border-bottom: var(--border); transform: rotate(45deg) skew(10deg, 10deg); }
.bubble.is-on { transform: scale(1) rotate(-6deg); }
.ripples { display: none; position: absolute; bottom: 0; left: 50%; width: 70%; height: 30px; transform: translateX(-50%); z-index: 2; }
.ripples span { position: absolute; inset: 0; border: 2.5px solid var(--water); border-radius: 50%; opacity: 0; animation: ripple 3.2s ease-out infinite; }
.ripples span:nth-child(2) { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.waitlist { max-width: 520px; }
.waitlist__row { display: flex; gap: 10px; padding: 6px; border: var(--border); border-radius: 999px; background: var(--paper); }
.waitlist__row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px var(--sans); padding: 0 14px; color: var(--ink); }
.waitlist__row input::placeholder { color: #9a9a9a; }
.waitlist__row:focus-within { box-shadow: 0 0 0 4px rgba(79,163,217,.25); }
.waitlist__row .btn { box-shadow: none; padding: 14px 20px; }
.waitlist__row .btn:hover { transform: none; background: #2a2a2a; }
.waitlist__meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.waitlist__meta select { font: 500 14px var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 30px 6px 10px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; cursor: pointer; }
.waitlist__msg { margin-top: 12px; font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
.waitlist__msg.is-ok { color: var(--ink); font-weight: 700; }
.waitlist__msg.is-err { color: #B42318; }
.waitlist.is-done .waitlist__row, .waitlist.is-done .waitlist__meta { display: none; }
.waitlist.is-done .waitlist__msg { font-size: 19px; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 12px; }

/* pond */
.pond { position: relative; height: 96px; z-index: 4; margin-top: -34px; }
.pond::after { content: ""; position: absolute; left: 0; right: 0; top: 38px; bottom: 0; background: var(--water-2); }
.pond__wave { position: absolute; left: 0; top: 0; width: 200%; height: 40px; fill: var(--water-2); fill-opacity: .94; stroke: var(--water); stroke-width: 3; stroke-linecap: round; animation: wave 9s linear infinite; }
.pond__wave--2 { top: 30px; fill: none; opacity: .55; animation-duration: 14s; animation-direction: reverse; z-index: 1; }
.pond__tag { position: absolute; z-index: 2; left: 50%; top: 0; box-shadow: 3px 3px 0 var(--ink); animation: bobtag 2.4s ease-in-out infinite; }
@keyframes bobtag { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(5px) rotate(-4deg); } }
@media (max-width: 640px) { .pond__tag { left: 8%; } }
#flock-layer { position: absolute; inset: -60px 0 0 0; pointer-events: none; z-index: 3; }
.swimmer { position: absolute; top: 0; width: 64px; height: 52px; animation: swim var(--d, 7s) linear forwards, bob 1.6s ease-in-out infinite; }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes swim { from { left: -80px; } to { left: calc(100% + 20px); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(6px) rotate(2deg); } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; border-block: var(--border); }
.marquee__track { display: flex; align-items: center; gap: 22px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite; font: 500 17px var(--mono); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--duck); flex: none; }
.marquee .hl-y { color: var(--duck); font-family: var(--sans); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 84px; position: relative; }
.try, .how, .features, .devs, .compare, .migrate, .sacred, .final, .faq { padding: 120px 0; }
.section-title { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.055em; margin-bottom: 56px; line-height: .98; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px) rotate(.6deg); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.9,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__copy .rise:nth-child(1) { animation-delay: .05s; }
.hero__copy .rise:nth-child(2) { animation-delay: .12s; }
.hero__copy .rise:nth-child(3) { animation-delay: .22s; }
.hero__copy .rise:nth-child(4) { animation-delay: .3s; }
.hero__stage.rise { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* stickers that slap onto the page */
.slap { opacity: 0; transform: scale(1.6) rotate(var(--sr, -8deg)); }
.in .slap { animation: slap .45s var(--spring) forwards; }
.in .slap:nth-child(2) { animation-delay: .07s; } .in .slap:nth-child(3) { animation-delay: .14s; }
.in .slap:nth-child(4) { animation-delay: .21s; } .in .slap:nth-child(5) { animation-delay: .28s; }
.in .slap:nth-child(6) { animation-delay: .35s; }
@keyframes slap { 60% { opacity: 1; transform: scale(.94) rotate(var(--sf, 2deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--sf, 2deg)); } }
.slap:nth-child(odd) { --sr: 10deg; --sf: -3deg; }
.slap:nth-child(even) { --sr: -10deg; --sf: 2deg; }

/* ---------- try ---------- */
.try__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.try__copy > p { font-size: 20px; color: var(--ink-2); max-width: 34ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ticks li::before { content: "✓"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--duck); font-size: 14px; font-weight: 700; }

.demo { border: var(--border); border-radius: 20px; background: var(--paper); box-shadow: 10px 10px 0 var(--ink); transform: rotate(1.2deg); overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: var(--border); background: var(--paper-2); }
.demo__bar span { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.demo__bar span:first-child { background: var(--duck); }
.demo__bar em { margin-left: 10px; font: 400 13px var(--mono); font-style: normal; color: var(--ink-3); }
.demo__body { padding: 22px; }
.demo__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.demo__row { display: flex; gap: 8px; }
.demo__row input { flex: 1; min-width: 0; font: 400 14px var(--mono); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink-2); background: var(--paper-2); }
.demo__row input:focus { outline: 0; border-color: var(--ink); background: var(--paper); }
.demo__row .btn { box-shadow: 0 3px 0 var(--wing); }
.demo__result { margin-top: 20px; display: grid; gap: 16px; }
.demo__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: var(--border); border-radius: 12px; }
.demo__link .mono { font-size: 22px; font-weight: 500; }
.demo__copy { font: 700 13px var(--sans); border: 1.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.demo__copy:hover { background: var(--duck); }
.demo__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__tags .sticker:nth-child(odd) { transform: rotate(-2deg); }
.demo__tags .sticker:nth-child(even) { transform: rotate(2deg); }
.demo__qr { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.demo__qrbox { width: 112px; height: 112px; border: var(--border); border-radius: 12px; padding: 8px; background: var(--paper); }
.demo__qrbox svg { width: 100%; height: 100%; }
.demo__qrfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.demo__qrfacts li { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.demo__qrfacts li:last-child { border-bottom: 0; padding-bottom: 0; }
.demo__qrfacts .mono { font-size: 12px; color: var(--ink-3); width: 58px; flex: none; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.demo__result.is-pop > * { animation: pop .5s var(--spring) both; }
.demo__result.is-pop > *:nth-child(2) { animation-delay: .08s; }
.demo__result.is-pop > *:nth-child(3) { animation-delay: .16s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- how it works ---------- */
.how { background: var(--paper-2); border-block: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: 1fr 70px 1fr 1.5fr; align-items: center; }
.flow__node { border: var(--border); border-radius: 16px; background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; position: relative; z-index: 1; }
.flow__node b { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.flow__node .small { color: var(--ink-3); }
.flow__node .sticker { justify-self: start; margin-bottom: 4px; }
.flow__k { position: absolute; top: -12px; left: 14px; background: var(--duck); border: var(--border); border-radius: 999px; padding: 1px 8px; }
.flow__node--edge { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--duck); }
.flow__node--edge .small { color: #b9b9b9; }
.flow__wire { height: 2px; background: var(--ink); position: relative; }
.flow__wire i, .flow__branch > i::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--duck); border: 2px solid var(--ink); animation: travel 1.8s linear infinite; }
.flow__wire i { left: 0; }
@keyframes travel { from { left: -6px; } to { left: calc(100% - 6px); } }
.flow__out { display: grid; gap: 16px; position: relative; padding-left: 44px; }
.flow__out::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 2px; background: var(--ink); }
.flow__out::after { content: ""; position: absolute; left: -24px; top: 50%; width: 26px; height: 2px; background: var(--ink); }
.flow__branch { position: relative; }
.flow__branch > i { position: absolute; left: -44px; top: 50%; width: 44px; height: 2px; background: var(--ink); }
.flow__branch:nth-child(2) > i::after { animation-delay: .6s; }
.flow__branch:nth-child(3) > i::after { animation-delay: 1.2s; }
.how__foot { margin-top: 40px; color: var(--ink-3); text-align: center; }

/* ---------- features ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: var(--border); border-radius: 20px; padding: 22px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; transition: opacity .7s ease, transform .5s var(--spring), box-shadow .3s; }
.card.in:hover { transform: translateY(-5px) rotate(-.7deg); box-shadow: 8px 8px 0 var(--duck); }
.card--wide { grid-column: span 2; }
.card h3 { font-size: 26px; margin-top: 8px; }
.card p { color: var(--ink-2); font-size: 16.5px; }
.card__art { background: var(--paper-2); border-radius: 12px; min-height: 170px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

.pixels { display: flex; flex-wrap: wrap; gap: 8px; }
.domain { display: grid; gap: 14px; }
.domain__url { display: flex; align-items: center; gap: 8px; font-size: 20px; background: var(--paper); border: var(--border); border-radius: 12px; padding: 10px 14px; min-height: 52px; }
.lock { width: 16px; height: 16px; flex: none; fill: var(--ink); stroke: var(--ink); }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.domain__checks { display: flex; gap: 8px; flex-wrap: wrap; }

.card__art--ducks { overflow: hidden; }
.flock { display: flex; align-items: flex-end; gap: 22px; justify-content: center; flex-wrap: wrap; }
.flock__item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flock__item svg { width: 58px; height: 47px; animation: bob 2.4s ease-in-out infinite; }
.flock__item:nth-child(2) svg { animation-delay: -.4s; }
.flock__item:nth-child(3) svg { animation-delay: -.8s; }
.flock__item:nth-child(4) svg { animation-delay: -1.2s; }
.flock__item--mom svg { width: 104px; height: 84px; }

.preview { display: grid; grid-template-columns: 88px 1fr; background: #DCF8C6; border-radius: 12px; padding: 8px; gap: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.preview__img { background: var(--duck); border-radius: 8px; display: grid; place-items: center; aspect-ratio: 1; }
.preview__img svg { width: 60px; height: 48px; }
.preview__txt { display: grid; gap: 2px; font-size: 13px; align-content: center; }
.preview__txt b { font-size: 14px; }
.preview__txt span { color: var(--ink-2); }
.preview__txt em { font-style: normal; color: var(--ink-3); font-size: 12px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars span { flex: 1; height: var(--h); background: var(--ink); border-radius: 6px 6px 2px 2px; transform-origin: bottom; transform: scaleY(0); }
.bars span:last-child { background: var(--duck); border: 2px solid var(--ink); }
.in .bars span { animation: grow .8s cubic-bezier(.3,1.4,.5,1) forwards; }
.in .bars span:nth-child(2) { animation-delay: .05s; } .in .bars span:nth-child(3) { animation-delay: .1s; }
.in .bars span:nth-child(4) { animation-delay: .15s; } .in .bars span:nth-child(5) { animation-delay: .2s; }
.in .bars span:nth-child(6) { animation-delay: .25s; } .in .bars span:nth-child(7) { animation-delay: .3s; }
@keyframes grow { to { transform: scaleY(1); } }

.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tree li { display: flex; align-items: center; gap: 8px; }
.tree li.t1 { padding-left: 18px; } .tree li.t2 { padding-left: 36px; } .tree li.t3 { padding-left: 54px; color: var(--ink-2); }
.tree li.t1::before, .tree li.t2::before, .tree li.t3::before { content: "└"; color: var(--ink-3); margin-left: -16px; }

/* ---------- devs ---------- */
.devs { background: var(--paper-2); border-block: 1px solid var(--line); }
.devs__grid { display: grid; grid-template-columns: 1fr 1.25fr 1.15fr; gap: 20px; align-items: stretch; }
.panel { border: var(--border); border-radius: 20px; padding: 24px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.panel h3 { font-size: 26px; }
.panel p { color: var(--ink-2); font-size: 16.5px; }
.term { margin: 0; width: 100%; background: #141414; color: #E6E6E6; border-radius: 12px; padding: 16px; font: 400 13px/1.7 var(--mono); overflow-x: auto; }
.term .c { color: #7EE787; } .term .y { color: var(--duck); }
.chat { display: grid; gap: 10px; width: 100%; }
.chat p { padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.chat__me { background: var(--paper-2); border: 1.5px solid var(--line); margin-left: 18px; border-bottom-right-radius: 4px; }
.chat__tool { color: var(--ink-3); padding: 0 4px !important; }
.chat__tool::before { content: "⚙ "; }
.chat__ai { border: var(--border); margin-right: 18px; border-bottom-left-radius: 4px; }

/* ---------- compare ---------- */
.table { border: var(--border); border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.table__row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.table__row > span { padding: 18px 22px; }
.table__head { border-top: 0; background: var(--paper-2); font-weight: 700; }
.table__head span { padding-block: 16px; }
.table__us { display: flex; align-items: center; gap: 8px; background: var(--duck); align-self: stretch; }
.table__us svg { width: 30px; height: 24px; }
.table__row > span[role=rowheader] { font-weight: 700; letter-spacing: -0.01em; }
.table__row .yes { background: rgba(255,210,63,.18); align-self: stretch; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.table__row .yes::before, .table__row .no::before, .table__row .meh::before { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--sans); }
.table__row .yes::before { content: "✓"; background: var(--ink); color: var(--duck); }
.table__row .no, .table__row .meh { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.table__row .no::before { content: "✕"; border: 1.5px solid var(--red); color: var(--red); }
.table__row .meh::before { content: "~"; border: 1.5px solid var(--ink-3); color: var(--ink-3); }

/* ---------- migrate ---------- */
.migrate { background: var(--ink); color: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
.step { border: 2px solid var(--paper); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; position: relative; }
.step:nth-child(1) { transform: rotate(-1deg); } .step:nth-child(3) { transform: rotate(1deg); }
.step.in:nth-child(1) { transform: rotate(-1deg); } .step.in:nth-child(3) { transform: rotate(1deg); }
.step__n { width: 44px; height: 44px; border-radius: 50%; background: var(--duck); color: var(--ink); display: grid; place-items: center; font: 700 20px var(--mono); border: 2px solid var(--paper); }
.step b { font-size: 24px; letter-spacing: -0.03em; }
.step p { color: #c9c9c9; font-size: 16.5px; }

/* ---------- sacred ---------- */
.sacred__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.sacred__head { position: sticky; top: 120px; }
.sacred__duck { width: 120px; height: 97px; margin-bottom: 24px; animation: bob 2.6s ease-in-out infinite; }
.sacred__list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; }
.sacred__list li { counter-increment: s; position: relative; padding: 28px 0 28px 72px; border-top: var(--border); font-size: 19px; color: var(--ink-2); }
.sacred__list li:last-child { border-bottom: var(--border); }
.sacred__list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 26px; font: 500 15px var(--mono); background: var(--duck); border: var(--border); border-radius: 999px; padding: 4px 10px; }
.sacred__list b { color: var(--ink); display: block; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 4px; }

/* ---------- final ---------- */
.final { padding-top: 60px; }
.final__card { position: relative; border: var(--border); border-radius: 28px; padding: 80px 32px 56px; text-align: center; background: var(--paper); box-shadow: 12px 12px 0 var(--duck), 12px 12px 0 2px var(--ink); }
.final__duck { position: absolute; top: -56px; left: 50%; width: 120px; height: 97px; transform: translateX(-50%) rotate(-6deg); animation: bobc 2.6s ease-in-out infinite; }
@keyframes bobc { 0%,100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) translateY(6px) rotate(-2deg); } }
.final__card h2 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.055em; margin-bottom: 18px; line-height: .98; }
.final__card p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 28px; }
.waitlist--center { margin: 0 auto; }
.waitlist--center .turnstile { display: flex; justify-content: center; }

/* ---------- faq ---------- */
.faq__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__list { display: grid; }
.faq details { border-top: var(--border); }
.faq details:last-child { border-bottom: var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: var(--border); border-radius: 50%; display: grid; place-items: center; font: 500 18px/1 var(--mono); transition: transform .3s, background .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--duck); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; color: var(--ink-3); }
.devtoggle { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; color: var(--ink-2); }
.devtoggle__sw { width: 30px; height: 18px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.devtoggle__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .25s var(--spring); }
.devtoggle[aria-pressed=true] .devtoggle__sw { background: var(--ink); }
.devtoggle[aria-pressed=true] .devtoggle__sw::after { transform: translateX(12px); background: var(--duck); }

/* dev mode */
body.dev h1, body.dev h2, body.dev h3, body.dev .logo__word { font-family: var(--mono); letter-spacing: -0.04em; }
/* mono is ~25% wider: shrink the hero title so it keeps two lines and the hero keeps its height */
body.dev .hero__title { font-size: clamp(44px, 8.6vw, 104px); letter-spacing: -0.07em; }
/* single column: the title owns the full width, so let it grow back */
@media (max-width: 980px) { body.dev .hero__title { font-size: clamp(40px, 15vw, 128px); } }
body.dev .section-title, body.dev .final__card h2 { font-size: clamp(36px, 4.8vw, 64px); }
body.dev .bigduck__svg .duckart { display: none; }
body.dev .bigduck__svg { background: none; }

/* toast: a sticker that slaps onto the bottom of the screen */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 12px; border: var(--border); border-radius: 999px;
  background: var(--paper); color: var(--ink); box-shadow: 5px 5px 0 var(--duck), 5px 5px 0 2px var(--ink);
  font: 700 15px/1.2 var(--sans); letter-spacing: -0.01em;
  transform: translate(-50%, calc(100% + 48px)) rotate(-2deg); visibility: hidden;
  transition: transform .45s var(--spring), visibility 0s linear .45s;
}
.toast::before { content: ""; flex: none; width: 30px; height: 28px; background: url("/mark.svg") center / contain no-repeat; }
.toast.is-on { transform: translate(-50%, 0) rotate(-2deg); visibility: visible; transition: transform .45s var(--spring), visibility 0s; animation: toastslap .5s var(--spring); }
@keyframes toastslap { 0% { scale: 1.12; } 60% { scale: .97; } 100% { scale: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .loose { display: none; }
}
@media (max-width: 980px) {
  .hero__grid, .try__grid, .sacred__in, .faq__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__stage { min-height: 0; padding-top: 10px; }
  .bigduck { width: min(70%, 340px); }
  .sacred__head { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .devs__grid, .steps { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__wire { width: 2px; height: 40px; justify-self: center; }
  .flow__wire i { display: none; }
  .flow__out { padding-left: 0; padding-top: 40px; }
  .flow__out::before { left: 50%; top: 0; bottom: auto; height: 40px; width: 2px; }
  .flow__out::after, .flow__branch > i { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav__signin { display: none; }
  .hero { padding-top: 36px; }
  .hero__lede { font-size: 19px; }
    .waitlist__row { flex-direction: column; border-radius: 18px; }
  .waitlist__row input { padding: 12px 10px; }
  .waitlist__row .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .demo { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .demo__qr { grid-template-columns: 88px 1fr; }
  .demo__qrbox { width: 88px; height: 88px; }
  .demo__link .mono { font-size: 18px; }
  .try, .how, .features, .devs, .compare, .migrate, .sacred, .final, .faq { padding: 80px 0; }
  .section-title { margin-bottom: 36px; }
  .table__row { grid-template-columns: 1fr 1fr; }
  .table__row > span[role=rowheader] { grid-column: 1 / -1; padding-bottom: 0; }
  .table__head > span:first-child { display: none; }
  .table__row > span { padding: 14px 14px; font-size: 15px; }
  .table { box-shadow: 6px 6px 0 var(--ink); }
  .sacred__list li { padding-left: 0; padding-top: 64px; }
  .final__card { padding: 72px 18px 40px; box-shadow: 8px 8px 0 var(--duck), 8px 8px 0 2px var(--ink); }
  .foot__in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .slap, .rise { opacity: 1 !important; transform: none !important; }
  .bars span { transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- color layer ---------- */
.sticker--blue { background: var(--water-2); }
.sticker--orange { background: var(--orange-2); }

.mark { position: relative; display: inline-block; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -2%; right: -3%; bottom: .07em; height: .3em; z-index: -1; background: var(--mc, var(--duck)); transform: skewX(-8deg) rotate(-1.5deg); }
.mark--blue { --mc: var(--water-2); }
.mark--orange { --mc: var(--orange-2); }
.in .mark::after, .rise .mark::after { animation: marker .7s .25s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes marker { from { transform: skewX(-8deg) rotate(-1.5deg) scaleX(0); } }

.btn--ink { box-shadow: 0 4px 0 var(--beak); }
.btn--ink:hover { box-shadow: 0 6px 0 var(--beak); }
.btn--ink:active { box-shadow: 0 1px 0 var(--beak); }
.waitlist__row { box-shadow: 5px 5px 0 var(--water-2); }
.waitlist__row:focus-within { box-shadow: 5px 5px 0 var(--water); }

.tint-yellow { background: var(--yellow-3); }
.tint-blue { background: var(--water-3); }
.tint-water { background: var(--water-2); }
.tint-orange { background: var(--orange-3); }
.cards .card:nth-child(3n+1).in:hover { box-shadow: 8px 8px 0 var(--duck); }
.cards .card:nth-child(3n+2).in:hover { box-shadow: 8px 8px 0 var(--water); }
.cards .card:nth-child(3n).in:hover { box-shadow: 8px 8px 0 var(--orange-2); }

.demo { box-shadow: 10px 10px 0 var(--water); }
.bubble { box-shadow: 4px 4px 0 var(--water); }
.ticks li:nth-child(2)::before { background: var(--water-2); }
.ticks li:nth-child(3)::before { background: var(--orange-2); }

.how { background: var(--water-3); border-block: 0; }
.flow__node--edge { box-shadow: 6px 6px 0 var(--orange-2); }
.flow__k { background: var(--orange-2); }

.devs { background: var(--yellow-3); border-block: 0; }
.panel:nth-child(2) { box-shadow: 8px 8px 0 var(--water); }
.panel:nth-child(3) { box-shadow: 8px 8px 0 var(--orange-2); }
.panel:nth-child(1) { box-shadow: 8px 8px 0 var(--duck); }

.table { box-shadow: 10px 10px 0 var(--orange-2), 10px 10px 0 2px var(--ink); }

.migrate { background: var(--water); color: var(--ink); }
.step { background: var(--paper); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
.step p { color: var(--ink-2); }
.step__n { border: var(--border); }
.step:nth-child(2) .step__n { background: var(--orange-2); }
.step:nth-child(3) .step__n { background: var(--water-2); }

.sacred__list li:nth-child(2)::before { background: var(--water-2); }
.sacred__list li:nth-child(3)::before { background: var(--orange-2); }

.final__card { box-shadow: 12px 12px 0 var(--water), 12px 12px 0 2px var(--ink); }
.faq details[open] summary::after { background: var(--water-2); }
@media (max-width: 640px) {
  .final__card { box-shadow: 8px 8px 0 var(--water), 8px 8px 0 2px var(--ink); }
  .table { box-shadow: 6px 6px 0 var(--orange-2), 6px 6px 0 2px var(--ink); }
}

/* ---------- fun layer ---------- */
/* soap bubbles */
/* Decoration only (spec §15): never takes a tap, sits behind the content, pauses off screen and in a hidden tab. */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.soap {
  position: absolute; bottom: -60px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 11%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 70% 75%, rgba(255,154,46,.45), rgba(108,192,255,.28) 60%, rgba(255,255,255,.05));
  border: 2px solid rgba(30,143,242,.8);
  animation: soap var(--dur, 12s) linear infinite;
  transition: opacity .6s ease-out;
}
.bubbles.is-offscreen .soap, .is-tab-hidden .soap { animation-play-state: paused; }
/* WCAG 2.2.2: the looping bubbles stop 6 s after they show up (fun.js); the 5 released by the big duck rise once. */
.bubbles.is-stopped .soap:not(.soap--once) { opacity: 0; }
.soap--confetti { animation: none; bottom: auto; }
@keyframes soap {
  0% { transform: translate(0, 0); }
  50% { transform: translate(var(--sway, 20px), -60vh); }
  100% { transform: translate(0, -125vh); }
}

/* blinking duck */
.blink { animation: blink 5.5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }

/* bouncy title letters */
.ltr { display: inline-block; }
.ltr.hop { animation: hop .55s var(--spring); }
@keyframes hop { 30% { transform: translateY(-.2em) rotate(-7deg); } 60% { transform: translateY(.03em) rotate(2deg); } }

/* draggable stickers */
.draggable { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.draggable.is-dragging { cursor: grabbing; z-index: 20; scale: 1.1; box-shadow: 7px 7px 0 var(--ink); }
.draggable.is-slap { animation-name: slapdrop; animation-duration: .35s; animation-timing-function: var(--spring); }
.pond__tag.draggable.is-slap { animation: slapdrop .35s var(--spring), bobtag 2.4s ease-in-out infinite; }
@keyframes slapdrop { 0% { scale: 1.18; } 100% { scale: 1; } }

/* rubbery buttons */
.btn:hover { animation: jelly .55s ease; }
.btn:active { scale: .95 .9; }
@keyframes jelly { 30% { scale: 1.07 .93; } 50% { scale: .96 1.04; } 70% { scale: 1.02 .98; } 100% { scale: 1 1; } }

/* ducks peeking from behind cards */
.card, .panel { position: relative; }
.peek { position: absolute; top: -31px; width: 48px; height: 31px; overflow: hidden; pointer-events: none; }
.peek--r { right: 28px; }
.peek--l { left: 28px; }
.peek svg { width: 48px; height: 39px; transform: translateY(100%); transition: transform .4s var(--spring); }
.peek--l svg { transform: translateY(100%) scaleX(-1); }
.card:hover .peek--r svg, .panel:hover .peek--r svg { transform: translateY(5px); }
.card:hover .peek--l svg, .panel:hover .peek--l svg { transform: translateY(5px) scaleX(-1); }

/* duck family swimming above the footer */
.footpond { position: relative; height: 96px; overflow: hidden; margin-top: 40px; }
.footpond__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 46px; fill: var(--water-2); stroke: var(--water); stroke-width: 3; animation: wave 11s linear infinite; z-index: 2; }
.family { position: absolute; bottom: 22px; left: 0; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 8px; animation: family 36s linear infinite; z-index: 1; }
.family__mom { width: 68px; height: 55px; animation: bob 2.2s ease-in-out infinite; }
.family__kid { width: 32px; height: 26px; animation: bob 1.7s ease-in-out infinite; }
.family__kid:nth-child(3) { animation-delay: -.5s; }
.family__kid:nth-child(4) { animation-delay: -1s; }
@keyframes family { from { transform: translateX(-280px); } to { transform: translateX(calc(100vw + 40px)); } }
.foot { border-top: 0; background: var(--water-2); color: var(--ink-2); }
.foot .devtoggle { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .bubbles, .peek { display: none; }
  .family { left: 10%; }
}

/* ---------- layout stability ---------- */
/* Grid items default to min-width: auto, so unbreakable content (code, URLs) would stretch the track past the viewport. */
.hero__grid > *, .try__grid > *, .cards > *, .devs__grid > *, .steps > *, .sacred__in > *, .faq__in > *, .flow > *, .demo__qr > * { min-width: 0; }
/* The typed domain must never change the card's size: one line, clipped. */
.domain__url { white-space: nowrap; overflow: hidden; }
.typed { overflow: hidden; text-overflow: clip; min-width: 0; }
/* Title letters are grouped per word so a word can never break mid-way. */
.word { display: inline-block; white-space: nowrap; }
@media (max-width: 380px) { .nav__long { display: none; } .nav__in { gap: 12px; } }
/* Content always above the bubbles (spec §15). */
.hero__grid, .how .wrap, .final .wrap { position: relative; z-index: 1; }
@media (max-width: 980px), (pointer: coarse) {
  .soap { opacity: .7; }
}

/* step badges always read as ink on their colored chip, regardless of the node they sit on */
.flow .flow__node .flow__k { color: var(--ink); font-weight: 500; }
/* gray text loses contrast on the blue sections: use ink there */
.how__foot { color: var(--ink-2); }
.foot .foot__in { color: var(--ink); }
/* the closed water shape is filled only; the stroke lives on the open wave path so no straight line shows at the bottom */
.pond__wave .wave-fill, .footpond__wave .wave-fill { stroke: none; }
.pond__wave .wave-line, .footpond__wave .wave-line { fill: none; stroke: var(--water); stroke-width: 3; stroke-linecap: round; }
/* when JS drives the floaters, they follow the wave surface instead of bobbing on their own */
.waves-js .bigduck { animation: none; transform: translateY(var(--wy, 0)) rotate(var(--wr, 0deg)); transform-origin: 50% 100%; }
.waves-js .pond__tag, .waves-js .pond__tag.draggable.is-slap { animation: none; transform: translateY(var(--wy, 0)) rotate(calc(-7deg + var(--wr, 0deg))); }
.waves-js .pond__tag.draggable.is-slap { animation: slapdrop .35s var(--spring); }
.waves-js .family__mom, .waves-js .family__kid { animation: none; transform: translateY(var(--wy, 0)) rotate(var(--wr, 0deg)); transform-origin: 50% 100%; }
/* hero stickers: a little bigger, grouped around the duck */
.loose, .pond__tag { font-size: 16px; padding: 10px 17px; }
.logo__duck { width: 42px; height: 40px; }
.logo--sm .logo__duck { width: 32px; height: 30px; }
.table__us svg { width: 30px; height: 28px; }

/* ---------- sprite holder (was an inline style) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- coming (spec §15): kept apart from what ships today ---------- */
:root { --paper-3: #FBFAF7; }
.coming { padding: 96px 0; background: var(--paper-3); border-top: var(--border); }
.coming .section-title { margin-bottom: 18px; }
.coming__lede { color: var(--ink-2); max-width: 52ch; margin: 0 0 36px; }
.coming__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.coming__item { border: var(--border); border-radius: 16px; background: var(--paper); padding: 20px 22px; display: grid; gap: 8px; align-content: start; box-shadow: none; }
.coming__item b { font-size: 19px; letter-spacing: -0.02em; }
.coming__item p { margin: 0; color: var(--ink-2); }
.coming__badge { justify-self: start; background: var(--paper-2); box-shadow: none; transform: none; }
.term:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
@media (max-width: 760px) { .coming { padding: 64px 0; } }
