/* ================================================================
   Banner Manager design system — shared by every page.
   Navy masthead, white panels on a cool grey field, one emerald
   accent. Placements are always drawn to true scale.
   ================================================================ */
/* Web fonts, hosted on this server (no requests to Google). Latin subset.
   Archivo and IBM Plex Sans are licensed under the SIL Open Font License (see fonts/). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-stretch: 100% 125%;
  font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url(fonts/ibm-plex-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14213D;        /* masthead, headings */
  --ink-2: #3B4863;      /* body text */
  --muted: #667089;      /* secondary text */
  --line: #DCE1E9;       /* borders */
  --line-2: #EBEEF3;     /* hairlines inside panels */
  --field: #F4F6F9;      /* page background */
  --paper: #FFFFFF;
  --brand: #0B6E4F;      /* emerald accent */
  --brand-ink: #085A40;
  --brand-tint: #E6F2EC;
  --danger: #B42318;  --danger-tint: #FDEDEB;
  --warn: #8A5300;    --warn-tint: #FFF3DC;
  --r-sm: 6px; --r-md: 10px;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--field); color: var(--ink-2);
  font: 400 15px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 110%; color: var(--ink);
  line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 12px; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
code { font: 13px/1.5 ui-monospace, "SF Mono", Consolas, monospace; background: var(--field);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(11,110,79,.35); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font: 700 17px/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
.wordmark { font-weight: 400; letter-spacing: -0.015em; }
.wordmark b { font-weight: 780; }
.brand small { display: block; font: 400 12px/1.2 var(--font-body); letter-spacing: 0; opacity: .7; margin-top: 3px; }

/* ---------- public masthead ---------- */
.masthead { background: var(--ink); color: #fff; }
.masthead .brand svg { color: #4FC79A; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.topbar a.help { color: #C9D2E3; font-size: 14px; text-decoration: none; }
.topbar a.help:hover { color: #fff; text-decoration: underline; }
.intro { padding: 36px 0 40px; max-width: 680px; }
.intro h1 { color: #fff; margin-bottom: 12px; }
.intro .lede { color: #C9D2E3; font-size: 17px; max-width: 60ch; margin: 0; }
.steps { display: flex; gap: 0; margin: 0; padding: 0 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 0; color: #8F9AB3; font-size: 14px; }
.steps li .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; font: 600 12px/1 var(--font-body); flex: none; }
.steps li.done { color: #C9D2E3; }
.steps li.done .n { background: #4FC79A; border-color: #4FC79A; color: var(--ink); }
.steps li.current { color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 #4FC79A; }
.steps li.current .n { background: #fff; border-color: #fff; color: var(--ink); }

.page { padding: 32px 0 64px; }
.site-foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.review-grid > .panel, .two-col > .panel { margin-top: 0; }
.nowrap { white-space: nowrap; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
fieldset.panel { margin: 0; min-width: 0; }
fieldset.panel legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
fieldset.panel legend + * { clear: both; }

/* ---------- alerts ---------- */
.alert { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; border: 1px solid; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: var(--danger-tint); border-color: #F4C7C1; color: #7A1A12; }
.alert-success { background: var(--brand-tint); border-color: #BFDDCE; color: #07462F; }
.alert-info { background: #EEF2FA; border-color: #D3DCEE; color: var(--ink); }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 18px; }
label.field > span:first-child { display: block; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.help-text { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #C5CCD8; border-radius: var(--r-sm); padding: 10px 12px; min-height: 42px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,110,79,.18); }
textarea { min-height: 90px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font-body);
  border-radius: var(--r-sm); border: 1px solid transparent; padding: 11px 18px; cursor: pointer; text-decoration: none;
  min-height: 42px; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: #C5CCD8; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0C1529; color: #fff; }
.btn-lg { font-size: 16px; padding: 14px 26px; min-height: 50px; }
.btn-sm { font-size: 13px; padding: 6px 11px; min-height: 32px; }
.btn-danger { background: var(--paper); color: var(--danger); border-color: #EBC2BD; }
.btn-danger:hover { background: var(--danger-tint); color: var(--danger); }
.btn-block { width: 100%; }

/* ---------- placement picker (the signature element) ---------- */
.placements { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.placement { position: relative; display: flex; flex-direction: column; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 14px; }
.placement input { position: absolute; opacity: 0; pointer-events: none; }
.placement:hover { border-color: #9AA6BC; }
.placement:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #FAFDFB; }
.placement:has(input:focus-visible) { outline: 3px solid rgba(11,110,79,.35); outline-offset: 2px; }
.stage { height: 132px; border-radius: var(--r-sm); margin-bottom: 12px; display: grid; place-items: center;
  background-color: var(--field);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 12px 12px; }
.shape { display: block; background: var(--brand-tint); border: 1.5px solid var(--brand); border-radius: 2px; }
.placement:has(input:checked) .shape { background: var(--brand); }
.placement-name { font-weight: 600; color: var(--ink); }
.placement-size { color: var(--muted); font-size: 13px; }
.placement-price { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.placement-price strong { font: 700 18px/1 var(--font-display); color: var(--ink); margin-right: 4px; }
.placement .tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #C5CCD8; background: var(--paper); }
.placement:has(input:checked) .tick { border-color: var(--brand); background: var(--brand)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- order form ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.dropzone { display: block; border: 1.5px dashed #AEB8C9; border-radius: var(--r-md); padding: 20px; text-align: center;
  background: var(--field); cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); background: #F7FBF9; }
.dropzone input { width: 100%; font-size: 13px; color: var(--muted); }
.dropzone strong { display: block; color: var(--ink); margin-bottom: 4px; }
.creative-check { position: sticky; top: 20px; }
.creative-frame { min-height: 180px; border-radius: var(--r-sm); display: grid; place-items: center; padding: 16px;
  background-color: var(--field);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 12px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.creative-frame img { max-width: 100%; max-height: 260px; display: block; box-shadow: 0 1px 3px rgba(20,33,61,.25); }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.check-line::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #AEB8C9; }
.check-line.ok { color: #07462F; } .check-line.ok::before { background: var(--brand); }
.check-line.bad { color: var(--danger); } .check-line.bad::before { background: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-foot p { margin: 0; max-width: 52ch; }

/* ---------- review page ---------- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.browser { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--field); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD2DE; }
.browser-url { margin-left: 10px; flex: 1; max-width: 340px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 3px 12px; font-size: 12px; color: var(--muted); }
.browser-body { padding: 28px; }
.ph { height: 10px; background: #E6EAF0; border-radius: 5px; margin-bottom: 10px; }
.ph.title { height: 18px; width: 55%; background: #D3D9E3; margin-bottom: 18px; }
.ph.short { width: 70%; }
.banner-slot { display: flex; justify-content: center; margin: 22px 0; pointer-events: none; }
.banner-slot > * { max-width: 100%; }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.summary dt { color: var(--muted); white-space: nowrap; }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; }
.total span { font-weight: 600; color: var(--ink); }
.total strong { font: 750 28px/1 var(--font-display); color: var(--ink); }
.pay-options { display: grid; gap: 10px; }
.pay-options form { margin: 0; }
.btn-paypal { background: #FFC439; color: #111A33; }
.btn-paypal:hover { background: #F2B52A; color: #111A33; }
.status-box { border-radius: var(--r-sm); padding: 16px; font-size: 14px; }
.status-box strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.status-box.live { background: var(--brand-tint); }
.status-box.wait { background: var(--warn-tint); }
.status-box.other { background: var(--field); }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.secure-note svg { width: 14px; height: 14px; flex: none; }

/* ---------- console (admin) ---------- */
body.console { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--ink) 248px, var(--field) 248px); }
.sidebar { background: var(--ink); color: #C9D2E3; padding: 22px 16px; display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #fff; padding: 0 8px; }
.sidebar .brand svg { color: #4FC79A; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: #C9D2E3; text-decoration: none; font-size: 14.5px; }
.side-nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(79,199,154,.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #4FC79A; }
.side-nav .count { margin-left: auto; background: #4FC79A; color: var(--ink); font-size: 12px; font-weight: 700;
  border-radius: 10px; padding: 1px 8px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.console-main { min-width: 0; }
.console-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.console-head h1 { font-size: 26px; }
.console-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.console-body { padding: 28px 36px 60px; max-width: 1240px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.kpi .label { color: var(--muted); font-size: 13.5px; }
.kpi .value { font: 750 32px/1.1 var(--font-display); color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kpi.accent { background: var(--ink); border-color: var(--ink); }
.kpi.accent .label, .kpi.accent .sub { color: #AEB8CC; }
.kpi.accent .value { color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; background: #FAFBFC;
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-weight: 600; color: var(--ink); background: #FAFBFC; border-top: 1px solid var(--line); }
.cell-main { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cell-sub { color: var(--muted); font-size: 13px; }
.thumb { width: 72px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: var(--field);
  display: grid; place-items: center; overflow: hidden; flex: none; font-size: 11px; color: var(--muted); }
.thumb img { max-width: 100%; max-height: 100%; }
.with-thumb { display: flex; align-items: center; gap: 12px; }
.actions { display: flex; flex-wrap: nowrap; gap: 6px; }
tr.editing td { background: #FAFDFB; box-shadow: inset 3px 0 0 var(--brand); padding: 20px 16px; }
.edit-row { margin: 0; }
.edit-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.edit-fields { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr) auto; gap: 0 14px; align-items: end; }
.edit-buttons { display: flex; gap: 8px; margin-bottom: 18px; }
.edit-row .help-text { margin: 0; max-width: 90ch; }
@media (max-width: 920px) { .edit-fields { grid-template-columns: 1fr 1fr; } .edit-buttons { grid-column: 1 / -1; } }
.row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.row-actions form { margin: 0; }
.row-actions .more { display: flex; gap: 2px; }
.btn-text { background: none; border: 0; color: var(--muted); font-weight: 500; font-size: 13px; padding: 4px 6px; min-height: 0; }
.btn-text:hover { color: var(--ink); text-decoration: underline; }
.btn-text.danger:hover { color: var(--danger); }
.actions form { margin: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { margin-bottom: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { background: var(--brand-tint); color: var(--brand-ink); }
.pill-off { background: #EEF0F4; color: #4D5770; }
.pill-wait { background: var(--warn-tint); color: var(--warn); }
.pill-bad { background: var(--danger-tint); color: var(--danger); }
.reason { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.bar { height: 8px; border-radius: 4px; background: var(--brand); min-width: 2px; }
.bar-track { background: var(--line-2); border-radius: 4px; width: 100%; min-width: 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label.field { margin: 0; }
.snippet { position: relative; }
.snippet pre { margin: 0; padding-top: 48px !important; background: var(--ink); color: #DDE4F0; border-radius: var(--r-sm); padding: 16px 18px;
  font: 13px/1.6 ui-monospace, Consolas, monospace; overflow-x: auto; white-space: pre; }
.snippet .btn { position: absolute; top: 10px; right: 10px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
details.creator > summary { list-style: none; cursor: pointer; }
details.creator > summary::-webkit-details-marker { display: none; }
details.creator[open] > summary { margin-bottom: 18px; }

/* ---------- login ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--ink); }
.login-card { width: 100%; max-width: 400px; background: var(--paper); border-radius: var(--r-md); padding: 36px; }
.login-card .brand { color: var(--ink); margin-bottom: 28px; }
.login-card h1 { font-size: 24px; margin-bottom: 6px; }

/* ---------- site menu, breadcrumbs, footer ---------- */
.site-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #C9D2E3; text-decoration: none; font-size: 14.5px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]:not(.nav-cta) { box-shadow: 0 2px 0 #4FC79A; }
.site-nav .nav-cta { color: #fff; margin-left: 6px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: #8F9AB3; margin-bottom: 14px; }
.crumbs a { color: #C9D2E3; }
.site-foot { padding: 36px 0 44px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.foot-brand .brand { color: var(--ink); margin-bottom: 8px; }
.foot-brand p { max-width: 42ch; margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- content pages ---------- */
.prose { max-width: 820px; }
.panel.prose, .article.prose { max-width: none; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 40px 44px; }
.article + .article, .article + .cta-band, .panel + .cta-band, .table-wrap + .article { margin-top: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; margin: 8px 0 16px; }
.feature-grid h3 { margin-top: 14px; }
.feature-grid p { font-size: 15px; margin: 0; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--ink); color: #C9D2E3; border-radius: var(--r-md); padding: 30px 36px; margin-top: 24px; }
.cta-band h2 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.cta-band p { margin: 0; }
.size-table td:first-child { width: 96px; }
.size-table .stage-mini { width: 84px; height: 56px; display: grid; place-items: center; border-radius: 4px;
  background-color: var(--field); background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 8px 8px; }
.size-name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
  font-size: 13.5px; color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
.spec { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line-2); }
.spec:first-of-type { border-top: 0; }
.spec .stage { height: 132px; margin: 4px 0 0; }
.spec h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font: 650 17px/1.35 var(--font-display); font-stretch: 105%; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-body); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps-list > li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.steps-list > li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand-ink); display: grid; place-items: center; font: 700 15px/1 var(--font-display); }
.steps-list h3 { margin: 4px 0 4px; }
.steps-list p { margin: 0; }

/* ---------- home page ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 30px 0 56px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.hero .lede { color: #C9D2E3; font-size: 18px; max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.hero-note { color: #8F9AB3; font-size: 14px; margin-top: 18px; }
.lineup { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 22px;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 14px 14px; }
.lineup-grid { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: flex-end; }
.lineup figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lineup .shape { background: rgba(79,199,154,.18); border-color: #4FC79A; }
.lineup figcaption { font-size: 11.5px; color: #AEB8CC; white-space: nowrap; }
.lineup-note { color: #8F9AB3; font-size: 12.5px; margin: 14px 0 0; }
.section-head { max-width: 640px; margin-bottom: 20px; }
.section-head h2 { font-size: 28px; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.home-section + .home-section { margin-top: 56px; }
.size-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.size-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; color: inherit; text-decoration: none; }
.size-card:hover { border-color: var(--brand); }
.size-card .stage { height: 110px; margin-bottom: 10px; }
.size-card strong { display: block; color: var(--ink); }
.size-card span { color: var(--muted); font-size: 13.5px; }

/* ---------- legal pages and agreement ---------- */
.legal h2 { font-size: 20px; }
.rule-box { border: 1px solid #F4C7C1; background: var(--danger-tint); border-radius: var(--r-md); padding: 4px 24px 12px; margin: 26px 0; }
.rule-box h2 { color: #7A1A12; margin-top: 18px; }
.rule-box p, .rule-box li { color: #5C140E; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--field); font-size: 14.5px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.agree:has(input:checked) { border-color: var(--brand); background: #F7FBF9; }
.consent p a { color: var(--brand); }

/* ---------- blog ---------- */
.post-byline { color: #8F9AB3; font-size: 14px; margin: 14px 0 0; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.post-body h2 { scroll-margin-top: 20px; }
.post-body blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--brand); color: var(--ink); }
.post-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.post-body th { background: #FAFBFC; color: var(--ink); }
.post-body .faq { margin-top: 8px; }
.post-body .key-takeaways { background: var(--brand-tint); border-radius: var(--r-md); padding: 6px 22px 4px; margin: 4px 0 22px; }
.post-body .key-takeaways h2 { font-size: 18px; margin-top: 16px; }
.post-aside { position: sticky; top: 20px; }
.post-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.post-toc-title { font: 700 14px/1.3 var(--font-display); color: var(--ink); margin-bottom: 8px; }
.post-toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.post-toc li { margin-bottom: 6px; }
.post-toc a { color: var(--ink-2); text-decoration: none; }
.post-toc a:hover { color: var(--brand); text-decoration: underline; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; color: inherit; text-decoration: none; }
.post-card:hover { border-color: var(--brand); }
.post-card strong { font: 700 19px/1.3 var(--font-display); color: var(--ink); }
.post-cat { font-size: 13px; font-weight: 600; color: var(--brand); }
.post-excerpt { color: var(--ink-2); font-size: 14.5px; }
.post-meta { color: var(--muted); font-size: 13px; margin-top: auto; }
.related { margin-top: 32px; }
.related h2 { font-size: 24px; margin-bottom: 14px; }
@media (max-width: 920px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .post-aside { position: static; order: -1; } }

/* ---------- cookie popup ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 400px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: 0 8px 30px rgba(20,33,61,.18); }
.consent[hidden] { display: none; }
.consent p { font-size: 14px; margin: 0 0 12px; }
.consent .consent-title { font: 700 15px/1.3 var(--font-display); color: var(--ink); margin-bottom: 4px; }
.consent-actions { display: flex; gap: 8px; }
@media (max-width: 600px) { .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .order-grid, .review-grid, .two-col, .hero { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-bottom: 40px; }
  .topbar { flex-wrap: wrap; }
  .site-nav { justify-content: flex-start; gap: 4px 16px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .article { padding: 26px 22px; }
  .spec { grid-template-columns: 1fr; gap: 10px; }
  .creative-check { position: static; }
  body.console { grid-template-columns: 1fr; background: var(--field); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; }
  .console-head, .console-body { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .panel { padding: 20px; }
  .steps li .label { display: none; }
  .steps li.current .label { display: inline; }
  .placements { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stage { height: 100px; }
  .shape { transform: scale(.72); }
  .row { grid-template-columns: 1fr; }
  .site-nav a { font-size: 14px; }
  .site-nav .nav-cta { margin-left: 0; }
  .cta-band { padding: 24px 20px; }
  .size-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .size-card { padding: 12px; }
  .size-card .stage { height: 84px; }
  .size-card .shape { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }