/* decom.itys.net: a 2 a.m. infomercial that happens to be accurate documentation.
   One deliberate look (studio-lit, saturated), not themed light/dark. */
@font-face { font-family: "Anton"; src: url(/fonts/anton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bangers"; src: url(/fonts/bangers.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --studio: #10163a;      /* the set: deep blue backdrop */
  --studio-2: #1b2563;
  --paper: #fffdf4;       /* cards and bubbles */
  --ink: #141414;
  --muted: #4a4a4a;
  --yolk: #ffd23f;        /* starbursts, chyron */
  --hot: #e4002b;         /* CALL NOW red */
  --zero: #00a86b;        /* the number zero, which is the product */
  --sky: #9fd3ff;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --shout: "Bangers", "Comic Sans MS", "Chalkboard SE", cursive;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--studio); }
body {
  margin: 0; color: var(--paper); background: var(--studio);
  font: 17px/1.55 var(--body);
  background-image:
    radial-gradient(ellipse at 50% -10%, #3346b8 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
a { color: var(--yolk); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yolk); color: var(--ink); padding: 8px 12px; z-index: 20; }

/* ---- top bar ---- */
.bar { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-block: 14px; }
.logo { font: 400 1.6rem/1 var(--display); letter-spacing: .02em; color: #fff; text-decoration: none; transform: skew(-8deg); display: inline-block; }
.logo span { color: var(--yolk); }
.bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: .95rem; }
.bar nav a { color: var(--sky); text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--yolk); text-decoration: underline; }
.live { font: 400 .8rem/1 var(--display); letter-spacing: .12em; background: var(--hot); color: #fff; padding: 5px 8px; border-radius: 3px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 28px 44px; }
.kicker { font: 400 1.05rem/1 var(--shout); letter-spacing: .06em; color: var(--yolk); margin: 0 0 10px; }
h1 { font: 400 clamp(2.6rem, 7vw, 5.4rem)/.95 var(--display); margin: 0; text-transform: uppercase; transform: skew(-6deg); text-wrap: balance;
  text-shadow: 4px 4px 0 var(--hot), 8px 8px 0 rgba(0,0,0,.35); }
h1 em { font-style: normal; color: var(--yolk); }
.lede { font-size: 1.2rem; max-width: 34em; margin: 22px 0 0; }
.lede strong { color: var(--yolk); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 16px 22px; border-radius: 6px; min-height: 44px; }
.btn.hot { background: var(--hot); color: #fff; box-shadow: 0 6px 0 #8f001b; }
.btn.cool { background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 #b9b39b; }
.btn:hover { transform: translateY(2px); }

/* the starburst */
.burst { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; text-align: center; color: var(--ink); }
.burst::before { content: ""; position: absolute; inset: 0; background: var(--yolk);
  clip-path: polygon(50% 0, 59% 18%, 79% 7%, 77% 29%, 98% 31%, 84% 48%, 100% 63%, 79% 69%, 85% 91%, 64% 84%, 50% 100%, 37% 84%, 15% 91%, 21% 69%, 0 63%, 16% 48%, 2% 31%, 23% 29%, 21% 7%, 41% 18%);
  animation: spin 40s linear infinite; }
.burst > div { position: relative; transform: rotate(-9deg); padding: 0 18%; }
.burst .big { font: 400 clamp(3rem, 9vw, 5.2rem)/.9 var(--display); color: var(--hot); display: block; }
.burst .small { font: 400 1.25rem/1.1 var(--shout); letter-spacing: .03em; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- chyron ---- */
.chyron { background: var(--yolk); color: var(--ink); overflow: hidden; border-block: 4px solid var(--ink); }
.chyron p { margin: 0; white-space: nowrap; font: 400 1.1rem/2.4 var(--display); letter-spacing: .06em; text-transform: uppercase; animation: crawl 38s linear infinite; padding-left: 100%; display: inline-block; }
@keyframes crawl { to { transform: translateX(-100%); } }

/* ---- sections ---- */
section { padding-block: 46px; }
h2 { font: 400 clamp(2rem, 4.6vw, 3.2rem)/1 var(--display); text-transform: uppercase; margin: 0 0 18px; transform: skew(-5deg); text-wrap: balance; }
h2 .y { color: var(--yolk); }
h3 { font: 700 1.25rem/1.25 var(--body); margin: 0 0 8px; }
p { max-width: 68ch; }
.panel { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 24px clamp(16px, 3vw, 32px); box-shadow: 10px 10px 0 rgba(0,0,0,.35); }
.panel a { color: #0b3fae; }
.panel h2 { color: var(--ink); text-shadow: 3px 3px 0 var(--yolk); }
.muted { color: var(--muted); }

/* problem / solution split */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.vs .card { border-radius: 10px; padding: 22px; min-width: 0; }
.vs .bad { background: #2a2a2a; color: #d8d8d8; filter: saturate(.2); border: 3px dashed #777; }
.vs .bad h3::before { content: "BEFORE: "; color: #ff8a8a; font-family: var(--display); letter-spacing: .05em; }
.vs .good { background: var(--paper); color: var(--ink); border: 4px solid var(--yolk); }
.vs .good h3::before { content: "AFTER: "; color: var(--zero); font-family: var(--display); letter-spacing: .05em; }

/* the numbers */
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tally div { background: var(--studio-2); border: 3px solid var(--sky); border-radius: 10px; padding: 18px; min-width: 0; }
.tally .k { font: 700 .78rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.tally .v { font: 400 1.9rem/1.15 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tally .v b { color: var(--zero); font-weight: 400; background: var(--paper); padding: 0 8px; border-radius: 4px; }
.tally .s { font-size: .85rem; color: #cfd6ff; margin-top: 6px; }

/* steps */
ol.acts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: act; }
ol.acts li { counter-increment: act; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px; }
ol.acts li::before { content: counter(act); font: 400 2.4rem/1 var(--display); color: var(--ink); background: var(--yolk); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; }
ol.acts p { margin: 4px 0 0; }

/* ---- talk bubbles ---- */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 30px 24px; align-items: start; }
.say { margin: 0; display: grid; gap: 14px; }
.bubble { position: relative; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; padding: 16px 18px; font: 400 1.32rem/1.2 var(--shout); letter-spacing: .02em; }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -22px; width: 26px; height: 22px; background: var(--paper); border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewX(-30deg); }
.bubble.yell { background: var(--yolk); border-radius: 6px; clip-path: none; transform: rotate(-1.5deg); }
.bubble.yell::after { background: var(--yolk); }
.bubble.think { border-style: dashed; }
.who { display: flex; gap: 12px; align-items: center; padding-left: 14px; }
.face { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 400 1.5rem/1 var(--display); color: var(--ink); flex: none; border: 3px solid var(--ink); }
.who b { display: block; font-size: 1rem; }
.who small { color: var(--sky); font-size: .85rem; }
.inline-say { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 24px; align-items: center; }

/* but wait */
.wait { text-align: center; }
.wait h2 { font-size: clamp(2.6rem, 8vw, 5rem); color: var(--yolk); text-shadow: 4px 4px 0 var(--hot); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; margin-top: 22px; }
.extras div { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 18px; border-top: 8px solid var(--hot); min-width: 0; }

/* receipt */
pre.receipt { background: #fbf8e9; color: #222; border: 1px solid #c9c2a0; border-radius: 4px; padding: 18px; overflow-x: auto; font-size: .82rem; line-height: 1.5;
  box-shadow: 0 2px 0 #e5dfc2, 0 4px 0 #f3eed6, 6px 10px 0 rgba(0,0,0,.35); max-width: 100%; }
pre.term { background: #0b0f0d; color: #cfe7d6; border-radius: 8px; padding: 16px; overflow-x: auto; font-size: .84rem; line-height: 1.5; max-width: 100%; }
pre.term .p { color: var(--yolk); }
pre.term .ok { color: #7ee29a; }
pre.term .no { color: #ff8a80; }

/* fine print */
.fine { font-size: .82rem; line-height: 1.45; color: #c7cdf2; }
.fine h2 { font-size: 1.4rem; transform: none; }
.fine li { margin-bottom: 6px; }

/* ---- manual ---- */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 18px 60px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px; font-size: .92rem; }
.toc ol { padding-left: 1.2em; margin: 6px 0 0; display: grid; gap: 4px; }
.toc a { color: var(--sky); font-weight: 600; }
.doc article { min-width: 0; }
.doc article > section { padding-block: 26px; border-bottom: 1px dashed rgba(255,255,255,.18); }
.doc h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); scroll-margin-top: 16px; }
.doc h3 { margin-top: 22px; color: var(--yolk); }
.doc li { margin-bottom: 6px; max-width: 68ch; }
.tablewrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e4dfc8; }
th { background: var(--yolk); font: 400 1rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
td code { white-space: nowrap; }
.margin-say { float: right; width: min(300px, 45%); margin: 4px 0 16px 22px; }
.callout { background: var(--hot); color: #fff; border-radius: 8px; padding: 14px 18px; font-weight: 700; max-width: 68ch; }

footer { border-top: 4px solid var(--yolk); padding-block: 26px 40px; font-size: .9rem; color: #c7cdf2; }
footer p { margin: 4px 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .inline-say { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .margin-say { float: none; width: auto; margin: 0 0 16px; }
  ol.acts li { grid-template-columns: 48px minmax(0, 1fr); }
  ol.acts li::before { width: 48px; height: 48px; font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .burst::before, .chyron p { animation: none; }
  .chyron p { padding-left: 16px; white-space: normal; }
  .btn:hover { transform: none; }
}
.face[data-c="sky"] { background: var(--sky); }
.face[data-c="yolk"] { background: var(--yolk); }
.face[data-c="pink"] { background: #ffb3c1; }
.face[data-c="mint"] { background: #c3f0c8; }
.tally .v b.hot { color: var(--hot); }
