@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=IBM+Plex+Mono:wght@400;500&family=Inter+Tight:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

/* koryapp.com: the landing page (body.home) and the plain pages (pay,
   legal, 404). Same palette as the back office (admin/styles.css): warm
   neutrals, one ochre, square corners. Only the phone in the hero is round. */

:root {
  --page: #f4f4f2; --panel: #ffffff; --raised: #fafaf9;
  --ink: #111110; --ink-2: #4a4a47; --muted: #8c8c87;
  --line: #dcdcd8; --line-soft: #ebebe8;
  --ochre: #e0a100; --on-ochre: #111110;
  --band: #111110; --on-band: #f2f2ef; --band-muted: #85857f; --band-line: #2c2c2a;
  --display: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c0c0b; --panel: #161615; --raised: #1c1c1b;
    --ink: #f2f2ef; --ink-2: #c2c2bd; --muted: #85857f;
    --line: #33332f; --line-soft: #262624;
    --band: #1a1a19; --on-band: #f2f2ef; --band-muted: #85857f; --band-line: #33332f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11" 1;
}
a { color: inherit; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.label {
  font: 500 12px/1.4 var(--mono);
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ochre); color: var(--on-ochre);
  font: 600 15px/1 var(--body); text-decoration: none;
  padding: 16px 22px; border-radius: 0;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--ink); color: var(--page); }
.button:active { transform: translateY(1px); }
.mark {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  background: var(--ochre); color: #fff; border-radius: 0;
  font: 700 16px/1 var(--display); letter-spacing: -.02em;
}
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* Plain pages: pay, conditions, confidentialité, 404 */
body:not(.home) main { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }
body:not(.home) main > header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0; margin-bottom: 56px; border-bottom: 1px solid var(--line);
}
body:not(.home) main > header img { width: 28px; height: 28px; border-radius: 0; }
body:not(.home) main > header a { text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -.02em; }
body:not(.home) h1 { font: 600 clamp(36px, 8vw, 56px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 20px; }
body:not(.home) h2 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; margin: 40px 0 8px; }
.lead { font-size: 19px; color: var(--ink-2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 20px 22px; margin: 28px 0; }
.card p:last-child { margin-bottom: 0; }
body:not(.home) main > footer {
  margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap;
}

/* Landing */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--ink); color: var(--page); padding: 10px 14px; }

.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { text-decoration: none; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  border: 1px solid var(--line); padding: 7px 10px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.nav-links + .status { margin-left: 0; }
.dot { width: 7px; height: 7px; background: var(--ochre); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.meta-row span:last-child { text-align: right; }
.hero-title {
  font: 600 clamp(44px, 10.4vw, 168px)/.9 var(--display);
  letter-spacing: -.055em; margin: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero-title mark {
  color: inherit;
  background: linear-gradient(var(--ochre), var(--ochre)) no-repeat 0 86% / 0 .12em;
  animation: underline .7s .75s cubic-bezier(.2, .7, .1, 1) forwards;
}
@keyframes underline { to { background-size: 100% .12em; } }

.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; animation: fade .8s .35s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.hero-copy .lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 34em; margin-bottom: 28px; }
.soon { border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 28px; max-width: 34em; }
.soon .label { display: block; margin-bottom: 6px; }
.soon p { margin: 0; color: var(--ink-2); }
.soon strong { color: var(--ink); font-weight: 600; }

.stage {
  position: relative; background: var(--ochre);
  aspect-ratio: 6 / 5; display: grid; place-items: center; overflow: hidden; padding: 6% 0;
  animation: fade .9s .2s both;
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17,17,16,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,16,.09) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
.stage-tag {
  position: absolute; left: 16px; top: 14px; z-index: 1;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(17,17,16,.7);
}

/* The phone: the one round thing on the page, because phones are. */
.phone {
  position: relative; height: 100%; aspect-ratio: 9 / 18.6;
  background: #0c0c0b; border-radius: 13% / 6.3%; padding: 3.4%;
  box-shadow: 0 40px 80px -30px rgba(17,17,16,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.screen {
  height: 100%; background: #ffffff; color: #111110; border-radius: 10.5% / 4.9%;
  display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 6cqw 8cqw 0; font: 600 4.6cqw/1 var(--body); }
.sb-icons { display: flex; gap: 1.6cqw; }
.sb-icons i { width: 3.6cqw; height: 3.6cqw; background: #111110; display: block; }
/* The till on the phone: an order filling up, a way to pay, Encaisser. */
.till { position: relative; }
.till-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8cqw 7cqw 4cqw; border-bottom: 1px solid #ebebe8; }
.till-head b { font: 600 8cqw/1 var(--display); letter-spacing: -.03em; }
.till-head span { font: 500 3.6cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #8c8c87; }
.lines { list-style: none; margin: 0; padding: 2cqw 7cqw 0; flex: 1; }
.lines li {
  display: flex; justify-content: space-between; gap: 3cqw; padding: 3.6cqw 0; border-bottom: 1px solid #f0f0ee;
  font: 500 4.4cqw/1.2 var(--body); font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateX(-4cqw); transition: opacity .35s, transform .35s;
}
.lines li.show { opacity: 1; transform: none; }
.lines em { font-style: normal; color: #8c8c87; }
.till-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4cqw 7cqw; font: 500 4.2cqw/1 var(--body); color: #4a4a47; }
.till-total > span:last-child { font: 600 5cqw/1 var(--display); color: #111110; }
.till-total b { font: 600 9cqw/1 var(--display); letter-spacing: -.04em; color: #111110; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 7cqw; }
.methods span {
  display: grid; place-items: center; height: 10cqw; border: 1px solid #dcdcd8;
  font: 600 3.3cqw/1 var(--body); text-align: center; transition: background .2s, border-color .2s;
}
.methods span.on { border-color: #111110; background: #111110; color: #fff; }
.charge {
  margin: 3cqw 7cqw 0; height: 13cqw; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  background: #e0a100; color: #111110; font: 600 4.8cqw/1 var(--body); font-variant-numeric: tabular-nums;
  transition: transform .12s, filter .12s;
}
.charge.down { transform: scale(.97); filter: brightness(.92); }
.toast {
  position: absolute; left: 6cqw; right: 6cqw; top: 22cqw; z-index: 2;
  display: flex; align-items: center; gap: 3.4cqw; padding: 4cqw;
  background: #111110; color: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-4cqw); transition: opacity .35s, transform .35s;
}
.toast.show { opacity: 1; transform: none; }
.toast .tick { flex: none; width: 8cqw; height: 8cqw; display: grid; place-items: center; background: #e0a100; color: #111110; font: 700 4.6cqw/1 var(--body); }
.toast b { display: block; font: 600 4.2cqw/1.2 var(--body); }
.toast div span { font: 400 3.5cqw/1.3 var(--body); color: #c2c2bd; }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6cqw 4cqw 8cqw; margin-top: 5cqw; border-top: 1px solid #ebebe8; }
.tabbar span { text-align: center; font: 500 3.6cqw/1 var(--body); color: #8c8c87; padding-top: 6cqw; position: relative; }
.tabbar span::before { content: ""; position: absolute; top: 0; left: 50%; width: 4.4cqw; height: 4.4cqw; transform: translateX(-50%); border: 1.5px solid currentColor; }
.tabbar .on { color: #111110; }
.tabbar .on::before { background: #111110; }

/* Ticker */
.ticker { background: var(--band); color: var(--on-band); overflow: hidden; border-block: 1px solid var(--band-line); }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--ochre); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section-head {
  display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: start;
  border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 { font: 600 clamp(32px, 4.6vw, 68px)/1 var(--display); letter-spacing: -.045em; margin: 0; max-width: 14em; }

.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells.four { grid-template-columns: repeat(4, 1fr); }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cell {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 22px 28px; min-height: 300px;
  transition: background .25s, color .25s;
}
.cell .num { font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.cell .num { display: block; }
.cell h3 { font: 600 clamp(26px, 2.4vw, 34px)/1 var(--display); letter-spacing: -.035em; margin: clamp(72px, 9vw, 128px) 0 12px; }
.cell p { color: var(--ink-2); margin: 0; font-size: 16px; }
.cell:hover { background: var(--ink); color: var(--page); }
.cell:hover p, .cell:hover .num { color: color-mix(in srgb, var(--page) 72%, transparent); }
.cell:hover .num { color: var(--ochre); }
.aside { margin: 28px 0 0; max-width: 40em; color: var(--ink-2); padding-left: 16px; border-left: 3px solid var(--ochre); }
.aside strong { color: var(--ink); font-weight: 600; }

/* Band: shops */
.band { background: var(--band); color: var(--on-band); padding: clamp(64px, 9vw, 128px) 0; }
.band .section-head { border-top-color: var(--on-band); grid-template-columns: 1fr; gap: 14px; }
.band .label { color: var(--band-muted); }
.band-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--band-line); }
.steps .num { font: 500 13px/1.6 var(--mono); color: var(--ochre); }
.steps h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--band-muted); font-size: 16px; }

/* Menu scan: a chalk slate read into items */
.scan { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.slate {
  position: relative; overflow: hidden; background: #22261f; color: #ecebe4;
  padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 6px;
  border: 10px solid #5b4632; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  font: 500 clamp(19px, 1.7vw, 24px)/1.25 "Caveat", "Comic Sans MS", cursive; white-space: pre;
  transform: rotate(-1.5deg);
}
.slate-title { font-size: 1.5em; font-weight: 700; margin-bottom: 6px; color: #f6d77a; }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ochre);
  box-shadow: 0 0 18px 4px rgba(224,161,0,.55); animation: scan 3.2s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
@keyframes scan { from { top: 4%; } to { top: 96%; } }
.parsed {
  background: #ffffff; color: #111110; margin: -18px 0 0 clamp(24px, 8%, 72px); position: relative;
  border-top: 6px solid var(--ochre); padding: 16px 18px 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.parsed-head { padding-bottom: 10px; border-bottom: 1px solid #dcdcd8; }
.parsed .label { color: #8c8c87; }
.parsed .row { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #ebebe8; font-size: 15px; }
.parsed .row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.parsed .box { width: 16px; height: 16px; background: #111110; position: relative; }
.parsed .box::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.parsed .add { margin-top: 14px; height: 44px; display: grid; place-items: center; background: #111110; color: #fff; font: 600 15px/1 var(--body); }

/* Money */
.money { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.flows { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.flow { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 22px 28px; display: flex; flex-direction: column; }
.flow .arrow { font: 400 clamp(40px, 5vw, 72px)/1 var(--display); color: var(--ochre); margin: 36px 0 8px; }
.flow b { font: 600 clamp(26px, 2.6vw, 38px)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 12px; }
.flow p { margin: 0; color: var(--ink-2); font-size: 16px; }
.guards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guards li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 15px; }
.guards li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--ochre); }

.for { font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: -12px 0 28px; }

/* Hero links */
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: auto; }
.hero-copy .cta-row .button { margin-top: 0; }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { color: var(--ochre); border-color: var(--ochre); }

/* Particuliers */
.band-lead { color: var(--on-band); font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.band-aside { color: var(--band-muted); }
.band-aside strong { color: var(--on-band); }
.band-grid:has(.stage-me) { align-items: start; }
.stage-me { aspect-ratio: 4 / 5; position: sticky; top: 84px; }
.me { background: #f4f4f2; }
.me-head { display: flex; flex-direction: column; gap: 1.5cqw; padding: 7cqw 7cqw 4cqw; }
.me-head span { font: 500 4cqw/1 var(--body); color: #4a4a47; }
.me-head b { font: 600 12cqw/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.me-head em { font: 500 3.4cqw/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: #8c8c87; }
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; padding: 0 7cqw 4cqw; }
.me-actions span { height: 10cqw; display: grid; place-items: center; background: #ffffff; border: 1px solid #dcdcd8; font: 600 3.8cqw/1 var(--body); }
.me-actions .on { background: #e0a100; border-color: #e0a100; }
.me-block { background: #ffffff; margin: 0 4cqw 2.4cqw; padding: 3cqw 4cqw 1cqw; }
.me-title { display: block; font: 500 3.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #8c8c87; margin-bottom: 1.5cqw; }
.me-row { display: flex; justify-content: space-between; padding: 2.4cqw 0; border-top: 1px solid #f0f0ee; font: 500 3.9cqw/1.2 var(--body); font-variant-numeric: tabular-nums; }
.me-row:first-of-type { border-top: 0; }
.me-row .plus { color: #1f7a3d; }
.me-card { background: #111110; color: #f2f2ef; margin: 0 4cqw; padding: 3.4cqw 4cqw; display: flex; flex-direction: column; gap: 2cqw; }
.me-card > span { font: 600 3.9cqw/1 var(--body); }
.me-card em { font: 400 3.3cqw/1.2 var(--body); font-style: normal; color: #c2c2bd; }
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.2cqw; }
.stamps i { aspect-ratio: 1; background: #e0a100; }
.stamps i.off { background: transparent; border: 1px solid #4a4a47; }
.me .tabbar { grid-template-columns: repeat(3, 1fr); margin-top: auto; background: #ffffff; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-left: calc(33.333% + 8px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 600 clamp(19px, 1.8vw, 24px)/1.25 var(--display); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); font: 400 18px/1 var(--mono); transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ochre); border-color: var(--ochre); color: #111110; }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { margin: 0 0 24px; max-width: 40em; color: var(--ink-2); }

/* Footer */
.foot { background: var(--band); color: var(--on-band); padding-top: 28px; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--band-line); }
.foot .label { color: var(--band-muted); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { color: var(--on-band); text-decoration: none; }
.foot-links a:hover { color: var(--ochre); }
.wordmark {
  font: 700 clamp(120px, 31vw, 480px)/.74 var(--display); letter-spacing: -.07em;
  margin: clamp(24px, 4vw, 48px) 0 0 -.04em; white-space: nowrap; user-select: none;
  transform: translateY(.06em);
}
.wordmark span { color: var(--ochre); }

/* Reveal on scroll (the script adds .in; without it nothing is hidden) */
.reveal { transition: opacity .7s cubic-bezier(.2, .7, .1, 1), transform .7s cubic-bezier(.2, .7, .1, 1); }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.cells .reveal:nth-child(2), .steps .reveal:nth-child(2), .faq .reveal:nth-child(2) { transition-delay: .06s; }
.cells .reveal:nth-child(3), .steps .reveal:nth-child(3), .faq .reveal:nth-child(3) { transition-delay: .12s; }
.cells .reveal:nth-child(4), .steps .reveal:nth-child(4), .faq .reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title mark { background-size: 100% .12em; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .cta-row { margin-top: 0; }
  .stage { aspect-ratio: 4 / 3; }
  .cells.four { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; }
  .scan { max-width: 560px; }
  .stage-me { position: relative; top: 0; max-width: 520px; }
  .flows { grid-template-columns: 1fr; }
  .guards { grid-template-columns: 1fr; gap: 12px; }
  .faq { margin-left: 0; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .meta-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .meta-row span:nth-child(2) { text-align: right; }
  .meta-row span:nth-child(3) { display: none; }
  .meta-row span:last-child { display: none; }
  .status { padding: 6px 8px; font-size: 10px; }
  .stage { aspect-ratio: 4 / 5; padding: 8% 0; }

  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .cells.four, .cells.three { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .cell h3 { margin-top: 40px; }
  .steps li { grid-template-columns: 36px 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .wordmark { font-size: 44vw; }
}
