/* Mister Marbi — shared design system. No external fonts or scripts. */
:root {
  --paper: #f7f5f0; --surface: #ffffff; --surface-2: #f0ede5; --ink: #15171c; --muted: #555b66; --line: #e2ddd2;
  --accent: #1d3fd6; --accent-ink: #ffffff; --accent-soft: #e8ecfd;
  --pass: #0f7a48; --pass-soft: #e3f3ea; --warn: #9a5800; --warn-soft: #fbf0dc; --fail: #b42318; --fail-soft: #fbe5e2; --info: #34557f; --info-soft: #e7eef7;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(21,23,28,.05), 0 8px 24px -12px rgba(21,23,28,.14);
  --step--1: .875rem; --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.375rem; --step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101217; --surface: #171a21; --surface-2: #1d212a; --ink: #eceef1; --muted: #a3a9b5; --line: #2b303b;
    --accent: #8ea2ff; --accent-ink: #0d1020; --accent-soft: #1e2546;
    --pass: #5fd39a; --pass-soft: #12291f; --warn: #f0b45a; --warn-soft: #2d2313; --fail: #ff8a7a; --fail-soft: #331a18; --info: #9cb9e0; --info-soft: #18222f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    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(--step-0)/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 1.6em; }
h3 { font-size: var(--step-2); margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.eyebrow { font: 600 var(--step--1)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 44em; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.15rem/1 var(--serif); }
.brand svg { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 48px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
@media (max-width: 560px) { .nav { margin-left: -8px; width: calc(100% + 16px); padding-bottom: 8px; gap: 0; flex-wrap: nowrap; justify-content: space-between; } .nav a { padding: 6px 8px; font-size: .9rem; white-space: nowrap; } }

/* Sections */
.hero { padding: 56px 0 28px; }
.section { padding: 40px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: var(--step-1); }
.card.flat { box-shadow: none; }
.prose { max-width: 720px; }
.prose li { margin-bottom: .35em; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Forms & buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 18px; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], input[type=search], select { width: 100%; font: 400 1rem/1.4 var(--sans); padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--line) 60%, var(--muted)); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field { margin-bottom: 14px; }
.hint { font-size: var(--step--1); color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > .grow { flex: 1 1 240px; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; background: var(--info-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); margin: 12px 0; }
.notice.ok { background: var(--pass-soft); border-color: color-mix(in srgb, var(--pass) 30%, transparent); }
.notice.err { background: var(--fail-soft); border-color: color-mix(in srgb, var(--fail) 30%, transparent); }

/* Checker */
.checker { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.checker form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker input[type=text] { flex: 1 1 260px; font-size: 1.1rem; padding: 14px 16px; }
.checker .btn { padding: 14px 22px; font-size: 1.05rem; }
.checker .extra { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); align-items: center; }
.checker .extra input { width: 180px; padding: 7px 10px; font-size: .95rem; }
.examples { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
.examples button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0 2px; text-decoration: underline; text-underline-offset: 2px; }
.results { margin-top: 18px; display: grid; gap: 14px; }
.summary-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; animation: rise .22s ease-out both; }
.result > header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.result > header h3 { margin: 0; font-size: var(--step-1); }
.result .body { padding: 14px 18px; }
.record { font-family: var(--mono); font-size: .88rem; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; overflow-wrap: anywhere; margin: 0 0 12px; border-left: 3px solid var(--accent); }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.finding .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.finding .t { font-weight: 650; }
.finding .d { color: var(--muted); font-size: .95rem; }
.finding .fix { font-size: .95rem; margin-top: 4px; padding: 8px 10px; background: var(--accent-soft); border-radius: 6px; }
.finding .fix strong { font-weight: 650; }
.lvl-pass .ico { background: var(--pass-soft); color: var(--pass); }
.lvl-warn .ico { background: var(--warn-soft); color: var(--warn); }
.lvl-fail .ico { background: var(--fail-soft); color: var(--fail); }
.lvl-info .ico { background: var(--info-soft); color: var(--info); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 650 .8rem/1.2 var(--sans); letter-spacing: .02em; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.pass { background: var(--pass-soft); color: var(--pass); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.fail { background: var(--fail-soft); color: var(--fail); }
.chip.info, .chip.pending { background: var(--info-soft); color: var(--info); }
.skeleton { height: 64px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); margin-top: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: var(--step-1); }
.plan .price { font: 700 2.2rem/1 var(--serif); }
.plan .price small { font: 500 .95rem var(--sans); color: var(--muted); }
.plan ul { padding-left: 18px; margin: 0; font-size: .95rem; flex: 1; }
.plan li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
table.compare th, table.compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare thead th { background: var(--surface-2); font-weight: 650; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
.yes { color: var(--pass); font-weight: 700; }
.no { color: var(--muted); }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Account */
.dash-grid { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.domain-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.domain-row:last-child { border-bottom: 0; }
.domain-row .chips { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
[hidden] { display: none !important; }

/* Print (report pages) */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .result { box-shadow: none; break-inside: avoid; }
}
.swipe-hint { display: none; }
@media (max-width: 700px) {
  .swipe-hint { display: block; margin: 24px 0 -16px; font-size: .85rem; color: var(--muted); }
  table.compare th:first-child, table.compare td:first-child { position: sticky; left: 0; background: var(--surface); min-width: 130px; box-shadow: 1px 0 0 var(--line); }
  table.compare thead th:first-child { background: var(--surface-2); }
}
