/* site.css — the landing site: the home page, the example guides, the how-tos and the FAQ.
 * Built on tokens.css (fonts, brand colours, slate neutrals). Flat: borders over shadows, solid fills.
 * The navy band (top bar, hero, closing doors) is navy in every theme; the paper below it is light and
 * follows the device's dark setting. Shared classes: .band .wrap .bar .doors .door .paper .card .ex .prose
 * .pro .plans .faq .foot. */

:root {
  /* The band: navy in every theme */
  --navy: var(--pp-navy);
  --navy-2: #1A2230;
  --navy-line: #2C3646;
  --on-navy: var(--pp-white);
  --on-navy-2: var(--pp-slate-200);
  --on-navy-3: var(--pp-slate-300);
  --birch: var(--pp-birch);
  --birch-deep: var(--pp-birch-deep);
  /* The sheet in the hero: a birch ply face marked out in pencil-navy */
  --ply: var(--pp-birch);
  --ply-part: #F3E7D2;
  --ply-shade: #D5BA8B;   /* a part's right face in the 3D glimpse, as the home page's 3D picture */
  --ply-cut: #D6C095;     /* a part ticked off as cut */
  --ply-grain: var(--pp-birch-deep);
  --pencil: var(--pp-navy);
  /* The paper: light by default */
  --bg: var(--pp-slate-25);
  --surface: var(--pp-white);
  --ink: var(--pp-navy);
  --ink-2: var(--pp-slate-700);
  --muted: var(--pp-slate-500);
  --line: var(--pp-slate-150);
  --line-strong: var(--pp-slate-300);
  --accent-ink: var(--pp-birch-ink);
  --btn-bg: var(--pp-navy);
  --btn-ink: var(--pp-white);
  --pic-bg: var(--pp-white);
  --focus: var(--pp-navy);
  --font: var(--pp-font);
  --num: tabular-nums slashed-zero;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E131B;
    --surface: #161D28;
    --ink: #F2F4F7;
    --ink-2: var(--pp-slate-200);
    --muted: var(--pp-slate-300);
    --line: #283140;
    --line-strong: #4A5566;
    --accent-ink: var(--pp-birch);
    --btn-bg: #F2F4F7;
    --btn-ink: var(--pp-navy);
    --pic-bg: #EEF1F5;
    --focus: var(--pp-birch);
    color-scheme: dark;
  }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--pp-text-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; letter-spacing: var(--pp-tracking-tight); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }
.num, table, .price, .per { font-variant-numeric: var(--num); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--birch); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 14px; border-radius: var(--pp-radius); background: var(--birch); color: var(--navy); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--pp-radius); border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:hover { opacity: .9; }
.btn.second { background: var(--birch); color: var(--navy); }
.btn.second:hover { border-color: var(--navy); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet:hover { border-color: var(--ink); }

/* Pro label: a plain outlined word, not a pill */
.pro { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; color: var(--accent-ink); font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.15em; white-space: nowrap; }
.band .pro { color: var(--birch); }

/* ── The navy band ── */
.band { background: var(--navy); color: var(--on-navy); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 16px; }
/* The lockup is docs/brand/logo/svg/lockup-dark.svg, inlined unchanged and only scaled. */
.brand { display: flex; align-items: center; color: var(--on-navy); text-decoration: none; }
.brand svg { display: block; height: 24px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--on-navy-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 4px; }
.bar .open { padding: 8px 14px; border-radius: var(--pp-radius); border: 1px solid var(--navy-line); color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.bar .open:hover { border-color: var(--on-navy-3); }
@media (max-width: 760px) {
  .bar .open { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; font-size: 14px; }
}

.hero .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 40px 64px; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 16px 40px; } }
.over { font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--birch); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; margin: 0 0 18px; }
.lead { font-size: var(--pp-text-md); color: var(--on-navy-2); margin: 0 0 30px; max-width: 32em; }
.doors { display: grid; gap: 12px; max-width: 440px; }
.door { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 18px; border-radius: var(--pp-radius); border: 1px solid transparent; text-decoration: none; }
.door b { font-size: var(--pp-text-md); font-weight: 600; }
.door span { font-size: var(--pp-text-sm); grid-column: 1; color: var(--pp-slate-700); }
.door svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; }
.door.primary { background: var(--on-navy); color: var(--navy); }
.door.second { background: var(--birch); color: var(--navy); }
.door:hover { border-color: var(--birch); }
.door.second:hover { border-color: var(--on-navy); }
.fine { margin: 18px 0 0; font-size: var(--pp-text-sm); color: var(--on-navy-3); }

/* ── The hero stage ──
 * Its view is a fixed size for a given width: the sheet's own aspect ratio plus the header and the
 * ticket's rows, set per container width, so nothing moves while the glimpses play. */
.stage { container-type: inline-size; margin: 0; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--pp-radius-lg); overflow: hidden; min-width: 0; }
.stage-view { --head: 41px; --rows: 80px; position: relative; display: flex; flex-direction: column; overflow: hidden;
  height: 520px; height: calc((100cqw - 28px) * 0.535 + 22px + var(--head) + 37px + var(--rows)); }
.g-head { flex: none; height: var(--head); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 0 16px; border-bottom: 1px solid var(--navy-line); font-size: var(--pp-text-sm); line-height: 20px; color: var(--on-navy-3); white-space: nowrap; }
.g-head > * { overflow: hidden; text-overflow: ellipsis; }
.g-head strong { color: var(--on-navy); font-weight: 600; }
.g-stat { color: var(--birch); font-weight: 600; text-align: right; }
.g-canvas { flex: 1 1 auto; min-height: 0; padding: 12px 14px 10px; overflow: hidden; }
.g-canvas > svg { display: block; overflow: hidden; width: 100%; height: 100%; font-family: var(--font); font-variant-numeric: var(--num); }
.ticket { flex: none; height: calc(37px + var(--rows)); border-top: 1px solid var(--navy-line); padding: 0 2px; overflow: hidden; }
.ticket-title { margin: 0; padding: 0 14px; height: 36px; line-height: 36px; font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--on-navy-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 40px; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-content: center; gap: 0 10px; padding: 0 12px; border-left: 3px solid transparent; font-size: var(--pp-text-sm); line-height: 17px; transition: background-color .25s, border-color .25s; }
.row .box { grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; border: 1.5px solid var(--on-navy-3); border-radius: 3px; }
.row .nm, .row .sz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm { font-weight: 500; color: var(--on-navy); }
.row .sz { grid-column: 2; color: var(--on-navy-3); font-size: 12px; }
.row .q { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-weight: 600; color: var(--on-navy-2); text-align: right; min-width: 2.6em; transition: opacity .5s; }
.row.active { background: rgba(230, 207, 166, 0.08); border-left-color: var(--birch); }
.row.placed .q { color: var(--birch); }
@container (max-width: 599px) {
  .stage-view { --rows: 120px; }
  .ticket-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 479px) {
  /* Phones: one row per part, name and size on one line. */
  .stage-view { --head: 61px; --rows: 140px; }
  .ticket-rows { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 28px; }
  .row { grid-template-columns: 16px minmax(0, 1fr) auto auto; }
  .row .box, .row .q { grid-row: 1; }
  .row .sz { grid-row: 1; grid-column: 3; }
  .row .q { grid-column: 4; }
  .g-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px 20px; align-content: center; }
  .g-spec { grid-row: 2; grid-column: 1 / -1; }
}

/* The sheet drawing */
.tape { fill: var(--birch); }
.tick-m { stroke: var(--navy); stroke-width: 1.4; }
.tape-n { fill: var(--navy); font-size: 15px; font-weight: 600; }
.side-dim { fill: var(--on-navy-3); font-size: 17px; font-weight: 500; }
.side-dim-line { stroke: var(--on-navy-3); stroke-width: 1.4; }
.sheet { fill: var(--ply); }
.grain { fill: none; stroke: var(--ply-grain); stroke-opacity: .35; stroke-width: 1.3; }
.part { opacity: 0; transition: opacity .3s ease-out; }
.part.in { opacity: 1; }
.part .face { fill: var(--ply-part); }
.part .draw { fill: none; stroke: var(--pencil); stroke-width: 3.6; stroke-linejoin: round; }
.part text { fill: var(--pencil); }
.part .pn { font-weight: 600; }
.part .arrow { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.stage-view.is-fading .part, .stage-view.is-fading .row .q { opacity: 0; transition: opacity .5s; }

/* Glimpse 2, drag between sheets: the shelf as a loose piece; lifted, its outline turns birch and its words hide. */
.sheet-n { fill: var(--on-navy-2); font-size: 40px; font-weight: 600; }
.piece { opacity: 0; transition: opacity .3s ease-out; }
.piece.in { opacity: 1; }
.piece .face { fill: var(--ply-part); }
.piece .edge { fill: none; stroke: var(--pencil); stroke-width: 3.6; stroke-linejoin: round; transition: stroke .2s; }
.piece text { fill: var(--pencil); transition: opacity .2s; }
.piece .pn { font-weight: 600; }
.piece.lift .edge { stroke: var(--birch-deep); stroke-width: 7; }
.piece.lift text { opacity: 0; }
.stage-view.is-fading .piece { opacity: 0; transition: opacity .5s; }

/* Glimpse 3, see it in 3D: each part a box with birch faces and navy edges. */
.iso { stroke: var(--pencil); stroke-width: 1.4; stroke-linejoin: round; }
.p3 { opacity: 0; transition: opacity .3s ease-out; }
.p3.in { opacity: 1; }
.p3 .t { fill: var(--ply-part); }
.p3 .f { fill: var(--ply); }
.p3 .r { fill: var(--ply-shade); }
.stage-view.is-fading .p3 { opacity: 0; transition: opacity .5s; }

/* Glimpse 4, tick off at the saw: a plain phone outline with the parts list, and the sheet beside it. */
/* The phone is as tall as its list (centred, never taller than the canvas); the sheet takes the rest of the width. */
.g-tick { display: flex; align-items: center; gap: 12px; }
.phone { flex: none; position: relative; display: flex; flex-direction: column; width: min(42%, 230px); max-height: 100%; padding: 22px 4px 12px; border: 2px solid var(--on-navy-3); border-radius: 26px; background: var(--navy); overflow: hidden; }
.phone-ear { position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--navy-line); }
.phone-title { flex: none; margin: 0; padding: 0 10px; height: 30px; line-height: 30px; font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--on-navy-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-rows { display: grid; grid-auto-rows: 36px; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.phone .row { position: relative; grid-template-columns: 16px minmax(0, 1fr); padding: 0 6px 0 8px; }
.phone .row .box { grid-row: 1 / span 2; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.phone .row .sz { grid-row: 2; grid-column: 2; }
.phone .row.cut .box { background: var(--birch); border-color: var(--birch); }
.phone .row.cut .box::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.phone .row.cut .nm { color: var(--on-navy-3); }
.phone .tap { position: absolute; left: 1px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 2px solid var(--birch); border-radius: 50%; opacity: 0; pointer-events: none; }
.tick-sheet { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; }
.tick-sheet > svg { display: block; width: 100%; height: auto; max-height: 100%; font-family: var(--font); font-variant-numeric: var(--num); }
.part.cut .face { fill: var(--ply-cut); }
.part .check { fill: none; stroke: var(--pencil); stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.part.cut .check { opacity: 1; }
.part text, .part .arrow { transition: opacity .2s; }
.part.cut text, .part.cut .arrow { opacity: .35; }
.stage-view.is-fading .phone .row { opacity: 0; transition: opacity .5s; }
@container (max-width: 479px) {
  /* Phones: a slimmer phone, so the sheet beside it (which site-hero.js stands upright here) gets more width. */
  .g-canvas.g-tick { gap: 8px; padding-inline: 8px; }
  .phone { width: 156px; padding-inline: 2px; }
  .phone .row { gap: 0 8px; padding: 0 4px 0 6px; }
}
.tick-sheet.upright { justify-content: center; }

.glimpses { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 10px 16px 12px; border-top: 1px solid var(--navy-line); }
.g { font: 500 13px/1.3 var(--font); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--navy-line); background: transparent; color: var(--on-navy-3); cursor: pointer; }
.g:hover { color: var(--on-navy); }
/* Pressed: border, tint and colour only. A weight change would widen the label and re-wrap the row, moving the page. */
.g[aria-pressed="true"] { border-color: var(--birch); background: rgba(230, 207, 166, 0.12); color: var(--on-navy); }
/* Pause / Play: last in the row, one width for both words, so nothing moves when it toggles. */
.g-pause { margin-left: auto; width: 5.25em; text-align: center; }
.g-pause[hidden] { display: none; }
/* With reduced motion site-hero.js hides Pause; hidden from the start, so the row never re-wraps when it runs. */
@media (prefers-reduced-motion: reduce) { .g-pause { display: none; } }

/* ── The paper ── */
.paper { background: var(--bg); color: var(--ink); }
.paper > .wrap { padding-block: 64px 8px; }
.paper h2 { font-size: var(--pp-text-xl); margin: 0 0 8px; }
.paper .sub { color: var(--ink-2); margin: 0 0 28px; max-width: 42em; font-size: var(--pp-text-md); }
/* Low specificity on purpose, so the card, caption and list overrides below win. */
.paper :where(a:not(.btn, .ex)) { color: var(--accent-ink); text-underline-offset: 3px; }
.paper :focus-visible { outline-color: var(--focus); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pp-radius-lg); }

/* Three promises */
.promises { display: grid; gap: 56px; }
.promise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.promise h3 { font-size: var(--pp-text-lg); margin: 0 0 10px; }
.promise p { color: var(--ink-2); margin: 0 0 12px; max-width: 36em; }
.promise .try { margin-top: 6px; }
@media (max-width: 860px) { .promise { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.pic { margin: 0; overflow: hidden; padding: 16px; background: var(--pic-bg); border: 1px solid var(--line); border-radius: var(--pp-radius-lg); color: var(--pp-navy); }
.pic svg { display: block; overflow: hidden; width: 100%; height: auto; max-height: 460px; }
.pic figcaption { margin-top: 12px; font-size: var(--pp-text-sm); color: var(--pp-slate-700); }
.paper .pic figcaption a { color: var(--pp-birch-ink); }
.pic :focus-visible { outline-color: var(--pp-navy); }

/* Example cards */
.examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .examples { grid-template-columns: minmax(0, 1fr); } }
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pp-radius-lg); padding: 16px; display: grid; align-content: start; gap: 8px; text-decoration: none; color: var(--ink); }
.ex:hover { border-color: var(--line-strong); }
.ex svg { width: 100%; height: 112px; margin-bottom: 4px; }
.ex svg .o { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ex svg .f { fill: var(--birch); stroke: currentColor; stroke-width: 1.5; }
.ex svg .d { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ex h3 { font-size: var(--pp-text-md); margin: 0; }
.ex p { font-size: var(--pp-text-sm); color: var(--muted); margin: 0; }
.how { font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--accent-ink); }

/* How-tos */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
@media (max-width: 860px) { .guides { grid-template-columns: minmax(0, 1fr); } }
.guides h3 { font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--muted); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.guides ul { list-style: none; margin: 0; padding: 0; }
.guides li { border-bottom: 1px solid var(--line); }
.guides li a { display: block; padding: 11px 0; text-decoration: none; font-weight: 500; }
.paper .guides li a { color: var(--ink); }
.guides li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pp-radius-lg); }
.plan.main { border-color: var(--ink); }
.plan h3 { font-size: var(--pp-text-md); margin: 0 0 6px; }
.price { margin: 0; font-size: var(--pp-text-2xl); font-weight: 700; letter-spacing: var(--pp-tracking-tight); line-height: 1.1; }
.per { margin: 0; font-size: var(--pp-text-sm); color: var(--muted); }
.per.then { color: var(--ink-2); }
.plan ul { margin: 14px 0 18px; padding: 0; list-style: none; font-size: var(--pp-text-sm); color: var(--ink-2); }
.plan li { padding: 5px 0 5px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 5px; border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: rotate(-45deg); }
.plan .btn { width: 100%; margin-top: auto; }
.plan > .per:nth-last-child(2) { margin-bottom: 18px; }
.plans-note { margin: 14px 0 0; font-size: var(--pp-text-sm); color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0; padding: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 6px 4px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 65ch; }
.more { margin: 20px 0 0; }

/* Closing doors */
.closing .wrap { padding-block: 64px; display: grid; justify-items: start; gap: 24px; }
.closing .line { margin: 0; font-size: var(--pp-text-lg); font-weight: 700; letter-spacing: var(--pp-tracking-tight); max-width: 24em; }
.closing .doors { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 640px) { .closing .doors { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.foot { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); font-size: var(--pp-text-sm); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot .made { margin: 0 0 0 auto; }
@media (max-width: 640px) { .foot .made { margin-left: 0; width: 100%; } }

/* Guide text (how-tos, example guides) */
.prose { max-width: 65ch; font-size: 16px; line-height: 1.65; font-variant-numeric: var(--num); }
.prose h2 { font-size: var(--pp-text-lg); margin: 40px 0 10px; }
.prose h3 { font-size: var(--pp-text-md); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose img, .prose svg { display: block; height: auto; border: 1px solid var(--line); border-radius: var(--pp-radius-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--pp-text-base); }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); color: var(--muted); font-weight: 600; }

/* A wide guide (the example guides): figures and tables take the column, the words keep their measure. */
.prose.wide { max-width: 860px; }
.prose.wide > :is(p, ul, ol, h2, h3) { max-width: 65ch; }
.prose .pic { margin: 16px 0 24px; }
.prose .pic svg { border: 0; border-radius: 0; max-height: none; }
.prose .cutlist td.num { white-space: nowrap; }
.prose .scroll + .scroll { margin-top: 24px; }
.install-notes { font-variant-numeric: var(--num); }
.install-notes li { margin-bottom: 6px; }
.guide-head, .faq { font-variant-numeric: var(--num); }

/* Wide tables and drawings scroll sideways in their own box, so a phone never scrolls the page. */
.scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.scroll > table { min-width: 560px; }
.scroll > svg { min-width: 600px; }

/* The top of a guide, the FAQ or the not-found page: where it sits, its title, what it is, the one thing to do */
.guide > .wrap, .faq-page > .wrap, .missing-page > .wrap { padding-block: 40px 72px; }
.crumbs { margin: 0 0 18px; font-size: var(--pp-text-sm); }
.guide-head { max-width: 65ch; margin-bottom: 8px; }
.guide-head h1, .faq-page h1, .missing-page h1 { font-size: var(--pp-text-xl); margin: 6px 0 12px; }
.guide-head .lead, .faq-page .lead, .missing-page .lead { color: var(--ink-2); font-size: var(--pp-text-md); margin: 0 0 20px; max-width: 65ch; }
.missing-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: var(--pp-text-md); }
.missing-links a { display: inline-block; padding-block: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.actions .note { font-size: var(--pp-text-sm); color: var(--muted); max-width: 40em; }
.prose .actions { margin-top: 20px; }
.video[hidden] { display: none; }
.faq-page .faq { margin-top: 28px; }

/* A how-to: numbered steps, one action each, with a screenshot under the step that changes the screen.
 * The words keep their 65ch measure; a screenshot takes the wide column. Shots are 2× PNGs drawn at half size. */
.prose.wide > ol.steps { max-width: none; }
.steps > li { margin-bottom: 18px; padding-left: 4px; }
.steps > li::marker { font-weight: 700; color: var(--ink); }
.steps > li > p { margin: 0 0 8px; max-width: 65ch; }
.shot { margin: 14px 0 28px; }
/* The link (to the full-size PNG) is as wide as its picture; the picture keeps its width attribute up to the column.
 * Phone screens (.handset, not the hero's .phone) and printed pages (.printed) are capped narrower, so a tall shot doesn't fill the whole screen. */
.shot a { display: block; width: fit-content; max-width: 100%; }
.shot img { max-width: 100%; height: auto; }
.shot.handset a { max-width: min(100%, 320px); }
.shot.printed a { max-width: min(100%, 600px); }
.shot figcaption { margin-top: 8px; max-width: 65ch; font-size: var(--pp-text-sm); color: var(--muted); }
.next-guide { max-width: 65ch; margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.next-guide span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: var(--pp-tracking-overline); font-weight: 600; color: var(--muted); }
.next-guide a { font-weight: 600; font-size: var(--pp-text-md); }
.guides-page .guides { margin-top: 28px; }
.faq details ul { margin: 0 0 16px; padding-left: 1.4em; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .part, .row, .row .q, .stage-view.is-fading .part, .faq summary::after { transition: none; }
  .piece, .piece .edge, .piece text, .p3, .phone .row .box, .part .check, .part text, .part .arrow,
  .stage-view.is-fading .piece, .stage-view.is-fading .p3, .stage-view.is-fading .phone .row { transition: none; }
  html { scroll-behavior: auto; }
}
