/* threefold brand (docs/brand/threefold_brand_guidelines_combined.pdf): warm off-white,
   charcoal, Threefold Sky accent, Soft Stone UI lines; Nudica Mono is the wordmark face. */
@font-face { font-family: "Nudica Mono"; src: url("/fonts/nudicamono-regular-webfont.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nudica Mono"; src: url("/fonts/nudicamono-medium-webfont.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
/* Geist (SIL OFL 1.1, web/fonts/GEIST-OFL.txt), self-hosted: the same variable font Google Fonts serves. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f8f5f2; /* Warm Off-White */
  --fg: #202020; /* Charcoal */
  --mark: #2e3233; /* logo charcoal */
  --accent: #007cb0; /* Threefold Sky */
  --accent-soft: #e6f2f8;
  --muted: #6e6a66;
  --faint: #969696; /* Warm Grey */
  --line: #e2deda; /* Soft Stone */
  --card: #fff;
  --soft: #efebe7;
  --clay: #d2aaa0; /* Soft Clay */
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 24px;
  --font: "Geist", system-ui, sans-serif;
  --mono: "Nudica Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; background: rgb(248 245 242 / 0.85); backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 400; font-size: 22px; letter-spacing: 0; text-decoration: none; color: var(--fg); }
.mark { height: 26px; width: auto; fill: var(--mark); flex: none; }
.nav nav { display: flex; gap: 6px; }
.nav nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav nav a:hover, .nav nav a.active { color: var(--fg); background: var(--soft); }
/* Narrow screens: icons go first, then the links fold into a <details> menu (web/nav.js adds
   aria-expanded and Escape). Shared by the landing and the site pages. */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 500; font-size: 15px; cursor: pointer; user-select: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { background: var(--soft); }
.nav .nav-menu > nav { position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 2px; min-width: 230px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.08); }
.nav .nav-menu > nav a { padding: 10px 14px; border-radius: 12px; }
@media (max-width: 1199px) {
  .nav .nav-links { gap: 2px; }
  .nav .nav-links a { padding: 8px 11px; }
  .nav .nav-links a .ic { display: none; }
}
@media (max-width: 1079px) {
  .nav .nav-links { display: none; }
  .nav-menu { display: block; }
}

main { max-width: 1180px; margin: 0 auto; padding: 24px 32px 80px; min-height: 70vh; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 32px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
.footer { align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; }

/* type */
.eyebrow { text-align: center; font-weight: 500; font-size: 15px; margin: 40px 0 12px; }
.eyebrow::before, .eyebrow::after { content: "•"; margin: 0 8px; }
h1.hero { text-align: center; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 8px auto 20px; max-width: 900px; }
.lede { text-align: center; color: var(--muted); font-size: 20px; line-height: 1.55; max-width: 640px; margin: 0 auto 32px; }
.lede b { color: var(--fg); font-weight: 500; }
h2 { font-size: 34px; letter-spacing: -0.035em; font-weight: 600; margin: 72px 0 8px; }
h2.center, p.center { text-align: center; }
h3 { font-size: 18px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 24px; }
.mono { font-family: var(--mono); }
.label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); font-weight: 500; }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 16px 14px 26px; border-radius: 999px; background: var(--fg); color: #fff; border: 0; text-decoration: none; font-weight: 500; font-size: 17px; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / 0.15); }
.btn .arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--fg); font-size: 16px; }
.btn.sm { padding: 9px 10px 9px 18px; font-size: 14px; box-shadow: none; }
.btn.sm .arrow { width: 22px; height: 22px; font-size: 12px; }
.ghost { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.ghost:hover { border-color: #d4d4d4; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--fg); color: #fff; border-color: var(--fg); }
.chip.static { cursor: default; }

/* status */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.off { background: #d4d4d4; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: #404040; white-space: nowrap; }
.badge.ok { background: #f0fdf4; color: #15803d; } .badge.warn { background: #fffbeb; color: #b45309; } .badge.bad { background: #fef2f2; color: #b91c1c; }

/* form */
.search { position: relative; max-width: 620px; margin: 0 auto; }
.search input { width: 100%; padding: 18px 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 17px; outline: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.search input:focus { border-color: #a3a3a3; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.08); max-height: 420px; overflow: auto; }
.results .group { padding: 10px 12px 4px; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.result:hover { background: var(--soft); }
select, .num { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 500; }
.picker { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; max-width: 820px; margin: 0 auto; }
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; }
.stat .label { margin-top: 6px; }

/* apps */
.icon { width: 44px; height: 44px; border-radius: 11px; border: 1px solid rgb(0 0 0 / 0.06); flex: none; background: var(--soft); }
.icon.lg { width: 84px; height: 84px; border-radius: 20px; }
.icon.sm { width: 32px; height: 32px; border-radius: 8px; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-decoration: none; }
.app-row:hover { background: var(--soft); }
.app-row .rank { width: 22px; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; }
.app-row .t { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .d { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .meta { min-width: 0; flex: 1; }
.app-row.shared { background: #f5f5f5; box-shadow: inset 3px 0 0 var(--fg); }
.rating { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* pillars */
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar .big { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }

/* storefronts */
.store { padding: 20px; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scroll-snap-type: x mandatory; }
.shots img { height: 300px; width: auto; border-radius: 14px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--soft); }
.shots.land img { height: 170px; }
.desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.closed { color: var(--faint); font-size: 14px; padding: 14px 20px; border-radius: 16px; border: 1px dashed var(--line); }

/* agent */
.agent { max-width: 720px; margin: 0 auto; }
.bubble { background: var(--fg); color: #fff; padding: 12px 18px; border-radius: 20px 20px 4px 20px; width: fit-content; margin-left: auto; font-size: 15px; }
.call { color: var(--muted); font-size: 13px; margin: 14px 0 8px; font-family: var(--mono); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); border-radius: 16px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; overflow-x: auto; }
.code code { white-space: pre; }
.tool { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tool:first-child { border-top: 0; }
.tool .mono { font-weight: 500; }

/* checklist */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; color: #fff; }
.tick.ok { background: var(--ok); } .tick.bad { background: var(--bad); }

input[type="range"] { width: 100%; accent-color: var(--fg); }
.slider { display: grid; gap: 8px; }
.slider .row { justify-content: space-between; }

.empty, .loading, .error { text-align: center; color: var(--muted); padding: 60px 0; }
.error { color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main { padding: 16px 16px 60px; }
  .nav { padding: 14px 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .shots img { height: 220px; }
  h2 { font-size: 28px; margin-top: 48px; }
}
@media print {
  .nav, .footer, .noprint { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; }
}

/* ===== visual layer: icons, brand tiles, landing ===== */
.ic { flex: none; vertical-align: -0.15em; }
.nav nav a { display: inline-flex; align-items: center; gap: 7px; }
.li { vertical-align: -3px; color: var(--fg); }

.brand { display: inline-grid; place-items: center; border-radius: 28%; color: #fff; flex: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.brand svg { width: 58%; height: 58%; }
.brand-appstore { background: linear-gradient(180deg, #1ac7fd, #1d6ff2); }
.brand-googleplay { background: #fff; color: #01875f; border: 1px solid var(--line); }
.brand-tiktok { background: #000; }
.brand-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.brand-meta { background: #fff; color: #0467df; border: 1px solid var(--line); }
.brand-youtube { background: #ff0000; }
.brand-google { background: #fff; color: #4285f4; border: 1px solid var(--line); }
.brand-xiaohongshu { background: #ff2442; }
.brand-claude { background: #d97757; }
.brand-openai { background: #000; }
.soon { opacity: 0.35; filter: grayscale(1); }

.tile-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--fg); flex: none; }
.tile-ic.sm { width: 30px; height: 30px; border-radius: 9px; }
.tile-ic.big { width: 56px; height: 56px; border-radius: 16px; }
.pill-ok, .pill-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.pill-ok { background: #f0fdf4; color: #15803d; }
.pill-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pill-soon { background: var(--soft); color: var(--muted); }
h2.ih { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.flag-circle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 20px; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / 0.06); }
.flag-circle.sm { width: 26px; height: 26px; font-size: 14px; }
.flag-circle.xl { width: 84px; height: 84px; font-size: 46px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.08); }
.duel { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 4px 0 8px; }
.duel-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); color: #fff; }

/* hero */
.hero-wrap { position: relative; margin: -24px calc(50% - 50vw) 0; padding: 70px 32px 90px; min-height: 720px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding-top: 30px; }
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; pointer-events: auto; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transform: scale(var(--s)) rotate(var(--r)); transform-origin: top left; animation: float 9s ease-in-out infinite; transition: opacity 0.2s; opacity: 0.9; }
.floater:hover { opacity: 1; z-index: 3; }
.floater .shot { width: 112px; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 16px; box-shadow: 0 14px 40px rgb(0 0 0 / 0.14); background: var(--soft); }
.floater .tag { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #404040; }
.floater .tag img { width: 16px; height: 16px; border-radius: 5px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.trusted { text-align: center; font-weight: 500; font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 18px; }
.trusted .flags { display: inline-flex; }
.trusted .flags span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--bg); margin-left: -7px; font-size: 15px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); }
.inline-icon { display: inline-block; width: 0.82em; height: 0.82em; border-radius: 0.2em; vertical-align: -0.06em; box-shadow: 0 6px 18px rgb(0 0 0 / 0.15); }
.search-ic { position: absolute; left: 22px; top: 50%; translate: 0 -50%; color: var(--muted); z-index: 1; display: flex; }
.search input { padding-left: 54px; }
.section { margin-top: 30px; }

/* spotlight */
.spotlight { max-width: 900px; margin: 0 auto; padding: 24px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.06); }
.flag-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.flag-tab { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.flag-tab.on { transform: scale(1.15); box-shadow: 0 0 0 2px var(--fg); }
.spot-shots { display: flex; gap: 12px; justify-content: center; min-height: 200px; }
.spot-shots img { max-height: 380px; max-width: 32%; border-radius: 16px; border: 1px solid var(--line); animation: fadein 0.35s ease; object-fit: contain; }
@keyframes fadein { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; overflow: hidden; min-height: 220px; }
.span2 { grid-column: span 2; }
.tile-head { display: flex; justify-content: space-between; align-items: center; }
.tile-n { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile .label { margin-top: -6px; }
.tile.dark { background: var(--fg); color: #fff; border-color: var(--fg); }
.tile.dark .tile-ic { background: #262626; color: #fff; }
.tile.dark .muted, .tile.dark .call { color: #a3a3a3; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.tile.dark .mini-row { border-color: #262626; }
.mini-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.flags-sm { font-size: 13px; letter-spacing: -2px; white-space: nowrap; }
.reel { margin: 0 -24px -24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.reel-track { display: flex; gap: 8px; width: max-content; animation: reel 40s linear infinite; }
.reel-track img { height: 170px; border-radius: 12px; }
@keyframes reel { to { transform: translateX(-50%); } }
.bar-row { display: grid; grid-template-columns: 22px 1fr 40px; align-items: center; gap: 8px; font-size: 14px; padding: 2px 0; }
.bar { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #16a34a); }
.agent-mini { background: #171717; border-radius: 16px; padding: 12px 14px; }
.agent-mini .call { margin: 0 0 6px; }

/* insight */
.insight { text-align: center; padding: 70px 0 10px; }
.insight-n { font-size: clamp(80px, 13vw, 150px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(180deg, #0a0a0a, #737373); -webkit-background-clip: text; background-clip: text; color: transparent; }
.insight-t { font-size: 22px; line-height: 1.45; max-width: 640px; margin: 14px auto 0; letter-spacing: -0.01em; }

/* steps */
.steps { max-width: 560px; margin: 0 auto; box-shadow: 0 20px 60px rgb(0 0 0 / 0.06); }
.step { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); text-decoration: none; margin-top: 8px; font-weight: 500; }
.step:hover { background: #ececee; }
.step .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 13px; }

/* finale */
.finale { position: relative; margin: 100px calc(50% - 50vw) -80px; padding: 80px 32px 230px; overflow: hidden; }
.pile { position: absolute; left: 0; right: 0; bottom: -10px; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 6px; padding: 0 20px; }
.pile img { width: 58px; height: 58px; border-radius: 15px; transform: rotate(var(--r)); box-shadow: 0 6px 16px rgb(0 0 0 / 0.12); animation: drop 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: var(--d); }
@keyframes drop { from { translate: 0 -260px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* compare + app */
.icon-strip { display: flex; margin-top: auto; padding-left: 8px; }
.icon-strip img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff; margin-left: -8px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.1); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 9 / 16; background: var(--soft); }
.gallery figcaption { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.tick .ic { color: #fff; }
.badge .ic { margin-right: -2px; }
.ghost .brand { box-shadow: none; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .floater:nth-child(n + 7) { display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .floaters { opacity: 0.35; }
  .hero-wrap { min-height: 0; }
  .spot-shots img { max-width: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .floater, .reel-track, .pile img, .spot-shots img { animation: none; }
}
.step .num { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; }
.span3 { grid-column: 1 / -1; min-height: 0; }
.span3 .reel-track img { height: 230px; }
@media (max-width: 900px) { .span3 { grid-column: 1 / -1; } }
.gallery.land { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery.land img { aspect-ratio: 16 / 9; }
.tile { min-height: 0; }
.bento .tile { min-height: 220px; }
.bento .span3 { min-height: 0; }

/* ===== threefold brand layer ===== */
.btn .arrow { background: var(--accent); color: #fff; }
.chip.on { background: var(--fg); border-color: var(--fg); }
.flag-tab.on { box-shadow: 0 0 0 2px var(--accent); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav nav a.active { color: var(--accent); background: var(--accent-soft); }
.eyebrow, .label, .trusted, .call, .tile-n .pill-ok, .pill-soon { font-family: var(--mono); }
.eyebrow { text-transform: lowercase; letter-spacing: 0.02em; }
.bar i { background: linear-gradient(90deg, #4fb3dd, var(--accent)); }
.insight-n { background: linear-gradient(180deg, var(--fg), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.app-row.shared { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.step .num, .duel-ic { background: var(--accent); }
.tile.dark { background: var(--mark); border-color: var(--mark); }
.tile.dark .tile-ic { background: #3a3f40; }
.agent-mini { background: #252829; }
.stat + .stat, .check, .tool, .mini-row, hr { border-color: var(--line); }
a.ghost:hover { border-color: var(--accent); color: var(--accent); }
.footer { color: var(--faint); border-color: var(--line); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); }
.foot-brand .mark { height: 16px; fill: var(--faint); }

/* The mark as a cropped background overlay (guidelines: 5–10% opacity, partially cropped, never centred). */
.hero-wrap::before, .finale::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; opacity: 0.07;
  background: url("/brand/logo-icon-transparent.svg") no-repeat center / contain;
}
.hero-wrap::before { width: 900px; height: 900px; right: -330px; top: -120px; }
.finale::before { width: 700px; height: 700px; left: -300px; top: -80px; }
.finale > * { position: relative; }
.finale .pile { position: absolute; }
input[type="range"] { accent-color: var(--accent); }

/* Narrow screens: the floating screenshots would cover the headline, so they become one small row
   under the search box (the first three), and the hero clips sideways. The spotlight's screenshots
   shrink to fit the card instead of widening the page. */
.spot-shots img { min-width: 0; }
@media (max-width: 700px) {
  .hero-wrap { display: flex; flex-direction: column; overflow-x: clip; min-height: 0; padding: 36px 16px 48px; }
  .hero-wrap::before { display: none; }
  .hero-inner { padding-top: 0; }
  .floaters { position: static; order: 2; display: flex; justify-content: center; gap: 12px; margin-top: 28px; opacity: 1; }
  .floater { position: static; transform: rotate(var(--r)); animation: none; opacity: 1; }
  .floater:nth-child(n + 4) { display: none; }
  .floater .shot { width: 84px; border-radius: 12px; }
  .floater .tag { max-width: 84px; }
  .trusted { flex-wrap: wrap; }
  .spot-shots img { max-width: 31%; }
}
