/* snuffle.ai, in the app's own language: lemon yellow, ink and paper, a condensed black headline face, the
   highlighter, sticker-like outlines, and the cat peeking over edges. Headline fonts are declared per page
   (build.mjs) and reach here as --display. */

:root {
  --yellow: #ffdd33;
  --ink: #121210;
  --paper: #f4f4f1;
  --card: #ffffff;
  --bezel: #0b0b0a;
  --cat: #121210;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1240px;
  --line: clamp(3px, 0.28vw, 4px);
  color-scheme: light;
}
:root:lang(zh-Hans) { --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:root:lang(zh-Hant) { --text: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:root:lang(ja) { --text: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
:root:lang(ko) { --text: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:root:lang(th) { --text: -apple-system, BlinkMacSystemFont, "Thonburi", "Leelawadee UI", "Noto Sans Thai", sans-serif; }
:root:lang(hi) { --text: -apple-system, BlinkMacSystemFont, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:root:lang(ar) { --text: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--yellow); }
body { margin: 0; color: var(--ink); font: 500 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 10px; }
.push, summary { -webkit-tap-highlight-color: transparent; }
:lang(ja) .display, :lang(ja) .lead { word-break: auto-phrase; }
:lang(ko) .display, :lang(ko) .lead { word-break: keep-all; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */

/* Each line of a headline is a block sized from the width of its longest line (--em, set by build.mjs) so it fills
   its container; anything still too long wraps. */
.display { margin: 0; font-family: var(--display); font-weight: 900; line-height: 0.96; letter-spacing: -0.003em; overflow-wrap: break-word; }
.display span { display: block; }
[data-script="native"] .display { line-height: 1.16; letter-spacing: -0.02em; }
[data-script="saira"] .display { line-height: 1.08; }
[data-tall] .display { line-height: 1.38; letter-spacing: 0; }
.display mark { color: var(--ink); background: var(--yellow); border-radius: 0.07em; padding: 0.03em 0.08em 0; margin: 0 -0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-script="native"] .display mark, [data-tall] .display mark { padding: 0 0.06em; }
.yellow .display mark { background: var(--card); }

.pitch, .feature, .facts, .narrow, .center, .og-text { container-type: inline-size; }
.t-hero { font-size: clamp(28px, calc(100cqi / var(--em)), 148px); }
.t-section { font-size: clamp(26px, calc(100cqi / var(--em)), 124px); }
.t-feature { font-size: clamp(18px, calc(100cqi / var(--em)), 60px); }
.t-word { font-size: clamp(36px, calc(54cqi / var(--em)), 168px); }
[data-script="native"] .t-word, [data-tall] .t-word { font-size: clamp(32px, calc(40cqi / var(--em)), 120px); }
.t-final { font-size: clamp(20px, calc(86cqi / var(--em)), 140px); }

.lead { margin: clamp(16px, 2vw, 26px) 0 0; max-width: 32em; font-size: clamp(19px, 1.65vw, 24px); font-weight: 600; line-height: 1.42;
  opacity: 0.74; text-wrap: balance; }

/* ---------- Header ---------- */

.bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.icon-link svg { width: 26px; height: 26px; }
@media (hover: hover) { .icon-link:hover { background: rgba(18, 18, 16, 0.08); } }

.lang { position: relative; }
.lang summary, .switch { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border: 2.5px solid var(--ink); border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.switch { text-decoration: none; }
.lang[open] summary { background: var(--ink); color: var(--yellow); }
@media (hover: hover) { .lang summary:hover, .switch:hover { background: var(--ink); color: var(--yellow); } }
.lang summary svg, .switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 2px; width: max-content; max-width: calc(100vw - 2 * var(--pad)); max-height: min(72vh, 600px); overflow: auto; margin: 0; padding: 8px;
  list-style: none; background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 24px 60px rgba(18, 18, 16, 0.24); }
.lang a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .lang a:hover { background: var(--paper); } }
.lang a[aria-current] { background: var(--yellow); font-weight: 800; }

/* ---------- Store badges ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }
.store { display: inline-flex; align-items: center; gap: 12px; height: 66px; padding: 0 26px 0 16px; border-radius: 18px; background: var(--ink);
  color: var(--paper); text-decoration: none; }
.store img { width: 34px; height: 34px; border-radius: 8px; }
.store span { display: flex; flex-direction: column; line-height: 1.12; }
.store small { font-size: 14px; font-weight: 700; color: var(--yellow); }
.store small:empty { display: none; }
.store b { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
@media (hover: hover) { a.store:hover { transform: translateY(-2px); } }

/* ---------- The phone ---------- */

.phone { position: relative; width: var(--w, 320px); padding: calc(var(--w, 320px) * 0.021); border-radius: calc(var(--w, 320px) * 0.158); background: var(--bezel);
  box-shadow: inset 0 0 0 calc(var(--w, 320px) * 0.005) #3d3d38, 0 calc(var(--w, 320px) * 0.07) calc(var(--w, 320px) * 0.16) rgba(18, 18, 16, 0.3); }
.screen { position: relative; overflow: hidden; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w, 320px) * 0.137); background: var(--paper); }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; left: 35.6%; top: 1.46%; width: 28.8%; height: 3.8%; border-radius: 999px; background: #000; }

/* ---------- The cat, peeking over an edge (CatView.swift's proportions for a "button" of --s) ---------- */

.peek { position: absolute; z-index: 3; width: var(--s); height: 0; }
.cat-head { position: absolute; left: 11%; top: calc(var(--s) * -0.3976); width: 78%; height: auto; overflow: visible; }
.paws { position: absolute; left: 0; right: 0; top: calc(var(--s) * -0.053); display: flex; justify-content: center; gap: calc(var(--s) * 0.32); }
.paw { position: relative; width: calc(var(--s) * 0.15); height: calc(var(--s) * 0.1); background: var(--cat);
  border-radius: calc(var(--s) * 0.075) calc(var(--s) * 0.075) calc(var(--s) * 0.063) calc(var(--s) * 0.063);
  box-shadow: 0 0 0 calc(var(--s) * 0.043) var(--outline, var(--ink)); transform-origin: bottom; rotate: -14deg; }
.paw + .paw { rotate: 14deg; }
.paw::before, .paw::after { content: ""; position: absolute; top: 10%; width: 6%; height: 40%; border-radius: 99px; background: rgba(244, 244, 241, 0.5); }
.paw::before { left: 33%; }
.paw::after { right: 33%; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--yellow); }
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: clamp(520px, calc(100svh - 190px), 780px); padding-top: clamp(16px, 3vw, 40px); }
.intro .pitch { padding-bottom: clamp(32px, 4vw, 64px); }
/* The phone runs on below the stage and disappears behind the trust band. */
.stage { --w: clamp(250px, 25vw, 340px); position: relative; align-self: stretch; justify-self: center; width: calc(var(--w) * 1.55); min-height: calc(var(--w) * 1.5); }
.stage .phone { position: absolute; left: 50%; top: calc(var(--w) * 0.2); translate: -50% 0; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sticker-logo { --size: calc(var(--w) * 0.25); position: absolute; z-index: 2; display: grid; place-items: center; width: var(--size); height: var(--size);
  border: calc(var(--w) * 0.012) solid var(--ink); border-radius: 27%; background: var(--card); box-shadow: 0 12px 28px rgba(18, 18, 16, 0.22);
  left: calc(50% + var(--w) * var(--x) - var(--size) / 2); top: calc(var(--w) * (0.2 + var(--y)) - var(--size) / 2); rotate: var(--r);
  animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: var(--d); }
.sticker-logo img { width: 62%; height: 62%; object-fit: contain; }
.s1 { --x: -0.56; --y: 0.3; --r: -8deg; --d: 0.35s; }
.s2 { --x: 0.57; --y: 0.6; --r: 8deg; --d: 0.45s; }
.s3 { --x: -0.57; --y: 0.98; --r: 7deg; --d: 0.55s; }
.s4 { --x: 0.56; --y: 1.24; --r: -6deg; --d: 0.65s; }
.hero-cat { --s: calc(var(--w) * 0.35); --outline: var(--bezel); left: calc(50% + var(--w) * 0.28 - var(--s) / 2); top: calc(var(--w) * 0.2);
  animation: peek-up 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.8s both; }
.trust { position: relative; z-index: 4; display: flex; justify-content: center; gap: clamp(16px, 7vw, 120px); margin: 0; padding: clamp(22px, 2.6vw, 34px) var(--pad);
  list-style: none; background: var(--ink); color: var(--paper); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust svg { flex: none; width: clamp(28px, 2.6vw, 36px); height: auto; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust b { font-size: clamp(16px, 1.7vw, 23px); font-weight: 800; }

@keyframes rise { from { translate: -50% 60px; opacity: 0; } }
@keyframes pop { from { scale: 0.3; opacity: 0; } }
@keyframes peek-up { from { translate: 0 30%; opacity: 0; } }

/* ---------- Sections ---------- */

.band { position: relative; padding-block: clamp(80px, 10vw, 150px); }
.ink { background: var(--ink); color: var(--paper); }
.paper { background: var(--paper); }
.yellow { background: var(--yellow); }
/* The trust band above already opens the dark area. */
.refresh { padding-top: clamp(56px, 7vw, 100px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(40px, 5vw, 96px); }

/* Refresh: press the yellow button and the cat comes up sniffing, then the refreshed screen wipes in. */
.demo { --w: clamp(260px, 26vw, 350px); position: relative; justify-self: center; padding-bottom: calc(var(--w) * 0.1); }
.demo .screen img { position: absolute; inset: 0; }
.demo .after { clip-path: inset(0 0 100% 0); }
.demo[data-state="found"] .after { clip-path: inset(0); transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.push { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--w) * -0.096); width: calc(var(--w) * 0.413); aspect-ratio: 1; translate: -50% 0;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); transition: scale 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.push svg { width: 43%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.9s cubic-bezier(0.3, 0.9, 0.3, 1); }
@media (hover: hover) { .push:hover { scale: 1.04; } }
.push:active, .demo[data-state="sniff"] .push { scale: 0.93; }
.demo[data-state="sniff"] .push svg, .demo[data-state="found"] .push svg { rotate: 360deg; }
.demo[data-state="rest"] .push svg { transition: none; }
.push:focus-visible { outline-color: var(--yellow); outline-offset: 6px; border-radius: 50%; }
.demo-cat, .demo-paws { --s: calc(var(--w) * 0.413); position: absolute; left: 50%; bottom: calc(var(--w) * 0.317); width: var(--s); height: 0; translate: -50% 0; }
.demo-cat { z-index: 2; }
.demo-paws { z-index: 4; }
.demo-cat .cat-head { transition: translate 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.demo[data-state="rest"] .demo-cat .cat-head { translate: 0 calc(var(--s) * 0.33); transition-duration: 0.25s; transition-timing-function: ease-in; }
.demo-paws .paws { transition: opacity 0.2s, translate 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.demo[data-state="rest"] .demo-paws .paws { opacity: 0; translate: 0 calc(var(--s) * 0.12); }
.demo .eyes-happy, .demo .scent { opacity: 0; }
.demo[data-state="found"] .eyes-happy { opacity: 1; }
.demo[data-state="found"] .eyes-open { opacity: 0; }
.demo[data-state="sniff"] .scent { animation: sniff 0.5s ease-in-out infinite alternate; }
@keyframes sniff { from { opacity: 0.2; } to { opacity: 1; } }

/* Connect: four ways in, then the card they fill. */
.flow { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 0.85fr); align-items: center; gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 88px); }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; padding: 0; list-style: none; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: clamp(168px, 16vw, 212px); padding: clamp(18px, 2vw, 26px);
  border: var(--line) solid var(--ink); border-radius: clamp(22px, 2.4vw, 32px); background: var(--card); }
.way img { width: clamp(40px, 3.8vw, 52px); height: clamp(40px, 3.8vw, 52px); object-fit: contain; }
.way b { font-size: clamp(20px, 2vw, 27px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.way span { max-width: 100%; margin-top: auto; padding: 7px 16px 8px; border-radius: 19px; background: var(--ink); color: var(--yellow);
  font-size: clamp(14px, 1.3vw, 18px); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.flow-arrow { width: clamp(44px, 4.6vw, 68px); height: auto; rotate: -90deg; fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flow-arrow { rotate: 90deg; }
.card-shot { position: relative; margin: clamp(60px, 7vw, 90px) 0 0; container-type: inline-size; }
.card-shot img { width: 100%; height: auto; border-radius: 6.4cqi; box-shadow: 0 0 0 var(--line) var(--ink), 0 30px 70px rgba(18, 18, 16, 0.18); }
.card-cat { --s: 25cqi; --outline: var(--ink); top: 0; left: calc(67.7% - var(--s) / 2); }

/* Revenue, stores, widgets: three phones rising from the bottom edge. */
.features { overflow: hidden; padding-bottom: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 3vw, 48px); }
.feature { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.feature p { margin: 14px 0 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.4; opacity: 0.74; }
.shot { --w: min(84cqi, 330px); position: relative; height: calc(var(--w) * 1.42); margin-top: clamp(32px, 3.4vw, 52px); }
.shot .phone { margin-inline: auto; }
.sticker { position: absolute; z-index: 2; top: calc(var(--w) * -0.05); right: calc(50% - var(--w) * 0.6); rotate: 7deg; border-radius: 999px;
  box-shadow: 0 12px 26px rgba(18, 18, 16, 0.24); }
.stars { display: flex; gap: calc(var(--w) * 0.012); padding: calc(var(--w) * 0.035) calc(var(--w) * 0.05); background: var(--ink); }
.stars svg { width: calc(var(--w) * 0.075); fill: var(--yellow); }
.pro { padding: 0.12em 0.36em 0.06em; border: var(--line) solid var(--ink); background: var(--yellow); color: var(--ink);
  font: 900 calc(var(--w) * 0.15) / 1 Display, var(--text); letter-spacing: 0.01em; }

/* Privacy: three giant words between rules. */
.facts { margin: clamp(44px, 5vw, 80px) 0 0; }
.fact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 10px clamp(24px, 4vw, 64px);
  padding-block: clamp(18px, 2.2vw, 30px); border-top: var(--line) solid var(--paper); }
.fact:last-child { border-bottom: var(--line) solid var(--paper); }
.fact dt { color: var(--paper); }
.fact dd { margin: 0; padding-bottom: 0.5em; font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; line-height: 1.4; color: rgba(244, 244, 241, 0.78); }
.code-link { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; color: var(--yellow); font-weight: 800; text-decoration: none; white-space: nowrap; }
.code-link svg { width: 0.95em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .code-link svg { scale: -1 1; }
@media (hover: hover) { .code-link:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* Questions */
.narrow { max-width: calc(900px + 2 * var(--pad)); }
.qa { margin-top: clamp(32px, 4vw, 56px); border-top: var(--line) solid var(--ink); }
.qa details { border-bottom: var(--line) solid var(--ink); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(20px, 2.4vw, 28px); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { margin: 0; font-size: clamp(20px, 2.1vw, 28px); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.plus { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); transition: rotate 0.25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 3px; border-radius: 2px; background: var(--yellow); translate: -50% -50%; }
.plus::after { rotate: 90deg; }
.qa details[open] .plus { rotate: 45deg; }
.qa p { max-width: 42em; margin: 0 0 clamp(22px, 2.6vw, 30px); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.62; color: rgba(18, 18, 16, 0.78); }

/* The end: the footer's ink panel with the big cat on its edge. */
.final { padding-bottom: clamp(170px, 19vw, 260px); }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final .stores { justify-content: center; }
.foot { position: relative; margin-top: calc(-1 * clamp(32px, 5vw, 72px)); padding-block: clamp(44px, 5vw, 64px) clamp(32px, 4vw, 48px); background: var(--ink);
  color: var(--paper); border-radius: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px) 0 0; }
.foot-cat { --s: clamp(170px, 21vw, 300px); --outline: var(--yellow); top: 0; inset-inline-start: min(calc(77% - var(--s) / 2), calc(100% - var(--s) - 8px)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; }
.foot .brand img { box-shadow: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { font-size: 17px; font-weight: 700; text-decoration: none; opacity: 0.82; }
@media (hover: hover) { .foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; } }
.copyright { margin: 0; margin-inline-start: auto; font-size: 15px; opacity: 0.5; }

/* ---------- Legal and small pages ---------- */

body.doc { background: var(--paper); }
.prose { max-width: calc(760px + 2 * var(--pad)); padding-block: clamp(16px, 3vw, 40px) clamp(150px, 16vw, 220px); }
.prose h1 { margin: 24px 0 10px; font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.prose h2 { margin: 44px 0 10px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.prose p, .prose li { color: rgba(18, 18, 16, 0.8); line-height: 1.72; }
.prose li { margin-block: 8px; }
.prose a { text-underline-offset: 3px; }
.prose .updated { font-size: 16px; opacity: 0.6; }
.lost { padding-block: 6vh 2vh; text-align: center; }
.lost-code { margin: 0; font-size: clamp(120px, 26vw, 260px); line-height: 0.9; }
.lost p { font-size: clamp(18px, 2vw, 22px); }
.button { display: inline-flex; align-items: center; height: 58px; margin-top: 18px; padding: 0 30px; border-radius: 999px; background: var(--ink);
  color: var(--paper); font-size: 19px; font-weight: 800; text-decoration: none; }

/* ---------- Narrow screens ---------- */

@media (max-width: 920px) {
  .intro, .split { grid-template-columns: minmax(0, 1fr); }
  .intro { min-height: 0; align-items: start; }
  .intro .pitch { padding-bottom: 8px; }
  .stage { --w: min(60vw, 300px); min-height: calc(var(--w) * 1.3); }
  .demo { --w: min(66vw, 320px); margin-top: 8px; }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .flow > * { width: 100%; }
  .flow .flow-arrow, [dir="rtl"] .flow-arrow { width: 52px; rotate: none; }
  .card-shot { max-width: 560px; margin-top: 56px; }
  /* One card per feature, its phone rising from the card's bottom edge. */
  .features { padding-bottom: clamp(56px, 10vw, 80px); }
  .trio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; max-width: calc(560px + 2 * var(--pad)); }
  .feature { display: block; grid-row: auto; padding: 28px 24px 0; border: var(--line) solid var(--ink); border-radius: 28px; background: var(--card);
    overflow: hidden; overflow: clip; }
  .feature .display mark { background: var(--yellow); }
  .shot { --w: min(70cqi, 300px); height: calc(var(--w) * 1.08); margin-top: 28px; }
  .fact { grid-template-columns: minmax(0, 1fr); }
  .t-word, [data-script="native"] .t-word, [data-tall] .t-word { font-size: clamp(32px, calc(64cqi / var(--em)), 96px); }
}
@media (max-width: 560px) {
  .brand span { font-size: 22px; }
  .lang summary { padding-inline: 12px; }
  .lang summary span { display: none; }
  .lang ul { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 2 * var(--pad)); }
  .lang a { padding: 9px 12px; font-size: 15px; white-space: normal; }
  .trust { justify-content: space-around; gap: 8px; }
  .trust li { flex: 1; flex-direction: column; gap: 8px; text-align: center; }
  .trust b { text-wrap: balance; }
  .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store { justify-content: center; gap: 10px; height: 58px; padding-inline: 10px; border-radius: 16px; }
  .store img { width: 28px; height: 28px; }
  .store small { font-size: 12px; }
  .store b { font-size: 17px; white-space: nowrap; }
  .foot-links { gap: 8px 20px; }
  .foot-links a { font-size: 16px; }
  .copyright { margin-inline-start: 0; width: 100%; }
}

@media (max-width: 359px) {
  .stores { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Social preview card (1200 × 630, rendered by scripts/media.sh) ---------- */

body.og { display: grid; grid-template-columns: minmax(0, 1fr) 460px; width: 1200px; height: 630px; margin: 0; overflow: hidden; background: var(--yellow); }
.og-text { display: flex; flex-direction: column; justify-content: space-between; padding: 76px 0 64px 80px; }
.t-og { font-size: clamp(40px, calc(100cqi / var(--em)), 118px); }
.og-brand { display: flex; align-items: center; gap: 18px; font-size: 42px; font-weight: 800; letter-spacing: -0.01em; }
.og-brand img { width: 68px; height: 68px; border-radius: 16px; box-shadow: 0 0 0 3px var(--ink); }
.og-stage { --w: 350px; position: relative; }
.og-stage .phone { position: absolute; top: 132px; left: 50%; translate: -50% 0; }
.og-stage .hero-cat { top: 132px; left: calc(50% + var(--w) * 0.28 - var(--s) / 2); animation: none; }
[dir="rtl"] .og-text { padding: 76px 80px 64px 0; }
