/* Self-hosted Google Fonts (OFL), latin + latin-ext only. Variable files; versioned names for immutable caching. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin-ext-v9.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin-v9.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/figtree-latin-ext-v9.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/figtree-latin-v9.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/martian-mono-latin-ext-v6.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/martian-mono-latin-v6.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Mockpup — final landing.
   Visual language from the "Playful" prototype: warm paper, ink, orange, a violet "mockup" ghost,
   sunny measurement tags, chunky pressable buttons and springs. The game and the toolkit tour
   are restyled into the same system. */
:root {
  --paper: #fffdfa;
  --wash: #f4f2ff;
  --ink: #1b1a2e;
  --ink-2: #4c4b63;
  --ink-3: #5f5e77;
  --line: #e8e5f1;
  --orange: #ff5a3c;
  --orange-2: #d9401f;
  --ghost: #6b5cff;
  --ghost-soft: rgba(107, 92, 255, .10);
  --sun: #ffd84a;
  --mint: #0fa968;

  --f-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --spring: cubic-bezier(.34, 1.8, .5, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ghost); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 .82em/1 var(--f-mono); padding: 3px 6px 2px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--line); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* entrance (JS drives the transforms; opacity only fades the first frame) */
.js [data-enter] { opacity: 0; }
.js [data-enter].on, .failsafe [data-enter] { opacity: 1; transition: opacity .35s ease-out; }
/* Scroll reveals (hero.js adds .rv only to elements below the fold). */
.js .rv { opacity: 0; transform: translate3d(0, 56px, 0); transition: opacity .6s var(--ease) var(--rv-d, 0ms), transform .9s cubic-bezier(.3, 1.35, .5, 1) var(--rv-d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-o { opacity: 0; transition: opacity .6s var(--ease); }
.js .rv-o.in { opacity: 1; }
/* H1 words fade in fast (first at ~90ms) so LCP stays early. */
.js .title [data-enter].on { transition-duration: .22s; }
.title .kicker { display: block; margin-bottom: .55em; font: 600 clamp(13px, 1.2vw, 15px)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- brand bits ---------- */
.tile { position: relative; display: inline-block; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); flex: none; }
.tile i { position: absolute; width: 11px; height: 11px; border-radius: 2.5px; }
.tile i:first-child { left: 5px; top: 5px; background: var(--orange); }
.tile i:last-child { right: 5px; bottom: 5px; background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; }

/* ---------- buttons: chunky, pressable ---------- */
.btn {
  --shade: var(--orange-2);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 700 19px/1 var(--f-display); letter-spacing: -.01em;
  background: var(--orange); color: #fff; border: 0; border-radius: 14px;
  padding: 18px 24px; box-shadow: 0 5px 0 var(--shade);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--shade); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--shade); transition-duration: .06s; }
.btn svg { transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { --shade: #000; background: var(--ink); }
.btn-sm { font-size: 16px; padding: 11px 16px; border-radius: 11px; box-shadow: 0 3px 0 var(--shade); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--shade); }
.btn-sm:active { transform: translateY(3px); }
.btn-md { font-size: 17px; padding: 14px 18px; border-radius: 12px; box-shadow: 0 4px 0 var(--shade); }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer;
  font: 700 16px/1 var(--f-display); padding: 12px 16px; border: 0; border-radius: 11px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink);
  transition: transform .3s var(--spring), box-shadow .3s var(--spring), opacity .2s;
}
.btn-line:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.btn-line:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 var(--ink); transition-duration: .06s; }
.btn-line:disabled { opacity: .45; cursor: default; transform: none; }

.store-note { display: block; font: 500 15px/1.5 var(--f-body); color: var(--ink-3); }
.store-note::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px rgba(27, 26, 46, .12); margin-right: 8px; vertical-align: 1px; }
.store-note.nudge { animation: nudge .5s var(--ease); color: var(--ink); }
@keyframes nudge { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.store-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; margin: 0; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font: 600 16px/1.3 var(--f-body); padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 14px 30px -12px rgba(27, 26, 46, .6); transition: opacity .25s, transform .35s var(--spring); white-space: nowrap;
}
.store-toast.nudge { opacity: 1; transform: translate(-50%, 0); }

/* ---------- nav ---------- */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gut);
  display: flex; align-items: center; gap: 24px;
}
.nav .links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 16px; }
.nav .links a { text-decoration: none; color: var(--ink-2); }
.nav .links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
@media (max-width: 720px) { .nav .links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* ======================================================================
   1 · HERO
   ====================================================================== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(12px, 3vh, 36px) var(--gut) 110px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  grid-template-areas: "title" "copy" "stage";
}
@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "title title" "copy stage";
    column-gap: clamp(32px, 4vw, 64px); row-gap: clamp(20px, 3vh, 36px);
  }
}
.title {
  grid-area: title;
  font: 740 clamp(46px, 7.3vw, 108px)/.92 var(--f-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.022em; text-wrap: balance;
}
.title .w { display: inline-block; will-change: transform; }
@media (max-width: 640px) { .title .br { display: none; } }
@media (max-width: 979px) { .title { margin-bottom: 12px; } }
.nudge { position: relative; }
.nudge-word { display: inline-block; color: var(--orange); }
.nudge-ghost {
  position: absolute; left: 0; top: 0; pointer-events: none; color: transparent;
  -webkit-text-stroke: 1.5px var(--ghost); opacity: 0;
}
.nudge-ghost.match { -webkit-text-stroke-color: var(--mint); }

.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; max-width: 42ch; padding-top: 6px; }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.55; }
.fine { display: grid; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); margin-top: -4px; }
.fine p:first-child { color: var(--ink); font-weight: 500; }
.inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inputs-l { font: 500 13px var(--f-mono); color: var(--ink-3); margin-right: 4px; }
.chip { font: 500 13px/1 var(--f-mono); padding: 7px 9px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* ---------- stage: fake browser ---------- */
.stage { grid-area: stage; position: relative; min-width: 0; }
.browser {
  position: relative; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(27, 26, 46, .08), 0 40px 70px -40px rgba(27, 26, 46, .45), 0 12px 24px -18px rgba(27, 26, 46, .25);
  will-change: transform;
}
.chrome { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #f3f2f8; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dddbe7; }
.url { flex: 1; max-width: 320px; margin: 0 auto; height: 24px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
       display: flex; align-items: center; justify-content: center; font: 400 11px var(--f-mono); color: var(--ink-3); }
.ext { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ext .tile { width: 18px; height: 18px; border-radius: 5px; }
.ext .tile i { width: 7px; height: 7px; border-radius: 1.5px; }
.ext .tile i:first-child { left: 3.5px; top: 3.5px; }
.ext .tile i:last-child { right: 3.5px; bottom: 3.5px; }

.viewport { position: relative; aspect-ratio: 720 / 450; max-width: 100%; overflow: hidden; background: #fff; container-type: inline-size; }

/* Oddbird (a small coffee roaster): the page being built (720 x 450 design px, scaled by JS) */
.nw { position: absolute; left: 0; top: 0; width: 720px; height: 450px; transform-origin: 0 0; color: #15161a;
      font-family: -apple-system, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif; }
.nw > * { position: absolute; }
.nw-nav { left: 40px; right: 40px; top: 22px; display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nw-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.nw-logo .bird { width: 21px; height: 21px; color: #15161a; }
.nw-links { display: flex; gap: 22px; color: #5b6070; margin-left: 30px; }
.nw-in { margin-left: auto; font-weight: 600; }
.nw-badge { left: 40px; top: 72px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #5b6070; padding: 4px 10px 4px 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px #eceef2; }
.nw-badge b { background: #15161a; color: #fff; font-size: 10px; padding: 3px 7px; border-radius: 99px; }
.nw-title { left: 40px; top: 108px; font-size: 56px; line-height: .98; font-weight: 700; letter-spacing: -.045em; border-radius: 6px; }
.nw-sub { left: 40px; top: 234px; width: 290px; font-size: 14px; line-height: 1.5; color: #5b6070; }
.nw-btn, .nw-btn2 { top: 296px; font-size: 13px; font-weight: 600; padding: 12px 20px; border-radius: 10px; }
.nw-btn { left: 40px; background: #15161a; color: #fff; }
.nw-btn2 { left: 176px; background: #fff; box-shadow: inset 0 0 0 1px #e3e5ea; }
.nw-fine { left: 40px; top: 350px; font: 400 10px ui-monospace, Menlo, monospace; color: #6b7080; }
.nw-board { left: 390px; top: 84px; width: 300px; height: 238px; border-radius: 14px; background: #f6f7f9; box-shadow: inset 0 0 0 1px #eceef2; }
.nw-board span { position: absolute; left: 14px; top: 12px; font-size: 11px; font-weight: 700; color: #5b6070; }
.nw-board::after { content: "Roasted Monday"; position: absolute; right: 14px; top: 12px; font-size: 10px; color: #8a8f9c; }
.nw-card { top: 116px; width: 130px; height: 190px; border-radius: 12px; }
.nw-card.c1 { left: 404px; }
.nw-card.c2 { left: 548px; }
.card-bg { position: absolute; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 2px 4px rgba(0, 0, 0, .04); transform-origin: 0 50%; }
.card-in { position: relative; padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.card-in .bag { display: grid; place-items: center; width: 110px; height: 70px; border-radius: 8px; margin-bottom: 2px; }
.card-in .bag .bird { width: 28px; height: 28px; }
.card-in .b1 { background: #f3d9b1; }
.card-in .b1 .bird { color: #b0752a; }
.card-in .b2 { background: #d9a98a; }
.card-in .b2 .bird { color: #7a3d1f; }
.card-in .notes { font-size: 10.5px; color: #6b7080; margin-top: -3px; }
.card-in .price { font-size: 12px; font-weight: 700; margin-top: 4px; }
.card-in .price small { font-size: 10px; font-weight: 500; color: #5f6472; margin-left: 2px; }
.card-in em { font-style: normal; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 5px; }
.card-in .t1 { background: #fdf0d8; color: #9a5d12; }
.card-in .t2 { background: #f6e3d6; color: #9a4420; }
.card-in strong { font-size: 12.5px; letter-spacing: -.01em; }
.nw-trust { left: 40px; top: 390px; font-size: 10px; color: #6b7080; }
.nw-logos { left: 40px; right: 40px; top: 412px; display: flex; justify-content: space-between; }
.nw-logos i { width: 78px; height: 12px; border-radius: 6px; background: #eef0f3; }

/* draggable build elements */
.nw .drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; z-index: 2; }
.nw .drag.lifted { cursor: grabbing; z-index: 5; }
.nw .nw-btn.lifted { box-shadow: 0 16px 24px -12px rgba(21, 22, 26, .55); }
.nw .nw-card.lifted .card-bg { box-shadow: 0 0 0 1px #e6e8ee, 0 22px 34px -16px rgba(21, 22, 26, .35); }
.nw .drag:focus-visible { outline: 3px solid var(--ghost); outline-offset: 4px; }
.nw .inspect { outline: 3px solid var(--orange); outline-offset: 4px; }
.nw .nw-card.inspect { outline: 0; }
.nw .nw-card.inspect .card-bg { box-shadow: 0 0 0 3px var(--orange); }

/* the mockup ghost: a copy of the element at its designed position */
.nw .ghost { pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; }
.nw .ghost, .nw .ghost * { color: transparent !important; background: transparent !important; box-shadow: none !important; }
.nw .ghost { outline: 1.5px dashed var(--ghost); outline-offset: 0; }
.nw .ghost.nw-title { outline: 0; -webkit-text-stroke: 1px var(--ghost); }
.nw .ghost.nw-btn { background: var(--ghost-soft) !important; }
.nw .ghost.nw-card { border-radius: 12px; background: var(--ghost-soft) !important; }
.nw .ghost.near { outline: 2px solid var(--mint); }
.nw .ghost.match { outline: 2.5px solid var(--mint); transition: none; }
.nw .ghost.nw-title.match { outline: 0; -webkit-text-stroke-color: var(--mint); }

/* ship-it stamp */
.stamp-pos { position: absolute; left: 60%; top: 42%; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; }
.stamp {
  display: block; text-align: center; opacity: 0; will-change: transform;
  font: 800 clamp(22px, 7.2cqw, 58px)/1 var(--f-display); letter-spacing: -.02em; text-transform: uppercase;
  color: var(--mint); background: rgba(255, 255, 255, .92); border-radius: 12px;
  padding: .16em .42em .22em; box-shadow: inset 0 0 0 3px var(--mint), inset 0 0 0 6px #fff, inset 0 0 0 7.5px var(--mint);
}
.stamp small { display: block; font: 600 clamp(8px, 1.5cqw, 12px)/1 var(--f-mono); letter-spacing: .04em; text-transform: none; margin-top: .5em; }

/* the Mockpup panel (extension popover) */
.panel {
  position: absolute; right: -20px; bottom: -30px; width: 262px; z-index: 4;
  background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: 0 0 0 1px rgba(27, 26, 46, .08), 0 26px 50px -22px rgba(27, 26, 46, .5);
  font-size: 14px;
}
.p-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p-head .tile, .p-head b { flex: 0 0 auto; }
.p-head .tile { width: 22px; height: 22px; border-radius: 6px; }
.p-head .tile i { width: 9px; height: 9px; }
.p-head .tile i:first-child { left: 4px; top: 4px; }
.p-head .tile i:last-child { right: 4px; bottom: 4px; }
.p-head b { font: 700 16px var(--f-display); letter-spacing: -.01em; }
.p-chip { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 10px/1 var(--f-mono); color: #4f40e0; background: var(--wash); padding: 5px 7px; border-radius: 6px; white-space: nowrap; }
.p-legend { display: flex; gap: 14px; margin-top: 10px; font: 500 11px var(--f-mono); color: var(--ink-3); }
.p-legend span { display: inline-flex; align-items: center; gap: 6px; }
.p-legend i { width: 12px; height: 9px; border-radius: 2px; }
.lg-mock { outline: 1.5px dashed var(--ghost); outline-offset: -1.5px; background: var(--ghost-soft); }
.lg-build { background: #15161a; }
.p-score { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.p-label { font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.p-num { display: inline-block; font: 750 36px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; transform-origin: 100% 80%; transition: color .3s; }
.p-bar { height: 8px; border-radius: 99px; background: #efedf6; overflow: hidden; margin-top: 8px; }
.p-bar i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transform-origin: 0 50%; transition: background-color .3s; }
.panel.done .p-num { color: #0b8a55; }
.panel.done .p-bar i { background: var(--mint); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.p-status { font: 500 12px var(--f-mono); color: var(--ink-2); }
.p-btn {
  font: 700 14px/1 var(--f-display); background: var(--ink); color: #fff; border: 0; border-radius: 9px;
  padding: 10px 13px; box-shadow: 0 3px 0 #000; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s var(--spring), opacity .2s;
}
.p-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #000; }
.p-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #000; transition-duration: .06s; }
.p-btn:disabled { opacity: .5; cursor: default; transform: none; }

.hint b { color: var(--ink); font-weight: 600; }
@media (hover: none) { .hint-kbd { display: none; } }
.hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; max-width: 34em; padding: 12px 14px; border: 1px dashed var(--ink-3); border-radius: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2, var(--ink)); }
.hint-ico { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ink); }

@media (max-width: 720px) {
  .panel { position: relative; right: auto; bottom: auto; width: auto; margin: 14px 0 0; }
  .hint { max-width: none; margin-top: 16px; }
  .hero { padding-bottom: 72px; gap: 22px; }
  .hero-copy { gap: 16px; }
  .inputs { display: none; }
}

/* fx layer: the hero pup and the measurement tag */
.fx { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 60; pointer-events: none; }
.tag-pos { position: absolute; left: 0; top: 0; }
.tag {
  position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; white-space: nowrap; opacity: 0;
  background: var(--sun); color: var(--ink); font: 600 13px/1 var(--f-mono); padding: 8px 10px; border-radius: 9px;
  box-shadow: 0 8px 18px -8px rgba(27, 26, 46, .45);
}
.tag::after { content: ""; position: absolute; left: 9px; bottom: -5px; width: 10px; height: 10px; background: var(--sun); transform: rotate(45deg); border-radius: 2px; z-index: -1; }
.pup { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; will-change: transform; transform: scale(0); }
.pup-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(217, 64, 31, .28)); }
.pup.sniffing .pup-svg { animation: sniff .22s ease-in-out infinite alternate; }
@keyframes sniff { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-1.5px) rotate(5deg); } }

/* ======================================================================
   Section heads (shared)
   ====================================================================== */
.g-head h2, .free h2 {
  font: 740 clamp(40px, 5.6vw, 78px)/.96 var(--f-display); font-variation-settings: "opsz" 96;
  letter-spacing: -.02em; text-wrap: balance;
}

/* ======================================================================
   2 · YOUR TURN (the game)
   ====================================================================== */
.game { background: var(--wash); padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 110px); }
.g-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 3.5vw, 56px); row-gap: 14px;
  grid-template-areas: "five title" "lede lede" "kbd kbd"; align-items: center;
}
.g-head h2 { grid-area: title; }
.g-lede { grid-area: lede; max-width: 56ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.g-kbd { grid-area: kbd; }
@media (min-width: 720px) {
  .g-head { grid-template-areas: "five title" "five lede" "five kbd"; align-content: center; }
  .g-head h2 { align-self: end; }
  .g-lede, .g-kbd { align-self: start; }
}
/* the big "5": the build's numeral in orange, the mockup's dashed ghost a few px off */
.g-five { grid-area: five; position: relative; margin: 0; font: 800 clamp(96px, 17vw, 250px)/.8 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -.04em; user-select: none; }
.g-five-n { display: block; color: var(--orange); transform: translate(.035em, .03em); }
.g-five-ghost { position: absolute; left: 0; top: 0; color: transparent; -webkit-text-stroke: 2px var(--ghost); }
@media (max-width: 719px) { .g-five-ghost { -webkit-text-stroke-width: 1.5px; } }
.g-lede b { color: var(--ink); font-weight: 700; }
.g-kbd { font-size: 16px; color: var(--ink-3); }

.g-hud {
  display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px);
  padding: 12px 12px 12px 18px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(27, 26, 46, .4);
}
.g-score { display: flex; align-items: center; gap: 12px; }
.g-score-n { font: 750 30px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.g-score-n b { display: inline-block; color: var(--ink); }
.g-score-n span { color: var(--ink-3); }
.g-score-n b.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5) rotate(-6deg); color: var(--orange); } 100% { transform: scale(1); } }
.g-pips { display: flex; gap: 6px; }
.g-pips i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 2px #c9c6dc; transition: background .2s, box-shadow .2s, transform .4s var(--spring); }
.g-pips i.on { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); transform: rotate(45deg) scale(.9); animation: pip .45s var(--spring); }
.g-pips i.mock { background: var(--ghost); box-shadow: inset 0 0 0 2px var(--ghost); }
@keyframes pip { from { transform: scale(.2); } }
.g-score-k { font-size: 16px; color: var(--ink-3); }
.g-timer { display: flex; align-items: center; gap: 10px; flex: 0 1 220px; min-width: 150px; }
.g-timer-track { position: relative; flex: 1; height: 10px; border-radius: 99px; background: #ecebf5; overflow: hidden; }
.g-timer-track i { position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform-origin: 0 50%; }
.g-timer.low .g-timer-track i { background: var(--orange); }
.g-timer.low .g-timer-n { color: var(--orange-2); }
.g-timer-n { font: 600 16px/1 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.g-msg { flex: 1 1 260px; min-width: min(260px, 100%); font-size: 17px; color: var(--ink-2); min-height: 1.5em; }
.g-msg b { color: var(--ink); font-weight: 700; }
.g-msg.pop { animation: msgpop .35s var(--ease); }
@keyframes msgpop { from { transform: translateY(6px); opacity: 0; } }
.g-hud #gGiveup { margin-left: auto; }

/* board */
.g-board {
  --cap: 40px;
  position: relative; isolation: isolate; margin-top: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(14px, 1.8vw, 24px); row-gap: 18px;
  align-items: start;
}
.g-panel { position: relative; grid-row: 1; }
.g-design { grid-column: 1; }
.g-code { grid-column: 2; } /* no z-index: panels must not become stacking contexts, or the difference blend breaks */
.g-cap { height: var(--cap); display: flex; align-items: center; gap: 10px; font-size: 16px; transition: opacity .3s; }
.g-cap-k { font: 700 18px/1 var(--f-display); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.g-cap-k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--ghost-soft); outline: 1.5px dashed var(--ghost); outline-offset: -1.5px; }
.g-code .g-cap-k::before { background: var(--orange); outline: 0; }
.g-cap-v { font: 500 12px/1 var(--f-mono); color: var(--ink-2); padding: 6px 8px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.g-screen {
  position: relative; aspect-ratio: var(--ar); container-type: inline-size; overflow: hidden;
  border-radius: 12px; background: #fff;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='15' cy='15' r='10' fill='rgba(255,255,255,.3)' stroke='%231b1a2e' stroke-width='3'/%3E%3Ccircle cx='15' cy='15' r='10' fill='none' stroke='%23ff5a3c' stroke-width='1.6'/%3E%3Cpath d='M22.5 22.5l9 9' stroke='%231b1a2e' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 15 15, crosshair;
  transition: opacity .7s var(--ease);
}
.g-panel::after { /* soft drop shadow kept outside the blended screen */
  content: ""; position: absolute; left: 0; right: 0; top: var(--cap); bottom: 0; border-radius: 12px; z-index: -1;
  box-shadow: 0 0 0 1px rgba(27, 26, 46, .08), 0 24px 44px -24px rgba(27, 26, 46, .45); pointer-events: none;
}
.g-board.shake .g-code .g-screen { animation: shake .32s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* keyboard targets over the build */
.g-zones { position: absolute; left: 0; right: 0; top: var(--cap); bottom: 0; pointer-events: none; }
.g-zone { position: absolute; padding: 0; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
.g-zone:focus-visible { outline: 3px solid var(--ghost); outline-offset: 2px; background: var(--ghost-soft); }
.g-zone.got:focus-visible { outline-color: var(--orange); }

/* marks drawn when you find one */
.g-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; transition: opacity .3s; }
.g-marks path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) forwards; }
.g-marks .miss { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; opacity: .6; animation: miss .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes miss { 0% { opacity: .75; } 70% { opacity: .6; } 100% { opacity: 0; } }
.g-marks path.static { animation: none; stroke-dashoffset: 0; }
.g-marks text { font: 800 20px var(--f-display); fill: var(--orange); paint-order: stroke; stroke: #fff; stroke-width: 4px; animation: plus .9s var(--ease) forwards; }
@keyframes plus { 0% { opacity: 0; transform: translateY(10px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px); } }

/* The fake page: a cropped slice of the Oddbird home page (nav, hero, "This week's roast").
   Units are design px: --u = one design px. Two layouts, picked by JS from the panel width:
   wide = 720 x 420 design px, narrow = 420 x 612 (nav links and the third card drop out). */
.g-board { --ar: 720 / 420; }
.g-board[data-lay="narrow"] { --ar: 420 / 612; }
.gnw {
  --u: calc(100cqw / 720);
  position: absolute; inset: 0; background: #fff; color: #16161a; overflow: hidden;
  font-family: -apple-system, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif; font-size: calc(var(--u) * 16); line-height: 1.2; pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
[data-lay="narrow"] .gnw { --u: calc(100cqw / 420); }
.gnw > * { position: absolute; margin: 0; }
.gnw .bird { flex: none; width: calc(var(--u) * 24); height: calc(var(--u) * 24); color: #16161a; }
.gnw-nav {
  left: 0; right: 0; top: 0; height: calc(var(--u) * 52); display: flex; align-items: center; padding: 0 calc(var(--u) * 28);
  border-bottom: max(1px, calc(var(--u) * 1)) solid #ececea; font-size: calc(var(--u) * 15); font-weight: 500;
}
.gnw-logo { display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 17); font-weight: 700; letter-spacing: -.01em; }
.gnw-links { display: flex; gap: calc(var(--u) * 22); margin-left: calc(var(--u) * 36); color: #3a3a40; }
.gnw-sign { margin-left: auto; color: #3a3a40; }
.gnw-badge {
  left: calc(var(--u) * 28); top: calc(var(--u) * 82); height: calc(var(--u) * 28); display: flex; align-items: center; gap: calc(var(--u) * 8);
  padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 4); border-radius: 99px; border: max(1px, calc(var(--u) * 1)) solid #e6e4df;
  font-size: calc(var(--u) * 13); font-weight: 500; color: #2a2a30; background: #fafaf8;
}
.gnw-badge b { background: #16161a; color: #fff; font-size: calc(var(--u) * 11.5); font-weight: 600; padding: calc(var(--u) * 3) calc(var(--u) * 9); border-radius: 99px; }
.gnw-h { left: calc(var(--u) * 28); top: calc(var(--u) * 124); font-size: calc(var(--u) * 54); line-height: 1; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.gnw-sub { left: calc(var(--u) * 28); top: calc(var(--u) * 248); width: calc(var(--u) * 310); font-size: calc(var(--u) * 17); line-height: 1.45; color: #6b6b6b; }
.gnw-btns { left: calc(var(--u) * 28); top: calc(var(--u) * 318); display: flex; gap: calc(var(--u) * 10); }
.gnw-btns span { height: calc(var(--u) * 42); padding: 0 calc(var(--u) * 20); display: flex; align-items: center; font-size: calc(var(--u) * 15); font-weight: 600; border-radius: calc(var(--u) * 8); }
.gnw-cta { background: #ff5a3c; color: #fff; }
.gnw-sec { background: #fff; box-shadow: inset 0 0 0 max(1px, calc(var(--u) * 1)) #d9d7d2; }
.gnw-note { left: calc(var(--u) * 28); top: calc(var(--u) * 378); font: 500 calc(var(--u) * 12.5) ui-monospace, Menlo, monospace; color: #8a8a90; }
.gnw-app {
  left: calc(var(--u) * 376); top: calc(var(--u) * 82); width: calc(var(--u) * 316); height: calc(var(--u) * 310);
  background: #f5f4f0; border: max(1px, calc(var(--u) * 1)) solid #e4e2dc; border-radius: calc(var(--u) * 14); overflow: hidden;
}
.gnw-bar { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * 38); border-bottom: max(1px, calc(var(--u) * 1)) solid #e4e2dc; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--u) * 14); font-size: calc(var(--u) * 13); }
.gnw-bar b { font-weight: 700; color: #2a2a30; }
.gnw-bar span { color: #8a8a90; font-size: calc(var(--u) * 12); }
.gnw-col { position: absolute; left: calc(var(--u) * 12); right: calc(var(--u) * 12); top: calc(var(--u) * 50); display: flex; flex-direction: column; gap: calc(var(--u) * 10); }
.gnw-card {
  height: calc(var(--u) * 60); background: #fff; border: max(1px, calc(var(--u) * 1)) solid #e4e2dc; border-radius: calc(var(--u) * 10); padding: 0 calc(var(--u) * 14) 0 calc(var(--u) * 10);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; align-content: center; column-gap: calc(var(--u) * 10); row-gap: calc(var(--u) * 2);
}
.gnw-card i { grid-row: 1 / span 2; display: grid; place-items: center; width: calc(var(--u) * 40); height: calc(var(--u) * 40); border-radius: calc(var(--u) * 7); }
.gnw-card i .bird { width: calc(var(--u) * 22); height: calc(var(--u) * 22); }
.gnw-card .sw1 { background: #f3d9b1; } .gnw-card .sw1 .bird { color: #b0752a; }
.gnw-card .sw2 { background: #d9a98a; } .gnw-card .sw2 .bird { color: #7a3d1f; }
.gnw-card .sw3 { background: #b89a86; } .gnw-card .sw3 .bird { color: #3e2518; }
.gnw-card b { display: flex; align-items: center; gap: calc(var(--u) * 7); font-size: calc(var(--u) * 15); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.gnw-card em { font-style: normal; font-size: calc(var(--u) * 11); font-weight: 600; padding: calc(var(--u) * 2) calc(var(--u) * 6); border-radius: calc(var(--u) * 5); }
.gnw-card small { grid-column: 2; font-size: calc(var(--u) * 12.5); color: #8a8a90; }
.gnw-card s { grid-column: 3; grid-row: 1 / span 2; text-decoration: none; font-size: calc(var(--u) * 15); font-weight: 700; }
.tg1 { background: #fdf0d8; color: #9a5d12; }
.tg2 { background: #f6e3d6; color: #9a4420; }
.tg3 { background: #ebe4df; color: #4a3426; }

/* narrow layout (panels under ~520px): same page, one column */
[data-lay="narrow"] .gnw-nav { height: calc(var(--u) * 48); padding: 0 calc(var(--u) * 18); }
[data-lay="narrow"] .gnw-links { display: none; }
[data-lay="narrow"] .gnw-badge { left: calc(var(--u) * 18); top: calc(var(--u) * 70); }
[data-lay="narrow"] .gnw-h { left: calc(var(--u) * 18); top: calc(var(--u) * 110); }
[data-lay="narrow"] .gnw-sub { left: calc(var(--u) * 18); top: calc(var(--u) * 232); width: calc(var(--u) * 340); }
[data-lay="narrow"] .gnw-btns { left: calc(var(--u) * 18); top: calc(var(--u) * 302); }
[data-lay="narrow"] .gnw-note { left: calc(var(--u) * 18); top: calc(var(--u) * 362); }
[data-lay="narrow"] .gnw-app { left: calc(var(--u) * 18); top: calc(var(--u) * 396); width: calc(var(--u) * 384); height: calc(var(--u) * 196); }
[data-lay="narrow"] .gnw-card:nth-child(3) { display: none; }

/* the five slips in the build */
.is-code .gnw-badge b { background: #3b5bff; }
.is-code .gnw-h { font-size: calc(var(--u) * 49); }
.is-code .gnw-sub { color: #a8a8a8; }
.is-code .gnw-cta { transform: translateY(calc(var(--u) * 6)); }
.is-code .gnw-col { gap: calc(var(--u) * 20); }

/* merged view */
.g-merge-cap, .g-tags, .g-results { display: none; }
.g-board.merged .g-code { grid-column: 1; }
.g-board.merged .g-cap { opacity: 0; }
.g-board.merged .g-marks { opacity: 0; }
.g-board.merged .g-zones { display: none; }
.g-board.merged .g-screen { cursor: default; }
/* once the layers have landed, raster both the same way so identical pixels really cancel to black */
.g-board.settled .g-screen { will-change: transform; }
.g-board.merged .g-panel::after { opacity: 0; }
.g-board.merged .g-design::after { opacity: 1; }

.m-overlay.merged .g-code .g-screen { opacity: .5; }
.m-compare .g-code .g-screen { mix-blend-mode: difference; opacity: 1; }
.m-wipe .g-code .g-screen { opacity: 1; clip-path: inset(0 0 0 var(--wipe, 50%)); }
.m-wipe.merged .g-screen { cursor: ew-resize; }

.g-merge-cap {
  grid-column: 1; grid-row: 1; z-index: 4; height: var(--cap); align-items: center; gap: 12px; font-size: 15px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
}
.g-board.merged .g-merge-cap { display: flex; }
.g-board.show-cap .g-merge-cap { opacity: 1; transform: none; }
.g-mc-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 17px/1 var(--f-display); }
.g-mc-brand .tile { width: 22px; height: 22px; border-radius: 6px; }
.g-mc-brand .tile i { width: 9px; height: 9px; }
.g-mc-brand .tile i:first-child { left: 4px; top: 4px; }
.g-mc-brand .tile i:last-child { right: 4px; bottom: 4px; }
.g-modes { display: flex; padding: 3px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.g-modes button { padding: 5px 11px; border: 0; background: none; cursor: pointer; border-radius: 7px; font: 600 15px/1.2 var(--f-body); color: var(--ink-2); transition: background .2s, color .2s, transform .12s; }
.g-modes button:hover { color: var(--ink); }
.g-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.g-modes button.press { transform: scale(.88); }
.g-mc-match { margin-left: auto; font: 500 13px var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.g-mc-match b { color: var(--ink); font-weight: 600; }

.g-tags { grid-column: 1; grid-row: 1; z-index: 3; margin-top: var(--cap); aspect-ratio: var(--ar); position: relative; pointer-events: none; }
.g-board.merged .g-tags { display: block; }
.g-halo {
  position: absolute; border-radius: 10px; box-shadow: 0 0 0 2px var(--orange), 0 0 24px 2px rgba(255, 90, 60, .55);
  opacity: 0; transform: scale(1.25); transition: opacity .35s calc(var(--i) * 140ms), transform .5s var(--spring) calc(var(--i) * 140ms);
}
.g-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 9px 3px 3px; border-radius: 8px; background: var(--sun); color: var(--ink);
  font: 600 12px/1.2 var(--f-mono); box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s calc(var(--i) * 140ms + 120ms), transform .45s var(--spring) calc(var(--i) * 140ms + 120ms);
}
.g-chip b { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; }
.g-board.show-tags .g-halo { opacity: 1; transform: none; }
.g-board.show-tags .g-chip { opacity: 1; transform: none; }
.m-overlay .g-halo, .m-wipe .g-halo { box-shadow: 0 0 0 2px var(--orange); }
.g-wipe-line { position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%); width: 2px; margin-left: -1px; background: var(--orange); display: none; }
.g-wipe-line::after { content: "Design  |  Build"; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: pre; background: var(--orange); color: var(--ink); font: 600 11px var(--f-mono); padding: 4px 7px; border-radius: 6px; }
.m-wipe .g-wipe-line { display: block; }

.g-pup { position: absolute; left: -22px; top: -22px; z-index: 7; width: 44px; height: 44px; pointer-events: none; transform: scale(0); will-change: transform; }
.g-pup svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(27, 26, 46, .25)); }

/* results card */
.g-results {
  grid-column: 2; grid-row: 1; align-self: start; margin-top: var(--cap); container-type: inline-size;
  background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(16px, 1.6vw, 22px) clamp(18px, 2vw, 26px);
  box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px rgba(27, 26, 46, .45);
  opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease);
}
.g-board.merged .g-results { display: block; }
.g-board.show-results .g-results { opacity: 1; transform: none; }
.g-results:focus { outline: none; }
.g-res-k { font: 600 13px/1.4 var(--f-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.g-res-title { font: 750 clamp(26px, 2.3vw, 34px)/1.04 var(--f-display); letter-spacing: -.03em; margin-top: 6px; }
.g-res-title .hl { color: #fff; background: var(--orange); padding: 0 .16em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.g-res-you { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.g-res-you b { color: var(--ink); }
.g-res-list { margin-top: 10px; border-top: 1px solid var(--line); }
.g-res-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px;
  opacity: 0; transform: translateX(10px); transition: opacity .3s calc(var(--i) * 90ms + 300ms), transform .45s var(--ease) calc(var(--i) * 90ms + 300ms);
}
.g-board.show-results .g-res-list li { opacity: 1; transform: none; }
.g-res-list .n { grid-row: 1 / span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sun); color: var(--ink); font: 600 11px var(--f-mono); }
.g-res-list .nm { font-weight: 650; line-height: 1.25; }
.g-res-list .ms { grid-column: 2; font: 500 13px/1.5 var(--f-mono); color: var(--ink-2); }
.g-res-list .st { grid-column: 3; grid-row: 1 / span 2; font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.g-res-list .st.you { background: #ffe3dc; color: #a3260f; }
.g-res-list .st.miss { background: var(--wash); color: var(--ink-2); }
.g-res-how { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.g-res-cta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 14px; }
.g-results .store-note { margin-top: 10px; }
@container (min-width: 520px) {
  .g-res-list li { grid-template-columns: 24px minmax(0, 1fr) auto 80px; padding: 6px 0; }
  .g-res-list .n, .g-res-list .ms, .g-res-list .st { grid-column: auto; grid-row: auto; }
  .g-res-list .ms { text-align: right; }
  .g-res-list .st { justify-self: end; }
}

@media (max-width: 720px) {
  .g-board { grid-template-columns: minmax(0, 1fr); --cap: 36px; }
  .g-code { grid-column: 1; grid-row: 2; }
  .g-board.merged .g-code { grid-row: 1; }
  .g-results { grid-column: 1; grid-row: 2; margin-top: 0; }
  .g-chip { padding: 2px; font-size: 0; gap: 0; }
  .g-chip b { font-size: 11px; }
  .g-chip .t { display: none; }
  .g-hud { padding: 12px; gap: 10px 14px; }
  .g-score-n { font-size: 26px; }
  .g-timer { flex: 1 1 120px; }
  .g-msg { order: 5; flex: 1 1 100%; min-width: 0; font-size: 16px; line-height: 1.4; }
  .g-hud #gGiveup { order: 4; margin-left: auto; align-self: center; }
  .g-mc-match { display: none; }
  .g-modes button { padding: 5px 9px; font-size: 14px; }
  .g-lede { font-size: 18px; }
}
@media (max-width: 420px) {
  .g-score-k { display: none; }
  .g-mc-brand { font-size: 0; gap: 0; }
}

/* ======================================================================
   3 · THE TOOLKIT (sticky scroll tour)
   ====================================================================== */
.tour { position: relative; background: var(--paper); padding-top: clamp(64px, 8vw, 96px); }
@media (min-width: 980px) { .tour { padding-top: 20px; } }
/* a design-tool ruler along the top edge: 10px ticks, 50px, 100px */
.tour::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(27, 26, 46, .42) 0 1px, transparent 1px 100px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(27, 26, 46, .28) 0 1px, transparent 1px 50px) left bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(27, 26, 46, .2) 0 1px, transparent 1px 10px) left bottom / 100% 4px no-repeat,
    #fbfaff;
  border-bottom: 1px solid var(--line);
}
.tour-head { display: grid; gap: 12px; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.tour-head h2 { font: 740 clamp(40px, 5.6vw, 78px)/.96 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -.02em; }
.tour-head p { max-width: 44ch; color: var(--ink-2); font-size: 19px; }
/* on wide screens the heading sits in the pinned column, above the steps */
.t-side { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 32px); min-width: 0; }
.t-side .tour-head { margin: 0; padding: 0 16px; gap: 10px; }
.t-side .tour-head h2 { font-size: clamp(40px, 4vw, 60px); }
.t-side .tour-head p { font-size: 17px; }
@media (max-height: 780px) { .t-side .tour-head p { display: none; } }
.tour-track { position: relative; height: 480vh; }
.tour-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.tour-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
@media (min-width: 980px) { .tour-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 56px); } }

/* steps */
.t-steps { display: flex; flex-direction: column; gap: 4px; }
.t-step {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: baseline;
  width: 100%; text-align: left; background: transparent; border: 0; border-radius: 14px; padding: 14px 16px; cursor: pointer;
  color: var(--ink); transition: background-color .25s, box-shadow .25s;
}
.t-n { font: 600 13px/1 var(--f-mono); color: var(--ink-3); transition: color .25s; }
.t-step b { font: 700 clamp(20px, 1.7vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink-2); transition: color .25s; }
.t-line { grid-column: 2; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.t-step:hover { background: rgba(255, 255, 255, .7); }
.t-step[aria-current] { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(27, 26, 46, .4); }
.t-step[aria-current] b { color: var(--ink); }
.t-step[aria-current] .t-n { color: #c2381a; }
.t-step[aria-current] .t-line { color: var(--ink-2); }

/* instrument */
.t-inst { position: relative; min-width: 0; width: min(100%, calc((100svh - 190px) * 1.6 + 20px)); justify-self: end; }
.t-pup { position: absolute; right: 30px; top: -42px; width: 58px; height: 58px; z-index: 0; will-change: transform; }
.t-pup svg { display: block; width: 100%; height: 100%; overflow: visible; }
.t-frame {
  position: relative; z-index: 1; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(27, 26, 46, .1), 0 40px 70px -40px rgba(27, 26, 46, .45), 0 12px 24px -18px rgba(27, 26, 46, .25);
}
.t-chrome { height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #f3f2f8; border-bottom: 1px solid var(--line); font: 500 11px var(--f-mono); color: var(--ink-3); }
.t-url { padding: 4px 9px; background: #fff; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.t-layer { margin-left: auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-2); }
.t-layer i { width: 10px; height: 8px; border-radius: 2px; outline: 1.5px dashed var(--ghost); outline-offset: -1.5px; background: var(--ghost-soft); }
.t-layer b { font-weight: 600; color: var(--ink); }

.t-rig { --rs: 18px; position: relative; display: grid; grid-template-columns: var(--rs) minmax(0, 1fr); grid-template-rows: var(--rs) auto; background: #fbfaff; }
.t-corner { grid-row: 1; grid-column: 1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-ruler { display: block; width: 100%; height: 100%; }
.t-ruler-x { grid-row: 1; grid-column: 2; border-bottom: 1px solid var(--line); }
.t-ruler-y { grid-row: 2; grid-column: 1; border-right: 1px solid var(--line); }
.t-rig::before, .t-rig::after { content: ""; position: absolute; background: var(--orange); opacity: 0; pointer-events: none; transition: opacity .15s; }
.t-rig::before { left: 0; top: 0; width: 1.5px; height: var(--rs); transform: translateX(calc(var(--rs) + var(--mx, 0px))); }
.t-rig::after { left: 0; top: 0; height: 1.5px; width: var(--rs); transform: translateY(calc(var(--rs) + var(--my, 0px))); }
.t-rig.hover::before, .t-rig.hover::after { opacity: 1; }

.t-view { grid-row: 2; grid-column: 2; position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: #fff; touch-action: pan-y; }
.t-view:focus-visible { outline: 3px solid var(--ghost); outline-offset: -3px; border-radius: 0; }
.t-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#tMock { opacity: .5; transition: opacity .35s; }
.t-view[data-mode="compare"] #tMock { opacity: 1; mix-blend-mode: difference; }
.t-view[data-mode="wipe"] #tMock { opacity: 1; clip-path: inset(0 calc(100% - var(--wipe, 50) * 1%) 0 0); }
.t-view[data-mode="loupe"] #tMock { opacity: 0; }

.t-diffs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .25s; }
.t-diffs rect { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; }
.t-dl { position: absolute; font: 600 11px/1 var(--f-mono); color: var(--ink); background: var(--sun); padding: 5px 7px; border-radius: 6px; white-space: nowrap;
        opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .35s var(--spring); pointer-events: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.t-view[data-mode="compare"] .t-diffs { opacity: var(--diff-o, 1); }
.t-view[data-mode="compare"] .t-dl { opacity: var(--diff-o, 1); transform: none; }
.t-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); opacity: 0; pointer-events: none;
  font: 800 clamp(20px, 5vw, 46px)/1 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; text-align: center;
  color: var(--mint); background: rgba(255, 255, 255, .95); border-radius: 12px; padding: .16em .42em .22em;
  box-shadow: inset 0 0 0 3px var(--mint), inset 0 0 0 6px #fff, inset 0 0 0 7.5px var(--mint);
  transition: opacity .25s, transform .5s var(--spring);
}
.t-stamp small { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: none; margin-top: .5em; }
.t-view.shipped .t-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }

.t-wipe { position: absolute; top: 0; bottom: 0; left: calc(var(--wipe, 50) * 1%); width: 0; border-left: 2px solid var(--orange); display: none; pointer-events: none; }
.t-wipe span { position: absolute; top: 10px; font: 600 11px/1 var(--f-mono); padding: 5px 7px; background: var(--ghost); color: #fff; border-radius: 6px 0 0 6px; }
.t-wipe span:first-child { right: 1px; }
.t-wipe span:last-child { left: 0; background: var(--ink); border-radius: 0 6px 6px 0; }
.t-wipe::after { content: ""; position: absolute; top: 50%; left: -9px; width: 16px; height: 34px; margin-top: -17px; background: #fff; border: 2px solid var(--orange); border-radius: 8px; }
.t-view[data-mode="wipe"] .t-wipe { display: block; }
.t-view[data-mode="wipe"] { cursor: ew-resize; }

.t-xh { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.t-rig.hover .t-xh { opacity: 1; }
.t-view[data-mode="loupe"] .t-xh { display: none; }
.t-xh-v, .t-xh-h { position: absolute; left: 0; top: 0; background: var(--ghost); opacity: .45; }
.t-xh-v { width: 1px; height: 100%; }
.t-xh-h { height: 1px; width: 100%; }
.t-xh-tag { position: absolute; left: 0; top: 0; font: 600 10px/1 var(--f-mono); color: #fff; background: var(--ghost); padding: 4px 6px; border-radius: 5px; white-space: nowrap; }

.t-loupe { position: absolute; left: 0; top: 0; width: var(--L, 150px); height: var(--L, 150px); display: none; pointer-events: none; will-change: transform; z-index: 3; }
.t-view[data-mode="loupe"] .t-loupe { display: block; }
.t-view[data-mode="loupe"].hovering { cursor: none; }
.t-view[data-mode="loupe"] { cursor: zoom-in; }
.t-lens { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px #fff, 0 16px 30px -10px rgba(27, 26, 46, .55); }
.t-lens canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.t-lens-x { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); font: 600 10px/1 var(--f-mono); color: #fff; background: var(--ink); padding: 3px 5px; border-radius: 5px; }
.t-lp-info { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 11px/1 var(--f-mono); white-space: nowrap; }
.t-lp-info i { width: 11px; height: 11px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); flex: none; }
.t-lp-mock { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); padding: 5px 8px; border-radius: 8px; background: var(--ghost); color: #fff; font: 600 11px/1 var(--f-mono); white-space: nowrap; display: none; }
.t-lp-mock.on { display: block; }
.t-toast { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); font: 600 13px var(--f-mono); background: var(--mint); color: #fff; padding: 8px 12px; border-radius: 9px;
           opacity: 0; transition: opacity .25s, transform .3s var(--spring); pointer-events: none; white-space: nowrap; z-index: 4; }
.t-toast.on { opacity: 1; transform: translate(-50%, 0); }
.t-toast:empty { display: none; }

.t-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.t-modes { display: flex; padding: 3px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.t-modes span { padding: 7px 12px; border-radius: 8px; font: 600 15px/1.2 var(--f-body); color: var(--ink-2); transition: background .25s, color .25s; }
.t-modes span.on { background: var(--ink); color: #fff; }
.t-score { display: flex; align-items: baseline; gap: 10px; font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.t-score b { font: 750 28px/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: right; text-transform: none; transition: color .3s; }
.t-score.full b { color: #0b8a55; }
.t-ticks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 14px; }
.t-ticks i { height: 4px; border-radius: 99px; background: #e4e1f0; position: relative; overflow: hidden; }
.t-ticks i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(var(--f, 0)); transform-origin: left; }

@media (max-width: 979px) {
  .tour-track { height: 460vh; }
  .t-side { display: contents; }
  .t-inst { order: -1; width: 100%; justify-self: stretch; margin-top: 44px; }
  .t-steps { gap: 0; }
  .t-steps li:not(:has([aria-current])) { display: none; }
  .t-step { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 14px; }
  .t-step:hover { background: #fff; }
  .t-pup { width: 50px; height: 50px; top: -36px; right: 22px; }
}
@media (max-width: 640px) {
  .t-rig { --rs: 14px; }
  .t-chrome { height: 30px; }
  .t-url { display: none; }
  .t-modes span { padding: 6px 8px; font-size: 14px; }
  .t-score b { font-size: 22px; }
  .t-dl { font-size: 10px; padding: 4px 5px; }
  .t-step b { font-size: 20px; }
  .t-line { font-size: 16px; }
  .t-lp-info, .t-lp-mock { font-size: 10px; }
}
/* No room to pin (short or landscape screens): the steps become plain tabs */
.t-nopin .tour-track { height: auto; }
.t-nopin .tour-pin { position: relative; height: auto; padding-block: 40px 72px; }
.t-nopin .t-steps li { display: block !important; }
.t-nopin .t-ticks { display: none; }
@media (max-width: 979px) { .t-nopin .t-inst { margin-top: 44px; } }

/* ======================================================================
   4 · FREE + FOOTER
   ====================================================================== */
.free { background: var(--orange); color: var(--ink); padding-block: clamp(56px, 7vw, 96px); }
.free :focus-visible { outline-color: var(--ink); }
.free-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 980px) { .free-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.free h2 { max-width: 12ch; }
.nos { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 20px; font: 700 clamp(26px, 3.2vw, 44px)/1.15 var(--f-display); letter-spacing: -.03em; }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .1em; border-radius: 99px; background: var(--ink);
  transform-origin: 0 50%; transform: rotate(-3deg) scaleX(1);
  transition: transform .6s cubic-bezier(.34, 1.6, .5, 1);
}
.js .strike:not(.struck)::after { transform: rotate(-3deg) scaleX(0); }
.free-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.free-side p { font-size: 19px; line-height: 1.5; max-width: 40ch; }
.free .store-note { color: var(--ink); font-size: 16px; }
.free .store-note::before { box-shadow: 0 0 0 2px var(--ink); }

.foot { padding-block: 32px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-dog { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 16px; }
.foot-pup { width: 44px; height: 44px; flex: none; overflow: visible; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; font-size: 16px; }
.foot-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.foot-links a:hover { color: var(--ink); text-decoration-color: var(--orange); }
.foot-c { color: var(--ink-3); font-size: 15px; }
@media (max-width: 720px) { .foot-links { margin-left: 0; } .foot-in { gap: 14px 24px; } }

/* ======================================================================
   Subpages: privacy + 404
   ====================================================================== */
.page-head { max-width: var(--max); margin: 0 auto; padding: 20px var(--gut); display: flex; align-items: center; gap: 24px; }
.page-head .links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 16px; }
.page-head .links a { text-decoration: none; color: var(--ink-2); }
.page-head .links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
@media (max-width: 720px) { .page-head .links { display: none; } .page-head .btn-sm { margin-left: auto; } }

.prose { max-width: 72ch; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gut) clamp(64px, 9vw, 120px); font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose h1 { font: 740 clamp(40px, 6vw, 72px)/.98 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -.02em; color: var(--ink); margin-bottom: 28px; }
.prose h2 { font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin: 48px 0 12px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; list-style: none; }
.prose li { position: relative; margin-top: 8px; }
.prose li::before { content: ""; position: absolute; left: -1.1em; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.prose strong, .prose b { color: var(--ink); }
.prose em { font-style: normal; font-weight: 600; color: var(--ink); box-shadow: inset 0 -.32em 0 rgba(255, 216, 74, .7); }
.prose a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code { font: 500 .85em var(--f-mono); background: var(--wash); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.prose .card { margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.prose .card p { margin: 0; }
.prose .dim { margin-top: 40px; font-size: 16px; color: var(--ink-3); }

.lost { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 6vh, 72px) var(--gut) clamp(72px, 12vh, 140px); display: grid; gap: 28px; justify-items: start; }
.lost h1 { font: 740 clamp(46px, 8vw, 112px)/.95 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -.022em; max-width: 12ch; }
.lost h1 .off { display: inline-block; position: relative; color: var(--orange); transform: translate(1px, 1px); }
.lost h1 .off::after { content: "↘ 1px"; position: absolute; left: 100%; top: -.1em; margin-left: .2em; font: 600 13px/1 var(--f-mono); background: var(--sun); color: var(--ink); padding: 6px 8px; border-radius: 8px; letter-spacing: 0; white-space: nowrap; }
.lost p { font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.lost-pup { position: relative; display: block; width: clamp(120px, 18vw, 180px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.lost-pup svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lost-pup::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 8%; border-radius: 50%; background: rgba(27, 26, 46, .1); z-index: -1; }

@media (prefers-reduced-motion: reduce) {
  .js [data-enter], .js .rv, .js .rv-o { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ======================================================================
   ARTICLES: /perfectpixel-alternative/ and /guides/…
   Built on .prose (18px body, ≤72ch box). Tables, figures and the CTA
   card are the only extras.
   ====================================================================== */
.crumbs { font: 500 13px/1.4 var(--f-mono); letter-spacing: .02em; color: var(--ink-3); margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.prose .crumbs li { margin: 0; }
.prose .crumbs li::before { content: none; }
.prose .crumbs li + li::before { content: "/"; position: static; width: auto; height: auto; background: none; transform: none; margin: 0 .6em; color: var(--ink-3); }
.prose .crumbs a { color: var(--ink-2); text-decoration: none; }
.prose .crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }

.prose .kick { display: block; margin-bottom: 14px; font: 600 13px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prose .lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin-top: 0; }
.prose h3 { font: 700 21px/1.25 var(--f-display); letter-spacing: -.015em; color: var(--ink); margin: 32px 0 6px; }
.prose h2 + h3 { margin-top: 18px; }

.checked { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.3 var(--f-mono); color: var(--ink); }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px rgba(27, 26, 46, .12); flex: none; }
.byline { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* numbered lists (steps) */
.prose ol.num { counter-reset: n; padding-left: 2.2em; margin-top: 14px; }
.prose ol.num > li { counter-increment: n; }
.prose ol.num > li::before { content: counter(n); left: -2.2em; top: .15em; width: 1.6em; height: 1.6em; transform: none; border-radius: 7px; background: var(--ink); color: #fff; font: 700 13px/1.6em var(--f-mono); text-align: center; }

/* table of contents */
.prose .toc { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; }
.prose .toc b { display: block; font: 600 13px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prose .toc ol { margin-top: 8px; padding-left: 1.2em; list-style: decimal; }
.prose .toc li { margin-top: 4px; }
.prose .toc li::before { content: none; }
.prose .toc a { text-decoration-color: var(--line); }
.prose .toc a:hover { text-decoration-color: var(--orange); }

/* comparison table: a table on wide screens, one card per row on phones */
.cmp-wrap { margin-top: 24px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.cmp caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 15px; color: var(--ink-3); }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 700 16px/1.2 var(--f-display); color: var(--ink); border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.cmp td.us { background: var(--ghost-soft); color: var(--ink); }
.cmp thead th.us { background: var(--ghost-soft); border-radius: 12px 12px 0 0; }
.cmp .ns { color: var(--ink-3); font-style: italic; }
@media (max-width: 640px) {
  .cmp, .cmp tbody, .cmp tr, .cmp td, .cmp tbody th { display: block; width: auto; }
  .cmp { background: none; box-shadow: none; }
  .cmp caption { display: block; padding: 0 0 4px; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { margin-top: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
  .cmp tbody th { border-bottom: 1px solid var(--line); background: var(--wash); }
  .cmp td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; }
  .cmp td::before { content: attr(data-label); font: 600 12px/1.6 var(--f-mono); letter-spacing: .02em; color: var(--ink-3); }
  .cmp tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .cmp tbody tr > :last-child { border-bottom: 0 !important; }
}

/* screenshots: break out of the text column on wide screens */
.prose .shot { margin: 28px 0 8px; }
.shot img { width: 100%; height: auto; border-radius: 14px; background: var(--wash); box-shadow: 0 0 0 1px var(--line), 0 22px 44px -28px rgba(27, 26, 46, .45); }
.shot figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
@media (min-width: 1160px) { .prose .shot { margin-inline: -110px; } .shot figcaption { padding-inline: 110px; } }

/* tip / checklist / sources boxes */
.prose .tip { margin-top: 18px; padding: 16px 20px; border-radius: 14px; background: #fff8dc; box-shadow: inset 0 0 0 1px #f3e3a0; color: var(--ink); font-size: 17px; }
.prose .tip b:first-child { font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.prose ul.check { padding-left: 2em; }
.prose ul.check li::before { top: .3em; left: -1.9em; width: 1.05em; height: 1.05em; border-radius: 5px; transform: none; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.prose .sources { font-size: 16px; }
.prose .sources li { margin-top: 6px; }
.prose .fine-print { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

/* call to action card, with the pup */
.prose .cta-card { position: relative; margin-top: 48px; padding: 28px 26px 26px; border-radius: 20px; background: var(--orange); color: var(--ink); display: grid; gap: 14px; justify-items: start; }
.prose .cta-card h2 { margin: 0; padding-right: 76px; }
.prose .cta-card p { margin: 0; color: var(--ink); max-width: 46ch; }
.cta-card .cta-pup { position: absolute; right: 18px; top: -26px; width: 84px; height: 84px; overflow: visible; }
.prose .cta-card .store-note { color: var(--ink); font-size: 15px; }
.prose .cta-card .store-note::before { box-shadow: 0 0 0 2px var(--ink); }
.prose .cta-card :focus-visible { outline-color: var(--ink); }
.prose .btn { color: #fff; text-decoration: none; }
.prose .btn-ink { color: #fff; }

.prose .faq h3 { margin-top: 26px; }
.prose .faq p { margin-top: 6px; }

/* home: quiet link under "Free, for real" */
.free-more { font-size: 16px; }
.free-side .free-more { font-size: 16px; max-width: none; }
.free-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(27, 26, 46, .35); }
.free-more a:hover { text-decoration-color: var(--ink); }
