/* Kratlo landing page. Concept: a triplicate order book (see DESIGN.md). */

@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/caveat.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --carbon: #1b2150;
  --paper: #fbfaf6;
  --ink: #15171d;
  --copy-blue: #2b3fd0;
  --canary: #f6e07a;
  --pink: #f2bcc6;
  --muted: #565a66;
  --line: rgb(21 23 29 / 14%);
  --short: #a52d16; /* 4.9:1 on canary, so a short pick reads on the warehouse copy */

  /* The one global ink switch: the driver tweens these from carbon to paper. */
  --ground: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--muted);
  --focus: var(--copy-blue);

  --text: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --hand: "Caveat", "Segoe Print", cursive;

  --t-xl: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem);
  --t-l: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --t-m: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --t-body: clamp(1rem, .95rem + .2vw, 1.125rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 2px;
  --sheet-shadow: 0 1px 0 rgb(21 23 29 / 8%), 0 24px 48px -28px rgb(21 23 29 / 45%);
}
html.is-carbon { --ground: var(--carbon); --fg: var(--paper); --fg-soft: #c5c9e4; --focus: var(--canary); }

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
html { background: var(--ground); color: var(--fg); transition: background-color .7s cubic-bezier(.16, 1, .3, 1); }
body {
  margin: 0; background: var(--ground); color: var(--fg);
  font: 400 var(--t-body)/1.55 var(--text); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .7s cubic-bezier(.16, 1, .3, 1), color .7s cubic-bezier(.16, 1, .3, 1);
}
::selection { background: var(--canary); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
h2 { font-size: var(--t-l); max-width: 18ch; }
.mono { font-family: var(--mono); font-size: .86em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--copy-blue); letter-spacing: 0; }
.body { max-width: 58ch; color: var(--fg-soft); margin: 24px 0 0; }
section { padding: clamp(64px, 7vw, 104px) var(--gutter); max-width: var(--max); margin: 0 auto; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 76px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }

/* Buttons: the label slides up and its carbon copy comes through from below (the motion verb on small things) */
.btn {
  transition: background-color .35s, color .35s, box-shadow .35s, translate .35s cubic-bezier(.16, 1, .3, 1);
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  background: var(--fg); color: var(--ground); text-decoration: none; font-weight: 650; font-stretch: 110%;
  position: relative; overflow: clip;
}
.btn-label { display: inline-grid; overflow: clip; line-height: 1.25; }
.btn-label > span { grid-area: 1 / 1; transition: translate .5s cubic-bezier(.165, .84, .44, 1); }
.btn-label > span + span { translate: 0 110%; color: var(--copy-blue); }
html.is-carbon .btn-label > span + span { color: var(--carbon); }
@media (hover: hover) {
  .btn:hover { background: var(--canary); color: var(--ink); }
  .btn:hover .btn-label > span:first-child { translate: 0 -110%; }
  .btn:hover .btn-label > span + span { translate: 0 0; }
  .btn:hover { translate: 0 -2px; box-shadow: 0 10px 20px -12px rgb(21 23 29 / 45%); }
}
.btn:focus-visible { background: var(--canary); color: var(--ink); }
.btn:focus-visible .btn-label > span:first-child { translate: 0 -110%; }
.btn:focus-visible .btn-label > span + span { translate: 0 0; }
.btn:active { scale: .97; }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
@media (hover: hover) { .btn-line:hover, .slip .btn:hover, .slip .btn-line:hover { background: var(--canary); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.slip .btn:focus-visible, .slip .btn-line:focus-visible { background: var(--canary); color: var(--ink); }
.slip .btn:focus-visible { outline-color: var(--copy-blue); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 760px) { .btn-small { padding: 0 14px; } .frame nav { gap: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (prefers-reduced-motion: reduce) {
  .btn-label > span { transition: none; translate: none !important; }
  .btn-label > span + span { visibility: hidden; }
  .btn:hover, .btn:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
}

/* Header frame: name top-left, nav and action top-right */
.frame {
  position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gutter); color: var(--fg); transition: translate .6s cubic-bezier(.16, 1, .3, 1), background-color .3s;
}
html.frame-solid .frame { background: var(--ground); box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -0.03em; }
.wordmark svg { width: 28px; height: 28px; overflow: visible; }
.wm-back { fill: var(--canary); }
.wm-page { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; transition: translate .45s cubic-bezier(.16, 1, .3, 1), rotate .45s cubic-bezier(.16, 1, .3, 1); transform-origin: 5px 23px; }
.wm-lines { stroke: var(--copy-blue); stroke-width: 1.6; stroke-linecap: round; fill: none; transition: translate .45s cubic-bezier(.16, 1, .3, 1), rotate .45s cubic-bezier(.16, 1, .3, 1); transform-origin: 5px 23px; }
@media (hover: hover) { .wordmark:hover :is(.wm-page, .wm-lines) { translate: -2px -3px; rotate: -6deg; } }
.wordmark:focus-visible :is(.wm-page, .wm-lines) { translate: -2px -3px; rotate: -6deg; }
.frame nav { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.draw {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none;
  background: linear-gradient(currentColor 0 0) 12px calc(100% - 10px) / 0 1.5px no-repeat;
  transition: background-size .45s cubic-bezier(.165, .84, .44, 1);
}
@media (hover: hover) { .draw:hover { background-size: calc(100% - 24px) 1.5px; } }
.draw:focus-visible { background-size: calc(100% - 24px) 1.5px; }
/* Language switch: EN / NL, the current one underlined */
.lang { display: inline-flex; align-items: center; margin: 0 6px; }
.lang a { transition: translate .35s cubic-bezier(.16, 1, .3, 1), background-size .45s cubic-bezier(.165, .84, .44, 1), color .3s; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; padding: 0 6px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--fg-soft);
  background: linear-gradient(currentColor 0 0) 50% calc(100% - 10px) / 0 1.5px no-repeat; transition: background-size .45s cubic-bezier(.165, .84, .44, 1), color .3s; }
.lang a[aria-current] { color: var(--fg); background-size: 16px 1.5px; }
@media (hover: hover) { .lang a:hover { color: var(--fg); background-size: 16px 1.5px; } .lang a[aria-current]:hover { background-size: 24px 2.5px; translate: 0 -2px; } }
.lang a:focus-visible { color: var(--fg); background-size: 16px 1.5px; }
.lang-menu { display: none; }

/* Phones: the section links live behind a Menu button */
.menu-btn, .menu { display: none; }
@media (max-width: 760px) {
  .draw-wide { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius);
    background: transparent; color: inherit; font: 600 15px/1 var(--text); cursor: pointer;
    background-image: linear-gradient(currentColor 0 0); background-repeat: no-repeat; background-position: 14px calc(100% - 10px); background-size: 0 1.5px;
    transition: background-size .45s cubic-bezier(.165, .84, .44, 1);
  }
  .menu-btn[aria-expanded="true"] { background-size: calc(100% - 28px) 1.5px; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px var(--gutter) 20px;
    background: var(--ground); box-shadow: 0 24px 40px -28px rgb(21 23 29 / 50%);
  }
  .menu.is-open { display: flex; }
  .menu .lang-menu { display: inline-flex; margin: 8px 0 0 -6px; }
  .menu .lang-menu a { font-size: 16px; min-width: 44px; }
  .menu .draw { min-height: 52px; font-size: 20px; font-weight: 700; font-stretch: 112%; padding: 0; background-position: 0 calc(100% - 12px); }
}

/* 1. Hero stage */
.hero { max-width: none; padding: 0; height: 240svh; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: 88px var(--gutter) 40px; max-width: var(--max); margin: 0 auto;
}
.hero-copy { grid-column: 1 / 7; grid-row: 1; }
.hero h1 { font-size: clamp(2.4rem, 1rem + 3.7vw, 4.4rem); max-width: 14ch; margin-left: -.04em; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 44ch; margin: 28px 0 0; color: var(--fg-soft); }
.note { font-size: 14px; color: var(--fg-soft); margin: 18px 0 0; }
.copies-title { pointer-events: none; grid-column: 1 / -1; grid-row: 1; align-self: start; margin-top: 4vh; max-width: 26ch; font-size: var(--t-m); font-stretch: 112%; letter-spacing: -0.02em; visibility: hidden; }

.pad { grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 3; }
.pad-tilt { position: relative; }
.slip {
  position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 22px 24px 70px;
  box-shadow: var(--sheet-shadow);
}
.pad .slip::before { /* perforation: where the sheet tears off the book */
  content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 4px;
  background: radial-gradient(circle, rgb(21 23 29 / 22%) 1.4px, transparent 1.7px) 0 0 / 9px 4px repeat-x;
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }
.no { font-family: var(--mono); color: var(--short); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.slip-meta { margin: 14px 0 6px; }
.slip-meta div { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; border-bottom: 1px solid var(--line); min-height: 36px; }
.slip-meta dt, .slip-lines th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.slip-meta dd { margin: 0; font-size: 25px; line-height: 34px; }
.slip-lines { width: 100%; border-collapse: collapse; margin-top: 10px; }
.slip-lines th { text-align: left; padding: 6px 0; border-bottom: 1.5px solid var(--ink); }
.slip-lines th:last-child, .slip-lines td:last-child { text-align: right; }
.slip-lines td { font-size: 25px; line-height: 1; padding: 6px 0; border-bottom: 1px solid var(--line); }
.slip-lines td:first-child { width: 58px; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.slip-total .hand { font-size: 28px; }

/* The status stamp walks through the order's statuses (idle state) */
.stamp {
  position: absolute; right: 22px; bottom: 18px; height: 38px; overflow: clip; rotate: -7deg;
  border: 2.5px solid var(--copy-blue); border-radius: 3px; color: var(--copy-blue);
  background: var(--paper); font: 700 14px/33px var(--text); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em;
}
.stamp span { display: block; height: 33px; padding: 0 14px; text-align: center; background: var(--paper); }
.stamp-roll { transition: translate .6s cubic-bezier(.16, 1, .3, 1); }

/* The three copies. Final layout is a 3-column grid; main.js moves them from under the slip. */
.copies { pointer-events: none; grid-column: 1 / -1; grid-row: 1; align-self: start; margin-top: calc(4vh + 96px); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; z-index: 2; }
.copy article { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 22px 24px 24px; box-shadow: var(--sheet-shadow); font-size: 16.5px; }
.copy-warehouse article { background: var(--canary); }
.copy-driver article { background: var(--pink); }
.copy header, .copy footer { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.copy-name { font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
.copy table { width: 100%; border-collapse: collapse; margin: 12px 0 0; }
.copy td { padding: 7px 0; border-bottom: 1px solid rgb(21 23 29 / 16%); }
.copy td:last-child { text-align: right; white-space: nowrap; }
.copy footer { margin-top: 12px; font-weight: 650; }
.tick { display: inline-block; color: var(--copy-blue); font: 700 1.45em/1 var(--hand); vertical-align: -0.1em; }
.copy .short td { color: var(--short); font-weight: 650; }
.caption { margin: 18px 2px 0; font-size: 16px; line-height: 1.5; color: var(--fg-soft); max-width: 40ch; }
.caption b { color: var(--fg); font-weight: 700; }

/* Until main.js has put the copies under the slip, they are invisible but keep their place (no layout shift). */
html.motion:not(.ready) .copies, html.motion:not(.ready) .copies-title { visibility: hidden; }
/* Fixed row heights on the slip, so the handwriting font arriving late cannot move anything. */
.slip-meta div { height: 36px; }
.slip-lines tbody tr { height: 37px; }

/* Static layout: reduced motion, no JS. The slip stays in the hero, the copies sit below it. */
html:not(.motion) .hero { height: auto; }
html:not(.motion) .stage { position: static; height: auto; min-height: 100svh; grid-template-rows: auto auto auto; row-gap: 56px; }
html:not(.motion) .copies-title { visibility: visible; grid-row: 2; }
html:not(.motion) .copies { grid-row: 3; margin-top: 0; }
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 80px; align-items: start; }
  .hero-copy, .pad, .copies, .copies-title { grid-column: 1; }
  .hero-copy { grid-row: 1; }
  .pad { grid-row: 2; width: min(100% - 12px, 400px); justify-self: center; margin-top: 20px; }
  .hero h1 { font-size: 2.3rem; }
  .lede { font-size: 1rem; margin-top: 18px; }
  .hero .actions { margin-top: 22px; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; } /* stacked in every language and font: nothing re-wraps when Archivo arrives */
  .note { display: none; }
  .slip-meta dd, .slip-lines td { font-size: 22px; }
  html.motion .hero { height: 340svh; }
  html.motion .stage { grid-template-rows: auto 1fr; }
  html.motion .copies { grid-row: 1 / 3; grid-template-columns: minmax(0, 1fr); align-self: start; margin-top: 150px; }
  html.motion .copy { grid-area: 1 / 1; }
  html:not(.motion) .stage { grid-template-rows: none; row-gap: 40px; }
  html:not(.motion) .copies-title { grid-row: 3; }
  html:not(.motion) .copies { grid-row: 4; grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* 2. Without it: a gallery wall of scraps. With motion it starts in the empty lower part of the hero stage. */
html.motion .hero + .without { margin-top: -24svh; position: relative; z-index: 4; }
@media (max-width: 860px) { html.motion .hero + .without { margin-top: -22svh; } }
.without { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.without h2, .without .body { grid-column: 1 / 7; }
.without h2 { grid-row: 1; align-self: end; }
.without .body { grid-row: 2; align-self: start; }
.scraps { grid-column: 7 / 13; grid-row: 1 / 3; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
.scrap { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 180px; padding: 22px; border-radius: var(--radius); box-shadow: var(--sheet-shadow); color: var(--ink); }
.scrap small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scrap-note { grid-column: 1 / 5; grid-row: 1; background: var(--paper); rotate: -2deg; z-index: 1; }
.scrap-note .hand { font-size: 30px; line-height: 1.05; }
.scrap-chat { grid-column: 3 / 7; grid-row: 2; margin-top: -28px; z-index: 2; background: #d9f2d0; rotate: 1.5deg; font-size: 17px; }
/* The chat: bubbles in a clipped window, newest at the bottom like a phone. With motion, newer messages slide in under
   the first one and push it up and out (buried); without motion only the first message shows. */
.chat { position: relative; height: 128px; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; }
.chat-roll { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bubble { display: inline-block; max-width: 92%; padding: 9px 12px; border-radius: 10px 10px 10px 2px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgb(21 23 29 / 12%); line-height: 1.35; }
.typing { position: absolute; left: 0; bottom: 0; display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a8f99; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { translate: 0 -3px; opacity: .5; } }
html:not(.motion) .bubble-new, html:not(.motion) .typing { display: none; }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }
.scrap-list { grid-column: 1 / 5; grid-row: 3; margin-top: -18px; z-index: 0; background: var(--paper); rotate: -.8deg; background-image: linear-gradient(90deg, transparent 0 30px, var(--short) 30px 31px, transparent 31px); padding-left: 46px; }
@media (max-width: 860px) {
  .without h2, .without .body, .scrap, .scraps { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .scraps { grid-template-columns: minmax(0, 1fr); }
  .scraps { row-gap: 20px; margin-top: 44px; }
  .scrap { margin-top: 0 !important; min-height: 0; }
}

/* Forms: the printed box everything structured sits in */
.form { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--sheet-shadow); }
.form::before, .slip-final::before, .slip-void::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 4px; background: radial-gradient(circle, rgb(21 23 29 / 22%) 1.4px, transparent 1.7px) 0 0 / 9px 4px repeat-x; }
.form > header { padding-top: 24px !important; }
.compare table.form { display: table; }
.price-form { padding-bottom: 52px; }
.stamp-approved { right: 22px; bottom: 14px; rotate: -6deg; height: auto; }
.stamp-approved span { height: auto; line-height: 1; padding: 8px 12px; font-size: 13px; }
.form > header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 24px; border-bottom: 1.5px solid var(--ink); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
.form > header .mono { text-transform: none; font-weight: 500; color: var(--muted); }
.form > footer { padding: 14px 24px 18px; font-size: 14px; color: var(--muted); }

/* 3. Prices: asymmetric pair */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.prices-text { grid-column: 1 / 6; }
.price-form { grid-column: 7 / 13; }
.price-form dl { margin: 0; padding: 4px 24px; }
.price-form dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-form dt { color: var(--muted); }
.price-form dd { margin: 0; }
.struck { text-decoration: line-through; text-decoration-color: var(--short); color: var(--muted); }
.win dt { color: var(--ink); font-weight: 650; }
.win dd { color: var(--copy-blue); font-weight: 600; font-size: 1.1em; }
@media (max-width: 860px) { .prices-text, .price-form { grid-column: 1 / -1; } .price-form { margin-top: 40px; } }

/* 4. Screens: a wall of real screenshots, each filed under the copy it shows */
.wall { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.shot { margin: 0; }
.shot img { border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--sheet-shadow); background: var(--paper); }
.shot-wide { grid-column: 1 / -1; }
.shot-phone { grid-column: span 4; }
.shot-phone img { border-radius: 18px; }
.shot figcaption { margin-top: 16px; font-size: 15px; color: var(--fg-soft); max-width: 52ch; }
.tab { display: table; margin: 0 0 10px; padding: 3px 10px; border-radius: var(--radius); color: var(--ink); font-size: 12px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 0 0 1px var(--line); }
.tab-white .tab { background: var(--paper); }
.tab-canary .tab { background: var(--canary); }
.tab-pink .tab { background: var(--pink); }
@media (max-width: 860px) {
  .shot-phone { grid-column: 1 / -1; }
  .shot-phone img { max-width: 360px; }
  .wall { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* 5. Yours: editing the web shop, and the same shop in each look */
.yours-edit { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: start; margin-top: 40px; }
.yours-edit .body:first-child { margin-top: 0; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.looks .shot img { border-radius: 4px; }
.looks .shot:nth-child(2), .looks .shot:nth-child(4) { margin-top: 32px; }
.looks figcaption { margin-top: 12px; }
@media (max-width: 860px) {
  .yours-edit { grid-template-columns: minmax(0, 1fr); }
  .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.note a { color: inherit; text-underline-offset: .2em; display: inline-block; min-height: 24px; line-height: 24px; }

/* 6. Compare: today is struck through with a pen as it scrolls in */
.compare table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.compare th { text-align: left; padding: 18px 24px; border-bottom: 1.5px solid var(--ink); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
.compare td { padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); }
.compare s { text-decoration: none; background: linear-gradient(var(--short) 0 0) 0 58% / 100% 1.5px no-repeat; transition: background-size .9s cubic-bezier(.16, 1, .3, 1); }
html.motion .compare:not(.is-struck) s { background-size: 0 1.5px; }
.compare tr:nth-child(2) s { transition-delay: .08s; } .compare tr:nth-child(3) s { transition-delay: .16s; }
.compare tr:nth-child(4) s { transition-delay: .24s; } .compare tr:nth-child(5) s { transition-delay: .32s; }
.compare tr:nth-child(6) s { transition-delay: .4s; }
@media (max-width: 640px) { .compare td, .compare th { padding: 14px 14px; font-size: 15px; } }

/* 6. Built: two pick lists */
.picklists { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; margin-top: 48px; align-items: start; }
.picklist ul { list-style: none; margin: 0; padding: 4px 24px 12px; }
.picklist li { position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line); }
.picklist li:last-child { border-bottom: 0; }
.picklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 2px; }
.picklist li.done::after { content: "✓"; position: absolute; left: 3px; top: 6px; font: 700 26px/1 var(--hand); color: var(--copy-blue); }
.picklist-open { background: var(--canary); }
.picklist-open li { color: #3d3f46; }
@media (max-width: 860px) { .picklists { grid-template-columns: 1fr; } }

/* 7. Questions */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq h2 { grid-column: 1 / 5; align-self: start; }
.faq-list { grid-column: 6 / 13; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: var(--t-m); font-weight: 650; font-stretch: 105%; letter-spacing: -0.01em; position: relative; border-radius: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate .35s cubic-bezier(.16, 1, .3, 1), translate .35s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 6px; }
@media (hover: hover) { .faq summary:hover { color: var(--copy-blue); } .faq summary:hover::after { translate: 0 3px; } }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.faq details p { margin: 0 0 24px; color: var(--fg-soft); max-width: 60ch; }
@media (max-width: 860px) { .faq h2, .faq-list { grid-column: 1 / -1; } .faq-list { margin-top: 32px; } }

/* 8. Finale: the visitor's own order No. 0001 */
.finale { padding-top: clamp(96px, 10vw, 140px); padding-bottom: clamp(100px, 12vw, 160px); }
.slip-final { max-width: 860px; margin: 0 auto; padding: 28px clamp(24px, 5vw, 64px) 56px; rotate: -.8deg; }
.slip-final h2 { font-size: var(--t-xl); max-width: 12ch; margin-top: 40px; color: var(--ink); }
.slip-final .body { color: var(--muted); }
.slip-final .btn { background: var(--ink); color: var(--paper); }
.slip-final .btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.slip-final .btn-label > span + span { color: var(--copy-blue); }
.stamp-still { right: clamp(20px, 5vw, 56px); bottom: 28px; height: auto; rotate: -9deg; }
.stamp-still span { height: auto; line-height: 1; padding: 9px 14px; }
@media (max-width: 640px) { .stamp-still { position: static; display: inline-block; margin-top: 28px; } }

/* Footer: the pad's back cover */
.cover { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 32px var(--gutter); background: var(--carbon); color: #c5c9e4; font-size: 14px; }
.cover-name { color: var(--paper); font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -0.03em; }
.cover-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-underline-offset: .25em; text-decoration-thickness: 1px; transition: color .3s, text-decoration-thickness .3s; }
@media (hover: hover) { .cover-link:hover { color: var(--canary); text-decoration-thickness: 3px; } }
.cover-link:focus-visible { color: var(--canary); }
.cover :focus-visible { outline-color: var(--canary); }

/* 404: a voided slip on the carbon */
body.lost { --ground: var(--carbon); --fg: var(--paper); --fg-soft: #c5c9e4; --focus: var(--canary); min-height: 100svh; }
.frame-static { position: absolute; }
.lost-main { min-height: 100svh; display: grid; place-items: center; padding: 96px var(--gutter) 64px; }
.slip-void { width: min(100%, 640px); padding: 28px clamp(24px, 5vw, 48px) 48px; rotate: 1.2deg; }
.slip-void h1 { font-size: var(--t-l); margin-top: 32px; max-width: 12ch; }
.slip-void .body { color: var(--muted); }
.slip-void .btn { background: var(--ink); color: var(--paper); }
.slip-void .btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.slip-void .btn-label > span + span { color: var(--copy-blue); }
.stamp-void { border-color: var(--short); color: var(--short); right: 28px; bottom: 30px; rotate: 8deg; font-size: 20px; }
@media (max-width: 640px) { .stamp-void { position: static; display: inline-block; margin-top: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .stamp-roll, .wm-page, .wm-lines, .draw, .faq summary::after, .frame { transition: none; }
}


/* Round 5: tear cue, look switcher, phone crops, stamps that land, ticks that write in */
html:not(.motion) .stage { position: relative; }
.tear {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; margin: 0; padding-top: 10px; z-index: 1;
  border-top: 2px dotted color-mix(in srgb, var(--fg) 40%, transparent); color: var(--fg-soft); pointer-events: none;
  font: 600 22px/1 var(--hand);
}
.tear span::after { content: " ↓"; font-family: var(--text); font-size: 15px; }
html:not(.motion) .tear { display: none; }

.switcher { margin: 56px 0 0; }
.look-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.look-tab {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--ink);
  font: 800 13px/1 var(--text); font-stretch: 125%; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper);
  transition: translate .35s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background-color .3s;
}
.look-dark { background: #2b2f3a; color: var(--paper); }
.look-easy-read { background: var(--canary); }
.look-halloween { background: #e8dcf2; }
.look-tab[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); translate: 0 -3px; }
@media (hover: hover) { .look-tab:hover { translate: 0 -5px; rotate: -2deg; box-shadow: inset 0 0 0 2px var(--ink), 0 10px 18px -10px rgb(21 23 29 / 55%); } }
.look-tab:focus-visible { translate: 0 -5px; rotate: -2deg; }
.look-tab { transition: translate .35s cubic-bezier(.16, 1, .3, 1), rotate .35s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background-color .3s; }
.look-stage { position: relative; aspect-ratio: 1200 / 750; border-radius: 6px; overflow: clip; box-shadow: 0 0 0 1px var(--line), var(--sheet-shadow); background: var(--paper); }
.look-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s cubic-bezier(.16, 1, .3, 1); }
.look-img.is-on { opacity: 1; }
.switcher figcaption { margin-top: 14px; font-size: 15px; color: var(--fg-soft); max-width: 60ch; }

@media (max-width: 700px) {
  .shot.crop img { aspect-ratio: 1; object-fit: cover; object-position: 62% 0; }
  .wordmark { font-size: 18px; gap: 8px; }
  .menu-btn { padding: 0 10px; }
  .slip .actions .btn { width: 100%; justify-content: center; }
}

.picklist li.done::after { clip-path: inset(0 0 0 0); transition: clip-path .45s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion .picklist:not(.is-picked) li.done::after { clip-path: inset(0 100% 0 0); }

@media (prefers-reduced-motion: reduce) { .look-img { transition: none; } }
@media (max-width: 860px) { .tear { display: none; } }

/* Phones: the looks are scrolled through, not tapped. The switcher pins under the header while its four looks pass. */
@media (max-width: 700px) {
  html.motion .switcher { height: 170svh; }
  html.motion .look-pin { position: sticky; top: 76px; }
  /* taller and closer in, so the pinned look fills the phone: the banner and the tiles are where the looks differ */
  .look-stage { aspect-ratio: 4 / 5; }
  .look-img { object-fit: cover; object-position: 6% 0; }
  .look-tabs { gap: 6px; }
  .look-tab { min-height: 40px; padding: 0 12px; font-size: 12px; }
}
