:root {
  --paper: #FFF7E8;
  --paper-2: #FFFDF7;
  --navy: #172A4E;
  --navy-2: #22396A;
  --ink: #15161A;
  --muted: #4A4F5C;
  --green: #17A86B;
  --red: #E2452F;
  --yellow: #FFD447;
  --sky: #8FD3FF;
  --line: 4px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--paper); border-bottom: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-weight: 900; font-stretch: 125%; font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--yellow); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 16px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff; border: var(--line); border-radius: 14px;
  padding: 14px 20px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--paper-2); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); }

/* hero */
.hero { background: var(--navy); color: #fff; border-bottom: var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 {
  font-weight: 900; font-stretch: 112%; font-size: clamp(38px, 5.6vw, 66px);
  line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 22px;
}
.hero p { font-size: 19px; color: #D9E2F5; max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* receipt: the one loud element */
.receipt {
  position: relative; background: var(--paper-2); color: var(--ink);
  font-family: var(--mono); font-size: 15px;
  border: var(--line); border-bottom: none; border-radius: 6px 6px 0 0;
  padding: 26px 26px 34px; box-shadow: 10px 10px 0 rgba(0,0,0,.35);
  transform: rotate(1.5deg);
  --zig: 14px;
}
.receipt::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: calc(var(--zig) * -1); height: var(--zig);
  background:
    linear-gradient(135deg, var(--paper-2) 50%, transparent 50%) 0 0 / var(--zig) var(--zig),
    linear-gradient(225deg, var(--paper-2) 50%, transparent 50%) 0 0 / var(--zig) var(--zig);
  background-repeat: repeat-x;
  filter: drop-shadow(0 4px 0 var(--ink));
}
.receipt h2 { font-family: var(--font); font-stretch: 125%; font-weight: 900; font-size: 22px; margin: 0; text-align: center; }
.receipt .sub { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.receipt hr { border: 0; border-top: 2px dashed var(--ink); margin: 14px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.r-row .v { font-weight: 700; white-space: nowrap; }
.r-field { margin: 12px 0; }
.r-field label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.r-field output { font-weight: 700; }
.r-field input[type=range] { width: 100%; accent-color: var(--red); margin: 6px 0 0; height: 28px; }
.r-total { font-size: 15px; }
.r-total .big { font-family: var(--font); font-weight: 900; font-stretch: 112%; font-size: 40px; line-height: 1; color: var(--red); }
.stamp {
  position: absolute; right: -10px; top: -16px; transform: rotate(-10deg); background: var(--paper-2);
  font-family: var(--font); font-weight: 900; font-stretch: 125%; font-size: 15px; color: var(--red);
  border: 3px solid var(--red); border-radius: 8px; padding: 4px 8px; opacity: .85;
}
.hero .receipt .r-note { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; max-width: none; line-height: 1.45; }

/* spotlight from QR / ?tool= */
.spot { background: var(--yellow); border-bottom: var(--line); }
.spot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.spot h2 { margin: 0 0 6px; font-stretch: 112%; font-weight: 900; font-size: 30px; line-height: 1.05; }
.spot p { margin: 0; max-width: 46em; }
.spot .code-note { margin-top: 10px; font-size: 15px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 10px; padding: 10px 12px; }

/* disclosure */
.disclose { background: var(--paper-2); border-bottom: var(--line); }
.disclose p { margin: 0; padding: 16px 0; font-size: 16px; }
.disclose strong { background: linear-gradient(transparent 55%, var(--yellow) 55%); }

/* sections */
section.block { padding: 72px 0; }
section.block + section.block { border-top: var(--line); }
.h2 { font-weight: 900; font-stretch: 112%; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 12px; }
.lede { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

/* tool list */
.tools { border: var(--line); border-radius: 18px; background: var(--paper-2); box-shadow: var(--pop); overflow: hidden; }
.tool { display: grid; grid-template-columns: 1.15fr 1.6fr auto; gap: 28px; align-items: center; padding: 26px 28px; }
.tool + .tool { border-top: 3px solid var(--ink); }
.tool.is-featured { background: #FFF1B8; }
.tool .job { font-weight: 900; font-stretch: 108%; font-size: 23px; line-height: 1.12; margin: 0 0 4px; }
.tool .name { font-weight: 700; color: var(--muted); }
.tool .desc { margin: 0 0 6px; }
.tool .price { font-size: 14px; color: var(--muted); }

/* episodes */
.eps { display: grid; gap: 16px; }
.ep { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; border: var(--line); border-radius: 16px; padding: 20px 22px; background: var(--paper-2); }
.ep .n { width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; border: var(--line); display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.ep h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; line-height: 1.2; }
.ep p { margin: 0; color: var(--muted); font-size: 15px; }

/* qr */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.qr { border: var(--line); border-radius: 16px; background: #fff; padding: 16px; text-align: center; }
.qr img { width: 100%; height: auto; image-rendering: pixelated; }
.qr .cap { font-weight: 800; margin-top: 10px; line-height: 1.2; }
.qr .url { font-size: 12.5px; color: var(--muted); word-break: break-all; margin-top: 4px; }
.qr .dl { display: flex; gap: 10px; justify-content: center; margin-top: 8px; font-size: 14px; font-weight: 700; }

.phone-grid { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 32px; align-items: center; }
@media (max-width: 600px) { .phone-grid { grid-template-columns: 1fr; } .phone-grid .qr { max-width: 220px; } }

/* media kit */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: var(--pop); }
.fact { padding: 22px 24px; }
.fact + .fact { border-left: 3px solid var(--ink); }
.fact .k { font-size: 14px; color: var(--muted); font-weight: 700; }
.fact .v { font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.1; margin-top: 6px; }
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.format { border: var(--line); border-radius: 16px; padding: 22px 24px; background: var(--paper-2); }
.format h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; font-stretch: 108%; }
.format ul, .rules { margin: 0; padding-left: 20px; }
.format li, .rules li { margin: 4px 0; }
.rules li::marker { color: var(--red); font-weight: 900; }
.contact { background: var(--navy); color: #fff; border: var(--line); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.contact h2 { margin: 0 0 8px; font-weight: 900; font-stretch: 112%; font-size: 32px; line-height: 1.05; }
.contact p { margin: 0; color: #D9E2F5; }
.contact .qr { width: 170px; padding: 10px; }

/* prose pages */
.prose { max-width: 720px; padding: 56px 0 80px; }
.prose h1 { font-weight: 900; font-stretch: 112%; font-size: clamp(34px, 5vw, 50px); line-height: 1.02; margin: 0 0 8px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 36px 0 8px; }
.prose .date { color: var(--muted); margin-bottom: 28px; }

/* footer */
.foot { background: var(--ink); color: #C9CCD6; font-size: 14.5px; }
.foot .wrap { padding-top: 36px; padding-bottom: 40px; display: grid; gap: 14px; }
.foot p { margin: 0; max-width: 62em; }
.foot strong { color: #fff; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; color: #fff; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 60px; gap: 40px; }
  .receipt { transform: none; }
  .tool { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .tool .btn { justify-self: start; }
  .spot .wrap, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 3px solid var(--ink); }
  .formats { grid-template-columns: 1fr; }
  .ep { grid-template-columns: auto 1fr; }
  .ep .btn { grid-column: 1 / -1; justify-self: start; }
  section.block { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
