/* PackPerfect site layout. Reads tokens from theme.css only. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .word { font-family: var(--font-heading); font-weight: var(--heading-weight); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: var(--space-4); }
.narrow { max-width: 720px; }

.skip { position: absolute; left: var(--space-4); top: -100px; padding: var(--space-3) var(--space-4); background: var(--action); color: var(--on-action); border-radius: var(--radius-md); font-weight: 700; }
.skip:focus { top: var(--space-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tuck { display: block; overflow: visible; }

/* Tuck colours (same roles as the app's Tuck.css) */
.tuck__ground { fill: var(--illustration-ground); }
.tuck__body { fill: var(--illustration-body); stroke: var(--illustration-outline); }
.tuck__shine { fill: none; stroke: var(--illustration-shine); }
.tuck__band { fill: var(--illustration-band); stroke: var(--illustration-outline); }
.tuck__wheel { fill: var(--illustration-outline); }
.tuck__line { fill: none; stroke: var(--illustration-outline); }
.tuck__eye { fill: var(--illustration-eye); stroke: var(--illustration-outline); }
.tuck__pupil { fill: var(--illustration-pupil); }
.tuck__blush { fill: var(--illustration-blush); }
.tuck__mouth { fill: var(--illustration-pupil); stroke: var(--illustration-outline); }
.tuck__tongue { fill: none; stroke: var(--illustration-blush); }
.tuck__drop { fill: var(--illustration-accent); stroke: var(--illustration-outline); }
.tuck__mark { fill: none; stroke: var(--illustration-accent); }
.tuck__dot { fill: var(--illustration-accent); }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.lockup { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 48px; color: var(--text); text-decoration: none; }
.lockup img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.word { font-size: 22px; letter-spacing: -0.02em; }
.nav ul { display: flex; align-items: center; gap: var(--space-2); }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3); color: var(--text); text-decoration: none; border-radius: var(--radius-md); font-weight: 600; }
.nav a:hover { background: var(--track); }
.nav a[aria-current] { color: var(--accent); }
.nav a.button { padding-inline: var(--space-4); color: var(--on-action); }
.nav a.button:hover { background: var(--action); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-6);
  background: var(--action); color: var(--on-action);
  border-radius: var(--radius-md); font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--line-strong); }

/* Hero */
.hero { padding-block: var(--space-8) var(--space-16); }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
h1 { font-size: clamp(38px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-muted); margin-top: var(--space-4); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.note { margin-top: var(--space-4); font-size: 15px; color: var(--text-muted); }

/* Phone mock */
.stage { position: relative; display: grid; justify-items: center; padding-bottom: 104px; }
.stage .mascot { position: absolute; right: calc(50% - 150px); bottom: 0; z-index: 2; }
.phone {
  width: min(100%, 320px);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.06);
  padding: var(--space-6) var(--space-4) var(--space-4);
  display: grid; gap: var(--space-4);
  font-size: 15px; line-height: 1.35;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.phone-top h3 { font-size: 20px; }
.phone-top small { display: block; color: var(--text-muted); font-size: 13px; }
.ring { width: 52px; height: 52px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .t { stroke: var(--track); }
.ring .v { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font: 700 13px var(--font-body); fill: var(--text); }
.group-h { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); display: flex; justify-content: space-between; }
.rows { display: grid; }
.row { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.tick { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; }
.row.done .tick { background: var(--success); border-color: var(--success); color: var(--surface-raised); }
.row.done .name { color: var(--text-muted); text-decoration: line-through; }
.name { flex: 1; font-weight: 600; }
.where { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--track); border-radius: 999px; padding: 2px var(--space-2); white-space: nowrap; }
.bag { border-radius: var(--radius-lg); background: var(--error-soft); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-2); }
.bag-top { display: flex; justify-content: space-between; gap: var(--space-2); font-weight: 700; }
.bag-top span:last-child { color: var(--error); }
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--error); border-radius: 999px; }
.bag p { font-size: 13px; color: var(--text-muted); }

/* Sections */
.section { padding-block: var(--space-12); }
.section-head { margin-bottom: var(--space-8); max-width: 34em; }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); margin-top: var(--space-3); font-size: 18px; }

.steps { display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: var(--on-action); display: grid; place-items: center; font-weight: 800; font-family: var(--font-heading); margin-bottom: var(--space-2); }
h3 { font-size: 20px; line-height: 1.2; }
.steps p, .split p { color: var(--text-muted); }

.split { display: grid; gap: var(--space-8); align-items: center; }
.split .copy { display: grid; gap: var(--space-4); }
.split .art { display: grid; justify-items: center; }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 999px; padding: var(--space-2) var(--space-4); font-weight: 600; }

.promises { display: grid; gap: var(--space-3); }
.promises li { display: flex; gap: var(--space-3); align-items: baseline; }
.promises li::before { content: "✓"; font-weight: 800; color: var(--success); }

/* Closing band */
.band { background: var(--hero-bg); color: var(--hero-text); }
.band .wrap { display: grid; gap: var(--space-6); justify-items: start; padding-block: var(--space-16); }
.band p { font-size: 18px; max-width: 30em; }
.band .button { background: var(--hero-action); color: var(--on-hero-action); }
.band a:focus-visible { outline-color: var(--hero-text); }

/* FAQ */
.page-head { padding-block: var(--space-8) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.faq { display: grid; gap: var(--space-3); padding-bottom: var(--space-16); }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 var(--space-6); }
.faq summary { cursor: pointer; font-weight: 700; padding-block: var(--space-4); min-height: 56px; display: flex; align-items: center; }
.faq details[open] summary { color: var(--accent); }
.faq details p { color: var(--text-muted); padding-bottom: var(--space-4); }

/* Download */
.stores { display: grid; gap: var(--space-3); margin-block: var(--space-8); }
.store { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.store h2 { font-size: 24px; letter-spacing: 0; }
.store p { color: var(--text-muted); }
.soon { background: var(--track); color: var(--text); border-radius: 999px; padding: var(--space-2) var(--space-4); font-weight: 700; white-space: nowrap; }
.store-note { color: var(--text-muted); margin-top: var(--space-3); }
.store-note:last-of-type { padding-bottom: var(--space-16); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: var(--space-16); padding-block: var(--space-8) var(--space-12); display: grid; gap: var(--space-4); color: var(--text-muted); font-size: 15px; }
.band + .foot { margin-top: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 800px) {
  .hero { padding-block: var(--space-16) var(--space-24); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split.flip .art { order: -1; }
  .section { padding-block: var(--space-16); }
}
@media (max-width: 799px) {
  .nav .hide-tablet { display: none; }
}
@media (max-width: 560px) {
  .nav .hide-phone { display: none; }
  .stage .mascot { right: 8px; }
}
/* Fit the header on phones: tighter spacing, and below 360px the logo alone. */
@media (max-width: 420px) {
  .bar { gap: var(--space-2); }
  .lockup { gap: var(--space-2); }
  .word { font-size: 19px; }
  .nav ul { gap: var(--space-1); }
  .nav a { padding-inline: var(--space-2); }
  .nav a.button { padding-inline: var(--space-3); }
}
@media (max-width: 359px) {
  .lockup .word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.page-head h1 { font-size: clamp(32px, 7vw, 48px); }

/* Packing lists */
.crumbs { padding-top: var(--space-4); font-size: 15px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs + .page-head { padding-top: var(--space-2); }
.list-page .page-head { align-items: flex-start; }
.intro { display: grid; gap: var(--space-3); margin-top: var(--space-4); max-width: 34em; color: var(--text-muted); font-size: 18px; }

.list-block { padding-top: var(--space-8); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); padding-bottom: var(--space-3); margin-bottom: var(--space-4); border-bottom: 2px solid var(--line-strong); }
.list-head h2 { font-size: clamp(26px, 5vw, 32px); }
.list-head p { color: var(--text-muted); font-size: 15px; }
.checklist { display: grid; gap: var(--space-6); }
.check-group h3 { font: 700 13px/1.4 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); padding-bottom: var(--space-2); }
.check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); min-height: 48px; padding-block: var(--space-2); border-top: 1px solid var(--line); }
.check .box { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.check-text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.check-name { font-weight: 600; }
.flag { font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--text-muted); background: var(--track); border-radius: 999px; padding: 0 var(--space-2); white-space: nowrap; }
.flag.must { color: var(--attention); background: var(--attention-soft); }
.qty { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }

.key { display: grid; gap: var(--space-3); margin-top: var(--space-12); padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.key div { display: grid; gap: var(--space-1) var(--space-4); }
.key dt { font-weight: 700; }
.key dd { margin: 0; color: var(--text-muted); }

.more-lists { padding-block: var(--space-12) var(--space-16); }
.more-lists h2 { font-size: clamp(24px, 5vw, 28px); margin-bottom: var(--space-4); }
.link-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.link-chips a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 600; text-decoration: none; }
.link-chips a:hover { border-color: var(--line-strong); }

.list-cards { display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-16); }
.list-card { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-2); height: 100%; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; }
.list-card:hover { border-color: var(--line-strong); }
.list-card h2 { font-size: 24px; color: var(--accent); }
.list-card p { color: var(--text-muted); }
.list-card .count { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.lead-card .list-card { border: 2px solid var(--accent); }
.print-only { display: none; }

@media (min-width: 560px) {
  .key div { grid-template-columns: 7em 1fr; }
  .list-cards { grid-template-columns: repeat(2, 1fr); }
  .lead-card { grid-column: 1 / -1; }
}
@media (min-width: 800px) {
  .checklist { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-12); align-items: start; }
  .list-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Print: the list as a checklist on paper. Colours switch to the print tokens in theme.css. */
@media print {
  @page { margin: 14mm; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .skip, .nav, .crumbs, .tuck, .band, .more-lists, .foot, .no-print { display: none !important; }
  .bar { padding-block: 0 8pt; }
  .lockup { min-height: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .page-head { padding-block: 0; }
  .page-head h1 { font-size: 22pt; }
  .intro { font-size: 10.5pt; margin-top: 6pt; gap: 4pt; max-width: none; }
  .intro p + p { display: none; }
  .list-block { padding-top: 14pt; }
  .list-head { margin-bottom: 6pt; padding-bottom: 4pt; border-bottom-width: 1.5pt; }
  .list-head h2 { font-size: 15pt; }
  .checklist { grid-template-columns: repeat(2, 1fr); gap: 8pt 24pt; align-items: start; }
  .check-group { break-inside: avoid; }
  .check-group h3 { font-size: 8.5pt; padding-bottom: 2pt; }
  .check { min-height: 0; padding-block: 2pt; gap: 6pt; line-height: 1.25; break-inside: avoid; }
  .check .box { width: 11pt; height: 11pt; border-width: 1pt; border-radius: 2pt; }
  .flag { font-size: 7.5pt; background: none; border: 0.75pt solid var(--line-strong); }
  .key { display: flex; flex-wrap: wrap; gap: 2pt 14pt; margin-top: 12pt; padding: 5pt 8pt; font-size: 8.5pt; break-inside: avoid; }
  .key div { display: flex; gap: 4pt; }
  .print-only { display: block; margin-top: 8pt; font-size: 8.5pt; color: var(--text-muted); }
  a { color: inherit; text-decoration: none; }
}
