:root {
  --ink: #0f1f33;
  --ink-2: #3c4b5e;
  --muted: #6b7a8c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --brand: #0b6e6e;
  --brand-dark: #08504f;
  --brand-tint: #e6f3f2;
  --warn: #9a5b00;
  --warn-bg: #fff6e5;
  --bad: #a3261b;
  --bad-bg: #fdecea;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800; }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); margin-right: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
nav .btn { color: #fff; }

/* sections */
.hero { padding: 80px 0 64px; background: linear-gradient(180deg, var(--brand-tint), #fff); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 680px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.section { padding: 64px 0 0; }
.section > .wrap > p.sub { color: var(--ink-2); max-width: 700px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-tint); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; color: var(--ink-2); font-size: .95rem; padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }

.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 6px 24px rgba(11, 110, 110, .10); }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--ink-2); font-size: .95rem; flex: 1; }
.plan .btn { margin-top: 12px; }
.note { font-size: .9rem; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* connect */
.connect-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 18px; }
.connect-step h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; display: inline-grid; place-items: center; flex: none; }
.choices { display: grid; gap: 10px; margin: 14px 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { margin-top: 5px; accent-color: var(--brand); }
.choice span small { display: block; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=number], input[type=date] { font: inherit; padding: 9px 12px; border: 1px solid #cfd7e2; border-radius: 7px; width: 100%; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label.field { display: block; font-size: .9rem; font-weight: 600; margin: 8px 0 6px; }
.banner { border-radius: 8px; padding: 12px 16px; margin: 18px 0; font-size: .95rem; }
.banner.error { background: var(--bad-bg); color: var(--bad); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.info { background: var(--brand-tint); color: var(--brand-dark); }
.hidden { display: none !important; }

/* scan */
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 22px 0 10px; }
.progress > div { height: 100%; width: 4%; background: var(--brand); transition: width .4s ease; }

/* results */
.headline { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metric .v { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.metric .l { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.metric.big { background: var(--ink); color: #fff; border-color: var(--ink); }
.metric.big .l { color: #b9c6d6; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table-wrap table { min-width: 720px; }
#findings td:first-child { width: 170px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--bg-2); }
td.num, th.num { text-align: right; white-space: nowrap; }
td .rec { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill.likely { background: var(--warn-bg); color: var(--warn); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table tr:last-child td { border-bottom: 0; }
.prices { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.price-field { display: flex; flex-direction: column; }
.price-field .in { position: relative; }
.price-field .in::before { content: "$"; position: absolute; left: 11px; top: 9px; color: var(--muted); }
.price-field input { padding-left: 24px; }
.price-field small { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.muted { color: var(--muted); }
.unpriced { color: var(--muted); font-style: italic; }

/* print pack */
#pack { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .site-footer, .screen-only, .toolbar, nav { display: none !important; }
  #pack { display: block; }
  #pack h1 { font-size: 20pt; margin-bottom: 4pt; }
  #pack h2 { font-size: 13pt; margin: 16pt 0 6pt; border-bottom: 1px solid #000; padding-bottom: 3pt; }
  #pack .headline { margin: 10pt 0; gap: 8pt; grid-template-columns: repeat(3, 1fr); }
  #pack .metric { padding: 8pt; border-color: #999; }
  #pack .metric.big { background: #fff; color: #000; border: 2px solid #000; }
  #pack .metric.big .l { color: #333; }
  #pack .metric .v { font-size: 16pt; }
  #pack table { font-size: 9pt; }
  #pack th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #pack th, #pack td { padding: 4pt 5pt; border-bottom: 1px solid #ccc; }
  #pack tr { break-inside: avoid; }
  #pack .checklist li { margin: 4pt 0; }
  #pack .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24pt; margin-top: 18pt; }
  #pack .sig div { border-top: 1px solid #000; padding-top: 4pt; font-size: 9pt; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
}

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 40px; }
}

/* Subscriber dashboard */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--brand); }
.trend-bar { height: 10px; border-radius: 999px; background: var(--brand); min-width: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; width: 100%; max-width: 640px; }
#link-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.big-h { font-size: 2rem; margin: 6px 0; }
.link-panel { border: 2px solid var(--brand); }

/* Guides (articles) */
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article .lead { font-size: 1.15rem; color: var(--ink-2); }
.article .meta { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1em; }
.article li { margin: 4px 0; }
.article pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: .85rem; line-height: 1.5; margin: 0 0 1em; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.article p code, .article li code, .article td code { background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.article .table-wrap { margin: 0 0 1.2em; }
.article .table-wrap table { min-width: 560px; }
.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 1.2em; color: var(--ink); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.cta-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 22px; margin: 2em 0; }
.cta-box h2, .cta-box h3 { margin-top: 0; }
.cta-box .btn { margin-top: 6px; }
.sources { font-size: .88rem; color: var(--ink-2); }
.sources li { margin: 6px 0; word-break: break-word; }
.related { margin-top: 2em; }
.guide-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.guide-list .card h2 { font-size: 1.2rem; margin: 0 0 .4em; }
.guide-list .card h2 a { color: var(--ink); text-decoration: none; }
.guide-list .card h2 a:hover { color: var(--brand); }
.guide-list .card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .95rem; }
