/* DANGO · ABTI site. Tokens follow the design handoff's tokens.json. */
:root {
  --ink: #1C1C1C;
  --muted: #6E6E73;
  --tile: #F6F6F6;
  --tile-hover: #EFEFF1;
  --line: #E6E6E8;
  --row: #F0F0F1;
  --green: #16A34A;
  --green-text: #15803D;
  --spark: #2F7BF5;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 22px 0 18px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand svg { width: 14px; height: 14px; flex: none; }
.kind { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: -10px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav a[aria-current] { font-weight: 600; }
.lang { font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lang [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #FFFFFF; text-decoration: none;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 13px 22px; border-radius: 999px;
}
.btn:hover { background: #000000; }
.btn-sm { font-size: 14px; padding: 7px 14px; }
.nav .btn-sm:hover { text-decoration: none; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #ECECEE; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.sec { padding: 52px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.sec-head .note { margin-left: auto; font-size: 14px; color: var(--muted); }
.sec-foot { margin-top: 18px; font-size: 15px; }
.fine { font-size: 13.5px; color: var(--muted); }

.page-head { padding: 28px 0 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.page-head .sub { margin-top: 10px; font-size: 16.5px; color: var(--muted); max-width: 44em; }
.page-head .sub b { color: var(--ink); font-weight: 600; }
.legend { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- home: the story (home.py), in the launch film's order ---------- */
.hero { text-align: center; padding: 56px 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 13.5px; color: var(--muted); letter-spacing: 0.02em; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 8vw, 84px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
.hero .lede { margin: 22px auto 0; max-width: 34em; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.hero .cta-row, .finale .cta-row { justify-content: center; }
.hero .cta-row { flex-direction: column; gap: 12px; }
.meta { font-size: 13.5px; color: var(--muted); }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn .apple { width: 15px; height: 17px; margin-top: -2px; }
.hero-office { margin: 48px auto 0; max-width: 980px; }
.hero-office img { width: 100%; border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(28, 28, 28, 0.35), 0 0 0 1px rgba(28, 28, 28, 0.04); }

.big { font-size: clamp(30px, 4.8vw, 50px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.12; text-align: center; }
.sec.bill { padding: 96px 0 72px; border-top: 0; }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; gap: 20px; max-width: 860px; margin: 48px auto 0; }
.receipt, .worth { border-radius: 26px; padding: 26px 28px; }
.receipt { background: var(--tile); }
.worth { background: var(--ink); color: #FFFFFF; }
.ledger .lab { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.worth .lab { color: rgba(255, 255, 255, 0.6); }
.ledger .amt { margin-top: 6px; font-size: clamp(34px, 5vw, 52px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.receipt .amt { color: #8E8E93; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(142, 142, 147, 0.5); }
.ledger .sub { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.worth .sub { color: rgba(255, 255, 255, 0.7); }
.vs { font-size: 15px; font-weight: 600; color: var(--green-text); background: #E8F7EE; border-radius: 999px; padding: 8px 14px; }
.bill .fine { margin-top: 18px; text-align: center; }

.sec { padding: 88px 0; }
.sec .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 36px; }
.sec .sec-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.sec .sec-head .note { margin-left: 0; max-width: 40em; font-size: 17px; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px minmax(0, 1fr); align-items: center; gap: 18px; background: var(--tile); border-radius: 24px; padding: 14px 24px 14px 28px; }
.step .what { font-size: 18px; font-weight: 600; }
.step .arrow { font-size: 22px; color: #B8B8BD; }
.step img { width: 96px; }
.step .who { display: flex; flex-direction: column; gap: 3px; }
.step .who b { font-size: 18px; font-weight: 650; }
.step .who .mono { font-size: 13.5px; }

.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.job { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--tile); border-radius: 20px; padding: 16px 8px 16px; text-align: center; transition: transform 0.25s ease, background 0.25s ease; }
.job:hover { background: var(--tile-hover); transform: translateY(-3px); }
/* Hats make some taller: same box, bottom-aligned, so bodies and names line up. */
.job img { width: 84px; height: 91px; object-fit: contain; object-position: 50% 100%; }
.job .jn { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.job .jr { font-size: 15px; font-weight: 600; }
.job .jr small { font-size: 11px; font-weight: 400; color: var(--muted); }

.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 56px; align-items: center; }
.desk h2, .share h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.desk-text p, .share-text p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; background: var(--tile); border-radius: 999px; padding: 7px 14px; }
.state i { width: 8px; height: 8px; border-radius: 50%; }
.desk-art { position: relative; min-height: 460px; }
.screen { position: absolute; inset: 0 22% 6% 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #CFE3FF 0%, #E9D9FF 45%, #FFE3D1 100%); box-shadow: 0 24px 60px -28px rgba(28, 28, 28, 0.4); }
.screen-bar { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(8px); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(28, 28, 28, 0.18); }
/* Left of the open panel, so the panel never covers it. */
.screen .pet { position: absolute; left: 8%; bottom: 16px; width: 44%; max-width: 230px; animation: bob 3s ease-in-out infinite; }
.panel-shot { position: absolute; right: 0; top: 7%; width: 46%; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(28, 28, 28, 0.45), 0 0 0 1px rgba(28, 28, 28, 0.06); background: #FFFFFF; }
.panel-shot img { width: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.tools-sec { border-top: 0; padding-top: 40px; }
.tools-card { background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 56px 48px; text-align: center; }
.tools-card h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; letter-spacing: -0.03em; }
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.tool { font-family: var(--mono); font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 9px 18px; }
.tools-card p { margin: 24px auto 0; max-width: 34em; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }

.boss-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.boss .dims { list-style: none; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); }
.card-shot { margin: 0; }
.card-shot img { width: 100%; max-width: 400px; margin: 0 auto; border-radius: 24px; box-shadow: 0 30px 70px -26px rgba(28, 28, 28, 0.4), 0 0 0 1px rgba(28, 28, 28, 0.05); }
.boss .grid16 { margin-top: 40px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.boss .mini { padding: 10px 4px 12px; }
.boss .mini img { width: 64px; margin-bottom: 4px; }
.boss .sec-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.share-shot { margin: 0; }
.share-shot img { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 22px; box-shadow: 0 30px 70px -26px rgba(28, 28, 28, 0.4), 0 0 0 1px rgba(28, 28, 28, 0.05); transform: rotate(2deg); }

#privacy .privacy { list-style: none; margin: 0; padding: 0; }

.finale { text-align: center; padding: 72px 0 96px; }
.finale-dango { width: 150px; margin: 0 auto 18px; animation: bob 3s ease-in-out infinite; }
.finale h2 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.finale .btn { margin-top: 30px; }
.finale .btn-light { background: var(--ink); color: #FFFFFF; }
.finale .btn-light:hover { background: #000000; }
.finale .meta { margin-top: 14px; }

/* Shown as they scroll in (home.py's script adds .anim, then .in). */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .screen .pet, .finale-dango { animation: none; }
  .job { transition: none; }
}

/* ---------- home: dimensions ---------- */
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dim { background: var(--tile); border-radius: 20px; padding: 20px 22px; }
.dim-pair { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 18px; font-weight: 650; }
.dim-pair .mono { font-size: 20px; font-weight: 600; margin-right: 4px; }
.dim-pair .sep { color: var(--muted); font-weight: 400; }
.dim p { margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* ---------- home: 16-type grid ---------- */
.grid16 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: var(--tile); border-radius: 18px; padding: 14px 10px 16px; text-decoration: none; }
.mini:hover { background: var(--tile-hover); }
.mini img { width: 92px; margin-bottom: 6px; }
.mini .code { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.mini .name { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* ---------- home: privacy ---------- */
.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.priv { background: var(--tile); border-radius: 20px; padding: 20px 22px; }
.priv h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; }
.priv h3 svg { width: 18px; height: 18px; flex: none; }
.priv p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- dark call-to-action ---------- */
.cta-dark { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 26px 26px 26px 30px; }
.cta-dark .t { font-size: 22px; font-weight: 650; line-height: 1.3; }
.cta-dark .s { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.cta-dark .btn { margin-left: auto; }
.cta-wrap { padding: 8px 0 56px; }

/* ---------- types page ---------- */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.col-head { font-family: var(--mono); font-size: 13.5px; font-weight: 600; padding: 0 2px 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.type-tile { display: flex; align-items: center; gap: 14px; background: var(--tile); border-radius: 20px; padding: 16px 18px 16px 12px; text-decoration: none; }
.type-tile:hover { background: var(--tile-hover); }
.type-tile img { width: 96px; flex: none; }
.tt-text { display: flex; flex-direction: column; min-width: 0; }
.tt-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.tt-head .code { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; }
.tt-head .name { font-size: 18px; font-weight: 650; line-height: 1.3; }
.tt-text .roast-s { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.pairs-note { margin: 18px 0 28px; font-size: 14px; color: var(--muted); }

/* ---------- type page ---------- */
.back { display: inline-block; margin: 4px 0 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.type-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: 0 0 48px; }
.type-art img { width: 100%; max-width: 480px; margin: 0 auto; }
.type-id h1 { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.type-id .code { font-family: var(--mono); font-size: clamp(48px, 7vw, 68px); font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.type-id .name { font-size: clamp(30px, 4.4vw, 42px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.roast { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 20px; font-weight: 500; line-height: 1.45; }
.roast .q { flex: none; font: 700 46px/0.9 Georgia, "Times New Roman", serif; color: #D4D4D8; }
.portrait { margin-top: 12px; font-size: 16px; color: var(--muted); }
.type-id .cta-row { margin-top: 26px; }

.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.letter-row { display: flex; gap: 16px; align-items: flex-start; background: var(--tile); border-radius: 20px; padding: 18px 20px; }
.letter-box { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-family: var(--mono); font-size: 23px; font-weight: 600; line-height: 46px; text-align: center; }
.lr-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.lr-head b { font-size: 18px; font-weight: 650; }
.lr-head .other { font-size: 13px; color: var(--muted); }
.letter-row p { margin-top: 4px; font-size: 15px; line-height: 1.6; }

.match { display: flex; align-items: center; gap: 16px; background: var(--tile); border-radius: 16px; padding: 12px 20px 12px 12px; text-decoration: none; }
.match:hover { background: var(--tile-hover); }
.match img { width: 104px; flex: none; }
.match-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.match .m1 { font-size: 18px; font-weight: 650; }
.match .m1 .mono { margin-right: 6px; letter-spacing: 0.04em; }
.match .m2 { font-size: 15px; color: var(--muted); }
.match .arrow { margin-left: auto; padding-left: 8px; font-size: 22px; color: var(--muted); }
.match-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- how page ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { background: var(--tile); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--tile-hover); }

.rules { border-top: 1px solid var(--row); }
.rule { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--row); }
.rule-name { font-size: 17px; font-weight: 650; }
.rule-name .mono { font-weight: 600; margin-right: 4px; }
.rule-name .sep { color: var(--muted); font-weight: 400; margin: 0 6px; }
.rule p { font-size: 15.5px; line-height: 1.65; }
.notes { margin: 16px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.notes li + li { margin-top: 6px; }

.tiers { border-top: 1px solid var(--row); }
.tier { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--row); }
.bars { display: flex; align-items: flex-end; gap: 3px; width: 40px; height: 24px; flex: none; }
.bars span { width: 6px; border-radius: 2px; background: #E3E3E6; }
.bars span.on { background: var(--ink); }
.tier-text { flex: 1; min-width: 0; }
.tier-text b { display: block; font-size: 17px; font-weight: 650; }
.tier-text span { display: block; font-size: 14.5px; color: var(--muted); }
.tier .range { flex: none; font-size: 15px; font-weight: 600; white-space: nowrap; }

.mrows { border-top: 1px solid var(--row); }
.mrow { display: grid; grid-template-columns: 96px 170px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--row); }
.mrow .range { font-size: 15px; font-weight: 600; white-space: nowrap; }
.mrow b { font-size: 17px; font-weight: 650; }
.mrow span.l { font-size: 14.5px; color: var(--muted); }
.formula { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.intro { margin-bottom: 16px; font-size: 15.5px; color: var(--muted); max-width: 46em; }
.roles { border-top: 1px solid var(--row); }
.role { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--row); }
.role > img { width: 68px; flex: none; }
.role-text { flex: 1; min-width: 0; }
.role-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.role-text span.c { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.alts { display: flex; gap: 4px; flex: none; }
.alts img { width: 38px; }

.hidden { margin-top: 18px; background: var(--tile); border-radius: 20px; padding: 18px 20px 16px; }
.hidden-head { font-size: 14.5px; color: var(--muted); }
.hidden-head b { color: var(--ink); font-weight: 650; font-size: 16px; margin-right: 8px; }
.hidden-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hidden-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; text-align: center; }
.hidden-grid img { width: 64px; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 8px; padding: 26px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 16px; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .desk, .share, .boss-grid { grid-template-columns: minmax(0, 1fr); }
  .desk-art { min-height: 0; aspect-ratio: 1 / 0.92; }
  .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .boss .grid16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .type-hero { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 28px 0 8px; }
  .br { display: none; }
  .hero-office { margin-top: 32px; }
  .hero-office img { border-radius: 18px; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .vs { justify-self: center; }
  .step { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img what" "img who"; gap: 4px 14px; padding: 14px 16px; }
  .step .what { grid-area: what; font-size: 16px; }
  .step .arrow { display: none; }
  .step img { grid-area: img; width: 72px; }
  .step .who { grid-area: who; }
  .step .who b { font-size: 16px; }
  .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .job img { width: 64px; height: 69px; }
  .tools-card { padding: 40px 22px; border-radius: 24px; }
  .sec { padding: 64px 0; }
  .sec.bill { padding: 72px 0 48px; }
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .type-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .type-tile img { width: 80px; }
}
@media (max-width: 640px) {
  .top { padding: 16px 0 12px; gap: 10px 16px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; padding-top: 10px; border-top: 1px solid var(--row); }
  .nav .btn-sm { margin-left: auto; }
  .sec { padding: 40px 0; }
  .sec-head .note { margin-left: 0; width: 100%; }
  .dims, .letters { grid-template-columns: minmax(0, 1fr); }
  .grid16 { gap: 8px; }
  .mini { padding: 10px 4px 12px; border-radius: 14px; }
  .mini img { width: 62px; margin-bottom: 4px; }
  .mini .code { font-size: 11px; }
  .mini .name { font-size: 12.5px; }
  .cta-dark { padding: 22px; }
  .cta-dark .btn { margin-left: 0; width: 100%; }
  .roast { font-size: 18px; }
  .match { gap: 12px; padding: 10px 14px 10px 10px; }
  .match img { width: 76px; }
  .match .m1 { font-size: 16px; }
  .match .m2 { font-size: 14px; }
  .mrow { grid-template-columns: 76px minmax(0, 1fr); }
  .mrow span.l { grid-column: 2; }
  .tier { gap: 14px; }
  .role { gap: 12px; }
  .role > img { width: 56px; }
  .alts img { width: 30px; }
  .hidden-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .foot nav { margin-left: 0; width: 100%; }
}
