/* Infrazz — site styles
   Palette: paper, ink (navy), highlighter (yellow) + semantic pass/warn/fail for the Health Check. */
:root {
  --paper: #f7f8f5;
  --paper-2: #eceee8;
  --ink: #13233f;
  --ink-soft: #4a5872;
  --rule: #d5d9d0;
  --mark: #ffd23f;
  --mark-deep: #f2b705;
  --pass: #1e7d3a;
  --warn: #a35f00;
  --fail: #c0362c;
  --radius: 10px;
  --max: 1120px;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

/* hidden always wins over component display rules */
[hidden] { display: none !important; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mark); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.head-links { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.head-links a:not(.btn) { text-decoration: none; }
.head-links a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 640px) { .head-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
}
.btn:hover { background: #0b1830; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-mark { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.btn-mark:hover { background: var(--mark-deep); border-color: var(--mark-deep); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { margin-bottom: 14px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 20px; }
.hero .actions { margin-top: 28px; }
.reply-note { margin-top: 12px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.hero .reply-note { margin-top: 14px; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the change-of-address slip */
.slip {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(19, 35, 63, 0.35);
}
.slip-title { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; }
.slip label { display: block; margin-top: 18px; font-size: 0.92rem; font-weight: 600; }
.slip input {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 8px;
}
.slip input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(19, 35, 63, 0.15); }
.slip dl { margin: 22px 0 0; display: grid; gap: 14px; }
.slip dt { font-size: 0.85rem; color: var(--ink-soft); }
.slip dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.old-addr { font-size: 1.05rem; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--fail); text-decoration-thickness: 2px; }
.new-addr { font-size: clamp(1.45rem, 3.4vw, 2.05rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.new-addr span {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-size: 100% 0.62em; background-position: 0 88%;
  padding-inline: 2px;
}
.new-addr.sweep span { animation: sweep 700ms cubic-bezier(.3,.7,.2,1) both; }
@keyframes sweep { from { background-size: 0% 0.62em; } to { background-size: 100% 0.62em; } }
.new-site { font-size: 1.15rem; font-weight: 700; }
.slip-foot { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.band-head { max-width: 40em; margin-bottom: 36px; }
.band-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.08rem; }

/* pricing: centred serif title, tabs, equal plan cards */
.pricing { text-align: center; }
.pricing h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
.pricing-sub { margin-top: 10px; color: var(--ink-soft); font-size: 1.08rem; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 32px; padding: 5px; background: var(--paper-2); border-radius: 14px; }
.tabs[hidden] { display: none; }
@media (max-width: 480px) { .tabs { flex-wrap: nowrap; } .tabs button { padding: 9px 12px; font-size: 0.9rem; } }
.tabs button { font: inherit; font-size: 0.95rem; color: var(--ink-soft); background: transparent; border: 0; border-radius: 10px; padding: 9px 18px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 35, 63, 0.12); }
.tab-panel { margin-top: 36px; text-align: left; }
.tab-panel[hidden] { display: none; }
.panel-title { margin-bottom: 16px; font-size: 1.1rem; }
.js-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.plan { background: #fff; border: 1px solid #e6e8e2; border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(19, 35, 63, 0.04); }
.plan-icon { width: 68px; height: 68px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plan h4 { margin: 28px 0 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 2.1rem; line-height: 1.1; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag { font-family: var(--font); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.plan-for { margin-top: 6px; font-size: 1.12rem; color: var(--ink-soft); min-height: 3.2em; }
.plan-amt { margin-top: 22px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.plan-note { margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); min-height: 3.1em; }
.plan-btn { margin-top: 22px; width: 100%; min-height: 52px; border-radius: 10px; background: #141413; border-color: #141413; font-size: 1.08rem; }
.plan-btn:hover { background: #333; border-color: #333; }
.plan .ticks { list-style: none; margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid #e6e8e2; display: grid; gap: 12px; }
.ticks-head { margin-top: 28px; padding-top: 26px; border-top: 1px solid #e6e8e2; font-weight: 700; }
.plan .ticks-head + .ticks { margin-top: 14px; padding-top: 0; border-top: 0; }
.plan-fine { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 6px; top: 0.28em; width: 6px; height: 12px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@media (max-width: 900px) {
  .plans, .plans-2 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-for, .plan-note { min-height: 0; }
}

/* compare table */
.compare-plans { margin-top: 32px; border-top: 1px solid var(--rule); }
.compare-plans summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.08rem; }
.table-scroll { overflow-x: auto; }
.compare-plans table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-plans th, .compare-plans td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare-plans thead th { font-weight: 800; }
.compare-plans .price-row td { font-weight: 700; }
.compare-plans tbody th { text-align: left; font-weight: 500; padding-left: 0; }
.compare-plans td.y, .compare-plans td.n { font-size: 0; }
.compare-plans td.y::before { content: ""; display: inline-block; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.compare-plans td.n::before { content: "\2013"; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 560px) { .compare-plans th, .compare-plans td { padding: 10px 4px; } .compare-plans table { font-size: 0.88rem; } }

.price-note { margin: 28px auto 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 46em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mark); font-weight: 800; margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* health check band */
.band-ink { background: var(--ink); color: var(--paper); border-top: 0; }
.band-ink .band-head p { color: #c4ccda; }
.band-ink a { color: var(--paper); }
.check-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.check-form input {
  flex: 1 1 260px; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1.05rem;
  border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--ink);
}
.check-form input:focus { outline: none; border-color: var(--mark); }
.check-form .btn { min-height: 52px; }
.band-ink .fine { margin-top: 14px; font-size: 0.9rem; color: #c4ccda; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.compare > div { padding: clamp(20px, 3vw, 32px); }
.compare > div + div { border-left: 1px solid var(--rule); }
.compare h3 { margin-bottom: 10px; }
.compare ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.compare li + li { margin-top: 6px; }
.compare-foot { margin-top: 18px; color: var(--ink-soft); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* faq */
.faq { max-width: 46em; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* contact */
.contact .lede { margin-top: 12px; }
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 28px; font-size: 0.9rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Health Check page ---------- */
.check-hero { padding-block: clamp(40px, 6vw, 72px) 32px; }
.check-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 14em; }
.check-hero .lede { margin-top: 14px; }
.check-hero .check-form { margin-top: 28px; }
.check-hero .check-form input { border: 2px solid var(--rule); }
.check-hero .check-form input:focus { border-color: var(--ink); }
.check-hero .fine { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }

.results { padding-bottom: 72px; }
.results[hidden] { display: none; }
.summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 2px solid var(--ink); }
.summary h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.summary p { color: var(--ink-soft); }
.checks { list-style: none; margin: 0; padding: 0; }
.chk { display: grid; grid-template-columns: 140px 1fr; gap: 6px 24px; padding-block: 22px; border-top: 1px solid var(--rule); }
.chk h3 { font-size: 1.15rem; }
.chk .what { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2px; }
.chk .found { margin-top: 10px; }
.chk .fix { margin-top: 8px; font-weight: 600; }
.chk code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86rem; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.badge { align-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.95rem; padding: 4px 12px 4px 8px; border-radius: 999px; width: fit-content; white-space: nowrap; }
.badge svg { width: 18px; height: 18px; }
.badge.pass { color: var(--pass); background: #e2f2e6; }
.badge.warn { color: var(--warn); background: #fbefd9; }
.badge.fail { color: var(--fail); background: #fbe3e0; }
.badge.info { color: var(--ink-soft); background: var(--paper-2); }
.badge.wait { color: var(--ink-soft); background: var(--paper-2); }
@media (max-width: 560px) { .chk { grid-template-columns: 1fr; } }
.next { margin-top: 8px; padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.next p { color: var(--ink-soft); margin-top: 6px; }
.next .reply-note { color: var(--ink); margin-top: 10px; }
.next[hidden] { display: none; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } }
.error { margin-top: 16px; color: var(--fail); font-weight: 600; }
.noscript-note { margin-top: 16px; padding: 14px 16px; background: #fbefd9; border-radius: 8px; font-weight: 600; max-width: 40em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .new-addr.sweep span { animation: none; }
}
#nf-actions { margin-top: 28px; }

/* tap targets: at least 44px tall on phones */
@media (max-width: 640px) {
  .brand, .btn-sm, .tabs button { min-height: 44px; }
  .site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-foot nav { gap: 0 20px; }
}

/* ---------- Guides ---------- */
.crumbs { font-size: 0.9rem; color: var(--ink-soft); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }
.article { padding-block: 20px 80px; }
.article-head { max-width: 46rem; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.article-head .lede { margin-top: 16px; }
.meta { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.prose { max-width: 42rem; margin-top: 36px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.short { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: 8px; padding: 18px 20px; }
.short h2 { margin: 0 0 8px; font-size: 1.1rem; }
.short ul { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.table-wrap th { background: var(--paper-2); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.cta-box { margin-top: 2.4em; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 24px; display: grid; gap: 12px; }
.cta-box h2 { margin: 0; font-size: 1.35rem; color: var(--paper); }
.cta-box p { color: #c4ccda; margin: 0; }
.cta-box .actions { margin-top: 4px; }
.cta-box .btn-ghost { color: var(--paper); border-color: #c4ccda; }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.08); }
.cta-box .reply-note { color: var(--paper); margin: 0; }
.sources { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-soft); }
.sources h2 { font-size: 1rem; margin: 0 0 8px; }
.sources ol { padding-left: 1.3em; }
.sources a { color: var(--ink-soft); overflow-wrap: anywhere; }
.guide-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.guide-card { display: grid; gap: 8px; align-content: start; height: 100%; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px; text-decoration: none; min-height: 44px; }
.guide-card:hover { border-color: var(--ink); }
.guide-card h2 { font-size: 1.25rem; }
.guide-card p { color: var(--ink-soft); }
.guide-card span { font-weight: 700; }
.related { margin-top: 2.4em; }
.related h2 { font-size: 1.1rem; }
.related ul { padding-left: 1.2em; }
