/*
 * Spot Check design system.
 * Dalmatian coat: white ground, black spots, and fire-engine red for deadlines and attention.
 * Display: Funnel Display. Body: Funnel Sans. Signature: Pongo, our spot-matrix face, drawn as SVG.
 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --surface-3: #ebebe7;
  --text: #0a0a0a;
  --muted: #5d5d62;
  --line: #e7e7e3;
  --spot: #0a0a0a;
  --red: #e1251b;
  --red-strong: #b81b13;
  --red-soft: #fdebe9;
  --accent: var(--red);
  --on-accent: #ffffff;
  --danger: var(--red);
  --danger-soft: var(--red-soft);
  --warn: #8a5300;
  --warn-soft: #fbf3e4;
  --invert-bg: #0a0a0a;
  --invert-text: #f5f5f2;
  --board-bg: #0a0a0a;
  --board-text: #f5f5f2;
  --board-muted: #8f8f95;
  --board-line: #222225;
  --board-edge: #0a0a0a;
  --board-red: #ff4a3d;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 24px 48px -24px rgba(10, 10, 10, 0.22);
  --display: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --surface: #121214;
    --surface-2: #19191c;
    --surface-3: #232327;
    --text: #f5f5f2;
    --muted: #a0a0a6;
    --line: #26262a;
    --spot: #f5f5f2;
    --red: #ff4a3d;
    --red-strong: #ff7268;
    --red-soft: #2f1412;
    --on-accent: #0b0b0c;
    --warn: #f0b45a;
    --warn-soft: #2b2112;
    --invert-bg: #f5f5f2;
    --invert-text: #0b0b0c;
    --board-bg: #121214;
    --board-edge: #26262a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .wm { filter: invert(1); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
code { font-family: var(--code); font-size: 0.88em; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* Pongo SVG text: size it with font-size; the SVG keeps its own aspect ratio. */
.pongo { display: block; height: 1em; width: auto; overflow: visible; }

/* Type */
h1, h2, h3 { margin: 0 0 14px; font-family: var(--display); letter-spacing: -0.03em; }
h1 { font-weight: 800; font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: 0.93; letter-spacing: -0.045em; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 0.98; letter-spacing: -0.04em; }
h3 { font-weight: 700; font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 32em; margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand .wm { height: 25px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.96rem; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--text);
  background: var(--text); color: var(--bg); font: 600 1rem var(--body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn.secondary:hover { background: var(--text); color: var(--bg); }
.btn.red, .btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover, .btn.accent:hover { background: var(--red-strong); border-color: var(--red-strong); }
.btn.small { height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 80px 0 0; }
.hero h1 { margin: 0; font-size: clamp(3rem, 8vw, 7.4rem); text-wrap: balance; max-width: 13.5ch; }
.hero-side { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 56px; margin-top: 44px; }
.hero-side .lede { max-width: 31em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--muted); margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li:first-child::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
@media (max-width: 980px) { .hero-side { flex-direction: column; align-items: flex-start; } .hero { padding-top: 44px; } }

/* Departure board: lead time per destination, set in Pongo on a black panel */
.board-wrap { margin-top: 72px; background: var(--board-bg); color: var(--board-text); border-radius: 28px; padding: 30px 36px 26px; border: 1px solid var(--board-edge); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 0 18px; border-bottom: 1px solid var(--board-line); font-size: 0.9rem; color: var(--board-muted); }
.board-head strong { color: var(--board-text); font-weight: 600; }
.board { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 9), auto); column-gap: 64px; }
.board-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; padding: 16px 6px; border-bottom: 1px solid var(--board-line); text-decoration: none; color: var(--board-text); font-size: 34px; border-radius: 10px; transition: background 0.15s ease; }
.board-row:hover { background: color-mix(in srgb, var(--board-text) 7%, transparent); }
.board-row .days { display: flex; align-items: center; gap: 12px; }
.board-row .unit { font: 500 0.82rem var(--body); color: var(--board-muted); width: 2.6em; }
.board-row .full { grid-column: 1 / -1; font: 400 0.84rem var(--body); color: var(--board-muted); }
.board-row.long .days .pongo { color: var(--board-red); }
.board-note { margin: 20px 0 0; font-size: 0.86rem; color: var(--board-muted); max-width: 56em; }
@media (max-width: 1100px) { .board-row { font-size: 26px; } .board { column-gap: 40px; } }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } .board-row { font-size: 26px; } .board-wrap { padding: 22px 18px 18px; border-radius: 22px; } }
@media (max-width: 420px) { .board-row { font-size: 20px; } .board-head span { display: none; } }

/* Sections */
.section { padding: 128px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section { padding: 80px 0; } }

/* AI assistants */
.assist { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.assist h2 { margin-bottom: 20px; }
.assist > div > p { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.connect { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: var(--surface); }
.connect .label { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 8px; }
.connect-row { display: flex; gap: 8px; }
.connect-row code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-2); overflow-x: auto; white-space: nowrap; }
.connect ol { margin: 14px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--muted); display: grid; gap: 4px; }
@media (max-width: 980px) { .assist { grid-template-columns: 1fr; gap: 44px; } }

.chat { border-radius: 28px; background: var(--surface-2); padding: 28px; display: grid; gap: 16px; }
.msg { max-width: 86%; font-size: 0.98rem; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 20px 20px 6px 20px; }
.msg.ai { color: var(--text); }
.sc-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; max-width: 460px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.sc-top .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sc-top .who img { width: 20px; height: 20px; }
.sc-route { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.sc-route .leg { width: 34px; height: 1.5px; background: var(--text); position: relative; }
.sc-route .leg::after { content: ''; position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.sc-main { padding: 18px 18px 6px; }
.sc-main .label { font-size: 0.82rem; color: var(--muted); }
.sc-main .big { font: 800 1.9rem/1.05 var(--display); letter-spacing: -0.03em; margin: 2px 0 14px; }
.sc-steps { list-style: none; margin: 0; padding: 0; }
.sc-steps li { display: grid; grid-template-columns: 64px 14px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.sc-steps .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-steps svg { width: 12px; height: 12px; color: var(--spot); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; }
.sc-foot .price { font: 800 1.4rem var(--display); letter-spacing: -0.02em; }
.sc-foot .price span { font: 400 0.84rem var(--body); color: var(--muted); margin-left: 4px; }

/* Checker */
.checker { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.checker-copy { position: sticky; top: 112px; }
.checker-copy p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 980px) { .checker { grid-template-columns: 1fr; gap: 32px; } .checker-copy { position: static; } }

/* Boarding pass card (the free checker) */
.pass { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.route { display: flex; align-items: center; gap: 16px; font-size: 30px; }
.route .leg { width: 72px; height: 1.5px; background: var(--line); position: relative; }
.route .leg::after { content: ''; position: absolute; right: -3px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.pass-tag { font-size: 0.84rem; color: var(--muted); }
.pass-body { padding: 24px 26px 26px; }
.perf { position: relative; height: 24px; margin: 4px 0; }
.perf::before { content: ''; position: absolute; left: 24px; right: 24px; top: 50%; border-top: 2px dotted var(--surface-3); }
.perf .notch-l, .perf .notch-r { position: absolute; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); transform: translateY(-50%); }
.perf .notch-l { left: -13px; clip-path: inset(0 0 0 50%); }
.perf .notch-r { right: -13px; clip-path: inset(0 50% 0 0); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .legend { font-weight: 600; font-size: 0.9rem; }
.hint { font-size: 0.82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 500 1rem var(--body); font-variant-numeric: tabular-nums; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.pills { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 999px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span { display: inline-block; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.94rem; color: var(--muted); }
.pills input:checked + span { background: var(--text); color: var(--bg); }
.pills input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--text); width: 16px; height: 16px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 6px; margin: 0 0 16px; }
legend { padding: 0 6px; font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
details.more { margin: 4px 0 16px; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: 0.94rem; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
details.more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-weight: 600; }
details.more[open] > summary::before { content: '\2212'; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 16px; }

/* Plan output */
.plan:empty { display: none; }
.plan { margin-top: 24px; }
.banner { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.banner strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.banner.good { background: var(--surface-2); color: var(--text); }
.banner.bad { background: var(--red-soft); color: var(--red-strong); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner ul { margin: 8px 0 0; padding-left: 18px; color: var(--text); opacity: 0.86; font-size: 0.92rem; }
.plan h3 { margin: 22px 0 12px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: 78px 28px 1fr; gap: 0 12px; padding: 0 0 20px; }
.tl-item::before { content: ''; position: absolute; left: 103px; top: 24px; bottom: -2px; width: 0; border-left: 2px dotted var(--surface-3); }
.tl-item:last-child::before { display: none; }
.tl-date { font-size: 0.9rem; font-weight: 600; line-height: 1.3; padding-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-date .dow { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.tl-mark { width: 26px; height: 26px; color: var(--spot); position: relative; z-index: 1; }
.tl-mark svg { width: 100%; height: 100%; display: block; }
.tl-body { min-width: 0; padding-top: 2px; }
.tl-title { font-weight: 600; line-height: 1.35; }
.tl-meta { font-size: 0.86rem; color: var(--muted); margin-top: 3px; }
.tl-tags { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: 1px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.done { background: var(--text); color: var(--bg); }
.chip.late, .chip.redo { background: var(--red-soft); color: var(--red-strong); }
.tl-item.status-late .tl-mark, .tl-item.status-redo .tl-mark { color: var(--red); }
.tl-item.status-done .tl-mark { color: var(--spot); }
.tl-item.arrival .tl-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.tl-item details { margin-top: 6px; font-size: 0.92rem; }
.tl-item details summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; }
.tl-item details p { margin: 8px 0; }
.quote { border-left: 2px solid var(--line); padding-left: 12px; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .plan .tl-item { animation: spot-in 0.42s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .plan .tl-mark { animation: spot-pop 0.5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
}
@keyframes spot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spot-pop { from { transform: scale(0.2); } to { transform: scale(1); } }
@media (max-width: 520px) {
  .tl-item { grid-template-columns: 62px 24px 1fr; gap: 0 10px; }
  .tl-item::before { left: 83px; }
  .tl-mark { width: 22px; height: 22px; }
}
.cta-box { margin-top: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); background: var(--invert-bg); color: var(--invert-text); }
.cta-box .muted { color: color-mix(in srgb, var(--invert-text) 65%, transparent); }
.cta-box .btn { background: var(--invert-text); border-color: var(--invert-text); color: var(--invert-bg); }
.fine { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.steps li { border-top: 2px solid var(--text); padding-top: 26px; }
.steps .num { font-size: 64px; margin-bottom: 30px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 40px; } .steps .num { font-size: 48px; margin-bottom: 20px; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.ticket { position: relative; border-radius: var(--radius-lg); padding: 40px; background: var(--invert-bg); color: var(--invert-text); overflow: hidden; }
.ticket .amount-row { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.ticket .amount { font-size: clamp(64px, 9vw, 104px); }
.ticket .was { color: color-mix(in srgb, var(--invert-text) 55%, transparent); text-decoration: line-through; font-size: 1.05rem; padding-bottom: 6px; }
.ticket .per { color: color-mix(in srgb, var(--invert-text) 72%, transparent); margin: 0 0 26px; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticket li { display: flex; gap: 12px; align-items: flex-start; }
.ticket li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--invert-text); }
.ticket .btn { background: var(--red); border-color: var(--red); color: #fff; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: var(--surface); }
.side-card h3 { margin-top: 0; }
.side-card p { color: var(--muted); }
.side-card h3 + p { margin-top: 0; }
.side-card p + h3 { margin-top: 28px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 500; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }

/* Footer */
.site-footer { padding: 72px 0 48px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .big-wm { width: 100%; height: auto; margin-bottom: 40px; }
.site-footer .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Cards and inner pages */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; }
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 14px; }
.page h2 { font-size: 1.6rem; margin-top: 30px; }
.pet-card { position: relative; }
.pet-card .remove { position: absolute; top: -20px; right: 16px; background: var(--surface); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.9rem; }
pre.json { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); font: 0.8rem/1.5 var(--code); max-height: 320px; overflow: auto; }

/* Packet (desk) */
.packet h1 { font-size: 2rem; }
.packet h2 { font-size: 1.4rem; margin-top: 32px; }
.packet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.packet th, .packet td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.packet th { background: var(--surface-2); font-weight: 600; }
.packet .script { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; white-space: pre-wrap; font: 0.86rem/1.55 var(--code); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

/* Entrance: Pongo spots settle in on first paint. */
@media (prefers-reduced-motion: no-preference) {
  .pongo.pop use { animation: glyph-in 0.5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 28ms); transform-box: fill-box; transform-origin: center; }
}
@keyframes glyph-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

@media print {
  .site-header, .site-footer, .toolbar, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; border: none; padding: 0; }
  .packet h2 { break-after: avoid; }
  .packet table, .packet .script { break-inside: avoid; }
  .plan .tl-item, .plan .tl-mark { animation: none !important; }
}
