/* KHOCAPHE.VN — Apple-style, mobile first. Màu + font theo bộ tem (đỏ #C32629, Lora Italic cho tên sản phẩm) */
@font-face { font-family: "Lora"; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/lora-vietnamese-700-italic.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/lora-latin-ext-700-italic.woff2) format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/lora-latin-700-italic.woff2) format("woff2"); 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: #fff; --bg-alt: #f5f5f7; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7;
  --brand: #c32629; --brand-ink: #9e1c1f; --dark: #000; --dark-2: #161617; --dark-ink: #f5f5f7; --dark-ink-2: #a1a1a6;
  --ok: #1d8a3a; --err: #d70015;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --w: 1024px; --w-wide: 1180px; --gut: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:lang(zh) body, body:lang(zh) { letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.wrap-wide { max-width: var(--w-wide); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.03); }
.nav .wrap { max-width: var(--w-wide); height: 52px; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.logo img { width: 30px; height: 30px; }
.logo small { display: none; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.links a { display: block; padding: 6px 12px; font-size: 13px; color: var(--ink); text-decoration: none; opacity: .82; border-radius: 999px; white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { opacity: 1; background: var(--bg-alt); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 13px; padding: 6px 8px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { background: var(--bg-alt); color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05); min-width: 160px; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.lang li a:hover { background: var(--bg-alt); }
.lang li a[aria-current="true"] { font-weight: 600; }
.lang li a span { color: var(--ink-3); font-size: 12px; }
.nav .pill-sm { display: none; }
.burger { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); font-size: 22px; cursor: pointer; border-radius: 999px; margin-right: -8px; }
.sheet { position: fixed; inset: 52px 0 0; background: #fff; z-index: 49; padding: 12px var(--gut) 120px; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 24px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--bg-alt); letter-spacing: -0.02em; }
.sheet a .ico { color: var(--ink-3); font-size: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 17px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); text-decoration: none; font-weight: 500; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link .ico { font-size: .85em; stroke-width: 2.4; }
.dark .link { color: #ff6b6b; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.pill-sm { min-height: 30px; padding: 0 14px; font-size: 13px; font-weight: 500; }

/* ---------- typography blocks ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--brand); margin-bottom: 8px; letter-spacing: -0.01em; }
.dark .eyebrow { color: #ff6b6b; }
.h-hero { font-size: clamp(40px, 9vw, 80px); line-height: 1.05; }
.h-sec { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; }
.h-hero, .h-sec, .h-card, .lead-txt { text-wrap: balance; }
.h-card { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.1; }
.lead-txt { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.35; color: var(--ink-2); font-weight: 500; letter-spacing: -0.015em; }
.dark .lead-txt, .dark .muted { color: var(--dark-ink-2); }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lead-txt, .center > p { margin-left: auto; margin-right: auto; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; } .mt-xl { margin-top: 64px; }
.measure { max-width: 720px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--dark); color: var(--dark-ink); }
.hero { padding: 48px 0 0; text-align: center; overflow: hidden; }
.hero .lead-txt { max-width: 680px; margin: 16px auto 0; }
.hero .ctas { margin-top: 28px; }
.hero-media { margin: 40px auto 0; max-width: var(--w-wide); padding: 0 var(--gut); }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.hero.alt { padding-bottom: 72px; }
.hero.compact { padding-bottom: 56px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
.stats b { display: block; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.stats span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* tiles */
.tiles { display: grid; gap: 12px; padding: 12px; max-width: var(--w-wide); margin: 0 auto; }
.tile { position: relative; background: var(--bg-alt); border-radius: var(--r-lg); overflow: hidden; text-align: center; display: flex; flex-direction: column; text-decoration: none; }
.tile-body { padding: 44px 24px 24px; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 420px; margin-left: auto; margin-right: auto; }
.tile .ctas { margin-top: 18px; }
.tile img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile.is-dark { background: var(--dark-2); color: var(--dark-ink); }
.tile.is-dark p { color: var(--dark-ink-2); }

/* cards grid */
.grid { display: grid; gap: 12px; }
.card { background: #fff; border-radius: var(--r-md); padding: 28px 24px; }
.alt .card { background: #fff; }
.section:not(.alt):not(.dark) .card { background: var(--bg-alt); }
.dark .card { background: var(--dark-2); }
.card .ico-lg { font-size: 32px; color: var(--brand); margin-bottom: 14px; stroke-width: 1.6; }
.dark .card .ico-lg { color: #ff6b6b; }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.card p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.dark .card p { color: var(--dark-ink-2); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r-md); padding: 24px; position: relative; }
.section:not(.alt) .steps li { background: var(--bg-alt); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 20px; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.steps li.ccp { box-shadow: inset 0 0 0 1.5px var(--brand); }

/* flow: 10 công đoạn dạng danh sách gọn */
.flow { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 8px; }
.flow li { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--r-md); padding: 16px 20px; }
.flow .n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow li.ccp .n { background: var(--brand); color: #fff; }
.flow h3 { font-size: 18px; line-height: 1.25; }
.flow p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.flow .star { color: var(--brand); }

/* roast chart */
.chart { margin-top: 40px; background: var(--dark-2); border-radius: var(--r-lg); padding: 20px 12px 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { text-align: center; font-size: 13px; color: var(--dark-ink-2); margin-top: 6px; }
.phases { display: grid; gap: 12px; margin-top: 12px; }
.phases .card h3 { display: flex; align-items: center; gap: 10px; }
.phases .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* products */
.products { display: grid; gap: 12px; }
.product { background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tier { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.product h3 { font-size: 26px; margin-top: 4px; }
.product .grade { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); white-space: nowrap; }
.price { margin-top: 16px; font-size: 21px; font-weight: 700; }
.price small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .ico { color: var(--ok); margin-top: 3px; stroke-width: 2.4; }
.product .btn { margin-top: auto; }
.product .btn-wrap { margin-top: 20px; display: flex; }
.product .btn-wrap .btn { flex: 1; }

/* retail (theo tem) */
.serif { font-family: "Lora", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; letter-spacing: -0.01em; }
.retail-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.retail-grid > .retail { flex: 0 0 100%; }
.retail { background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.section:not(.alt) .retail { background: #fff; }
.retail img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 1px solid var(--bg-alt); }
.retail-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.kind { font-size: 13px; font-weight: 800; letter-spacing: .28em; color: var(--ink); }
.retail h3 { font-size: 30px; line-height: 1.1; margin-top: 2px; }
.retail .muted { font-size: 15px; margin-top: 4px; min-height: 1.5em; }
.notes { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.6em; margin-top: 12px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 16px; font-size: 14px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.spec { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; font-weight: 500; }
.retail .btn { margin-top: auto; align-self: stretch; }
.retail .spec { margin-bottom: 20px; }
.retail .notes { margin-bottom: 16px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 12px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: var(--gut); }
.scroller::-webkit-scrollbar { display: none; }
.scroller > div { scroll-snap-align: start; display: flex; }
.scroller .retail { flex: 1; }
.scroller .retail h3 { font-size: 26px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: var(--r-md); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--bg-alt); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 600; }
.table td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.kv td:first-child { color: var(--ink-2); width: 38%; font-weight: 400; }
.kv td:last-child { font-weight: 500; }

/* faq */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* gallery / certs */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.certs { display: grid; gap: 12px; }
.cert { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--r-md); padding: 16px; }
.section:not(.alt) .cert { background: var(--bg-alt); }
.cert img { flex: none; width: 96px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cert h3 { font-size: 18px; }
.cert p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* qa chain */
.chain { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); counter-reset: q; }
.chain div { counter-increment: q; background: #fff; border-radius: var(--r-md); padding: 20px; }
.chain div::before { content: counter(q); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.chain b { display: block; font-size: 17px; }
.chain span { color: var(--ink-2); font-size: 14px; }

/* policy */
.policy { display: grid; gap: 32px; }
.toc { background: var(--bg-alt); border-radius: var(--r-md); padding: 20px 24px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--brand); }
.policy article { padding-bottom: 28px; border-bottom: 1px solid var(--bg-alt); }
.policy article h2 { font-size: 28px; }
.policy article ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: #333336; }

/* contact */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--r-md); padding: 20px; text-decoration: none; }
.contact-item .ico { font-size: 26px; color: var(--brand); margin-top: 2px; }
.contact-item small { display: block; color: var(--ink-2); font-size: 14px; }
.contact-item b { font-size: 18px; font-weight: 600; }
.map { margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- lead form ---------- */
.form-wrap { display: grid; gap: 24px; align-items: start; }
.lead { background: #fff; border-radius: var(--r-lg); padding: 28px 20px; box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.alt .lead { box-shadow: none; }
.lead h2 { font-size: 28px; }
.lead > p { color: var(--ink-2); margin-top: 4px; }
.fields { display: grid; gap: 12px; margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend, .field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; white-space: nowrap; cursor: pointer; transition: all .15s; }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid #0071e3; outline-offset: 2px; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; font: 17px/1.3 var(--font); letter-spacing: -0.01em; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; min-height: 50px; -webkit-appearance: none; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.field.bad input { border-color: var(--err); }
.row2 { display: grid; gap: 12px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand); }
.lead .btn { width: 100%; min-height: 52px; margin-top: 4px; }
.form-err { color: var(--err); font-size: 15px; min-height: 0; }
.form-err:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.side { display: grid; gap: 12px; }
.side .contact-item { background: #fff; }
.page-order .form-wrap .lead { order: -1; }
.page-order .section { padding-top: 24px; }

/* thanks */
.code { display: inline-block; margin-top: 20px; padding: 10px 18px; border-radius: 12px; background: var(--bg-alt); font: 600 20px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.code:empty { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--bg-alt); color: var(--ink-2); font-size: 13px; line-height: 1.5; padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); letter-spacing: -0.01em; }
.foot .wrap { max-width: var(--w-wide); }
.foot-top { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.foot-top img { width: 40px; height: 40px; }
.foot-top b { color: var(--ink); font-size: 15px; display: block; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px 0; }
.foot h2 { font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* ---------- mobile dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 rgba(0,0,0,.08), 0 -4px 20px rgba(0,0,0,.05); }
.dock a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; background: var(--bg-alt); }
.dock a.q { background: var(--brand); color: #fff; }
.dock .ico { font-size: 18px; }
.page-order .dock, .page-thanks .dock { grid-template-columns: 1fr 1fr; }
.page-order .dock .q, .page-thanks .dock .q { display: none; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- breakpoints ---------- */
@media (min-width: 600px) {
  :root { --gut: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .retail-grid > .retail { flex-basis: calc((100% - 12px) / 2); }
  .scroller { grid-auto-columns: 44%; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
  .lead { padding: 36px 32px; }
  .steps.grid-5 { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 834px) {
  body { font-size: 17px; }
  .section { padding: 112px 0; }
  .hero { padding-top: 72px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-body { padding: 56px 32px 28px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps.grid-5 { grid-template-columns: repeat(5, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .retail-grid > .retail { flex-basis: calc((100% - 24px) / 3); }
  .scroller { grid-auto-columns: 30%; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .chain { grid-template-columns: repeat(4, 1fr); }
  .form-wrap { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .form-wrap.rev { grid-template-columns: 1.15fr 1fr; }
  .page-order .form-wrap .lead { order: 0; }
  .page-order .section { padding-top: 64px; }
  .policy { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
  .toc { position: sticky; top: 72px; }
  .foot-cols { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .chart { padding: 32px 28px 20px; }
  .card { padding: 32px 28px; }
}
@media (min-width: 1024px) {
  .links { display: flex; }
  .nav .pill-sm { display: inline-flex; }
  .burger, .dock { display: none; }
  .logo small { display: inline; }
  .foot { padding-bottom: 32px; }
  .hero-media img { aspect-ratio: 21 / 9; }
  .scroller { grid-auto-columns: 23%; }
}
@media print { .nav, .dock, .lead, .sheet { display: none !important; } }
