@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/fonts/AtkinsonHyperlegibleNext.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("/assets/fonts/AtkinsonHyperlegibleMono.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cream: #F3EAE0;
  --sand: #E5D3C1;
  --lilac: #9B7FA7;
  --lilac-soft: #C9B3D3;
  --night: #37335A;
  --deep: #1E1B33;
  --ink: #1E1B33;
  --muted: rgba(30, 27, 51, .64);
  --hair: rgba(30, 27, 51, .12);
  --paper: #FBF6F0;
  --radius: 22px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 14vw, 176px);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Atkinson Next", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lilac-soft); color: var(--deep); }
:focus-visible { outline: 2.5px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--night);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); }
h1, h2, h3 { margin: 0; font-weight: 760; letter-spacing: -.035em; line-height: 1.02; color: var(--deep); }
h1 { font-size: clamp(56px, 9.6vw, 128px); }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: 23px; letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 28px 0 0; }
.muted { color: var(--muted); }
.mono { font-family: "Atkinson Mono", ui-monospace, monospace; }

/* Buttons */
.btn {
  --bg: var(--deep); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .25s;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 30px -12px rgba(30,27,51,.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 18px 40px -14px rgba(30,27,51,.6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn.light { --bg: var(--cream); --fg: var(--deep); box-shadow: none; }
.link-quiet { color: var(--night); font-weight: 650; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.nav.away { transform: translateY(-100%); }
.nav.scrolled { background: rgba(243, 234, 224, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 25px; letter-spacing: -.04em; text-decoration: none; color: var(--deep); }
.brand img { width: 34px; height: 34px; border-radius: 10px; background: var(--night); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--night); }
.nav-links a:not(.btn):hover { color: var(--deep); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; position: relative; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 span { display: block; }
.hero h1 .soft { color: var(--lilac); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 44px; }
.hero-art { position: relative; aspect-ratio: 210 / 236; width: 100%; max-width: 460px; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 9%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(55,51,90,.22), transparent);
}
.mascot { position: relative; width: 100%; height: 100%; }
.mascot iframe { width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }
.mascot .hit { position: absolute; inset: 8% 14% 4%; cursor: pointer; border-radius: 40%; }
.hero-badge {
  position: absolute; top: 8%; right: -2%; padding: 10px 16px; border-radius: 16px 16px 16px 4px;
  background: var(--paper); box-shadow: 0 12px 30px -14px rgba(30,27,51,.35); font-size: 15px; font-weight: 650; color: var(--night);
  opacity: 0; transform: translateY(8px) scale(.96); transition: all .5s var(--spring);
}
.hero-badge.on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 92px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 190px; order: -1; margin-bottom: -16px; }
  .hero-badge { right: 0; top: 2%; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.head { max-width: 760px; }
.head p { font-size: 21px; color: var(--muted); margin: 22px 0 0; max-width: 40ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

/* Demo */
.demo { margin-top: 72px; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.gestures { display: grid; gap: 12px; }
.gesture {
  display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; background: transparent; font: inherit; color: inherit; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.gesture:hover { background: rgba(255,255,255,.35); }
.gesture.active { background: var(--paper); border-color: var(--hair); box-shadow: 0 14px 34px -22px rgba(30,27,51,.4); }
.gesture b { display: block; font-size: 18px; letter-spacing: -.01em; }
.gesture span { display: block; font-size: 15px; color: var(--muted); }
.pips { display: flex; gap: 5px; justify-content: center; }
.pip { width: 20px; height: 20px; border-radius: 6px; background: var(--sand); box-shadow: inset 0 -2px 0 rgba(30,27,51,.12); }
.pip.long { width: 54px; }
.gesture.active .pip { background: var(--night); }

.keycap {
  margin: 34px auto 0; width: 132px; height: 116px; border-radius: 22px; border: 0; cursor: pointer; display: grid; place-items: start;
  padding: 16px 18px; background: linear-gradient(#fffaf4, #efe3d6); color: var(--night);
  box-shadow: 0 2px 0 #fff inset, 0 -5px 0 rgba(30,27,51,.12) inset, 0 9px 0 #d9c6b3, 0 22px 30px -12px rgba(30,27,51,.45);
  font-family: "Atkinson Mono", monospace; font-size: 24px; font-weight: 700; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: transform .09s, box-shadow .09s;
}
.keycap small { font-size: 14px; font-weight: 600; opacity: .55; align-self: end; }
.keycap.down { transform: translateY(7px); box-shadow: 0 2px 0 #fff inset, 0 -3px 0 rgba(30,27,51,.12) inset, 0 2px 0 #d9c6b3, 0 8px 14px -8px rgba(30,27,51,.4); }
.key-hint { text-align: center; font-size: 15px; color: var(--muted); margin-top: 20px; min-height: 24px; }

.screen {
  position: relative; border-radius: 26px; background: #2a2744; padding: 14px; aspect-ratio: 16 / 10.4;
  box-shadow: 0 50px 90px -40px rgba(30,27,51,.65), 0 0 0 1px rgba(30,27,51,.25);
}
.screen-inner { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: var(--paper); }
.win-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--hair); background: #f6efe6; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e1d3c4; }
.win-bar .url { margin-left: 18px; flex: 1; max-width: 340px; height: 22px; border-radius: 7px; background: rgba(30,27,51,.06); font-size: 12px; line-height: 22px; padding: 0 10px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.doc { padding: 44px 9% 0; transition: opacity .4s; }
.doc .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.doc h4 { margin: 10px 0 16px; font-size: clamp(18px, 2.3vw, 28px); line-height: 1.12; letter-spacing: -.025em; }
.doc p { margin: 0 0 12px; font-size: clamp(11px, 1.15vw, 14px); line-height: 1.6; color: rgba(30,27,51,.7); }
.doc .hl { background: rgba(155,127,167,.0); transition: background .5s; border-radius: 3px; }
.doc.capturing .hl { background: rgba(155,127,167,.28); }
.field {
  position: absolute; left: 9%; right: 9%; bottom: 7%; min-height: 54px; border-radius: 14px; background: #fff; border: 1px solid var(--hair);
  padding: 14px 16px; font-size: clamp(12px, 1.25vw, 15px); color: var(--deep); opacity: 0; transform: translateY(10px); transition: all .45s var(--ease);
}
.field.on { opacity: 1; transform: none; }
.field .ph { color: rgba(30,27,51,.35); }
.field .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -2px; background: var(--lilac); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The island: a black pill under the notch that grows into a banner and a card. */
.island {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 168px; height: 30px; border-radius: 0 0 16px 16px; background: #0b0a10; color: #f3eae0; overflow: hidden;
  transition: width .55s var(--spring), height .55s var(--spring), border-radius .55s var(--spring);
}
.island.banner { width: min(420px, 78%); height: 84px; border-radius: 0 0 26px 26px; }
.island.card { width: min(520px, 86%); height: min(300px, 74%); border-radius: 0 0 30px 30px; }
.island .row { position: absolute; left: 0; right: 0; top: 30px; display: flex; gap: 12px; align-items: center; padding: 0 22px 0 14px; opacity: 0; transition: opacity .3s; }
.island.banner .row, .island.card .row { opacity: 1; transition-delay: .2s; }
.island .bird { width: 46px; height: 52px; flex: none; margin-top: -6px; }
.island .bird iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.island .status { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.island .status small { display: block; font-size: 12.5px; font-weight: 500; color: var(--lilac-soft); }
.island .wave { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 22px; }
.island .wave i { width: 3px; border-radius: 2px; background: var(--lilac-soft); height: 4px; transition: height .12s; }
.island .body { position: absolute; left: 24px; right: 24px; top: 92px; bottom: 18px; opacity: 0; transition: opacity .35s; overflow: hidden; }
.island.card .body { opacity: 1; transition-delay: .3s; }
.island .body ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 7px; }
.island .body li { position: relative; padding-left: 16px; font-size: clamp(12px, 1.2vw, 14.5px); line-height: 1.4; color: #efe6dc; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.island .body li.in { opacity: 1; transform: none; }
.island .body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); }
.island .spoken { font-size: clamp(11.5px, 1.1vw, 13.5px); line-height: 1.5; color: rgba(243,234,224,.6); }
.island .spoken b { color: #f3eae0; font-weight: 500; }

@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; gap: 28px; }
  .gestures { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gesture { grid-template-columns: 1fr; text-align: center; padding: 14px 8px; gap: 10px; }
  .gesture span { font-size: 13px; }
  .keycap-zone { order: 3; }
}
@media (max-width: 560px) {
  .gesture b { font-size: 15px; }
  .gesture span { display: none; }
  .island.card { height: 82%; width: 94%; }
  .island .body { top: 84px; left: 16px; right: 16px; }
  .island.banner { width: 88%; height: 76px; }
  .doc { padding-top: 34px; }
  .doc p:nth-of-type(n+3) { display: none; }
}

/* Swap rows */
.swaps { margin-top: 72px; border-top: 1px solid var(--hair); }
.swap { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--hair); }
.swap .was { font-size: clamp(20px, 2.4vw, 28px); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(155,127,167,.6); text-decoration-thickness: 2px; letter-spacing: -.02em; }
.swap .arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; justify-self: center; color: var(--night); }
.swap .now { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 700px) { .swap { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; } .swap .arrow { display: none; } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 96px; }
.num { padding: 8px 28px; border-left: 1px solid var(--hair); }
.num:first-child { border-left: 0; padding-left: 0; }
.num strong { display: block; font-size: clamp(44px, 5.4vw, 72px); font-weight: 780; letter-spacing: -.05em; line-height: 1; color: var(--deep); }
.num span { display: block; margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 18ch; }
@media (max-width: 760px) { .numbers { margin-top: 64px; } .num { padding: 4px 14px; } .num strong { font-size: clamp(34px, 10vw, 44px); } .num span { font-size: 14px; } }

/* Roles */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.tab { border: 1px solid var(--hair); background: transparent; border-radius: 999px; padding: 11px 20px; font: inherit; font-size: 16px; font-weight: 650; color: var(--night); cursor: pointer; transition: all .25s; }
.tab:hover { border-color: rgba(30,27,51,.3); }
.tab[aria-selected="true"] { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.role-panel { margin-top: 36px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; min-height: 230px; }
.role-panel h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.role-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.role-panel li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 18px; }
.role-panel li i { width: 30px; height: 30px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: var(--night); }
.role-panel .fade { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .role-panel { grid-template-columns: 1fr; gap: 28px; } }

/* Features: an editorial list, each item under a line that draws itself in. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 64px; }
.feature { position: relative; padding: 32px 0 40px; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: rgba(30,27,51,.18); transform-origin: 0 50%; }
[dir="rtl"] .feature::before { transform-origin: 100% 50%; }
.feature .ico { color: var(--lilac); margin-bottom: 22px; transition: transform .5s var(--spring); }
.feature .ico svg { width: 30px; height: 30px; }
.feature:hover .ico { transform: rotate(-8deg) scale(1.14); }
.feature p { margin: 10px 0 0; font-size: 16.5px; color: var(--muted); max-width: 32ch; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Dark band */
.dark { background: var(--deep); color: var(--cream); border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.5vw, 20px); }
.dark h2, .dark h3 { color: var(--cream); }
.dark .eyebrow { color: var(--lilac-soft); }
.dark .head p, .dark .muted { color: rgba(243,234,224,.66); }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; margin-top: 72px; }
.promise { padding: 30px 0; border-top: 1px solid rgba(243,234,224,.13); display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.promise svg { width: 26px; height: 26px; color: var(--lilac-soft); margin-top: 3px; }
.promise p { margin: 8px 0 0; color: rgba(243,234,224,.66); font-size: 16.5px; }
.dark .link-quiet { color: var(--lilac-soft); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* Offer */
.offer { margin-top: 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.offer-card { background: var(--paper); border-radius: 30px; padding: clamp(32px, 4vw, 52px); border: 1px solid rgba(30,27,51,.08); box-shadow: 0 40px 80px -50px rgba(30,27,51,.5); }
.offer-card .tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--deep); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; }
.price strong { font-size: clamp(64px, 8vw, 96px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.price span { font-size: 18px; color: var(--muted); }
.stack { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 14px; }
.stack li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 18px; }
.stack li svg { width: 22px; height: 22px; color: var(--lilac); margin-top: 3px; }
.offer-side { border-radius: 30px; padding: clamp(32px, 4vw, 48px); border: 1px dashed rgba(30,27,51,.22); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.offer-side h3 { font-size: 28px; }
.offer-side p { color: var(--muted); margin: 12px 0 0; }
.soon { display: inline-block; font-size: 13px; font-weight: 700; color: var(--night); background: var(--sand); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 64px; border-top: 1px solid var(--hair); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 52px 28px 0; position: relative; font-size: clamp(19px, 2vw, 22px); font-weight: 700; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2.5px solid var(--night); border-bottom: 2.5px solid var(--night); transform: rotate(45deg); transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: -8px 0 28px; color: var(--muted); max-width: 64ch; font-size: 17.5px; }

/* Final */
.final { text-align: center; padding-bottom: 120px; }
.final .mascot-wrap { width: 220px; aspect-ratio: 210 / 236; margin: 0 auto 26px; }
.final h2 { max-width: 14ch; margin: 0 auto; }
.final p { color: var(--muted); font-size: 20px; margin: 22px auto 40px; max-width: 36ch; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 44px 0 56px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { text-decoration: none; color: var(--night); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* Download page */
.dl-hero { padding: 150px 0 40px; }
.dl-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.dl-hero h1 { font-size: clamp(48px, 7vw, 88px); }
.steps { counter-reset: step; display: grid; gap: 20px; margin: 64px 0 0; }
.step { display: grid; grid-template-columns: 64px 1fr 1.05fr; gap: 28px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 30px; border: 1px solid rgba(30,27,51,.06); }
.step::before { counter-increment: step; content: counter(step); width: 52px; height: 52px; border-radius: 16px; background: var(--deep); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 16.5px; }
.step .art { border-radius: 16px; background: var(--cream); min-height: 150px; display: grid; place-items: center; padding: 18px; }
.path { font-family: "Atkinson Mono", monospace; font-size: 14px; background: var(--sand); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid .mascot-wrap { display: none; } .step { grid-template-columns: 52px 1fr; } .step .art { grid-column: 1 / -1; } }
.share { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border-radius: var(--radius); background: var(--deep); color: var(--cream); }
.share h3 { color: var(--cream); }
.share p { margin: 8px 0 0; color: rgba(243,234,224,.66); }

/* Legal */
.legal { padding: 150px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); }
.legal .updated { margin: 18px 0 56px; color: var(--muted); }
.legal h2 { font-size: 26px; letter-spacing: -.02em; margin: 48px 0 14px; line-height: 1.2; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 17px; color: rgba(30,27,51,.82); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.legal th { font-weight: 700; color: var(--deep); }
.legal .box { background: var(--paper); border-radius: 18px; padding: 22px 26px; border: 1px solid rgba(30,27,51,.07); }
@media (max-width: 600px) { .legal table { display: block; overflow-x: auto; } }

/* Grid children may shrink below their content on small screens. */
.hero .wrap > *, .demo > *, .offer > *, .role-panel > *, .dl-grid > *, .step > * { min-width: 0; }
.gestures { min-width: 0; }

/* The hero paints at once (it is the first thing anyone sees), so it animates on load, not on scroll. */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .9s var(--ease) both; }
.hero .reveal.d1 { animation-delay: .08s; } .hero .reveal.d2 { animation-delay: .18s; } .hero .reveal.d3 { animation-delay: .28s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .reveal { animation: none; } }
@media (max-width: 560px) {
  .screen { aspect-ratio: 4 / 5; padding: 10px; }
  .island.card { height: 68%; }
  .island .body ul { gap: 5px; margin-bottom: 8px; }
}

/* Language switcher in the footer: a globe that opens every language. */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--night); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(255,255,255,.55); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: #fff; }
.langs-menu { position: absolute; bottom: calc(100% + 10px); right: 0; z-index: 20; width: min(560px, calc(100vw - 32px));
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; padding: 10px; border-radius: 18px;
  background: #fff; border: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(30,27,51,.16); }
.langs-menu a { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--night); text-decoration: none; }
.langs-menu a:hover { background: rgba(55,51,90,.06); text-decoration: none; }
.langs-menu a.on { background: rgba(55,51,90,.1); font-weight: 800; }
[dir="rtl"] .langs-menu { right: auto; left: 0; }

/* Scripts whose letters join up (Arabic, Urdu, Hindi, Bengali) must not be letter-spaced. */
:lang(ar) *, :lang(ur) *, :lang(hi) *, :lang(bn) * { letter-spacing: 0 !important; }

/* Apps Corvi works in: a slow, endless strip under the hero. */
.apps { overflow: hidden; direction: ltr; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.apps-track { display: flex; width: max-content; }
.apps span { display: inline-flex; align-items: center; gap: .42em; padding-right: 52px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 760; letter-spacing: -.025em; color: rgba(30,27,51,.4); white-space: nowrap; transition: color .3s; }
.apps svg { width: 1.08em; height: 1.08em; flex: none; fill: currentColor; transition: fill .3s, transform .4s var(--spring); }
.apps span:hover { color: var(--deep); }
.apps span:hover svg { fill: var(--brand); transform: scale(1.12); }
@media (max-width: 560px) { .apps span { padding-right: 34px; } }
.motion .apps-track { animation: apps 46s linear infinite; }
@keyframes apps { to { transform: translateX(-50%); } }

/* Install from Terminal (download page). */
.quick { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px 36px; align-items: center; padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(30,27,51,.08); }
.quick p { margin: 8px 0 0; color: var(--muted); font-size: 16.5px; }
.cmd { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--deep); direction: ltr; box-shadow: 0 18px 40px -24px rgba(30,27,51,.7); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-family: "Atkinson Mono", monospace; font-size: 14.5px; color: var(--cream); }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .copy { flex: none; border: 0; border-radius: 11px; padding: 11px 16px; font: inherit; font-size: 15px; font-weight: 700; background: var(--cream); color: var(--deep); cursor: pointer; transition: transform .3s var(--spring), background .25s; }
.cmd .copy:hover { transform: translateY(-1px); }
.cmd .copy.done { background: var(--lilac-soft); }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr; padding: 24px; } }

/* Motion (only when the visitor hasn't asked for less of it; site.js adds .motion). */

/* Headings rise line by line from behind their own edge. */
.lines .line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.lines .line > span { display: inline-block; }
.motion .lines .line > span { transform: translateY(108%); transition: transform 1.05s var(--ease) calc(var(--i) * .1s + .05s); }
.motion .in .lines .line > span, .motion .lines.in .line > span { transform: none; }
.motion .hero h1 .line > span { transform: none; animation: lineUp 1.1s var(--ease) calc(var(--i) * .12s + .05s) both; }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
.motion .head.reveal { transform: none; }

/* Each feature's line draws in, then its text follows. */
.motion .feature::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.motion .feature.in::before { transform: none; }

/* Swaps: the old way is struck through, then the new one slides in. */
.swap .was > span { text-decoration: none; }
.motion .swap .was { text-decoration: none; }
.motion .swap .was > span { background: linear-gradient(rgba(155,127,167,.75), rgba(155,127,167,.75)) no-repeat 0 58% / 0% 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .8s var(--ease) .3s; }
[dir="rtl"].motion .swap .was > span, [dir="rtl"] .motion .swap .was > span { background-position: 100% 58%; }
.motion .swap.in .was > span { background-size: 100% 2px; }
.motion .swap .arrow { transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .7s var(--spring) .5s, opacity .3s .5s; }
.motion .swap.in .arrow { transform: none; opacity: 1; }
.motion .swap .now { opacity: 0; transform: translateX(-16px); transition: opacity .7s var(--ease) .7s, transform .7s var(--ease) .7s; }
[dir="rtl"] .motion .swap .now { transform: translateX(16px); }
.motion .swap.in .now { opacity: 1; transform: none; }
.motion .swap.reveal { transform: none; }

/* Small numbers pop instead of counting. */
.num strong.pop { animation: pop .8s var(--spring) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* The privacy band: a soft light follows the pointer. */
.dark { background: radial-gradient(640px circle at var(--mx, 70%) var(--my, 0%), rgba(155,127,167,.2), transparent 62%), var(--deep); }
.motion .promise svg { transition: transform .6s var(--spring); }
.motion .promise:hover svg { transform: scale(1.15) rotate(-6deg); }

/* The demo screen and the dark band settle into place as they scroll in (site.js sets the transform). */
.motion .screen, .motion .section.dark { will-change: transform; transform-origin: 50% 0; }

/* FAQ answers open smoothly where the browser can animate to auto height. */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }

.btn.magnet { transition: transform .25s var(--ease), box-shadow .35s var(--ease), background .25s, opacity .9s var(--ease); }
@media (max-width: 560px) { .cmd { flex-wrap: wrap; padding: 14px; } .cmd code { white-space: normal; overflow-wrap: anywhere; } .cmd .copy { width: 100%; } }

/* Phones: tighter rhythm, thumb-sized controls, nothing that needs a second row to make sense. */
@media (max-width: 560px) {
  :root { --section: 76px; --gutter: 20px; }
  body { font-size: 17px; }
  h2 { font-size: clamp(34px, 10vw, 44px); }
  .head p { font-size: 18px; margin-top: 16px; }
  .hero { padding: 84px 0 40px; }
  .hero h1 { font-size: clamp(54px, 17vw, 72px); }
  .hero .lead { font-size: 18px; margin-top: 20px; }
  .hero-cta { margin-top: 30px; gap: 18px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .link-quiet { margin: 0 auto; }
  .hero .fine { text-align: center; }
  .demo { margin-top: 40px; }
  .keycap { margin-top: 22px; width: 112px; height: 98px; }
  .swaps { margin-top: 44px; }
  .swap { padding: 22px 0; }
  .swap .was, .swap .now { font-size: 19px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 36px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 16px; font-size: 15px; }
  .role-panel { margin-top: 26px; min-height: 0; }
  .role-panel h3 { font-size: 26px; }
  .role-panel li { font-size: 16.5px; }
  .features { margin-top: 36px; }
  .feature { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 22px 0 24px; }
  .feature .ico { grid-row: span 2; margin: 0; padding-top: 2px; }
  .feature .ico svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 19px; }
  .feature p { margin-top: 6px; font-size: 15.5px; }
  .dark { margin: 0 8px; border-radius: 28px; }
  .promises { margin-top: 40px; }
  .promise { padding: 22px 0; grid-template-columns: 30px 1fr; gap: 14px; }
  .offer { margin-top: 40px; }
  .offer-card, .offer-side { padding: 26px 22px; border-radius: 24px; }
  .price { flex-wrap: wrap; gap: 4px 12px; }
  .price strong { font-size: 64px; }
  .price span { font-size: 16px; }
  .stack li { font-size: 16.5px; }
  .offer-card .btn { width: 100%; }
  .faq { margin-top: 36px; }
  .faq summary { padding: 22px 40px 22px 0; font-size: 18px; }
  .faq details p { font-size: 16px; }
  .final { padding-bottom: 88px; }
  .final .mascot-wrap { width: 170px; }
  .final .btn { width: 100%; }
  footer { padding: 36px 0 44px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .dl-hero { padding-top: 104px; }
  .steps { margin-top: 40px; }
  .step { padding: 22px; gap: 18px; }
}

/* Download page: one button, then the chip question. */
.dl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.dl-cta .fine { margin: 0; }
.dl-again { display: none; }
.started .dl-cta { display: none; }
.started .dl-again { display: block; animation: fadeUp .6s var(--ease) both; }
#dlTitle, #dlLead { transition: opacity .26s, filter .26s; }
#dlTitle.swapping, #dlLead.swapping { opacity: 0; filter: blur(6px); }

.pick { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(30,27,51,.55); overflow: visible; }
.pick::backdrop { background: rgba(30,27,51,.42); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.pick[open] { animation: pickIn .55s var(--spring) both; }
.pick[open]::backdrop { animation: fadeIn .4s var(--ease) both; }
.pick.closing { animation: pickOut .3s var(--ease) both; }
.pick.closing::backdrop { animation: fadeIn .3s var(--ease) reverse both; }
@keyframes pickIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pickOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pick-box { position: relative; padding: clamp(28px, 5vw, 44px); }
.pick h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; padding-right: 40px; }
.pick-sub { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.pick-sub svg { display: inline; vertical-align: -2px; color: var(--deep); }
.pick-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(30,27,51,.06); color: var(--deep); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .4s var(--spring); }
.pick-close:hover { background: rgba(30,27,51,.12); transform: rotate(90deg); }
[dir="rtl"] .pick-close { right: auto; left: 18px; }
[dir="rtl"] .pick h2 { padding-right: 0; padding-left: 40px; }
.pick-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; perspective: 900px; }
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.pick-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 22px;
  border-radius: 22px; border: 1.5px solid rgba(30,27,51,.1); background: var(--cream); color: var(--ink); font: inherit; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s var(--spring), border-color .25s, box-shadow .35s var(--ease), opacity .35s, filter .35s;
  animation: optIn .6s var(--spring) both;
}
.pick-opt:nth-child(2) { animation-delay: .08s; }
@keyframes optIn { from { opacity: 0; transform: translateY(26px) scale(.92); } }
.pick-opt:hover { border-color: rgba(155,127,167,.6); box-shadow: 0 26px 50px -30px rgba(30,27,51,.55); transition: transform .12s linear, border-color .25s, box-shadow .35s var(--ease); }
.pick-opt:focus-visible { outline: 2.5px solid var(--lilac); outline-offset: 3px; }
/* The guessed (or hovered) card gets a light that runs around its edge. */
.pick-opt::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--beam), transparent 0 70%, var(--lilac) 82%, #fff 88%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pick-opt.guess::before, .pick-opt:hover::before { opacity: 1; animation: beam 2.8s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.pick-opt .chip { width: 112px; height: 112px; margin-bottom: 12px; transform: translateZ(30px); filter: drop-shadow(0 16px 18px rgba(30,27,51,.28)); transition: transform .5s var(--spring); }
.pick-opt:hover .chip { transform: translateZ(40px) scale(1.05); }
.pick-opt .pins rect { opacity: .55; }
.pick-opt:hover .pins rect, .pick-opt.picked .pins rect { animation: pin 1.2s ease-in-out infinite; }
.pick-opt .pins rect:nth-child(4n+2) { animation-delay: .15s; } .pick-opt .pins rect:nth-child(4n+3) { animation-delay: .3s; } .pick-opt .pins rect:nth-child(4n+4) { animation-delay: .45s; }
@keyframes pin { 50% { opacity: 1; } }
.pick-opt .sweep { animation: sweep 3.6s var(--ease) infinite; }
.pick-opt:nth-child(2) .sweep { animation-delay: 1.2s; }
@keyframes sweep { 0%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(240px); } }
.pick-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; transform: translateZ(18px); }
.pick-desc { font-size: 14px; color: var(--muted); text-align: center; transform: translateZ(12px); }
.pick-guess { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: var(--deep); color: var(--cream); font-size: 12px; font-weight: 700; display: none; transform: translateZ(24px); }
[dir="rtl"] .pick-guess { right: auto; left: 12px; }
.pick-opt.guess .pick-guess { display: block; animation: pop .6s var(--spring) .4s both; }
.busy .pick-opt:not(.picked) { opacity: .35; filter: grayscale(.6); transform: scale(.96); pointer-events: none; }
.pick-opt.picked { border-color: var(--lilac); box-shadow: 0 0 0 5px rgba(155,127,167,.22), 0 26px 50px -30px rgba(30,27,51,.55); }
.pick-opt.picked .chip { animation: chipGo .9s var(--spring) both; }
@keyframes chipGo { 30% { transform: translateZ(40px) scale(1.12); } 100% { transform: translateZ(30px) translateY(4px) scale(1); } }
.pick-status { min-height: 1.4em; margin: 18px 0 0; text-align: center; font-weight: 700; color: var(--night); }
.pick-status:not(:empty)::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 9px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid var(--lilac-soft); border-top-color: var(--night); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .pick-opts { grid-template-columns: 1fr 1fr; gap: 10px; } .pick-opt { padding: 20px 8px 16px; } .pick-opt .chip { width: 84px; height: 84px; } .pick-name { font-size: 17px; } .pick-desc { font-size: 12.5px; } .pick-guess { top: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .pick[open], .pick-opt, .pick-opt .sweep, .pick-opt::before { animation: none !important; } }

/* Buttons fill from where the pointer comes in. */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--fx, 50%); top: var(--fy, 50%); width: 0; height: 0; border-radius: 50%; background: var(--night); transform: translate(-50%, -50%); transition: width .55s var(--ease), height .55s var(--ease); pointer-events: none; }
.btn.light::before { background: #fff; }
.btn:hover::before { width: 260%; height: 600%; }

/* Cards and the feature list: a soft light follows the pointer. */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(155,127,167,.14), transparent 60%); }
.spot:hover::after { opacity: 1; }
.feature.spot::before { background: radial-gradient(240px circle at var(--sx, 50%) 0, var(--lilac), rgba(30,27,51,.18) 70%); }
.feature.spot::after { inset: -1px -24px 0; border-radius: 18px; }

/* A big halftone wordmark closes every page. */
footer { overflow: hidden; }
footer::after { content: "Corvi"; display: block; margin: 40px 0 -.27em; text-align: center; font-size: clamp(110px, 27vw, 380px); font-weight: 800; letter-spacing: -.065em; line-height: 1; color: transparent; background: radial-gradient(circle, rgba(155,127,167,.7) 1.3px, transparent 1.75px) 0 0 / 7px 7px; -webkit-background-clip: text; background-clip: text; -webkit-mask-image: linear-gradient(#000 20%, transparent 92%); mask-image: linear-gradient(#000 20%, transparent 92%); pointer-events: none; user-select: none; }
.motion footer::after { animation: dots 18s linear infinite; }
@keyframes dots { to { background-position: 70px 35px; } }
