/* Accountify site: the Kaju & Pista papercut world. One sheet for every page. */
@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --sky: #F9C784;
  --sky-2: #F4A259;
  --floor: #F2D9B8;
  --kraft: #E3BE8C;
  --cream: #FFF6E0;
  --white: #FFFDF6;
  --card: #FFF6E0;
  --sage: #BFE6C9;
  --ink: #2A2118;
  --ink-soft: #5B4636;
  --kaju: #EFB100;
  --kaju-deep: #A87400;
  --pista: #1DC97A;
  --pista-deep: #0F7A47;
  --tomato: #E5484D;
  --night: #1F1A2E;
  --night-2: #2B2440;
  --anton: "Anton", "Arial Narrow", sans-serif;
  --baloo: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* paper lifts off the page: a soft cast shadow, never a glow */
  --lift: drop-shadow(0 3px 2px rgba(60, 35, 10, .22)) drop-shadow(0 10px 14px rgba(60, 35, 10, .18));
  --lift-up: drop-shadow(0 -3px 3px rgba(60, 35, 10, .22)) drop-shadow(0 -8px 12px rgba(60, 35, 10, .14));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--floor); scroll-behavior: smooth; scrollbar-color: var(--kaju-deep) var(--floor); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--floor); font: 500 18px/1.6 var(--baloo); text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--kaju); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: var(--kaju); }
a:hover { text-decoration-color: var(--ink); }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--kaju); padding: 8px 12px; }
/* paper fibre over paper-coloured surfaces */
.fibre { position: relative; isolation: isolate; }
.fibre::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("paper/fibre.webp") repeat; background-size: 256px; opacity: .1; mix-blend-mode: multiply; }

/* ── Type ──────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--anton); font-weight: 400; font-size: clamp(40px, 6.4vw, 76px); line-height: .95; letter-spacing: .01em; }
h3 { font-family: var(--baloo); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; max-width: 36ch; }

/* taped headline strip: the reels' signature */
.strip { position: relative; display: inline-block; padding: .14em .42em .04em; background: var(--white); font-family: var(--anton); font-weight: 400; font-size: clamp(48px, 9vw, 112px); line-height: .92; letter-spacing: .01em; rotate: -2deg; filter: var(--lift); }
.strip.gold { background: var(--kaju); rotate: 1.5deg; margin-top: .08em; }
.tape { position: absolute; width: clamp(64px, 9vw, 112px); height: auto; pointer-events: none; z-index: 2; }
.tape.tl { left: -20px; top: -16px; rotate: -12deg; }
.tape.tr { right: -20px; top: -16px; rotate: 10deg; }
/* section headlines ride their own taped strips, each cut and stuck a little differently */
h2 .strip { font-size: inherit; padding: .13em .4em .03em; color: var(--ink); }
.split h2, .screens h2, .settle h2 { font-size: clamp(40px, 5.2vw, 64px); }
h2 .strip::before { content: ""; position: absolute; left: -32px; top: -16px; width: clamp(48px, 4.4vw, 62px); aspect-ratio: 284 / 58; background: url("paper/tape.webp") center / 100% 100% no-repeat; rotate: -35deg; }
h2 .strip.tr::before { left: auto; right: -32px; rotate: 35deg; }
/* one piece of tape per headline: the first strip holds it */
h2 br + .strip::before { content: none; }
.strip.sage { background: var(--sage); rotate: 1.2deg; }
.strip.tilt { rotate: 1.4deg; }
.strip.ink { background: var(--ink); color: var(--white); }

/* ── Buttons: cut-paper tabs ───────────────────────────────── */
.btn {
  --bg: var(--kaju); --sh: var(--kaju-deep);
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px 0 18px; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; font: 800 18px/1 var(--baloo);
  box-shadow: 0 5px 0 var(--sh), 0 12px 18px -8px rgba(60, 35, 10, .45); transition: translate .2s var(--pop), box-shadow .2s var(--pop);
}
.btn:hover { translate: 0 -2px; box-shadow: 0 7px 0 var(--sh), 0 16px 22px -8px rgba(60, 35, 10, .45); }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--sh), 0 6px 10px -6px rgba(60, 35, 10, .45); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn.paper { --bg: var(--cream); --sh: #D8C3A0; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 16px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.note { font-size: 15px; color: var(--ink-soft); }

/* ── Header ────────────────────────────────────────────────── */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1 var(--anton); letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; filter: var(--lift); }
.top nav { display: flex; gap: clamp(10px, 2.4vw, 26px); font-weight: 700; font-size: 16px; }
.top nav a { text-decoration: none; padding: 6px 2px; }
.top nav a:hover, .top nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); }
.top nav .short { display: none; }
@media (max-width: 640px) { .top nav .long { display: none; } .top nav .short { display: inline; } .top nav { font-size: 15px; gap: 12px; } .brand span { display: none; } }

/* ── Hero diorama ──────────────────────────────────────────── */
.diorama { position: relative; isolation: isolate; overflow: clip; min-height: clamp(760px, 100svh, 1020px); background: linear-gradient(180deg, #FCCC88 0%, #F6AC63 55%, #F29A50 100%); }
.diorama::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("paper/fibre.webp") repeat; background-size: 256px; opacity: .16; mix-blend-mode: multiply; z-index: 6; }
.layer { position: absolute; left: -10%; width: 120%; max-width: none; height: auto; pointer-events: none; }
.sun { position: absolute; width: clamp(130px, 16vw, 250px); right: 11%; top: 15%; filter: var(--lift); pointer-events: none; }
.cloud { position: absolute; filter: var(--lift); pointer-events: none; }
.cloud.c1 { width: clamp(150px, 20vw, 300px); left: 5%; top: 24%; }
.cloud.c2 { width: clamp(110px, 13vw, 200px); right: 33%; top: 10%; }
.hill-far { bottom: 28%; filter: var(--lift-up); }
.hill-mid { bottom: 19%; filter: var(--lift-up); }
.hill-near { bottom: 10%; filter: var(--lift-up); }
.front { bottom: -7%; filter: var(--lift-up); z-index: 3; }
/* pointer parallax (desktop): site.js sets --px on .diorama */
.diorama .sun { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); }
.diorama .hill-far { translate: calc(var(--px, 0) * -10px) 0; }
.diorama .hill-mid { translate: calc(var(--px, 0) * -22px) 0; }
.diorama .hill-near { translate: calc(var(--px, 0) * -36px) 0; }
@media (prefers-reduced-motion: no-preference) {
  .cloud.c1 { animation: drift 38s ease-in-out infinite alternate; }
  .cloud.c2 { animation: drift 46s ease-in-out infinite alternate-reverse; }
  @keyframes drift { to { transform: translateX(6vw); } }
  /* scroll parallax, native (no JS) where supported */
  @supports (animation-timeline: scroll()) {
    .sun, .hill-far, .hill-mid, .hill-near { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .sun { --y: 140px; } .hill-far { --y: 80px; } .hill-mid { --y: 46px; } .hill-near { --y: 20px; }
    @keyframes sink { to { transform: translateY(var(--y)); } }
  }
}

.hero-copy { position: relative; z-index: 5; padding-top: clamp(112px, 16vh, 170px); }
.hero-copy .pinned { position: relative; display: inline-block; max-width: min(560px, 100%); margin-top: clamp(22px, 3vw, 32px); padding: 22px 24px 20px; background: var(--white); border-radius: 4px; rotate: -.6deg; filter: var(--lift); }
.hero-copy .pinned .tape { left: 50%; top: -18px; translate: -50% 0; rotate: 4deg; }
.hero-copy .lead { margin: 0 0 20px; }
.hero-copy .note { margin-top: 14px; }

/* the stage on the front paper: Kaju, the pile of proof, Pista */
.stage {
  position: absolute; z-index: 4; bottom: calc(2% + clamp(26px, 3vw, 44px)); right: max(var(--gutter), (100% - 1200px) / 2);
  width: min(700px, 52%); height: clamp(280px, 30vw, 440px);
  display: grid; grid-template-columns: 1fr minmax(170px, 1.05fr) 1fr; align-items: end;
}
@media (max-width: 1100px) { .stage { width: min(640px, 60%); } }
.mascot { width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: contain; justify-self: center; filter: drop-shadow(0 12px 8px rgba(60, 35, 10, .22)); }
.pile { position: relative; align-self: stretch; }
.proof {
  position: absolute; left: 50%; bottom: 16%; width: min(100%, 260px); padding: 14px 16px 12px; border-radius: 6px;
  background: var(--white); filter: var(--lift); translate: -50% 0; rotate: var(--r, -3deg); transform-origin: 50% 100%;
}
.proof .h { display: flex; align-items: center; gap: 10px; font: 800 18px/1.1 var(--baloo); }
.proof .h svg { width: 32px; height: 32px; flex: none; padding: 6px; border-radius: 9px; background: #FFE9A8; }
.proof .by { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.proof .stamp { position: absolute; right: -10px; top: -14px; padding: 3px 10px 0; border: 3px solid var(--pista-deep); border-radius: 8px; font: 400 18px/1.3 var(--anton); letter-spacing: .06em; color: var(--pista-deep); background: var(--cream); rotate: 12deg; }
.pile .lbl { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 13px; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .proof.in { animation: fly .75s var(--pop) both; }
  .proof.in .stamp { animation: thump .45s var(--pop) .9s both; }
  .proof.out { animation: away .6s var(--ease) both; }
  @keyframes fly { from { translate: -50% -150%; rotate: var(--r0, -20deg); opacity: 0; } }
  @keyframes thump { from { opacity: 0; scale: 2.4; } to { opacity: 1; scale: 1; } }
  @keyframes away { to { translate: -50% 40%; opacity: 0; } }
}
@media (max-width: 760px) {
  .diorama { min-height: 0; padding-bottom: clamp(340px, 108vw, 500px); }
  .layer { left: -70%; width: 240%; }
  .front { bottom: -1%; left: -110%; width: 320%; }
  .hill-far { bottom: 32%; } .hill-mid { bottom: 21%; } .hill-near { bottom: 9%; }
  .sun { top: 64px; right: -9%; width: 38vw; opacity: .9; }
  .cloud.c1 { top: auto; bottom: 47%; left: -8%; width: 42vw; } .cloud.c2 { display: none; }
  .stage { left: 50%; right: auto; translate: -50% 0; width: calc(100% - 2 * var(--gutter)); grid-template-columns: 1fr 1fr; height: clamp(260px, 84vw, 400px); bottom: calc(1% + 22px); }
  .pile { position: absolute; inset: 0 22% 34%; }
  .pile .lbl { bottom: auto; top: -14px; left: 50%; right: auto; translate: -50% 0; padding: 1px 9px 0; background: var(--white); border-radius: 2px; white-space: nowrap; rotate: -2deg; filter: var(--lift); }
  .proof { padding: 10px 11px 9px; } .proof .h { font-size: 15px; gap: 8px; } .proof .h svg { width: 26px; height: 26px; padding: 5px; } .proof .by { font-size: 12px; }
  .proof .stamp { font-size: 14px; right: -6px; }
  .hero-copy .pinned { padding: 18px 18px 16px; }
}

/* ── Torn section edges: every band tears over the one above ── */
section, .fine { position: relative; isolation: isolate; }
.on-cream, .on-floor, .on-kraft, .on-night, .fine { --edge: url("paper/edge-cream.webp"); }
.on-floor { --edge: url("paper/edge-floor.webp"); }
.on-kraft { --edge: url("paper/edge-kraft.webp"); }
.on-night { --edge: url("paper/edge-night.webp"); }
.fine { --edge: url("paper/edge-ink.webp"); }
.on-cream::after, .on-floor::after, .on-kraft::after, .on-night::after, .fine::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: clamp(30px, 3.6vw, 52px); top: calc(-1 * clamp(30px, 3.6vw, 52px) + 2px);
  background: var(--edge) center bottom / auto 100% repeat-x; pointer-events: none; filter: drop-shadow(0 -3px 3px rgba(60, 35, 10, .16));
}
main > section:first-child::after { content: none; }
.pad { padding-block: clamp(56px, 9vw, 120px); }
.on-cream { background: var(--cream); }
.on-floor { background: var(--floor); }
.on-kraft { background: var(--kraft); }
.on-night { background: var(--night); color: var(--cream); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lead { margin-top: 14px; }

/* ── How it works: a three-panel storyboard ────────────────── */
.board { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(18px, 2.8vw, 34px); align-items: start; }
.panel { position: relative; background: var(--card); border-radius: 6px; padding: 16px 16px 22px; filter: var(--lift); }
.panel:nth-child(1) { rotate: -1.5deg; } .panel:nth-child(2) { rotate: .8deg; margin-top: 30px; } .panel:nth-child(3) { rotate: -.7deg; }
.scene { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: url("paper/cloud.webp") 6% 12% / 36% auto no-repeat, url("paper/sun.webp") 90% 10% / 25% auto no-repeat,
    url("paper/hill-far.webp") 30% 70% / 300% auto no-repeat, url("paper/hill-mid.webp") 72% 88% / 280% auto no-repeat, linear-gradient(180deg, #FBD497, var(--sky-2)); }
.scene.alt { background: url("paper/sun.webp") 10% 14% / 22% auto no-repeat, url("paper/cloud.webp") 96% 8% / 30% auto no-repeat,
    url("paper/hill-far.webp") 80% 64% / 300% auto no-repeat, url("paper/hill-near.webp") 20% 92% / 260% auto no-repeat, linear-gradient(180deg, #FBD497, var(--sky-2)); }
.scene.night { background: url("paper/moon.webp") 86% 10% / 17% auto no-repeat, url("paper/star.webp") 14% 14% / 6% auto no-repeat, url("paper/star.webp") 40% 6% / 4% auto no-repeat,
    url("paper/night-far.webp") 40% 66% / 300% auto no-repeat, url("paper/night-near.webp") 70% 90% / 280% auto no-repeat, #2B2440 url("paper/night-sky.webp") center / cover; }
.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: url("paper/floor.webp") 50% 0 / 280% auto no-repeat; filter: drop-shadow(0 -2px 2px rgba(60, 35, 10, .2)); }
.scene.night::after { background-image: url("paper/night-floor.webp"); }
.scene video { position: relative; z-index: 1; width: 84%; aspect-ratio: 1; object-fit: contain; margin-bottom: -4%; }
.scene.two video { width: 64%; margin-inline: -9%; }
.scene .card-mini { position: absolute; z-index: 2; left: 7%; top: 10%; padding: 5px 10px 3px; border-radius: 2px; background: var(--white); font: 800 14px/1.3 var(--baloo); filter: var(--lift); rotate: -6deg; }
.scene .card-mini svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.panel h3 { margin: 16px 4px 6px; }
.panel p { margin: 0 4px; color: var(--ink-soft); }
@media (max-width: 860px) { .board { grid-template-columns: minmax(0, 1fr); } .panel:nth-child(2) { margin-top: 0; } }

/* ── Proof kinds: each one is its own bit of paper ──────────── */
.kinds { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(26px, 3vw, 40px) clamp(14px, 1.6vw, 22px); margin: 0 0 clamp(36px, 5vw, 56px); padding: 12px 0 0; list-style: none; }
.kinds > li { position: relative; filter: var(--lift); }
.kinds b { display: block; font-size: 19px; line-height: 1.25; }
.kinds .t { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.kinds .taped::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -14px; width: 84px; aspect-ratio: 284 / 58; translate: -50% 0; background: url("paper/tape.webp") center / 100% 100% no-repeat; rotate: -5deg; }
/* photo: a print with a white border */
.k-photo { width: 222px; padding: 11px 11px 16px; background: var(--white); rotate: -3deg; }
.k-photo .print { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; background: url("paper/sun.webp") 82% 14% / 26% auto no-repeat, url("paper/hill-mid.webp") 30% 80% / 320% auto no-repeat, url("paper/hill-near.webp") 70% 100% / 300% auto no-repeat, linear-gradient(180deg, #FBD497, var(--sky-2)); box-shadow: inset 0 0 0 1px rgba(42, 33, 24, .12); }
/* video: a strip of film */
.k-video { width: 244px; padding: 26px 14px; color: var(--white); rotate: 2.2deg; margin-top: 30px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--floor) 0 9px, transparent 9px 21px) 6px 8px / calc(100% - 12px) 8px no-repeat,
    repeating-linear-gradient(90deg, var(--floor) 0 9px, transparent 9px 21px) 6px calc(100% - 8px) / calc(100% - 12px) 8px no-repeat, var(--ink); }
.k-video .film { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 12px; background: linear-gradient(180deg, #3D3354, #241E33); }
.k-video .film svg { width: 40px; height: 40px; color: var(--kaju); }
.k-video .film i { position: absolute; right: 6px; bottom: 4px; font: 400 14px/1 var(--anton); letter-spacing: .06em; color: var(--white); font-style: normal; }
.k-video .t { color: var(--floor); }
/* note: a torn sheet off a lined pad */
.k-note { width: 200px; rotate: -1.4deg; margin-top: 8px; }
.k-note .torn { display: block; padding: 34px 18px 18px 32px; line-height: 27px;
  background: linear-gradient(90deg, transparent 22px, rgba(229, 72, 77, .5) 22px 24px, transparent 24px), repeating-linear-gradient(180deg, transparent 0 26px, rgba(70, 110, 170, .26) 26px 27px) 0 7px, #FFFBEA;
  -webkit-mask: url("paper/edge-cream.webp") top / 640px 24px repeat-x, linear-gradient(#000 0 0) 0 22px / 100% 100% no-repeat;
  mask: url("paper/edge-cream.webp") top / 640px 24px repeat-x, linear-gradient(#000 0 0) 0 22px / 100% 100% no-repeat; }
.k-note b, .k-note .t { line-height: 27px; }
/* gym: a little map card with a pin */
.k-gym { width: 224px; padding: 10px 10px 16px; background: var(--white); border-radius: 2px; rotate: 1.4deg; }
.k-gym .map { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 12px;
  background: radial-gradient(38% 30% at 22% 30%, #A9D69A 98%, transparent), radial-gradient(26% 24% at 80% 76%, #A9D69A 98%, transparent),
    linear-gradient(90deg, transparent 46%, var(--white) 46% 54%, transparent 54%), linear-gradient(170deg, transparent 58%, var(--white) 58% 64%, transparent 64%), #EAD8B8; }
.k-gym .map svg { width: 44px; height: 44px; color: #9E1F24; fill: var(--tomato); filter: drop-shadow(0 3px 2px rgba(60, 35, 10, .35)); }
/* LeetCode: a till receipt with a zigzag tear */
.k-code { width: 196px; rotate: -2deg; margin-top: 22px; }
.k-code .rcpt { display: block; padding: 16px 16px 26px; background: var(--white);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.k-code code { display: block; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px dashed rgba(42, 33, 24, .3); font: 700 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink); }
.k-code code em { font-style: normal; color: var(--pista-deep); }
@media (max-width: 620px) {
  .kinds { gap: 26px 14px; }
  .kinds > li { width: calc(50% - 7px); margin-top: 0; }
  .k-video { padding-inline: 10px; } .k-note .torn { padding: 30px 12px 14px 30px; }
  .kinds b { font-size: 17px; } .kinds .t { font-size: 14px; }
}
@media (max-width: 330px) { .kinds > li { width: 100%; } }
.tags { display: flex; flex-wrap: wrap; gap: 14px 12px; padding: 0; margin: 0; list-style: none; }
.tags li { position: relative; padding: 8px 16px 6px 30px; background: var(--card); border-radius: 4px 18px 18px 4px; font-weight: 700; font-size: 16px; filter: var(--lift); }
.tags li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--floor); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.tags li:nth-child(3n) { rotate: -2deg; background: #FFE9A8; }
.tags li:nth-child(3n+1) { rotate: 1.5deg; }
.tags li:nth-child(4n) { background: #CFF3DF; }

/* ── 11 PM: the settle (signature) ─────────────────────────── */
.settle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .settle { grid-template-columns: minmax(0, 1fr); } }
.settle .lead { color: #E9E1F7; margin-top: 14px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.picks button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; font: 800 16px/1 var(--baloo); color: var(--cream); background: var(--night-2); box-shadow: inset 0 0 0 2px rgba(255, 253, 246, .35); }
.picks button:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.picks button[aria-pressed="true"] { background: var(--kaju); color: var(--ink); box-shadow: 0 4px 0 var(--kaju-deep); }
.rule { color: #E9E1F7; font-size: 17px; min-height: 3.2em; }
/* the night scene is cut paper too: sky sheet, stars, moon, clock, two torn hills, a floor */
.night-scene { position: relative; isolation: isolate; aspect-ratio: 7 / 5; border-radius: 3px; overflow: hidden; background: #2B2440 url("paper/night-sky.webp") center / cover; box-shadow: 0 3px 2px rgba(0, 0, 0, .3), 0 14px 30px -10px rgba(0, 0, 0, .55); }
.night-scene > img { position: absolute; pointer-events: none; height: auto; max-width: none; }
.night-scene .star { width: 4.2%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.star.s1 { left: 9%; top: 12%; rotate: -12deg; } .star.s2 { left: 27%; top: 30%; width: 3%; rotate: 18deg; } .star.s3 { right: 30%; top: 8%; width: 3.4%; } .star.s4 { right: 6%; top: 40%; width: 2.6%; rotate: 30deg; }
.night-scene .moon { right: 7%; top: 7%; width: 13%; rotate: -8deg; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }
.night-scene .nl { left: -30%; width: 160%; filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .3)); }
.night-scene .far { bottom: 20%; translate: calc(var(--px, 0) * -12px) 0; }
.night-scene .near { bottom: 9%; translate: calc(var(--px, 0) * -24px) 0; }
.night-scene .ground { left: -3%; width: 106%; bottom: -12%; filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .3)); }
.clock { position: absolute; z-index: 1; left: 50%; top: 6%; translate: -50% 0; width: 23%; aspect-ratio: 1; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)) drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.clock img, .clock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock .hand { transform-origin: 50px 50px; transition: transform 1.1s var(--pop); }
.side { position: absolute; z-index: 2; bottom: 6%; width: 36%; display: flex; flex-direction: column; align-items: center; }
.side.k { left: 2%; } .side.p { right: 2%; }
.side video { width: 100%; aspect-ratio: 1; object-fit: contain; }
.purse { margin-top: -10%; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 14px 5px; border-radius: 3px; background: var(--white); color: var(--ink); font: 800 clamp(14px, 1.8vw, 20px)/1.3 var(--baloo); font-variant-numeric: tabular-nums; filter: var(--lift); rotate: -2deg; }
.side.p .purse { rotate: 2deg; }
.purse i { width: 22px; height: 22px; background: url("paper/coin.webp") center / contain no-repeat; }
.coin { position: absolute; z-index: 5; width: 5.4%; aspect-ratio: 1; background: url("paper/coin.webp") center / contain no-repeat; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); pointer-events: none; }
.coin.red { background-image: url("paper/coin-red.webp"); }
@media (prefers-reduced-motion: no-preference) {
  .night-scene .star { animation: twinkle 3.2s ease-in-out infinite alternate; }
  .star.s2 { animation-delay: -1.1s; } .star.s3 { animation-delay: -2s; } .star.s4 { animation-delay: -.6s; }
  @keyframes twinkle { to { scale: .78; opacity: .75; } }
}

/* ── Life happens: sticky notes on kraft ───────────────────── */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
@media (max-width: 860px) { .notes { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: relative; padding: 28px 22px 24px; background: #FFE9A8; filter: var(--lift); border-radius: 2px 2px 16px 2px; }
.sticky:nth-child(1) { rotate: -2deg; } .sticky:nth-child(2) { rotate: 1.4deg; background: #CFF3DF; } .sticky:nth-child(3) { rotate: -.8deg; background: #FFD8C2; }
.sticky h3 { margin-bottom: 8px; }
.sticky p { color: var(--ink-soft); }
.sticky .tape { left: 50%; top: -18px; translate: -50% 0; rotate: -3deg; }

/* ── Real screens ──────────────────────────────────────────── */
.screens { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .screens { grid-template-columns: minmax(0, 1fr); } }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 30px); }
.phones figure { position: relative; margin: 0; }
.phones img { border-radius: 26px; border: 7px solid var(--ink); filter: var(--lift); }
.phones figure:nth-child(1) { rotate: -3deg; } .phones figure:nth-child(2) { rotate: 2.5deg; margin-top: 44px; }
.phones figcaption { margin-top: 14px; text-align: center; font-weight: 700; font-size: 15px; }
.phones .tape { left: 50%; top: -18px; translate: -50% 0; }

/* ── AI ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.chat { display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.45; filter: var(--lift); }
.bubble.me { justify-self: end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.bubble.ai { justify-self: start; background: var(--cream); border-bottom-left-radius: 4px; }
.bubble.ai b { display: block; font: 400 20px/1.15 var(--anton); letter-spacing: .02em; margin-bottom: 4px; }
.bubble ul { margin: 6px 0 0; padding-left: 18px; }
.tool { justify-self: start; font-size: 13px; color: var(--ink-soft); margin: 0 0 -6px 8px; }
.demo { font-size: 13px; color: var(--ink-soft); }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--kraft); margin-bottom: 22px; }
.tabs button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; font: 800 17px/1 var(--baloo); background: transparent; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--cream); filter: var(--lift); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 14px 66px; border-radius: 8px; background: var(--cream); filter: var(--lift); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--kaju); font: 400 20px/1 var(--anton); }
.url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.url code { padding: 6px 10px; border-radius: 8px; background: var(--card); font: 700 16px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.copied { font-size: 14px; font-weight: 800; color: var(--pista-deep); }
.prompts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; margin: 0; }
.prompts button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); cursor: pointer; text-align: left; font: 700 16px/1.3 var(--baloo); filter: var(--lift); }
.prompts button:hover { background: #FFE9A8; }
.soon { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: #CFF3DF; font-size: 16px; }

/* ── FAQ: a stack of index cards ───────────────────────────── */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-list details { position: relative; background: linear-gradient(90deg, transparent 0 30px, rgba(229, 72, 77, .45) 30px 32px, transparent 32px), var(--white); border-radius: 2px; filter: var(--lift); }
.faq-list details:nth-child(odd) { rotate: -.5deg; } .faq-list details:nth-child(even) { rotate: .4deg; } .faq-list details:nth-child(3n) { rotate: -.2deg; margin-left: 10px; }
.faq-list details:nth-child(3n+1)::before { content: ""; position: absolute; z-index: 2; right: 26px; top: -12px; width: 76px; aspect-ratio: 284 / 58; background: url("paper/tape.webp") center / 100% 100% no-repeat; rotate: 8deg; }
.faq-list details[open] summary { box-shadow: inset 0 -2px 0 rgba(229, 72, 77, .55); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px 16px 48px; font-weight: 800; font-size: 19px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; flex: none; transition: rotate .3s var(--pop); }
.faq-list details[open] summary svg { rotate: 45deg; }
.faq-list details p { padding: 10px 20px 16px 48px; line-height: 29px; color: var(--ink-soft); background: repeating-linear-gradient(180deg, transparent 0 28px, rgba(70, 110, 170, .2) 28px 29px) 0 10px; }

/* ── Closing scene + the fine print ────────────────────────── */
.close { text-align: center; }
.close .duo { display: flex; justify-content: center; align-items: flex-end; margin: 0 auto -6px; max-width: 540px; }
.close .duo video { width: 50%; aspect-ratio: 1; object-fit: contain; }
.close h2 .strip { font-size: clamp(48px, 9vw, 112px); }
.close .lead { margin: 18px auto 26px; }
.close .actions { justify-content: center; }
.fine { background: var(--ink); color: var(--cream); padding-block: 44px 36px; }
.fine h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.fine-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (max-width: 760px) { .fine-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fine-links a { position: relative; display: block; padding: 14px 16px 12px 40px; border-radius: 3px 16px 16px 3px; background: var(--kraft); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; transition: rotate .25s var(--pop), translate .25s var(--pop); }
.fine-links a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--floor); }
.fine-links a:nth-child(odd) { rotate: -1.6deg; } .fine-links a:nth-child(even) { rotate: 1.2deg; background: var(--floor); }
.fine-links a span { display: block; font-weight: 500; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.fine-links a:hover { rotate: 0deg; translate: 0 -3px; }
.fine small { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-size: 14px; color: #E2D6C4; }
.fine small a { color: var(--cream); }

/* ── Read pages: a paper sheet taped to kraft ──────────────── */
.doc { background: var(--kraft); padding: clamp(104px, 13vw, 140px) 0 clamp(48px, 8vw, 96px); }
.sheet { position: relative; width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(26px, 5vw, 60px); background: var(--white); border-radius: 4px; filter: var(--lift); }
.sheet h1 { font-family: var(--anton); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: .95; margin-bottom: 12px; }
.sheet .meta { color: var(--ink-soft); font-size: 16px; margin-bottom: 30px; }
.sheet h2 { font-family: var(--anton); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.05; margin: 40px 0 10px; }
.sheet h3 { font-size: 22px; margin: 22px 0 4px; }
.sheet p, .sheet li { max-width: 68ch; }
.sheet p + p { margin-top: 12px; }
.sheet ul, .sheet ol { padding-left: 22px; margin: 8px 0; }
.sheet li { margin-bottom: 6px; }
.sheet .toc { margin: 0 0 8px; padding: 16px 20px; border-radius: 8px; background: var(--card); }
.sheet .toc ol { margin: 0; columns: 2 220px; }
.sheet .callout { padding: 14px 18px; border-radius: 8px; background: #FFE9A8; margin: 18px 0; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 10px 0 18px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(42, 33, 24, .15); }
.num { counter-reset: n; list-style: none; padding: 0 !important; }
.num li { counter-increment: n; position: relative; padding-left: 50px; margin-bottom: 16px; }
.num li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--kaju); font: 400 19px/1 var(--anton); }
