/* generated by server/site/build.mjs from server/site/ — edit the sources, then rebuild */
/* Deti website. Tokens follow the app and the Deti shared-page design system: paper / ink / terracotta in light, true black
   in dark. The page follows the visitor's device (prefers-color-scheme); there is no theme switch. */

/* ---------- fonts (self-hosted subsets: Latin + Vietnamese; SIL OFL, see /fonts/OFL.txt) ---------- */
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-700.woff2?v=5beaf408a4) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-800.woff2?v=3d391f3f6b) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(/fonts/be-vietnam-pro-400.woff2?v=9d251d4890) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(/fonts/be-vietnam-pro-600.woff2?v=da40c06e74) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks (widths measured against Arial) so the swap to the web fonts does not move the layout. */
@font-face { font-family: "Archivo fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700 800; size-adjust: 97.2%; ascent-override: 90.3%; descent-override: 21.6%; line-gap-override: 0%; }
@font-face { font-family: "Be Vietnam Pro fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400; size-adjust: 110%; ascent-override: 90.9%; descent-override: 24.1%; line-gap-override: 0%; }
@font-face { font-family: "Be Vietnam Pro fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; size-adjust: 104.8%; ascent-override: 95.4%; descent-override: 25.3%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #faf7f0; --raised: #ffffff; --sunken: #f1eadf; --fill: rgba(107, 91, 78, .10);
  --ink: #30251e; --ink2: #5f5045; --ink3: #74675a;
  --line: #e0d6c7; --line-strong: #c9b8a3;
  --accent: #a14629; --accent-deep: #7d321e; --accent-text: #a14629; --wash: #f4e6d8; --on-accent: #fffaf3;
  --ok: #46633a;
  --shot-shadow: 0 30px 60px -30px rgba(48, 37, 30, .45), 0 2px 8px -2px rgba(48, 37, 30, .12);
  --bezel: #2a221d; --bezel-edge: rgba(255, 255, 255, .08);
  --head: "Archivo", "Archivo fallback", system-ui, sans-serif;
  --body: "Be Vietnam Pro", "Be Vietnam Pro fallback", -apple-system, system-ui, sans-serif;
  --max: 1180px;
  --gutter: 16px;
  --gap: clamp(28px, 4vw, 44px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000; --raised: #1c1c1e; --sunken: #101011; --fill: rgba(118, 118, 128, .24);
    --ink: #f5f5f7; --ink2: rgba(235, 235, 245, .74); --ink3: rgba(235, 235, 245, .60);
    --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .26);
    --accent: #b9512f; --accent-deep: #8f3f22; --accent-text: #f08a66; --wash: rgba(194, 87, 58, .20); --on-accent: #ffffff;
    --ok: #9cc47f;
    --shot-shadow: 0 30px 60px -28px rgba(194, 87, 58, .30), 0 0 0 1px rgba(255, 255, 255, .10);
    --bezel: #2c2c2e; --bezel-edge: rgba(255, 255, 255, .16);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 600; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 12px; }
.lead { color: var(--ink2); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); max-width: 44em; }
.note { font-size: 15px; color: var(--ink3); max-width: 46em; }
.more { display: inline-block; font-weight: 600; }

/* ---------- wordmark: "Deti" closed by a terracotta square, as in the app and the Deti admin ---------- */
.wm { font-family: var(--head); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); white-space: nowrap; }
.wm::after { content: ""; display: inline-block; width: .25em; height: .25em; margin-left: .07em; background: var(--accent); }

/* ---------- header ---------- */
.top { padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; text-decoration: none; margin-right: auto; padding: 6px 0; }
.brand .wm { font-size: 28px; }
.nav, .tools { display: flex; align-items: center; gap: 2px; }
.nav { display: none; margin-right: 12px; }
.nav a, .signin, .menu nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .signin:hover, .menu nav a:hover, .menu summary:hover { background: var(--fill); }
.top a[aria-current="page"] { color: var(--accent-text); }
.tools { gap: 8px; }
.lang { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lang:hover { background: var(--fill); }
.signin { display: none; }
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; min-width: 230px; padding: 8px;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}
.menu nav a { padding: 12px 14px; font-size: 16px; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .signin { display: inline-block; border: 1px solid var(--line-strong); padding: 8px 16px; border-radius: 999px; }
  .menu { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px;
  border-radius: 999px; font: 600 17px/1.25 var(--body); text-decoration: none; text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-quiet { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-quiet:hover { background: var(--fill); }
.btn-soon { background: var(--fill); color: var(--ink2); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 519px) { .actions .btn { width: 100%; } }

/* ---------- inner page hero ---------- */
.page-hero { padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 1.3rem + 3.9vw, 3.8rem); line-height: 1.1; letter-spacing: -.035em; max-width: 17em; }
.page-hero .lead { margin-top: 20px; }

/* ---------- sections ---------- */
.block { padding: clamp(52px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.block-sunken { background: var(--sunken); }
.block-flush { border-top: 0; padding-top: 0; }
.block h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.7rem); line-height: 1.14; letter-spacing: -.03em; max-width: 22em; }
.block h2 + .lead { margin-top: 16px; }
.block h3 { font-size: 1.22rem; line-height: 1.3; }
.block .wrap > .more, .block .wrap > .note { margin-top: 28px; }
.lead b { color: var(--ink); }

/* state of a feature: running, being built, planned */
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.state-building::before { background: var(--accent-text); }
.state-planned::before { background: none; border: 1.5px solid var(--ink3); }

/* marked lists */
.marks { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.marks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.marks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--ok); }
.marks-cross svg { color: var(--ink3); }
.marks-dot svg { color: var(--accent-text); }
.block .wrap > .marks { margin-top: var(--gap); max-width: 50em; gap: 14px; }
@media (min-width: 860px) {
  /* a long plain list flows into two columns, each item kept whole */
  .block .wrap > .marks-dot { display: block; columns: 2; column-gap: 56px; max-width: none; }
  .block .wrap > .marks-dot li { break-inside: avoid; margin-bottom: 14px; }
}

/* entries in a ruled grid */
.entries { display: grid; column-gap: 56px; margin-top: var(--gap); }
@media (min-width: 760px) { .entries { grid-template-columns: 1fr 1fr; } .entries-one { grid-template-columns: 1fr; } }
.entry { padding: 20px 0 24px; border-top: 1px solid var(--line-strong); }
.entry .state { margin-bottom: 8px; }
.entry p { margin-top: 6px; color: var(--ink2); }

/* two lists side by side: have / have not */
.ledger { display: grid; gap: 40px; margin-top: var(--gap); }
@media (min-width: 860px) { .ledger { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ledger h3 { font-size: 1.35rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.kept { list-style: none; }
.kept li { padding: 16px 0 18px; border-bottom: 1px solid var(--line-strong); }
.kept b { display: block; margin-top: 6px; font-size: 1.05rem; }
.kept p { margin-top: 2px; color: var(--ink2); font-size: 16px; }

.split { display: grid; gap: 32px; margin-top: var(--gap); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; } }
.split .entries { margin-top: 0; }
.split .note { margin-top: 8px; }
.aside-card { padding: 24px; border-radius: 20px; background: var(--sunken); }
.prose { max-width: 44em; margin-top: var(--gap); }
.prose p + p { margin-top: 14px; }
.block .prose + .actions { margin-top: 28px; }

/* ---------- where things live (home, section 06) ---------- */
.flow { display: grid; gap: 0; margin-top: var(--gap); }
.node { padding: 22px; border-radius: 20px; background: var(--raised); border: 1.5px solid var(--ink); }
.node .sub { margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
.node .marks { margin-top: 14px; gap: 8px; font-size: 16px; }
.node-cloud { background: none; border: 1.5px dashed var(--line-strong); }
.node-cloud .sub { color: var(--ink3); }
.wire { margin-left: 28px; padding: 18px 0 18px 20px; font-size: 15px; color: var(--ink2); }
.wire b { display: block; color: var(--accent-text); font-size: 15px; }
.wire-direct { border-left: 3px solid var(--accent-text); }
.wire-up, .wire-down { border-left: 2px dashed var(--line-strong); }
.wire-up { padding-bottom: 6px; }
.wire-down { padding-top: 6px; }
.never { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 32px; font-weight: 600; max-width: 46em; }
.never svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-text); }
.never + .more { margin-top: 20px; }
@media (min-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "machine direct phone" "up cloud down"; }
  .flow-machine { grid-area: machine; } .flow-phone { grid-area: phone; } .flow-cloud { grid-area: cloud; margin-top: 36px; }
  .wire { margin: 0; padding: 0; border: 0; }
  /* the direct line between the two boxes: its name above the line, the explanation below */
  .wire-direct { grid-area: direct; align-self: center; display: flex; flex-direction: column; padding: 0 22px; text-align: center; }
  .wire-direct::after { content: ""; order: 1; height: 3px; margin: 10px -22px 12px; background: var(--accent-text); }
  .wire-direct p { order: 2; }
  /* An elbow from the box above down into the side of the cloud box, with its label under the line. */
  .wire-up, .wire-down { position: relative; padding-top: 84px; }
  .wire-up::before, .wire-down::before { content: ""; position: absolute; top: 0; height: 68px; width: 50%; border-bottom: 2px dashed var(--line-strong); }
  .wire-up { grid-area: up; padding-right: 28px; }
  .wire-up::before { right: 0; border-left: 2px dashed var(--line-strong); border-bottom-left-radius: 14px; }
  .wire-down { grid-area: down; padding-left: 28px; }
  .wire-down::before { left: 0; border-right: 2px dashed var(--line-strong); border-bottom-right-radius: 14px; }
}

/* ---------- the site's palette (body.lacquer: every page) and the home page (body.page-home) ----------
   Its own palette, after Vietnamese lacquer (sơn mài): a black ground in dark, eggshell paper in light, the brand's
   terracotta for what you press and gold leaf for rules, numbers and labels. Gold is never a button and never a link. */
.lacquer {
  --gold: #85662a; --gold-line: rgba(133, 102, 42, .32);
  --paper: #faf7f0; --raised: #fffdf8; --sunken: #f3ece1;
  --ink: #241b15; --ink2: #5a4b40; --ink3: #6f6255;
  --line: #e6ddcf; --line-strong: #cfbfa9;
  --glow: rgba(161, 70, 41, .10);
}
@media (prefers-color-scheme: dark) {
  .lacquer {
    --gold: #d2b06c; --gold-line: rgba(210, 176, 108, .30);
    --paper: #0b0908; --raised: #16120f; --sunken: #100d0b; --fill: rgba(255, 232, 200, .08);
    --ink: #f3ece2; --ink2: rgba(243, 236, 226, .74); --ink3: rgba(243, 236, 226, .58);
    --line: rgba(255, 232, 200, .10); --line-strong: rgba(255, 232, 200, .20);
    --wash: rgba(194, 87, 58, .16);
    --glow: rgba(194, 87, 58, .20);
    --shot-shadow: 0 40px 80px -40px rgba(194, 87, 58, .35), 0 0 0 1px rgba(255, 232, 200, .10);
  }
}
.page-home .top { border-bottom-color: transparent; }
.lacquer .foot { border-top-color: var(--gold-line); }

/* hero: the brand mark, the claim, three ways in, then the product at work */
.h-hero { padding: clamp(20px, 4vw, 56px) 0 0; overflow: hidden; }
/* The launch clip of the app, one cut per theme with its page colour baked in (white, black): multiply in light and
   screen in dark leave the page's own colour around the mark, so no box shows. It is never animated by this sheet: an
   ancestor with opacity or a transform would isolate it and bring the box back. */
/* the clip is the full width of the render: the "D." starts a quarter of the way in, so the box steps left to line it
   up with the headline (the part outside is page colour; no transform: it would isolate the blend) */
.h-mark { --mark-w: clamp(220px, 12vw + 110px, 290px); position: relative; width: var(--mark-w); aspect-ratio: 480 / 266; margin: 0 0 6px calc(-.25 * var(--mark-w)); }
.h-mark video, .h-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-mark-light, .h-mark-still { mix-blend-mode: multiply; }
.h-mark-dark, .h-mark-still { display: none; }
@media (prefers-color-scheme: dark) {
  .h-mark-light { display: none; }
  .h-mark-dark { display: block; mix-blend-mode: screen; }
  .h-mark-still { mix-blend-mode: screen; }
}
@media (prefers-reduced-motion: reduce) {
  .h-mark video { display: none; }
  .h-mark-still { display: block; }
}
.h-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--gold-line);
  border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.h-badge svg { width: 16px; height: 16px; flex: none; }
.h-badge svg:last-child { color: var(--gold); transition: transform .2s ease; }
.h-badge:hover svg:last-child { transform: translateX(3px); }
.h-hero-grid { display: grid; gap: 26px; }
/* no visible headline (owner, 2026-12-03): the logo clip and the product speak; the page title stays for screen readers and search */
.h-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h-hero .lead { max-width: 38em; }
.h-hero .actions { align-items: center; margin-top: 28px; }
@media (min-width: 1100px) {
  .h-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
  .h-hero .lead { font-size: 1.3rem; }
  .h-hero .actions .btn { padding: 10px 22px; }
}
.h-web { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.h-web svg { width: 16px; height: 16px; transition: transform .2s ease; }
.h-web:hover svg { transform: translateX(3px); }
.h-platforms { margin-top: 20px; font-size: 15px; color: var(--ink3); }

/* the product: a real screenshot in a plain browser frame, standing on a gold horizon */
.h-shot { position: relative; max-width: 1320px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
.h-shot::before {
  content: ""; position: absolute; left: -50vw; right: -50vw; top: 38%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent);
}
.h-shot::after {
  content: ""; position: absolute; inset: 24% 12% 6%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px);
}
/* The recording is of the app's dark theme: the frame around it stays dark in both page themes. */
.h-window { position: relative; overflow: hidden; border-radius: 14px; background: #181818; box-shadow: var(--shot-shadow), 0 0 0 1px rgba(255, 255, 255, .12); }
.h-bar { display: flex; justify-content: center; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #222; }
.h-bar span {
  padding: 3px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .55);
  font: 500 12.5px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.h-clip, .h-clip-still { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.h-clip-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .h-clip { display: none; }
  .h-clip-still { display: block; }
}
/* on a phone the frame shows the conversation column of the recording, tall enough to read */
@media (max-width: 719px) {
  .h-clip, .h-clip-still { aspect-ratio: 4 / 5; object-position: 46% 50%; }
}
.h-shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink3); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .h-hero-head > :not(.h-mark), .h-hero-side > * { animation: h-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .h-hero-side > :nth-child(1) { animation-delay: .12s; }
  .h-hero-side > :nth-child(2) { animation-delay: .18s; } .h-hero-side > :nth-child(3) { animation-delay: .24s; }
  .h-window { animation: h-rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes h-rise { from { opacity: 0; transform: translateY(14px); } }
}

/* numbered sections under a gold hairline */
.h-sec { padding: clamp(64px, 9vw, 120px) 0; }
.h-sec + .h-sec .wrap { position: relative; }
.h-sec + .h-sec .wrap::before { content: ""; position: absolute; top: calc(-1 * clamp(64px, 9vw, 120px)); left: var(--gutter); right: var(--gutter); height: 1px; background: var(--gold-line); }
.h-hero + .h-sec { padding-top: clamp(80px, 11vw, 150px); }
.h-sec h2 { max-width: 20em; font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.95rem); line-height: 1.12; letter-spacing: -.026em; }
.h-num { display: block; margin-bottom: 18px; color: var(--gold); font: 500 14px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.h-sec h2 + .lead { margin-top: 18px; max-width: 40em; }
.h-sec h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.015em; }
.h-sec .wrap > .more, .h-sec .wrap > .note { margin-top: 28px; }
.h-step-n { color: var(--gold); font: 500 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* one request: steps beside the live steps of the story */
.h-request-grid { display: grid; gap: 44px; margin-top: var(--gap); align-items: start; }
@media (min-width: 980px) { .h-request-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.h-steps { list-style: none; display: grid; }
.h-steps li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0 20px; border-top: 1px solid var(--line-strong); }
.h-steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.h-steps p { margin-top: 4px; color: var(--ink2); font-size: 16px; }

/* approvals: the card on the web, the four rules under it, the same card on the phone beside them */
.h-control-grid { display: grid; gap: 44px; margin-top: var(--gap); align-items: center; }
@media (min-width: 900px) { .h-control-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 64px; } }
.h-control-main { display: grid; gap: 36px; }
.h-frame { overflow: hidden; border-radius: 18px; box-shadow: var(--shot-shadow), 0 0 0 1px var(--line-strong); }
.h-frame img { width: 100%; }
.h-points { display: grid; gap: 28px 36px; }
@media (min-width: 600px) { .h-points { grid-template-columns: 1fr 1fr; } }
.h-points > div { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.h-points p { margin-top: 6px; color: var(--ink2); font-size: 16px; }

/* places: a phone beside one card per place */
.h-places-grid { display: grid; gap: 40px; margin-top: var(--gap); align-items: center; }
@media (min-width: 900px) { .h-places-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; } }
.h-phone { width: min(280px, 72vw); justify-self: center; }
.h-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .h-cards { grid-template-columns: 1fr 1fr; } }
.h-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 18px;
  background: var(--raised); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.h-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.h-card-name { color: var(--gold); font-size: 14px; font-weight: 600; }
.h-card p:not(.h-card-name) { color: var(--ink2); font-size: 15.5px; }
.h-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--accent-text); font-size: 15px; font-weight: 600; }
.h-card-go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.h-card:hover .h-card-go svg { transform: translateX(3px); }

/* text for assistive technology only */
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* sunken bands: the hairline between sections gives way to the change of ground */
.h-band { background: var(--sunken); }
.h-band .wrap::before, .h-band + .h-sec .wrap::before { display: none; }

/* the prompt strip: two rows of chat bubbles drifting in opposite directions; still and wrapped with reduced motion */
/* the strip runs to the edges of the window, past the column of the text */
.h-prompts-sec { overflow: hidden; }
.h-prompts { display: grid; gap: 14px; margin: var(--gap) calc(50% - 50vw) 0; }
.h-prompt-row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.h-prompt-row ul { list-style: none; display: flex; gap: 12px; padding-right: 12px; flex: none; }
.h-prompt-row li p {
  padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: var(--raised); border: 1px solid var(--line);
  font-size: 16px; white-space: nowrap; color: var(--ink);
}
.h-prompt-b li p { border-radius: 20px 20px 20px 6px; }
.h-prompt-row li:nth-child(3n + 2) p { background: var(--wash); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .h-prompt-row ul { animation: h-drift 70s linear infinite; }
  .h-prompt-b ul { animation-direction: reverse; animation-duration: 80s; }
  .h-prompt-row:hover ul { animation-play-state: paused; }
  @keyframes h-drift { to { transform: translateX(-100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .h-prompt-row { -webkit-mask-image: none; mask-image: none; }
  .h-prompts { margin-inline: 0; }
  .h-prompt-row ul { flex-wrap: wrap; flex: 1; }
  .h-prompt-row ul[aria-hidden] { display: none; }
  .h-prompt-row li p { white-space: normal; }
}

/* the team: one card per role, the lead's wider; a sample line of work under each */
.h-team { list-style: none; display: grid; gap: 14px; margin-top: var(--gap); }
@media (min-width: 640px) { .h-team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .h-team { grid-template-columns: repeat(3, 1fr); } }
.h-team li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.h-team-tag {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px;
  background: var(--sunken); color: var(--gold);
}
.h-team-tag svg { width: 21px; height: 21px; }
.h-team-lead .h-team-tag { background: var(--accent); color: var(--on-accent); }
.h-team-role { color: var(--gold); font-size: 14px; font-weight: 600; }
.h-team h3 { font-size: 1.22rem; }
.h-team li > p:not(.h-team-role):not(.h-team-line) { color: var(--ink2); font-size: 15.5px; }
.h-team-line {
  display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink3); font-size: 14px;
}
.h-team-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .h-team-lead .h-team-line::before { animation: h-pulse 1.8s ease-in-out infinite; }
  @keyframes h-pulse { 50% { opacity: .35; } }
}

/* uses: what you ask, what Deti does, what you get, per kind of work */
.h-uses-sec { background: var(--sunken); }
.h-uses-sec .wrap::before, .h-uses-sec + .h-sec .wrap::before { display: none; }
.h-uses { display: grid; gap: 16px; margin-top: var(--gap); }
@media (min-width: 760px) { .h-uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .h-uses { grid-template-columns: repeat(4, 1fr); } }
.h-use { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.h-use h3 { font-size: 1.3rem; }
.h-use-label { margin-top: 18px; color: var(--ink3); font-size: 13.5px; font-weight: 600; }
.h-use-ask { margin-top: 8px; padding: 11px 14px; border-radius: 16px 16px 6px 16px; background: var(--wash); font-size: 15.5px; line-height: 1.5; }
.h-use-does { list-style: none; display: grid; gap: 8px; margin-top: 8px; counter-reset: does; }
.h-use-does li { counter-increment: does; display: grid; grid-template-columns: 22px 1fr; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.h-use-does li::before { content: counter(does); color: var(--gold); font: 600 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.h-use-get { margin-top: 8px; font-weight: 600; font-size: 15.5px; }

/* before / after: one row per change, the new way after a gold arrow */
.h-versus { width: 100%; margin-top: var(--gap); border-collapse: collapse; }
.h-versus th { padding: 0 0 12px; text-align: left; font: 600 14px/1.4 var(--body); color: var(--ink3); }
.h-versus th + th { color: var(--gold); }
.h-versus td { padding: 18px 0; border-top: 1px solid var(--line-strong); vertical-align: top; font-size: 16.5px; }
.h-versus td:first-child { color: var(--ink3); padding-right: 28px; width: 42%; }
.h-versus td + td { display: flex; gap: 14px; color: var(--ink); font-weight: 600; }
.h-versus td + td svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
@media (max-width: 719px) {
  .h-versus thead { display: none; }
  .h-versus tr { display: grid; padding: 16px 0; border-top: 1px solid var(--line-strong); }
  .h-versus td { display: block; padding: 0; border: 0; width: auto; }
  .h-versus td:first-child { width: auto; padding: 0 0 8px; }
  .h-versus td + td { display: flex; }
}

/* a day: times on a line, across on a wide screen, down on a phone */
.h-day { list-style: none; display: grid; margin-top: var(--gap); }
.h-day li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 0 0 26px; }
.h-day li::before { content: ""; position: absolute; left: 80px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.h-day li:not(:last-child)::after { content: ""; position: absolute; left: 84px; top: 18px; bottom: 0; width: 1px; background: var(--gold-line); }
.h-day li > div { padding-left: 38px; }
.h-day time { font: 700 1.05rem/1.6 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; }
.h-day h3 { font-size: 1.12rem; }
.h-day p { margin-top: 4px; color: var(--ink2); font-size: 15.5px; }
@media (min-width: 1100px) {
  .h-day { grid-template-columns: repeat(6, 1fr); gap: 22px; }
  .h-day li { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .h-day li::before { left: 0; top: 40px; }
  .h-day li:not(:last-child)::after { left: 14px; right: -22px; top: 44px; bottom: auto; width: auto; height: 1px; }
  .h-day li > div { padding: 34px 0 0; }
}

/* recently shipped: real releases, newest first */
.h-news { list-style: none; display: grid; gap: 14px; margin-top: var(--gap); }
@media (min-width: 700px) { .h-news { grid-template-columns: repeat(2, 1fr); } }
/* the newest release leads, the four before it beside it */
@media (min-width: 1000px) {
  .h-news { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .h-news li:first-child { grid-row: span 2; padding: 26px 26px 28px; border-radius: 20px; border: 1px solid var(--gold-line); background: var(--raised); }
  .h-news li:first-child h3 { font-size: 1.6rem; }
  .h-news li:first-child p:not(.h-news-meta) { font-size: 16.5px; }
}
.h-news li { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border-top: 1px solid var(--gold-line); }
.h-news-meta { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: 13.5px; }
.h-ver { padding: 2px 9px; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--gold); font: 600 12.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.h-news h3 { font-size: 1.08rem; }
.h-news p:not(.h-news-meta) { color: var(--ink2); font-size: 15px; }

/* questions: native disclosure, a plus that turns into a minus */
.h-faq { margin-top: var(--gap); max-width: 860px; border-top: 1px solid var(--line-strong); }
.h-faq details { border-bottom: 1px solid var(--line-strong); }
.h-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; cursor: pointer;
  list-style: none; font: 600 1.1rem/1.4 var(--head); letter-spacing: -.01em;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary:hover { color: var(--accent-text); }
.h-faq-sign { position: relative; width: 16px; height: 16px; flex: none; }
.h-faq-sign::before, .h-faq-sign::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--gold); transition: transform .2s ease; }
.h-faq-sign::after { transform: rotate(90deg); }
.h-faq details[open] .h-faq-sign::after { transform: rotate(0deg); }
.h-faq details p { padding: 0 40px 22px 2px; color: var(--ink2); max-width: 46em; }

/* more than code: eight tiles */
.h-tiles { list-style: none; display: grid; gap: 1px; margin-top: var(--gap); background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 600px) { .h-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .h-tiles { grid-template-columns: repeat(4, 1fr); } }
.h-tiles li { padding: 26px 24px 28px; background: var(--paper); }
.h-tiles svg { width: 26px; height: 26px; color: var(--gold); }
.h-tiles h3 { margin-top: 16px; }
.h-tiles p { margin-top: 6px; color: var(--ink2); font-size: 15.5px; }

/* the closing steps */
.h-start { background: var(--sunken); }
.h-start .wrap::before { display: none; }
.lacquer .node-own { border-width: 1px; border-color: var(--line-strong); }
.h-start-steps { list-style: none; display: grid; gap: 28px; margin-top: var(--gap); counter-reset: none; }
@media (min-width: 860px) { .h-start-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.h-start-steps li { padding-top: 18px; border-top: 1px solid var(--gold-line); }
.h-start-steps h3 { margin-top: 10px; font-size: 1.3rem; }
.h-start-steps p { margin-top: 8px; color: var(--ink2); font-size: 16px; }
.h-start .actions { margin-top: 40px; }


/* ---------- the pages of the site in the home page's type (business, product, changelog, docs, about, contact, brand) ---------- */
.s-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(8px, 2vw, 20px); }
.s-hero h1 { max-width: 15em; font-weight: 700; font-size: clamp(2.3rem, 1.25rem + 3.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.032em; }
.s-hero .lead { margin-top: 22px; max-width: 40em; }
.s-hero .actions { margin-top: 30px; }
.h-sec.s-flush { padding-top: clamp(28px, 4vw, 48px); }
.s-flush .wrap::before { display: none; }
.h-sec .more { display: inline-flex; align-items: center; gap: 6px; }
.h-sec .more svg { width: 16px; height: 16px; }

/* three short claims side by side */
.h-trio { display: grid; gap: 28px; margin-top: var(--gap); }
@media (min-width: 860px) { .h-trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.h-trio > div { padding-top: 18px; border-top: 1px solid var(--gold-line); }
.h-trio h3 { font-size: 1.22rem; }
.h-trio p { margin-top: 8px; color: var(--ink2); }

/* the business teaser on the home page */
.h-biz .marks { max-width: 44em; margin-top: var(--gap); }
.h-biz .actions { margin-top: 32px; }

/* the home page's three newest releases */
@media (min-width: 1000px) {
  .h-news.h-news-three { grid-template-columns: repeat(3, 1fr); }
  .h-news.h-news-three li:first-child { grid-row: auto; padding: 18px 18px 20px; border: 0; border-top: 1px solid var(--gold-line); border-radius: 0; background: none; }
  .h-news.h-news-three li:first-child h3 { font-size: 1.08rem; }
  .h-news.h-news-three li:first-child p:not(.h-news-meta) { font-size: 15px; }
}

/* a two-column table: a name, then what it means */
.s-table { width: 100%; margin-top: var(--gap); border-collapse: collapse; background: var(--raised); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.s-table thead th { padding: 14px 20px; text-align: left; font: 600 14px/1.4 var(--body); color: var(--ink3); border-bottom: 1px solid var(--line-strong); }
.s-table tbody th, .s-table td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
.s-table tbody tr:first-child th, .s-table tbody tr:first-child td { border-top: 0; }
.s-table tbody th { width: 30%; font: 600 16px/1.45 var(--head); }
.s-table td { color: var(--ink2); }
@media (max-width: 639px) {
  .s-table thead { display: none; }
  .s-table tr { display: grid; padding: 14px 18px; border-top: 1px solid var(--line); }
  .s-table tbody tr:first-child { border-top: 0; }
  .s-table tbody th, .s-table td { width: auto; padding: 0; border: 0; }
  .s-table td { margin-top: 4px; }
}

/* plain cards that hold text and maybe a button */
.s-boxes { display: grid; gap: 14px; margin-top: var(--gap); }
@media (min-width: 700px) { .s-boxes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .s-boxes:not(.s-contact) { grid-template-columns: repeat(4, 1fr); } }
.s-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.s-box h3 { font-size: 1.15rem; }
.s-box p { color: var(--ink2); font-size: 15.5px; }
.s-box .btn, .s-box .actions { margin-top: auto; padding-top: 0; }
.s-box > .btn { margin-top: 14px; }
.s-box .actions { margin-top: 14px; gap: 10px; }
.s-contact .s-box:last-child { grid-column: 1 / -1; }

/* the changelog: one row per release */
.s-log { list-style: none; display: grid; max-width: 900px; }
.s-log li { display: grid; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 760px) { .s-log li { grid-template-columns: 190px 1fr; gap: 28px; } }
.s-log li:first-child { border-top-color: var(--gold-line); }
.s-log h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
.s-log p:not(.h-news-meta) { margin-top: 8px; color: var(--ink2); }
.s-log .h-news-meta { align-self: start; padding-top: 4px; }

/* docs: groups of links, then what is being written */
.s-docs { display: grid; gap: 30px; margin-top: var(--gap); }
@media (min-width: 760px) { .s-docs { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
.s-docs h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 1px solid var(--gold-line); }
.s-docs ul { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.s-docs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.s-docs a svg { width: 15px; height: 15px; transition: transform .2s ease; }
.s-docs a:hover svg { transform: translateX(3px); }
.s-docs li p { margin-top: 2px; color: var(--ink2); font-size: 15.5px; }
.s-soon { list-style: none; display: grid; gap: 12px; margin-top: var(--gap); max-width: 640px; }
.s-soon li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.s-soon li .state { order: 2; flex: none; }

/* brand: the two cuts of the mark, the wordmark and icons, swatches, type */
.s-cuts { display: grid; gap: 16px; margin-top: var(--gap); }
@media (min-width: 760px) { .s-cuts { grid-template-columns: 1fr 1fr; } }
.s-cut { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); }
.s-cut video { display: block; width: 100%; height: auto; }
.s-cut-light video { background: #fff; }
.s-cut-dark video { background: #000; }
.s-cut figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 18px; background: var(--raised); font-size: 15px; }
.s-cut figcaption a { font-weight: 600; }
.s-word { display: grid; gap: 28px; margin-top: var(--gap); align-items: center; }
@media (min-width: 760px) { .s-word { grid-template-columns: 1fr auto; } }
.s-word .wm { font-size: clamp(4rem, 2rem + 8vw, 8rem); }
.s-icons { display: flex; gap: 20px; }
.s-icon { display: grid; gap: 10px; justify-items: center; }
.s-icon img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.s-icon a { font-weight: 600; font-size: 15px; }
.s-swatches, .s-type { list-style: none; display: grid; gap: 14px; margin-top: var(--gap); }
@media (min-width: 640px) { .s-swatches { grid-template-columns: repeat(2, 1fr); } .s-type { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .s-swatches { grid-template-columns: repeat(4, 1fr); } }
.s-swatches li, .s-type li { padding: 16px 16px 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.s-swatch { display: block; height: 88px; margin-bottom: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.s-swatch-0 { background: #a14629; }
.s-swatch-1 { background: #d2b06c; }
.s-swatch-2 { background: #0b0908; }
.s-swatch-3 { background: #faf7f0; }
.s-hex { margin-top: 2px; color: var(--gold); font: 500 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.s-swatches li p:not(.s-hex), .s-type li p:not(.s-type-sample) { margin-top: 4px; color: var(--ink2); font-size: 15px; }
.s-type-sample { font-size: 3rem; line-height: 1.2; margin-bottom: 10px; }
.s-type-0 { font-family: var(--head); font-weight: 800; letter-spacing: -.03em; }
.s-type-1 { font-family: var(--body); font-weight: 600; }

/* ---------- solution: the org chart ---------- */
.org { --g: 20px; display: grid; justify-items: center; margin-top: var(--gap); }
.seat { position: relative; width: 100%; padding: 20px 22px 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line-strong); }
.seat-name { font-size: 14px; font-weight: 600; color: var(--ink3); }
.seat h3 { margin-top: 2px; font-size: 1.45rem; }
.seat p:not(.seat-name) { margin-top: 8px; color: var(--ink2); font-size: 16px; }
.seat-owner, .seat-lead { max-width: 430px; }
.seat-owner { background: var(--accent); border-color: var(--accent); }
.seat-owner h3, .seat-owner .seat-name, .seat-owner p:not(.seat-name) { color: var(--on-accent); }
.seat-owner h3 { font-size: 1.9rem; font-weight: 800; }
.seat-lead { margin-top: 32px; border: 1.5px solid var(--ink); }
/* connectors: a stem above each seat below the owner */
.seat-lead::before, .seat-row > .seat::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 32px; margin-bottom: 1px; background: var(--line-strong); }
.seat-row { position: relative; display: grid; gap: 32px; width: 100%; margin-top: 32px; }
.roles { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.roles li { padding: 8px 12px; border-radius: 12px; background: var(--sunken); font-size: 15.5px; color: var(--ink2); }
.roles b { color: var(--ink); margin-right: 4px; }
@media (min-width: 900px) {
  .seat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--g); margin-top: 64px; align-items: start; }
  /* the bar that joins the three seats of the row to the lead's stem */
  .seat-row::before { content: ""; position: absolute; top: -33px; height: 2px; left: calc((100% - 2 * var(--g)) / 7); right: calc((100% - 2 * var(--g)) / 7); background: var(--line-strong); }
  .seat-row::after { content: ""; position: absolute; left: 50%; top: -65px; width: 2px; height: 32px; background: var(--line-strong); }
  .seat-team .roles { grid-template-columns: 1fr 1fr; }
}

/* ---------- solution: a day ---------- */
.timeline { list-style: none; margin-top: var(--gap); max-width: 900px; }
.timeline li { display: grid; gap: 4px 28px; padding: 20px 0 24px; border-top: 1px solid var(--line-strong); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 8.5rem 1fr; } }
.time { font: 700 1.15rem/1.4 var(--head); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.timeline div p { margin-top: 6px; color: var(--ink2); }

/* ---------- product: phone screens ---------- */
.shot { width: 100%; border-radius: 13.7% / 6.3%; box-shadow: var(--shot-shadow); background: var(--raised); }
.gallery { display: grid; gap: 48px 28px; margin-top: var(--gap); }
.gallery figure { display: grid; gap: 22px; justify-items: center; align-content: start; }
.gallery .shot { max-width: 250px; }
.gallery figcaption { width: 100%; }
.gallery h3 { font-size: 1.15rem; }
.gallery p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.split-shot { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-strong); align-items: center; }
@media (min-width: 860px) { .split-shot { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } }
.lone-shot { width: min(240px, 70%); justify-self: center; }
.split-shot .note { margin-top: 24px; }

/* ---------- product: the real app, a strip of phone frames scrolled sideways (no script) ---------- */
/* The strip runs to the edges of the page column; each frame snaps to its start. Screenshots are 600 px wide: sharp at 2x. */
.reel {
  margin: var(--gap) calc(-1 * var(--gutter)) 0; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.reel:focus-visible { outline-offset: -2px; border-radius: 0; }
.reel ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 32px); width: max-content; padding: 12px var(--gutter) 44px; }
.reel li { width: clamp(216px, 62vw, 252px); scroll-snap-align: start; }
.reel figure { display: grid; gap: 20px; align-content: start; }
.phone { padding: 7px; border-radius: 40px; background: var(--bezel); box-shadow: var(--shot-shadow), inset 0 0 0 1px var(--bezel-edge); }
.phone img { width: 100%; border-radius: 33px; background: var(--raised); }
.reel h3 { font-size: 1.1rem; }
.reel figcaption p { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.real .wrap > .note { margin-top: 4px; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line-strong); }
.plan-open { border: 2px solid var(--accent-text); padding: 23px 21px; }
.badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.plan-open .badge { background: var(--accent); color: var(--on-accent); }
.plan h2 { margin-top: 16px; font-size: 2rem; font-weight: 800; }
.plan .who { margin-top: 4px; font-weight: 600; color: var(--ink2); min-height: 3.2em; }
.plan .marks { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.plan .note { margin: 18px 0 20px; }
.plan .btn { margin-top: auto; min-height: 48px; font-size: 16px; padding: 8px 16px; }
.plans + .note { margin-top: 24px; }

/* ---------- get started ---------- */
.steps { list-style: none; counter-reset: st; margin-top: var(--gap); max-width: 900px; }
.steps li { counter-increment: st; position: relative; padding: 20px 0 24px 60px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 17px/1 var(--head);
}
.steps p { margin-top: 6px; color: var(--ink2); }
.invite { display: grid; gap: 18px; max-width: 900px; margin-top: 12px; padding: 24px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line-strong); }
@media (min-width: 600px) { .invite { grid-template-columns: 64px 1fr; gap: 24px; } }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line); }
.invite .note { margin-top: 6px; }
.invite .actions { margin-top: 18px; }

/* ---------- download: one card per platform ---------- */
.platforms { display: grid; gap: 20px; margin-top: var(--gap); align-items: start; }
@media (min-width: 900px) { .platforms { grid-template-columns: 1fr 1fr; gap: 28px; } }
.platform { min-width: 0; padding: 26px 24px 28px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line-strong); }
.platform.is-yours { border: 2px solid var(--accent-text); padding: 25px 23px 27px; }
.platform-head { display: flex; align-items: center; gap: 14px; }
.platform-head > svg { width: 40px; height: 40px; flex: none; color: var(--ink); }
.platform-head h3 { font-size: 1.6rem; }
.yours { display: none; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.is-yours .yours { display: block; }
.platform > p { margin-top: 16px; color: var(--ink2); }
.platform > p.note { color: var(--ink3); }
.platform .actions { margin-top: 22px; }
.platform h4 { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font: 600 16px/1.4 var(--body); }
/* The Android build: shown only once assets/site.js has read /download/android.json */
.platform:not(.apk-ready) [data-apk-when="ready"], .apk-ready [data-apk-when="soon"] { display: none; }
.build { display: grid; gap: 22px; margin-top: 24px; align-items: start; }
@media (min-width: 520px) { .build { grid-template-columns: minmax(0, 1fr) 156px; } }
.facts { display: grid; gap: 12px; margin: 0; }
.facts dt { font-size: 13.5px; font-weight: 600; color: var(--ink3); }
.facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.facts dd[data-apk-field="sha256"] { font: 13.5px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; word-break: break-all; color: var(--ink2); }
.qr { display: grid; gap: 8px; justify-items: center; }
/* a white tile in both themes: some scanners do not read a light-on-dark code */
.qr-code { display: block; width: 156px; height: 156px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.qr figcaption { font-size: 13.5px; color: var(--ink3); text-align: center; }
/* on a phone the code would point at the phone itself */
@media (hover: none) and (pointer: coarse) { .qr { display: none; } .build { grid-template-columns: minmax(0, 1fr); } }
.mini-steps { list-style: none; counter-reset: ms; display: grid; gap: 12px; margin-top: 14px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 38px; color: var(--ink2); font-size: 16px; }
.mini-steps li::before {
  content: counter(ms); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--wash); color: var(--accent-text); font: 700 14px/1 var(--head);
}
.mini-steps b { color: var(--ink); }
.platform .actions + .note { margin-top: 14px; }

/* ---------- closing band ---------- */
.closing { padding: clamp(52px, 8vw, 96px) 0; background: var(--wash); border-top: 1px solid var(--line); }
.closing h2 { font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); line-height: 1.12; letter-spacing: -.03em; }
.closing .lead { margin-top: 14px; color: var(--ink); }

/* ---------- long-form pages ---------- */
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 9vw, 96px); }
.doc .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; }
.doc .meta { margin-top: 12px; font-size: 14.5px; color: var(--ink3); }
.doc .intro { margin-top: 20px; font-size: 1.12rem; color: var(--ink2); }
.doc h2 { margin-top: 48px; font-size: 1.45rem; line-height: 1.25; }
.doc h2 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 12px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 10px; }
.doc li::marker { color: var(--accent-text); }
.doc ol li { padding-left: .3em; }
.doc .contact { margin-top: 16px; padding: 20px 22px; border-radius: 16px; background: var(--sunken); }
.doc .contact dd { font-size: 1.05rem; overflow-wrap: anywhere; }
.doc .aside { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--sunken); color: var(--ink2); font-size: 16px; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--head); color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink2); }
.center { text-align: center; }
.center .btn { margin-top: 28px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 max(36px, env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink3); }
.foot .wrap { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot .wm { font-size: 26px; }
.foot-brand p { margin-top: 10px; max-width: 22em; color: var(--ink2); }
.foot nav { display: grid; gap: 2px; align-content: start; justify-items: start; }
.foot h2 { font: 600 14px/1.4 var(--body); letter-spacing: 0; color: var(--ink3); margin-bottom: 6px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 5px 0; }
.foot a:hover { color: var(--accent-text); }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-legal span { display: inline-flex; gap: 20px; }
@media (min-width: 560px) { .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) {
  .foot .wrap { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
