/* letmecook — paper + ink, editorial / neo-brutalist (inspired by storeintel.live).
   Accents: blue (links, focus), orange (heat / cook), green (good scores). */
:root {
  --paper: #f2f0ea; --paper-2: #e9e6de; --card: #ffffff; --ink: #0d0d0c; --ink-2: #45443f; --muted: #6d6c64;
  --line: rgba(13,13,12,.12); --line-2: rgba(13,13,12,.22);
  --blue: #2563eb; --orange: #f97316; --green: #059669; --red: #d92d20; --violet: #7c5cf0;
  --blue-t: rgba(37,99,235,.10); --orange-t: rgba(249,115,22,.12); --green-t: rgba(5,150,105,.12); --red-t: rgba(217,45,32,.10);
  --hard: 4px 4px 0 var(--ink); --hard-sm: 3px 3px 0 var(--ink);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 14px; --r-lg: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f0f0e; --paper-2: #181816; --card: #171715; --ink: #f2f0ea; --ink-2: #c9c6bd; --muted: #8f8d85;
  --line: rgba(242,240,234,.12); --line-2: rgba(242,240,234,.24);
  --blue: #5b8cff; --orange: #ff8a3d; --green: #22c58b; --red: #ff6157; --violet: #9d84ff;
  --blue-t: rgba(91,140,255,.14); --orange-t: rgba(255,138,61,.14); --green-t: rgba(34,197,139,.14); --red-t: rgba(255,97,87,.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 15px/1.55 var(--sans); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.mono-label { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.5px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(255,255,255,.08); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-t); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,.06); }
.round-btn:hover { box-shadow: 0 0 0 1px var(--ink); }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14.5px var(--sans); text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--orange); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.btn-line:hover { transform: translate(-1px,-1px); box-shadow: 0 0 0 1.5px var(--ink), 3px 3px 0 var(--ink); }
.btn-orange { background: var(--orange); color: #0d0d0c; box-shadow: 0 0 0 1.5px var(--ink); }
.btn-orange:hover { transform: translate(-1px,-1px); box-shadow: 0 0 0 1.5px var(--ink), 3px 3px 0 var(--ink); }
.btn[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.btn .n { font-family: var(--mono); font-weight: 500; opacity: .8; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }

/* ------------------------------------------------ hero */
.hero { position: relative; padding: 70px 0 44px; text-align: center; }
.hero::before { /* faint grid that fades out */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 30%, transparent 80%);
  opacity: .55;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { background: var(--ink); color: var(--paper); font-weight: 600; padding: 4px 7px; border-radius: 4px; margin: 0 2px; }
.hero h1 { font: 800 clamp(44px, 7.6vw, 92px)/.98 var(--display); letter-spacing: -0.035em; margin: 22px auto 22px; max-width: 980px; }
.squiggle { position: relative; white-space: nowrap; display: inline-block; }
.squiggle svg { position: absolute; left: -2%; width: 104%; bottom: -0.14em; height: .32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s .35s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.searchbox { position: relative; max-width: 560px; margin: 34px auto 0; }
.searchbox input { width: 100%; height: 58px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); padding: 0 18px 0 50px; font: 500 16px var(--sans); box-shadow: var(--hard); outline: none; }
.searchbox input:focus { box-shadow: 4px 4px 0 var(--blue); }
.searchbox svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 38px auto 0; }
.stat b { display: block; font: 600 30px/1.1 var(--mono); letter-spacing: -.02em; }
.stat span { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------ window mockup (live top 5) */
.window { max-width: 900px; margin: 46px auto 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.win-bar i:nth-child(1) { background: #e5534b; } .win-bar i:nth-child(2) { background: #e9b23c; } .win-bar i:nth-child(3) { background: #3fa45b; }
.win-url { margin-left: 8px; flex: 1; max-width: 300px; font: 500 13px var(--mono); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: #0d0d0c; color: #f2f0ea; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 12px 14px; white-space: nowrap; }
.tbl th button { font: inherit; letter-spacing: inherit; color: inherit; opacity: .6; text-transform: inherit; }
.tbl th button[aria-pressed="true"] { opacity: 1; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl .rank { font: 500 14px var(--mono); color: var(--muted); width: 42px; }
.tbl .num { text-align: right; font: 600 15px var(--mono); white-space: nowrap; }
.row-idea { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-idea b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.row-idea small { color: var(--muted); font-size: 12.5px; }
.win-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.win-foot .live { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink-2); }

/* icon tile */
.tile { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile.lg { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }

/* ------------------------------------------------ ticker band */
.band { margin-top: 64px; border-block: 1px solid var(--line); background: var(--card); overflow: hidden; white-space: nowrap; }
.band-track { display: inline-flex; gap: 38px; padding: 14px 0; animation: marquee 70s linear infinite; font: 600 13.5px var(--mono); }
.band-track a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.band-track .s { padding: 2px 7px; border-radius: 6px; font-size: 12px; }
.band:hover .band-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------ sections */
.section { padding: 84px 0 10px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font: 800 clamp(30px, 4.4vw, 48px)/1.04 var(--display); letter-spacing: -.03em; margin: 12px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.dotted { background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; }
.how-card .num { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--muted); }
.how-card h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; margin: 12px 0 8px; }
.how-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.how-card .tag { display: inline-block; margin-top: 14px; font: 600 10.5px var(--mono); letter-spacing: .12em; padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--paper); }

/* ------------------------------------------------ feed controls */
.controls { position: sticky; top: 65px; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); padding: 14px 0 12px; margin: 0 -20px; padding-inline: 20px; border-bottom: 1px solid transparent; }
.controls.stuck { border-bottom-color: var(--line); }
.ctrl-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ctrl-search { position: relative; flex: 1 1 280px; min-width: 0; }
.ctrl-search input { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); padding: 0 14px 0 40px; font: 500 15px var(--sans); outline: none; }
.ctrl-search input:focus { box-shadow: var(--hard-sm); }
.ctrl-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.seg { display: inline-flex; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 34px; padding: 0 12px; border-radius: 9px; font: 600 13px var(--sans); color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px var(--sans); color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip .n { font: 500 11px var(--mono); opacity: .6; }
.chip-sep { flex: none; width: 1px; background: var(--line-2); margin: 6px 3px; }

/* ------------------------------------------------ cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; text-decoration: none; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); transition: transform .14s ease, box-shadow .14s ease, border-color .14s; }
.card:hover { transform: translate(-3px,-3px); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-top .meta { flex: 1; min-width: 0; }
.card-top .meta .mono-label { font-size: 10.5px; }
.card h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; margin: 3px 0 0; }
.card .tagline { margin: 0; color: var(--ink-2); font-size: 14px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { font: 500 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line-2); font: 500 12px var(--mono); color: var(--muted); }
.card-foot .grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pill.ai { background: rgba(124,92,240,.12); color: var(--violet); }
.pill.weekend { background: var(--green-t); color: var(--green); }
.pill.week { background: var(--blue-t); color: var(--blue); }
.pill.month { background: var(--orange-t); color: #c2410c; }
.pill.quarter { background: var(--red-t); color: var(--red); }
:root[data-theme="dark"] .pill.month { color: var(--orange); }

/* score badge */
.score { flex: none; text-align: center; min-width: 58px; padding: 6px 8px 5px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: var(--hard-sm); }
.score b { display: block; font: 600 22px/1 var(--mono); letter-spacing: -.03em; color: var(--c, var(--ink)); }
.score small { display: block; font: 600 8.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.score-pill { font: 600 13px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--t); color: var(--c); }

.more { display: flex; justify-content: center; margin-top: 26px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 16px; color: var(--muted); }
.empty .big { font-size: 46px; }
.skel { height: 230px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--card) 25%, var(--paper-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------ detail page */
.crumbs { display: flex; align-items: center; gap: 10px; padding: 26px 0 8px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.d-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; padding: 10px 0 18px; }
.d-hero h1 { font: 800 clamp(32px, 5vw, 60px)/1.02 var(--display); letter-spacing: -.035em; margin: 14px 0 12px; }
.d-hero .tagline { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 720px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.big-score { width: 200px; background: #0d0d0c; color: #f2f0ea; border-radius: var(--r-lg); padding: 18px; box-shadow: 6px 6px 0 var(--c, var(--orange)); }
.big-score .mono-label { color: rgba(242,240,234,.6); }
.big-score b { display: block; font: 600 64px/1 var(--mono); letter-spacing: -.04em; margin: 8px 0 6px; }
.big-score .verdict { font: 700 15px var(--display); color: var(--c, var(--orange)); }
.meter { height: 6px; border-radius: 99px; background: rgba(242,240,234,.15); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--c, var(--orange)); border-radius: 99px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.note { display: flex; gap: 10px; align-items: flex-start; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); background: var(--card); }

.blocks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 18px; }
.block { grid-column: span 6; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.block.full { grid-column: span 12; }
.block-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.block-h .mono-label { color: var(--muted); }
.block-h h2 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.block p { margin: 0 0 10px; }
.block ul { margin: 0; padding-left: 0; list-style: none; }
.block li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px dashed var(--line); }
.block li:last-child { border-bottom: 0; }
.block li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border-radius: 4px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.block li.ok::before { background: var(--green-t); box-shadow: inset 0 0 0 1px var(--green); }
.block li.warn::before { background: var(--red-t); box-shadow: inset 0 0 0 1px var(--red); }
.block li.money::before { background: var(--orange-t); box-shadow: inset 0 0 0 1px var(--orange); }

.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 112px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 10px; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: var(--ink); }
.bar .fill.hi { background: var(--green); } .bar .fill.mid { background: var(--blue); } .bar .fill.lo { background: var(--orange); }
.bar b { font: 600 13px var(--mono); text-align: right; }

.stacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stackcard { border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--card); }
.stackcard header { background: #0d0d0c; color: #f2f0ea; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stackcard header .em { font-size: 15px; letter-spacing: 0; }
.stackcard .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.stackcard .why { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.stackcard footer { display: flex; border-top: 1px solid var(--line); }
.stackcard footer div { flex: 1; padding: 10px 14px; }
.stackcard footer div + div { border-left: 1px solid var(--line); }
.stackcard footer b { display: block; font: 600 13.5px var(--mono); }

.models-wrap { border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.models-wrap .tbl td { font-size: 14px; }
.models-wrap .tbl tr { cursor: default; }
.models-wrap .tbl tbody tr:last-child td { border-bottom: 0; }

.checklist li::before { display: none; }
.checklist li { padding-left: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.checklist input:checked { background: var(--green); border-color: var(--green); }
.checklist input:checked::after { content: "✓"; color: #fff; font: 700 13px/1 var(--sans); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

.timeline { counter-reset: step; }
.timeline li { padding-left: 40px; }
.timeline li::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 28px; height: 22px; top: 7px; left: 0; border-radius: 6px; background: var(--ink); color: var(--paper); box-shadow: none; font: 600 11px/22px var(--mono); text-align: center; }
.timeline b { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.names { display: flex; flex-wrap: wrap; gap: 10px; }
.names span { font: 700 17px var(--display); padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--ink); box-shadow: var(--hard-sm); background: var(--card); }
blockquote { margin: 0; padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--paper); border-radius: 0 12px 12px 0; white-space: pre-line; font-size: 14px; color: var(--ink-2); max-height: 280px; overflow: auto; }
.src-link { display: inline-flex; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }
.src-link:hover { text-decoration: underline; }

/* ------------------------------------------------ footer + toast */
.foot { margin-top: 90px; border-top: 1px solid var(--line); background: var(--card); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 34px 20px 44px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.foot-in p { margin: 10px 0 0; max-width: 460px; font-size: 14px; }
.foot .mono-label { max-width: 360px; text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .25s; z-index: 50; box-shadow: 3px 3px 0 var(--orange); }
.toast.show { transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .band-track, .squiggle path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .how, .stacks { grid-template-columns: 1fr; }
  .block { grid-column: span 12; }
  .d-hero { grid-template-columns: 1fr; }
  .big-score { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
  .big-score .mono-label, .big-score .meter { grid-column: 1 / -1; }
  .big-score b { margin: 6px 0; }
}
@media (max-width: 640px) {
  .top-in { gap: 10px; padding: 10px 16px; }
  .live #liveText { display: none; }
  .top-actions .btn-ink { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .window { box-shadow: 5px 5px 0 var(--ink); }
  .tbl .hide-sm { display: none; }
  .row-idea b { max-width: 190px; }
  .controls { position: static; margin: 0 -16px; padding-inline: 16px; }
  .grid { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 90px 1fr 40px; }
  .foot .mono-label { text-align: left; }
}
