/* VALUERAQ — "deal memo" system.
   Layout: left-aligned editorial column + data rail; the valuation range bar
   (low · mid · high) is the recurring signature element. */
:root {
  --paper: #f2f5f3;
  --surface: #ffffff;
  --sunk: #e8edea;
  --ink: #0f1c19;
  --muted: #53625d;
  --rule: #d3dbd7;
  --accent: #0d6a54;
  --accent-ink: #ffffff;
  --accent-soft: #d8ebe4;
  --mark: #d99a14;
  --warn: #9a5b00;
  --warn-soft: #fbefd6;
  --bad: #a3322a;
  --bad-soft: #f7dfdc;
  --good: #1f7a3f;
  --good-soft: #dcefe2;
  --focus: #1f5fd1;
  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.125rem; --s2: 1.375rem; --s3: 1.75rem; --s4: 2.25rem; --s5: 3rem;
  --r: 6px;
  --gutter: 16px;
  --maxw: 1160px;
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1412; --surface: #131c19; --sunk: #0a100e; --ink: #e4ebe8; --muted: #9aa9a4;
    --rule: #26322e; --accent: #48c09d; --accent-ink: #06231b; --accent-soft: #143429; --mark: #f0c14e;
    --warn: #f0b75a; --warn-soft: #33260f; --bad: #f08a80; --bad-soft: #3a1714; --good: #6fd08f;
    --good-soft: #12301d; --focus: #8ab4ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1412; --surface: #131c19; --sunk: #0a100e; --ink: #e4ebe8; --muted: #9aa9a4;
  --rule: #26322e; --accent: #48c09d; --accent-ink: #06231b; --accent-soft: #143429; --mark: #f0c14e;
  --warn: #f0b75a; --warn-soft: #33260f; --bad: #f08a80; --bad-soft: #3a1714; --good: #6fd08f;
  --good-soft: #12301d; --focus: #8ab4ff; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s0)/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, var(--s5)); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, var(--s3)); font-weight: 700; }
h3 { font-size: var(--s1); font-weight: 600; }
p, ul, ol, dl, table { margin: 0; }
.num, .tabular, td, .fig { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font: 700 1.15rem/1 var(--f-display); letter-spacing: .08em; }
.brand svg { flex: none; }
.nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: var(--r); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1rem; gap: .1rem; }
.menu-panel a { padding: .7rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
@media (max-width: 899px) { .nav { display: none; } .menu { display: block; } }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: var(--r);
  font: 600 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .3rem; }
.hint { color: var(--muted); font-size: var(--s-1); margin-top: .25rem; }
[data-listing-form] .total { font-variant-numeric: tabular-nums; margin-top: .5rem; }
[data-listing-form] .seg-row + .seg-row { margin-top: -.25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field { display: grid; gap: .1rem; min-width: 0; }
.field.error input, .field.error select { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: var(--s-1); }
.input-affix { position: relative; }
.input-affix span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--f-mono); font-size: .9rem; pointer-events: none; }
.input-affix .pre { left: .7rem; } .input-affix .post { right: .7rem; }
.input-affix .pre + input { padding-left: 1.6rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: .3rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--s-1); color: var(--muted); padding-block: 1rem 0; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* ---------- page scaffolds ---------- */
main { display: block; }
.page-head { padding-block: 1.5rem 2rem; display: grid; gap: .9rem; }
.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: var(--s1); color: var(--ink); max-width: var(--measure); }
.meta-line { font-size: var(--s-1); color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.section { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--rule); }
.section > .wrap > h2, .section-title { margin-bottom: 1.2rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; } }
.split > * { min-width: 0; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.4rem; padding-top: .2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .35rem; }
.prose blockquote { margin: 0; padding: .8rem 1rem; border-left: 3px solid var(--mark); background: var(--surface); }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--sunk); padding: .1em .3em; border-radius: 3px; }
.prose .answer, .answer { font-size: var(--s1); background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1rem 1.1rem; border-radius: 0 var(--r) var(--r) 0; }
.prose dl dt { font-weight: 600; margin-top: .8rem; }
.prose dl dd { margin: .2rem 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; background: var(--sunk); font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
a.gloss { color: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: .2em; }

/* ---------- aside / rail ---------- */
.rail { display: grid; gap: 1.2rem; align-content: start; }
@media (min-width: 960px) { .rail.sticky { position: sticky; top: 84px; } }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .7rem; }
.panel h2, .panel h3 { font-size: 1rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---------- related ---------- */
.related { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.related h3 { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: .45rem; }

/* ---------- range bar (signature) ---------- */
.range { display: grid; gap: .5rem; }
.range-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: end; }
.range-figs div { display: grid; gap: .1rem; min-width: 0; }
.range-figs div:nth-child(2) { text-align: center; }
.range-figs div:nth-child(3) { text-align: right; }
.range-figs small { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.range-figs strong { font: 600 clamp(1.05rem, .9rem + .8vw, 1.35rem)/1.2 var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.range-figs div:nth-child(2) strong { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); color: var(--ink); }
.bar { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--accent-soft), var(--accent) 50%, var(--accent-soft)); }
.bar::after { content: ""; position: absolute; left: 50%; top: -5px; width: 4px; height: 24px; margin-left: -2px; background: var(--mark); border-radius: 2px; }
.bar-scale { display: flex; justify-content: space-between; font: 400 .72rem/1 var(--f-mono); color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-block: 2.2rem 2.6rem; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; padding-top: 1.5rem; } }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); max-width: 14ch; }
.hero .lede { margin-top: 1rem; }
.type-picker { margin-top: 1.6rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.type-picker a { display: grid; gap: .15rem; padding: .75rem .85rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.type-picker a:hover { border-color: var(--accent); }
.type-picker b { font: 600 .98rem/1.2 var(--f-display); }
.type-picker span { font-size: .78rem; color: var(--muted); }
.memo { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.3rem; display: grid; gap: 1rem; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(15, 28, 25, .35); }
.memo-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dashed var(--rule); padding-bottom: .7rem; }
.memo-head b { font: 600 1rem/1.2 var(--f-display); }
.tag { display: inline-flex; align-items: center; gap: .3rem; font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .3rem .45rem; border-radius: 3px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.tag.user { background: var(--accent-soft); color: var(--accent); }
.tag.assume { background: var(--warn-soft); color: var(--warn); }
.tag.calc { background: var(--sunk); color: var(--ink); }
.tag.ai { background: var(--bad-soft); color: var(--bad); }
.tag.good { background: var(--good-soft); color: var(--good); }
.memo-lines { display: grid; gap: .45rem; font-size: .9rem; }
.memo-lines div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--sunk); padding-bottom: .4rem; }
.memo-lines span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.memo-foot { font-size: var(--s-1); color: var(--muted); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .5rem; align-content: start; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--accent); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card .go { color: var(--accent); font-weight: 600; font-size: .9rem; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .4rem; }
.steps li::before { content: "Step " counter(s); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); font-size: .93rem; }

/* ---------- calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); display: grid; }
.calc-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: baseline; }
.calc-head h2 { font-size: 1.15rem; }
.calc form { padding: 1.1rem; display: grid; gap: 1.1rem; }
.calc .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.example-note { font-size: var(--s-1); color: var(--warn); background: var(--warn-soft); padding: .5rem .7rem; border-radius: var(--r); }
.result { border-top: 1px solid var(--rule); padding: 1.2rem 1.1rem; display: grid; gap: 1.1rem; background: linear-gradient(var(--surface), var(--paper)); }
.result[hidden] { display: none !important; }
.result h3 { font-size: 1rem; }
.result .summary { font-size: 1rem; }
.alert { padding: .8rem 1rem; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); border: 1px solid var(--rule); font-size: .93rem; }
.alert.bad { background: var(--bad-soft); }
.alert.good { background: var(--good-soft); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: var(--s-1); color: var(--muted); align-items: center; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- listings ---------- */
.listing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .7rem; color: var(--ink); text-decoration: none; align-content: start; }
.lcard:hover { border-color: var(--accent); }
.lcard h3 { font-size: 1.05rem; }
.lcard .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.lcard .facts div { display: grid; }
.lcard .facts small { font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lcard .facts b { font: 600 .98rem/1.3 var(--f-mono); }
.empty { background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--r); padding: 1.5rem; display: grid; gap: .7rem; justify-items: start; }
.filters { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .7rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.facts-table th { width: 42%; background: transparent; font-weight: 500; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .25rem .55rem; border-radius: 99px; background: var(--sunk); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.published, .status.revenue_verified, .status.fully_verified, .status.traffic_verified { color: var(--good); background: var(--good-soft); }
.status.pending, .status.draft, .status.unverified { color: var(--warn); background: var(--warn-soft); }
.status.rejected, .status.suspended, .status.removed { color: var(--bad); background: var(--bad-soft); }
.status.sold { color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .9rem; align-content: start; }
.plan.pick { border: 2px solid var(--accent); }
.plan .price { font: 600 2rem/1 var(--f-mono); }
.plan .price small { font-size: .9rem; color: var(--muted); }
.plan ul { padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: var(--measure); }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; list-style-position: outside; }
.faq details > div { padding: 0 1rem 1rem; color: var(--ink); }

/* ---------- admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: 1rem; }
.admin-nav a { padding: .45rem .75rem; border-radius: var(--r); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--surface); }
.admin-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.stat-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: .9rem 1rem; display: grid; gap: .2rem; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat b { font: 600 1.5rem/1.1 var(--f-mono); }
.stat.crit b { color: var(--bad); } .stat.warn b { color: var(--warn); } .stat.ok b { color: var(--good); }
.sev { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; padding: .2rem .4rem; border-radius: 3px; }
.sev.critical { background: var(--bad-soft); color: var(--bad); }
.sev.warning { background: var(--warn-soft); color: var(--warn); }
.sev.info { background: var(--sunk); color: var(--muted); }
.meter { height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* ---------- footer ---------- */
.site-foot { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--rule); padding-block: 2.5rem 2rem; font-size: .92rem; }
.foot-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.foot-grid h2 { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.disclaimer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--s-1); display: grid; gap: .4rem; max-width: 90ch; }

.flash { padding: .8rem 1rem; border-radius: var(--r); margin-top: 1rem; background: var(--accent-soft); }
.flash.error { background: var(--bad-soft); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.narrow { max-width: 460px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .bar { transition: background-position .4s ease; }
  .result:not([hidden]) { animation: rise .35s ease-out; }
  @keyframes rise { from { transform: translateY(6px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media print {
  .site-head, .site-foot, .calc form, .no-print, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
}
.mt { margin-top: 1.1rem; }
.h3 { font-size: 1.08rem; font-weight: 600; }
dl.grid { margin: 0; }
dl.grid dd { margin: 0; }
tr[aria-current] td { background: var(--accent-soft); font-weight: 600; }
.narrow-wide { max-width: 820px; }
.range-figs strong { white-space: nowrap; overflow-wrap: normal; }
.memo .range-figs strong { font-size: clamp(.95rem, .85rem + .5vw, 1.15rem); }
.memo .range-figs div:nth-child(2) strong { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.form-grid { align-items: start; }
.field select { height: 44px; }
.field label { min-height: 0; }
@media (min-width: 720px) { .form-grid .field { grid-template-rows: minmax(2.6em, auto) auto auto auto; } .form-grid .field label { align-self: end; } }
.facts-table td .tag { display: inline-block; width: auto; margin-left: .35rem; vertical-align: middle; }
.panel .price b { font: 600 1.9rem/1.1 var(--f-mono); }

/* 2026-10-01 change requests */
input:not([type]) { width: 100%; min-height: 44px; padding: .55rem .7rem; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
input:not([type]):focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; border-radius: var(--r);
  background: transparent center/22px no-repeat; cursor: pointer; color: var(--muted); }
.pw-toggle::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: currentColor;
  -webkit-mask: var(--eye) center/contain no-repeat; mask: var(--eye) center/contain no-repeat; }
.pw-toggle { --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.pw-toggle[aria-pressed="true"] { --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E"); color: var(--accent); }
.pw-toggle:hover { color: var(--ink); }
.nav .btn.ghost { color: var(--accent); }
.plans { align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { border: 2px solid var(--accent); display: flex; flex-direction: column; gap: .9rem; }
.plan > :last-child { margin-top: auto; }
.plan.pick { border-width: 3px; box-shadow: 0 10px 30px -18px var(--accent); }
.btn[disabled] { opacity: .6; cursor: not-allowed; filter: none; }
.plan .hint { margin-top: -.4rem; }

/* Valuation tools: example figures shown as grey hints, not typed values */
input::placeholder { color: var(--muted); opacity: .75; }
select:has(option[value=""]:checked) { color: var(--muted); }
select option { color: var(--ink); }

/* Plan cards: Monthly / Yearly switch */
.period { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); margin: .2rem 0 .6rem; align-self: flex-start; }
.period button { border: 0; background: transparent; color: var(--ink); font: 600 .85rem/1 var(--f-body); padding: .5rem .85rem; border-radius: 999px; cursor: pointer; min-height: 36px; }
.period button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.period button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.save { display: inline-block; font: 700 .72rem/1 var(--f-mono); padding: .2rem .35rem; border-radius: 999px; background: var(--good-soft); color: var(--good); margin-left: .25rem; }
.period button[aria-pressed="true"] .save { background: var(--surface); color: var(--accent); }
[data-period="month"] .y, [data-period="year"] .m { display: none; }
.price s.was { color: var(--muted); font-weight: 400; font-size: .6em; margin-right: .2rem; }
.small { font-size: var(--s-1); }
/* Feature comparison table */
table.compare { min-width: 640px; }
table.compare th[scope="row"] { font-weight: 500; }
table.compare td { text-align: center; }
table.compare thead th:not(:first-child) { text-align: center; }
table.compare .yes { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
table.compare .no { color: var(--muted); }
.feature-buy { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
/* Website tool: revenue sources */
.sources { grid-column: 1 / -1; border: 1px solid var(--rule); border-radius: var(--r); padding: .8rem .9rem 1rem; margin: 0; min-width: 0; }
.sources legend { font-weight: 600; padding: 0 .3rem; }
.src-rows { display: grid; gap: .5rem; margin: .6rem 0; }
.src-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px; gap: .5rem; align-items: center; }
.src-row select { height: 44px; }
.src-del { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.src-del:hover { color: var(--bad); border-color: var(--bad); }
.src-del[hidden] { display: block; visibility: hidden; }
.src-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between; }
.src-total { margin: 0; }
.sources.error { border-color: var(--bad); }
@media (max-width: 560px) {
  .src-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .src-row .input-affix { grid-column: 1; }
  .src-row .src-del { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
.tag.bad { background: var(--bad-soft, #f6dcd8); color: var(--bad); }

/* Verification badge */
.vbadge { display: inline-flex; align-items: center; gap: .3rem; font: 600 .72rem/1 var(--f-body); padding: .3rem .5rem .3rem .4rem; border-radius: 999px; background: var(--accent-soft, #dcefe8); color: var(--accent); border: 1px solid var(--accent); text-decoration: none; white-space: nowrap; }
.vbadge::before { content: "✓"; font-weight: 700; }
a.vbadge:hover { background: var(--accent); color: var(--accent-ink); }
.verify-box { border-top: 1px solid var(--rule); margin-top: .8rem; padding-top: .7rem; }
.verify-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
/* Unread counter in tabs and lists */
.count { display: inline-block; min-width: 1.3rem; padding: .12rem .4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 .72rem/1.2 var(--f-mono); text-align: center; vertical-align: middle; }
[aria-current="page"] .count { background: var(--surface); color: var(--ink); }
/* Message threads */
.thread-row { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
.thread-row:hover { border-color: var(--accent); }
.thread-row.unread { border-left: 4px solid var(--accent); }
.thread-row p { margin: .25rem 0 0; }
.thread { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.msg { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: .7rem .9rem; max-width: 85%; justify-self: start; }
.msg.mine { justify-self: end; background: var(--accent-soft, #dcefe8); border-color: transparent; }
.msg-body { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Seller analytics: weekly views table with an inline bar */
table.weeks .barcell { width: 55%; min-width: 120px; }
table.weeks .wbar { display: block; height: 10px; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Saved search control and admin error traces */
.save-search { margin: .6rem 0 0; }
pre.trace { background: var(--sunk); border: 1px solid var(--rule); border-radius: var(--r); padding: .7rem; overflow: auto; max-height: 320px; font: 400 .78rem/1.45 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Phase 2: insights, ownership check, attachments, two-step login, UX ---- */
.dd-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.dd-list li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .7rem; align-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: .7rem .8rem; }
.dd-list p { margin: .15rem 0 0; color: var(--muted); font-size: .93rem; }
.dd-mark { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; padding: .35rem .3rem; border-radius: 3px; text-align: center; }
.dd-risk .dd-mark { background: var(--bad-soft); color: var(--bad); }
.dd-caution .dd-mark { background: var(--warn-soft); color: var(--warn); }
.dd-good .dd-mark { background: var(--good-soft); color: var(--good); }
.dd-ask { display: grid; gap: .4rem; padding-left: 1.2rem; margin: .7rem 0; }
.insight { display: grid; gap: .6rem; margin: .4rem 0 .8rem; }
.meter { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; max-width: 420px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.insight ul { margin: .5rem 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.pricecheck { font-size: .95rem; border-left: 3px solid var(--good); padding: .1rem 0 .1rem .7rem; }
.pricecheck.above { border-left-color: var(--warn); }
.pricecheck.below { border-left-color: var(--rule); }
.own-steps { display: grid; gap: .6rem; padding-left: 1.2rem; }
code.block { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: var(--sunk); border: 1px solid var(--rule); border-radius: 4px; padding: .3rem .5rem; margin-top: .3rem; font: 500 .85rem/1.4 var(--f-mono); user-select: all; }
.verify-box + .verify-box { margin-top: .6rem; }
.msg-file { margin: .4rem 0 0; font-size: .93rem; }
.msg-file a::before { content: "\1F4CE\00a0"; }
input.code-input { font: 600 1.4rem/1.2 var(--f-mono); letter-spacing: .3em; max-width: 12rem; text-align: center; }
fieldset.group { border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem; margin: 0; display: grid; gap: 1rem; min-width: 0; background: var(--surface); }
fieldset.group > legend { font: 600 1rem/1.2 var(--f-display); padding: 0 .4rem; }
.checklist { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; }
.checklist .tick { width: 1.4rem; height: 1.4rem; border: 1.5px solid var(--rule); border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.checklist .done .tick { background: var(--accent); border-color: var(--accent); }
.checklist .done { color: var(--muted); }
.paths .card h3 { font-size: 1.2rem; }
.social { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.social span { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.social a { color: var(--ink); font-weight: 600; text-decoration: none; padding: .35rem 0; }
.social a:hover { color: var(--accent); text-decoration: underline; }
.social + .disclaimer { margin-top: 1.2rem; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: .8rem var(--gutter) calc(.8rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: center; font-size: .92rem; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 60ch; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media print { .cookie-bar { display: none !important; } }
.contact-list { list-style: none; padding: 0; margin: .6rem 0 1.6rem; display: grid; gap: .5rem; }
.contact-list span { display: inline-block; min-width: 4.5rem; color: var(--muted); }
.contact-list a { font-weight: 600; }
.hero .slogan { margin-top: .9rem; font: 600 var(--s2)/1.3 var(--f-display); color: var(--accent); max-width: 26ch; }
.foot-slogan { margin-top: 1.6rem; color: var(--ink); font-size: .95rem; }
.foot-slogan + .disclaimer { margin-top: 1rem; }

/* Article images */
.prose figure.feature { margin: 0 0 1.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--rule); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* Admin: task data grid */
.task-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; font-size: .93rem; }
.tick { font-weight: 700; font-size: 1.05rem; }
.tick.scheduled { color: #d97706; }
.tick.done { color: #15803d; }
.tick.missed { color: #dc2626; }
.task-grid table { border-collapse: separate; border-spacing: 0; }
.task-grid th, .task-grid td { padding: .45rem .4rem; text-align: center; min-width: 2rem; }
.task-grid tbody th, .task-grid thead th:first-child { text-align: left; min-width: 11.5rem; max-width: 11.5rem; white-space: normal; font-weight: 500; position: sticky; left: 0; background: var(--surface); z-index: 1; border-right: 1px solid var(--rule); }
.task-grid .today { background: var(--accent-soft); }
.month-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.tick.ahead { color: var(--muted); }
.tick.warn { color: #d97706; }
form.inline{display:inline;margin:0}
.linkish{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.cf-turnstile{min-height:65px}
