/* RiotPad v1.0: own design system (SPEC 3). Paper + ink chrome; the visitor's colours are the only loud thing. */
@font-face { font-family: "Bowlby One"; src: url("fonts/bowlby-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/roboto-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/roboto-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --white: #FFFFFF; --ink: #121212; --ink-2: #33302B; --muted: #5C574E;
  --line: rgba(18, 18, 18, .14);
  --pink: #FF3D7F; --orange: #FF6A13; --acid: #F2D50F; --blue: #2D55FF; --mint: #12B89A; --violet: #7A3CFF;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --text: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Consolas, monospace;
  --r: 12px; --hard: 6px 6px 0 var(--ink);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 6.6vw, 100px); line-height: .98; letter-spacing: -.005em; margin: 0 0 24px; }
.display-s { font-size: clamp(38px, 4.8vw, 68px); }
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.h3 { font-weight: 700; font-size: 21px; }
.h4 { font-weight: 700; font-size: 18px; margin-bottom: .3em; }
.kicker { font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--pink) 0 25%, var(--acid) 25% 50%, var(--mint) 50% 75%, var(--blue) 75%); }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.sub { color: var(--ink-2); max-width: 70ch; }
.fine { font-size: 14px; color: var(--muted); margin-top: 28px; max-width: 90ch; }
.hint { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.lnk { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lnk:hover { text-decoration-color: var(--blue); }
.lnk-x { text-decoration-color: var(--muted); }
.err { background: #FFE1E8; border-left: 6px solid #B3123F; padding: 10px 14px; border-radius: 6px; color: #6E0A26; font-weight: 600; }
.flash { display: inline-block; background: var(--acid); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.pill { display: inline-block; background: var(--acid); color: var(--ink); border-radius: 999px; font: 600 12px/1.4 var(--text); padding: 3px 10px; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.pill-free { background: var(--paper-2); }
.pill-big { font-size: 14px; padding: 5px 14px; margin: 0 0 14px; }

/* ---------- buttons + inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-danger { background: #B3123F; border-color: #B3123F; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn-text { background: none; border: 0; padding: 0; font: 600 14px var(--text); color: #8A0F2E; text-decoration: underline; cursor: pointer; }
.copy:not(.btn) { margin-left: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; font: 600 11px/1 var(--text); padding: 4px 7px; cursor: pointer; }
.copy.is-done { background: var(--mint); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
input, select, textarea { font: 400 16px var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; min-height: 46px; padding: 8px 12px; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
textarea:disabled { background: var(--paper-2); }
input[type="color"] { width: 46px; min-width: 46px; height: 46px; padding: 3px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--ink); margin: 3px 0 0; flex: none; }
.lab { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.slot-row { display: flex; gap: 8px; align-items: center; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: var(--max); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.mark { width: 42px; height: 42px; }
.logo-word { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.01em; margin: 0; }
.tabs { display: flex; gap: 6px; flex: 1; justify-content: center; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tab:hover { border-color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--paper); }
.tab-dot { width: 13px; height: 13px; flex: none; }
.price-tag { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.2; flex: none; padding: 6px 12px; border-radius: 8px; border: 2px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.price-tag:hover, .price-tag.is-on { background: var(--acid); }
.price-tag-a { font-size: 14px; font-weight: 600; }
.price-tag-b { font-size: 12px; color: var(--ink-2); }

/* ---------- home ---------- */
.hero { border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-in { max-width: var(--max); margin: 0 auto; padding: 72px 32px 80px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.seed { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 22px; max-width: 640px; margin-top: 34px; }
.seed-l { display: block; font-weight: 700; margin-bottom: 10px; }
.seed-row { display: grid; grid-template-columns: 46px 130px 1fr auto; gap: 10px; align-items: center; }
.seed-hex { text-transform: uppercase; }
.seed-alt { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
/* RP-B1: the fan sits with the headline (top of the column), not centred against the taller copy column */
.fan { position: relative; height: 480px; align-self: start; margin-top: 0; }
.fan-chip { position: absolute; left: 50%; bottom: 10px; width: 210px; height: auto; margin-left: -105px; transform-origin: 50% 96%; filter: drop-shadow(0 10px 18px rgba(18, 18, 18, .18)); transition: transform .35s ease; }
.fan-0 { transform: rotate(-34deg); } .fan-1 { transform: rotate(-17deg); } .fan-2 { transform: rotate(0deg); } .fan-3 { transform: rotate(17deg); } .fan-4 { transform: rotate(34deg); }
.fan:hover .fan-0 { transform: rotate(-40deg); } .fan:hover .fan-1 { transform: rotate(-20deg); } .fan:hover .fan-3 { transform: rotate(20deg); } .fan:hover .fan-4 { transform: rotate(40deg); }

.checks { padding: 96px 0 40px; }
.checks > .wrap > .sub { margin-bottom: 40px; }
.check { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; border-top: 2px solid var(--ink); padding: 44px 0 56px; }
.check-no { font-family: var(--display); font-size: 72px; line-height: .9; margin: 0; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.check:nth-of-type(1) .check-no { color: var(--pink); }
.check:nth-of-type(2) .check-no { color: var(--acid); }
.check:nth-of-type(3) .check-no { color: var(--blue); }
.check-copy p { color: var(--ink-2); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tcard { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.tcard .tc { width: 100%; height: 110px; }
.tcard figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 14px; }
.demo-vision { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; }
.dv-l { font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.dv-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.dv-sw { width: 100%; height: 70px; border-radius: 8px; }
.dv-note { font-size: 14px; color: var(--muted); margin: 0; }
.demo-ramp { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px; }
.dr-sw { width: 100%; height: 150px; border-radius: 4px; }
.dr-step span { display: block; text-align: center; font-size: 11px; margin-top: 6px; }

.flow { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 80px 0; }
.flow-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.flow-list li { padding: 0 18px 20px; border-right: 2px solid var(--ink); }
.flow-list li:last-child { border-right: 0; }
.flow-list li::before { content: ""; display: block; height: 14px; margin: 0 -18px 18px; background: var(--c, var(--ink)); }
.flow-list li:nth-child(1) { --c: var(--pink); } .flow-list li:nth-child(2) { --c: var(--blue); } .flow-list li:nth-child(3) { --c: var(--acid); }
.flow-list li:nth-child(4) { --c: var(--mint); } .flow-list li:nth-child(5) { --c: var(--orange); } .flow-list li:nth-child(6) { --c: var(--ink); }
.flow-n { font-family: var(--display); font-size: 22px; display: block; margin-bottom: 8px; }
.flow-list p { font-size: 15px; color: var(--ink-2); margin: 0; }

.money { padding: 96px 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; max-width: 980px; }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.plan-pass { box-shadow: var(--hard); }
.plan-chip { height: 86px; }
.plan-chip-free { background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--paper-2) 14px 28px); border-bottom: 2px solid var(--ink); }
.plan-chip-pass { background: linear-gradient(90deg, var(--pink) 0 20%, var(--orange) 20% 40%, var(--acid) 40% 60%, var(--mint) 60% 80%, var(--blue) 80%); border-bottom: 2px solid var(--ink); }
.plan-body { padding: 24px 26px 26px; }
.plan-name { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 4px; }
.plan-price { font-size: 18px; margin-bottom: 12px; }
.plan-price b { font-family: var(--display); font-weight: 400; font-size: 34px; }
.plan-price .or { color: var(--muted); margin: 0 4px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 30px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.plans-foot { max-width: 980px; margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.plan-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.plan-buy form { margin: 0; }
.plan-need { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }

.isnt { background: var(--ink); color: var(--paper); padding: 72px 0; }
.isnt-in { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.isnt .h3 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--acid); }
.isnt ul { margin: 0; padding: 0; list-style: none; }
.isnt li { padding: 14px 0; border-top: 1px solid rgba(243, 239, 230, .22); color: #E7E1D4; }

/* ---------- tool pages ---------- */
.strip { border-bottom: 2px solid var(--ink); background: var(--white); }
.strip-bands { display: flex; height: 190px; }
.band { flex: 1; position: relative; min-width: 0; }
.band-sw { width: 100%; height: 100%; }
.band-code { position: absolute; left: 12px; bottom: 10px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 7px; font-size: 13px; }
.strip-bar { max-width: var(--max); margin: 0 auto; padding: 12px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.strip-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.strip-acts { margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.work { padding: 48px 0 88px; }
.work-head { margin-bottom: 30px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.work-grid > * { min-width: 0; }
.panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; margin-bottom: 22px; }
.panel .btn { margin-top: 16px; }
.pagehead { padding: 72px 0 24px; }
.callout { background: var(--white); border: 2px solid var(--ink); border-left-width: 10px; border-radius: var(--r); padding: 18px 22px; margin: 26px 0; }
.callout-lock { border-left-color: var(--pink); }

.cards { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.card-sw { width: 100%; height: 150px; border-bottom: 2px solid var(--ink); }
.codes { margin: 0; padding: 12px 16px 4px; }
.codes > div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; }
.codes dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.codes dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; min-width: 0; }
.codes dd .copy { flex: none; }
.codes dd.nm { display: block; }
.codes dd.nm .dot { margin-right: 4px; }
.codes code { word-break: break-all; }
.dot { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.card-acts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px 16px; margin: 0; font-size: 14px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.slot label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 6px; }
.slot input.mono { text-transform: uppercase; }
.rules { border: 0; padding: 0; margin: 0; }
.rule { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.rule b { display: block; font-size: 15px; }
.next { display: flex; flex-direction: column; }
.next-a { display: block; text-decoration: none; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.next-a b { display: block; color: var(--ink); font-size: 16px; }
.next-a:hover b { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 22px; font-size: 14px; }
.legend b, .cgrid b, .pair b, .tcard b, .clash b, [class^="mark-"] { font: 600 12px/1 var(--text); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.mark-aaa { background: #0E5C36; color: #fff; }
.mark-aa { background: #1E7A4B; color: #fff; }
.mark-aa-large { background: #FFE7A3; color: #5A3D00; }
.mark-fails { background: #FFD6DF; color: #8A0F2E; }
.grid-scroll { position: relative; overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); padding: 8px; }
.cgrid { border-collapse: separate; border-spacing: 6px; min-width: 100%; }
.cgrid th { font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; padding: 6px; }
.cgrid thead th .dot, .cgrid tbody th .dot { margin-right: 4px; }
.cgrid td { vertical-align: top; min-width: 112px; padding: 0; }
.tc-cell { width: 100%; height: 56px; border-radius: 8px; border: 1px solid var(--line); }
.cgrid .cr { display: block; font-size: 13px; margin: 6px 0 4px; }
.cgrid td.same { text-align: center; color: var(--muted); vertical-align: middle; }
.sp { margin-top: 56px; }
.pairs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pair { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-pair { width: 100%; height: 70px; border-radius: 6px; border: 1px solid var(--line); }
.pair p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.vis { display: flex; flex-direction: column; gap: 14px; }
.vis-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; }
.vis-typical { background: var(--paper-2); }
.vis-head p { margin: 0; font-size: 14px; color: var(--muted); }
.vis-sw { display: flex; gap: 6px; }
.vs { flex: 1; height: 76px; border-radius: 8px; min-width: 0; }
.vis-out { grid-column: 2; }
.ok-line { margin: 0; font-weight: 600; color: #0E5C36; }
.clash { list-style: none; margin: 0; padding: 0; }
.clash li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 0; font-size: 15px; }

.ramps { display: flex; flex-direction: column; gap: 18px; }
.ramp { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; }
.ramp-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.ramp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.rs { min-width: 0; }
.rs-sw { width: 100%; height: 86px; border-radius: 6px; }
.rs.is-near .rs-sw { outline: 3px solid var(--ink); outline-offset: 2px; }
.rs code { display: block; font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.rs .copy { margin: 4px 0 0; }
.locked { margin: 0; color: var(--ink-2); font-size: 15px; }
.passnote { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--white); border: 2px dashed var(--ink); border-radius: var(--r); padding: 14px 18px; margin: 22px 0; }
.passnote p { margin: 0; font-size: 15px; }
.passnote-mark { width: 40px; height: 40px; }

.formats { list-style: none; padding: 0; margin: 0 0 10px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); overflow: hidden; }
.fmt { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.fmt:first-child { border-top: 0; }
.fmt-ext { font-weight: 500; font-size: 15px; }
.code { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.55; overflow: auto; margin: 10px 0 0; white-space: pre; }
.code:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.boxlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.bp { display: grid; grid-template-columns: 300px 1fr; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.bp-strip { display: flex; min-height: 130px; border-right: 2px solid var(--ink); }
.bp-sw { flex: 1; height: 100%; min-width: 0; }
.bp-body { padding: 14px 18px; }
.bp-codes { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; overflow-wrap: anywhere; }
.bp-note { font-size: 14px; margin: 0 0 6px; }
.bp-acts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; font-size: 14px; }
.inline { display: inline; }
.box-foot { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.keybox { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 2px dashed var(--ink); border-radius: var(--r); background: var(--white); padding: 16px; margin: 20px 0 8px; }
.keybox code { word-break: break-all; font-size: 15px; flex: 1 1 300px; }
.check-l { display: flex; gap: 10px; align-items: center; font-weight: 600; }

.compare { width: 100%; max-width: 980px; border-collapse: collapse; margin: 48px 0; background: var(--white); border: 2px solid var(--ink); }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--paper); }
.faq { max-width: 820px; }
.faq h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-2); }
.method dt { font-weight: 700; margin-top: 18px; }
.method dd { margin: 4px 0 0; color: var(--ink-2); }
.plain { padding-left: 20px; }
.plain li { margin-bottom: 10px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D9D3C6; }
.foot-chips { display: flex; height: 14px; }
.foot-chip { flex: 1; height: 14px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 56px 32px 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-word { font-family: var(--display); font-size: 44px; color: var(--paper); margin: 0 0 12px; line-height: 1; }
.foot-brand p { max-width: 44ch; font-size: 15px; }
.foot-price { color: var(--paper); }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.foot-h { font-weight: 700; color: var(--paper); margin-bottom: 10px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: #F3EFE6; text-decoration-color: rgba(243, 239, 230, .4); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: var(--pink); }
.foot-base { max-width: var(--max); margin: 0 auto; padding: 18px 32px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(243, 239, 230, .18); font-size: 14px; }
.foot-base p { margin: 0; }
.powered a { font-weight: 600; }
.is-error .foot-base { border-top: 0; }

/* ---------- swatch card (print) ---------- */
.is-card { background: #fff; }
.card-bar { max-width: 960px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.sheet { max-width: 960px; margin: 0 auto 40px; padding: 28px 24px; border: 2px solid var(--ink); }
.sheet-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 20px; }
.sheet-h { font-size: 26px; margin: 0; }
.sheet-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sc { border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; break-inside: avoid; }
.sc-sw { width: 100%; height: 140px; }
.sc-l { padding: 10px 12px; font-size: 13px; }
.sc-l p { margin: 0 0 3px; }
.sc-no { font-weight: 700; }
.sc-c { margin-top: 8px !important; color: var(--ink-2); }
.sheet-foot { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
@media print {
  .noprint { display: none !important; }
  .sheet { border: 0; margin: 0; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .top-in { flex-wrap: wrap; gap: 10px 16px; padding: 10px 20px 0; }
  .logo { order: 1; }
  .price-tag { order: 2; margin-left: auto; }
  .tabs { order: 3; flex: 0 0 calc(100% + 40px); margin: 0 -20px; padding: 8px 20px 10px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; border-top: 1px solid var(--line); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { scroll-snap-align: start; border-color: var(--line); background: var(--white); }
  .tab.is-on { border-color: var(--ink); }
  .check { grid-template-columns: 80px minmax(0, 1fr); }
  .check-demo { grid-column: 1 / -1; }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-list li:nth-child(3) { border-right: 0; }
  .flow-list li:nth-child(-n+3) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero-in { grid-template-columns: 1fr; padding: 44px 20px 36px; gap: 8px; }
  .fan { height: 300px; order: -1; margin-top: 0; }
  .fan-chip { width: 112px; margin-left: -56px; }
  .seed-row { grid-template-columns: 46px 1fr; }
  .seed-rule, .seed-row .btn { grid-column: 1 / -1; }
  .lede { font-size: 18px; }
  .work-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .isnt-in { grid-template-columns: 1fr; gap: 10px; }
  .vis-row { grid-template-columns: 1fr; }
  .vis-out { grid-column: 1; }
  .bp { grid-template-columns: 1fr; }
  .bp-strip { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 90px; }
  .strip-bands { height: 120px; }
  .band-code { left: 4px; bottom: 6px; font-size: 10px; padding: 1px 4px; }
  .strip-bar { padding: 12px 20px; }
  .foot-in { grid-template-columns: 1fr; padding: 40px 20px 24px; }
  .foot-base { padding: 18px 20px 26px; }
  .sheet-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-in { padding: 10px 20px 0; }
}
@media (max-width: 600px) {
  .logo-word { font-size: 25px; }
  .mark { width: 34px; height: 34px; }
  .price-tag { padding: 4px 9px; }
  .price-tag-b { font-size: 11px; }
  .check { grid-template-columns: 1fr; gap: 14px; padding: 32px 0 40px; }
  .check-no { font-size: 52px; }
  .demo-ramp { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dr-sw { height: 64px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { border-right: 0; border-bottom: 2px solid var(--ink); }
  .flow-list li:last-child { border-bottom: 0; }
  .ramp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fmt { grid-template-columns: 64px 1fr; }
  .fmt-tag { grid-column: 1; }
  .fmt .btn { grid-column: 2; justify-self: start; }
  .band:nth-child(n+7) .band-code { display: none; }
  .band-code { display: none; }
  .codes > div { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* RP-B2: phones get every tool tab in view (two rows of three) instead of a strip that hides Export and Paint Box */
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; scroll-snap-type: none; }
  .tab { justify-content: center; gap: 6px; padding: 8px 6px; font-size: 14px; min-width: 0; }
  .tab-dot { width: 10px; height: 10px; }
}

/* ---------- AdEngine banner (adengine.us, WeldonPC's own ad network) ----------
   One labelled slot between </main> and the footer, on public pages only. The label and the reserved height (16px label
   + 4px + 90/250px banner) live on the <ins>: when nothing fills it, tag.js hides the <ins> and both go with it, and the
   wrapper collapses too. Spacing is margin on the <ins> for the same reason. display stays in this file (never
   !important) so tag.js's own display:none wins. */
.ae-slot { margin: 0; padding: 0 32px; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 0 auto 56px; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font: 600 11px/16px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ae-slot ins.adengine a { display: inline-block; vertical-align: top; }
.is-home .ae-slot ins.adengine { margin-top: 56px; }
.ae-slot:has(> ins.adengine[style*="none"]) { display: none; }
@media (max-width: 860px) { .ae-slot { padding: 0 20px; } }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; margin-bottom: 44px; } .is-home .ae-slot ins.adengine { margin-top: 44px; } }
@media print { .ae-slot { display: none; } }
