/* Faxpresso site styles. Colours come from brand/README.md. */
:root {
  --espresso: #3A2216;
  --espresso-2: #5A3522;
  --roast: #2A1810;
  --crema: #E39A4F;
  --crema-deep: #C9772F;
  --crema-ink: #A85E1F;   /* crema dark enough for text on cream (AA) */
  --rim: #F0B46E;
  --cream: #FFF3E2;
  --foam: #FFF8EF;
  --paper: #FFFDF8;
  --line: #EAD9C4;
  --ink: #2B1D15;
  --muted: #6F5646;
  --ok: #2F7D4F;
  --err: #B3261E;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(58, 34, 22, .06), 0 8px 24px rgba(58, 34, 22, .08);
  --shadow-lg: 0 2px 4px rgba(58, 34, 22, .06), 0 24px 60px rgba(58, 34, 22, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--foam); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--crema-ink); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 96; color: var(--espresso); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "SOFT" 100, "opsz" 24; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--crema); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--espresso); color: var(--cream); box-shadow: 0 6px 16px rgba(58, 34, 22, .22); }
.btn-primary:hover { background: var(--espresso-2); color: #fff; }
.btn-crema { background: var(--crema); color: var(--roast); }
.btn-crema:hover { background: var(--rim); color: var(--roast); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--espresso); }
.btn-ghost:hover { border-color: var(--crema); color: var(--espresso); }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-quiet { color: var(--espresso); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--crema-ink); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--crema-ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; background: none; border: 0; color: var(--espresso); padding: 6px; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 20px 20px; display: grid; gap: 4px; background: var(--foam); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 10px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
.launch-bar { background: var(--espresso); color: var(--cream); font-size: .92rem; text-align: center; padding: 9px 0; }
.launch-bar a { color: var(--rim); font-weight: 600; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-actions .link-quiet, .header-actions .btn { display: none; }
}

/* ---------- sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--roast); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .muted { color: #D9C2AC; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--crema-ink); margin-bottom: 14px; display: block; }
.section-dark .eyebrow { color: var(--rim); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- hero */
.hero { padding: 72px 0 80px; overflow: hidden; background:
  radial-gradient(900px 420px at 85% 10%, rgba(240, 180, 110, .28), transparent 60%),
  radial-gradient(700px 380px at 0% 100%, rgba(227, 154, 79, .14), transparent 60%), var(--foam); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--crema-deep); }
.hero .lead { max-width: 33em; margin-bottom: 26px; }
.number-search { display: flex; gap: 10px; background: var(--paper); padding: 8px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 520px; }
.number-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem var(--sans); padding: 0 16px; color: var(--ink); }
.number-search input:focus { outline: none; }
.number-search:focus-within { border-color: var(--crema); }
@media (max-width: 480px) {
  .number-search { flex-direction: column; border-radius: 22px; padding: 10px; }
  .number-search input { padding: 12px 10px; }
  .number-search .btn { width: 100%; }
  .price-card { padding: 26px 22px; }
}
.price-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .93rem; color: var(--muted); padding: 0; list-style: none; }
.price-strip li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(58, 34, 22, .18)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

/* ---------- proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.proof ul { list-style: none; margin: 0; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .9rem; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 10px; }
.proof svg { width: 22px; height: 22px; color: var(--crema-deep); flex: none; }

/* ---------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); font: 700 1.1rem/1 var(--serif); color: var(--roast); background: var(--rim); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; margin-bottom: 16px; color: var(--crema-deep); }
.card .ico svg { width: 24px; height: 24px; }
.section-cream .card { background: var(--paper); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--crema) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232A1810' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.section-dark .checks li::before { background-color: var(--rim); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.reverse > :first-child { order: 0; } }

/* spam illustration */
.inbox { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; color: var(--ink); }
.inbox-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; }
.inbox-row + .inbox-row { border-top: 1px solid var(--line); }
.inbox-row b { display: block; font-weight: 600; }
.inbox-row small { color: var(--muted); }
.inbox-row .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-size: 1.1rem; }
.tag { font: 700 11px/1 var(--sans); letter-spacing: .04em; padding: 6px 8px; border-radius: 6px; text-transform: uppercase; }
.tag-ok { background: #E3F2E8; color: var(--ok); }
.tag-spam { background: #FBE4E1; color: var(--err); }
.inbox-row.spam { opacity: .62; }

/* ---------- pricing */
.price-card { background: var(--paper); border: 2px solid var(--espresso); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); max-width: 520px; }
.price-card .plan-name { font: 700 1rem var(--sans); color: var(--crema-ink); text-transform: uppercase; letter-spacing: .1em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 4px; }
.price b { font: 750 3.6rem/1 var(--serif); color: var(--espresso); font-variation-settings: "SOFT" 100, "opsz" 144; }
.price span { color: var(--muted); font-weight: 500; }
.price-card .checks { margin-top: 22px; }
.price-note { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.pricing-grid { display: grid; grid-template-columns: 520px 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--cream); font-weight: 600; color: var(--espresso); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- apps band */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--roast); color: #fff; border-radius: 12px; padding: 9px 16px; text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.store-badge small { display: block; font-size: .68rem; opacity: .8; line-height: 1.1; }
.store-badge b { display: block; font-size: 1.05rem; line-height: 1.1; font-weight: 600; }
.store-badge svg { width: 24px; height: 24px; }
.store-badge[aria-disabled="true"] { cursor: default; }
.soon { font: 700 11px/1 var(--sans); background: var(--rim); color: var(--roast); padding: 4px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--espresso); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--crema-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- final CTA */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #E7D3BF; max-width: 560px; margin: 0 auto 26px; }

/* ---------- prose pages */
.page-head { padding: 64px 0 28px; }
.page-head .lead { max-width: 640px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.callout { background: var(--cream); border-left: 4px solid var(--crema); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0; }
.callout p:last-child { margin: 0; }
.updated { color: var(--muted); font-size: .92rem; }

/* ---------- forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); max-width: 520px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--espresso); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.input { width: 100%; font: 400 1rem var(--sans); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--crema); box-shadow: 0 0 0 4px rgba(227, 154, 79, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--espresso); }
.form-error { color: var(--err); font-weight: 500; margin: 0 0 14px; }
.form-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- dialog (centred, per house rule) */
.dialog { border: 0; border-radius: 22px; padding: 26px 28px; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); box-shadow: var(--shadow-lg); background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(42, 24, 16, .45); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dialog-head h2 { font-size: 1.5rem; margin: 0; }
.dialog-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.release { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.release-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.release-top b { color: var(--espresso); }
.release-top span { color: var(--muted); font-size: .88rem; }
.release h3 { font-size: 1.05rem; margin: 4px 0 6px; font-family: var(--sans); }
.release ul { margin: 0; padding-left: 0; list-style: none; }
.release li { margin: 6px 0; font-size: .95rem; }
.ctag { font: 700 11px/1 var(--sans); padding: 3px 6px; border-radius: 5px; margin-right: 6px; }
.ctag-new { background: #E3F2E8; color: var(--ok); }
.ctag-fixed { background: #FBE4E1; color: var(--err); }
.ctag-changed { background: var(--cream); color: var(--crema-ink); }

/* ---------- footer */
.site-footer { background: var(--roast); color: #D9C2AC; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rim); margin: 6px 0 16px; }
.footer-grid a { display: block; color: #EBDACA; text-decoration: none; margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 43px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.build-badge { background: none; border: 1px solid rgba(255, 255, 255, .15); color: #BFA791; border-radius: 999px; padding: 5px 11px; font: 500 .8rem var(--sans); cursor: pointer; }
.build-badge:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-base { flex-direction: column; align-items: flex-start; } }

/* ---------- motion preference */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@keyframes rise { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.steam path { animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.steam path:nth-child(2) { animation-delay: 1.1s; }
@keyframes steam { 0%, 100% { opacity: .35; transform: translateY(4px); } 50% { opacity: .85; transform: translateY(-4px); } }

@media (max-width: 480px) { .price-card { padding: 26px 22px; } .form-card { padding: 24px 20px; } }
.toc { columns: 2; column-gap: 32px; padding-left: 1.4em; }
@media (max-width: 600px) { .toc { columns: 1; } }

/* ---------- changelog page + feedback chips */
.release-page { background: var(--paper); padding: 22px 24px; margin: 0 0 16px; }
.release-page h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.release-page li { font-size: 1rem; }
.chips legend { font-weight: 600; color: var(--espresso); margin-bottom: 10px; }
.chips label { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; }
.chips input:checked + span { border-color: var(--espresso); background: var(--cream); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--crema); outline-offset: 2px; }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.5; }
@media (max-width: 860px) { aside[style*="sticky"] { position: static !important; } }

/* ---------- number search */
.search-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); max-width: 760px; }
.search-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-row[hidden] { display: none; }
.search-row .field { margin: 0; flex: 1 1 180px; }
.search-row .btn { flex: 0 0 auto; }
select.input { appearance: auto; }
.seg span { padding: 8px 16px; }
.results { margin-top: 26px; }
.results-head { font-weight: 600; color: var(--espresso); margin-bottom: 12px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.num-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.num-card .num { font: 700 1.35rem/1.2 var(--serif); color: var(--espresso); font-variation-settings: "SOFT" 100, "opsz" 36; letter-spacing: .01em; }
.num-card .place { color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.num-card .btn { margin-top: 10px; align-self: flex-start; }
.num-card.skeleton { min-height: 124px; background: linear-gradient(90deg, var(--paper), var(--cream), var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { background: var(--paper); border: 1px dashed var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.pick-number { font: 750 2rem/1.2 var(--serif); color: var(--espresso); margin: 10px 0 4px; font-variation-settings: "SOFT" 100, "opsz" 72; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--crema-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.picked-chip { display: inline-flex; gap: 8px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: 16px; font-weight: 600; color: var(--espresso); }
.picked-chip[hidden] { display: none; }
@media (max-width: 480px) { .num-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .num-card { padding: 14px 12px; } .num-card .num { font-size: 1.08rem; } .num-card .place { font-size: .82rem; } }

/* ---------- help centre + user guide */
.card-link { text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.card-link:hover { border-color: var(--crema); transform: translateY(-2px); color: inherit; }
.card-link h3 { color: var(--espresso); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.topic-grid a { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; text-decoration: none; color: var(--espresso); font-weight: 500; }
.topic-grid a:hover { border-color: var(--crema); }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; }
.guide-toc ol { margin: 0; padding-left: 1.5em; font-size: .93rem; }
.guide-toc li { margin: 4px 0; }
.guide-toc a { text-decoration: none; color: var(--ink); }
.guide-toc a:hover, .guide-toc a.active { color: var(--crema-ink); font-weight: 600; }
.guide-body { max-width: 760px; }
.guide-body h2 { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding-top: 1.2em; }
.guide-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.glossary dt { font-weight: 700; color: var(--espresso); margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-toc { position: static; max-height: none; }
}
.rotate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: .92rem; }
.num-card .num { white-space: nowrap; }
@media (max-width: 480px) { .num-card .num { font-size: clamp(.9rem, 4.3vw, 1.08rem); letter-spacing: 0; } .num-card { padding: 13px 10px; } }
@media (max-width: 600px) { .section { padding: 60px 0; } .page-head { padding: 40px 0 20px; } .hero { padding: 44px 0 56px; } .section-head { margin-bottom: 30px; } }
