/* Self-hosted font, zero third-party assets and a calm technical visual language. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --ink: #111c2e;
  --muted: #56647a;
  --line: #dde3ec;
  --accent: #2f54eb;
  --accent-strong: #1f3fc4;
  --accent-soft: #e8edff;
  --accent-ink: #ffffff;
  --hero: #0f1b2e;
  --hero-ink: #eef3ff;
  --lime: #bcf16d;
  --code: #eef2f8;
  --high: #c2410c;
  --high-soft: #fff1e8;
  --medium: #a16207;
  --medium-soft: #fdf6e3;
  --low: #15803d;
  --low-soft: #eaf8ef;
  --radius: 12px;
  --shadow: 0 1px 2px #0f1b2e0a, 0 8px 24px #0f1b2e0d;
  --shadow-lift: 0 2px 4px #0f1b2e0f, 0 16px 36px #0f1b2e17;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #111c2e;
    --surface-2: #16233a;
    --ink: #e9eef8;
    --muted: #a3b1c6;
    --line: #26354d;
    --accent: #8ea8ff;
    --accent-strong: #b3c4ff;
    --accent-soft: #1b2a4d;
    --accent-ink: #0a1430;
    --hero: #13213a;
    --code: #1a2840;
    --high: #fdba74;
    --high-soft: #3a2116;
    --medium: #fcd34d;
    --medium-soft: #352b12;
    --low: #86efac;
    --low-soft: #12301f;
    --shadow: 0 1px 2px #0004, 0 8px 24px #0003;
    --shadow-lift: 0 2px 4px #0005, 0 16px 36px #0005;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:is(button, a, input, select, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 960px; margin-bottom: 22px; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin-bottom: 18px; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.small { font-size: .875rem; color: var(--muted); }
.section { padding-block: 72px; }
.section-intro { max-width: 720px; font-size: 1.12rem; color: var(--muted); margin-bottom: 34px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); }
.skip-link { position: absolute; z-index: 10; left: 16px; top: -80px; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: -.02em; font-weight: 720; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-tile { fill: var(--ink); }
.brand-line { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }
.brand-node { fill: var(--bg); }
.brand-accent { fill: var(--lime); }
.site-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.site-nav a { font-size: .9rem; color: var(--muted); text-decoration: none; font-weight: 560; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-nav .nav-account { color: var(--accent-ink); background: var(--ink); margin-left: 8px; padding-inline: 16px; }
.site-nav .nav-account:hover, .site-nav .nav-account[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
/* Split "My account" button with a drop-down menu. */
.account-menu { position: relative; display: inline-flex; align-items: stretch; margin-left: 8px; }
.site-nav .account-menu .nav-account { margin-left: 0; border-radius: 8px 0 0 8px; }
.account-menu-toggle { appearance: none; border: 0; border-left: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent); border-radius: 0 8px 8px 0; background: var(--ink); color: var(--accent-ink); padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; }
.account-menu-toggle:hover, .account-menu-toggle[aria-expanded="true"] { background: var(--accent); }
.account-menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); z-index: 20; }
.account-menu-list[hidden] { display: none; }
.account-menu-list li[hidden] { display: none; }
.account-menu-list a, .account-menu-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .92rem; font-weight: 560; color: var(--ink); text-decoration: none; cursor: pointer; }
.site-nav .account-menu-list a { color: var(--ink); }
.account-menu-list a:hover, .account-menu-list a:focus-visible, .account-menu-list button:hover, .account-menu-list button:focus-visible { background: var(--surface-2); outline: none; }
.account-menu-list .menu-divider { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.preview { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; background: var(--surface); margin-bottom: 36px; flex-wrap: wrap; }
.preview span:last-child { color: var(--muted); }
.status-dot { display: inline-block; flex: none; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

/* Buttons and links */
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-block: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 650; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 #ffffff26 inset, 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.primary:hover:not(:disabled) { background: var(--accent-strong); transform: translateY(-1px); }
.secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.secondary:hover:not(:disabled) { border-color: var(--muted); }
.button.link { background: none; border: none; color: var(--accent); padding-inline: 6px; text-decoration: underline; text-underline-offset: 4px; }
.button.danger { color: var(--high); }
.text-link { display: inline-block; font-size: .88rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
#connection > .text-link { margin-bottom: 28px; }
.text-link:hover { text-decoration: underline; }
.copy-button { margin-left: 6px; padding: 5px 10px; font-size: .75rem; font-weight: 650; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); vertical-align: middle; }
.copy-button:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.4rem); letter-spacing: -.05em; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { font-size: 1.15rem; color: var(--muted); max-width: 600px; line-height: 1.7; }

.report-panel { margin: 0; background: var(--hero); color: var(--hero-ink); border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px #06112426, 0 0 0 1px #ffffff0f inset; }
.panel-top { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #47607966; padding-bottom: 18px; font-size: .8rem; color: #c3d1e4; }
.panel-top .status-dot { background: var(--lime); }
.sample-tag { margin-left: auto; padding: 2px 8px; border: 1px solid #47607999; border-radius: 999px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.report-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 20px; }
.score-label { display: block; font-size: .72rem; color: #9fb2cb; letter-spacing: .05em; text-transform: uppercase; }
.score { display: block; font-size: 2.2rem; line-height: 1.2; letter-spacing: -.04em; }
.score small { font-size: .9rem; color: #9fb2cb; margin-left: 2px; }
.meter { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: #2a3e58; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #6ee7b7); }
.meter-72 { width: 72%; }
.meter-68 { width: 68%; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.findings li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #1a2b44; font-size: .86rem; }
.severity { flex: none; min-width: 64px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.severity.high { background: #7c2d12; color: #ffedd5; }
.severity.medium { background: #713f12; color: #fef3c7; }
.severity.low { background: #14532d; color: #dcfce7; }
.workflow-result { margin-top: 18px; padding: 16px; border-radius: 10px; background: #233850; }
.workflow-result span { display: block; color: var(--lime); font-size: .68rem; letter-spacing: .08em; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; }
.workflow-result strong { font-size: .88rem; font-weight: 560; }

/* Stats and steps */
.stat-strip { background: var(--surface); border-block: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 28px; gap: 28px; }
.stat-grid div { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stat-grid div:last-child { border: none; }
.stat-grid strong { font-size: 1.9rem; line-height: 1.3; letter-spacing: -.03em; }
.stat-grid span { font-size: .82rem; color: var(--muted); }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.steps-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps-grid.compact li { padding: 18px; }
.steps-grid strong { display: block; margin-block: 14px 6px; }
.steps-grid p { margin: 0; font-size: .9rem; color: var(--muted); }
.step-num { font-family: ui-monospace, monospace; font-size: .74rem; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.section-heading .text-link { margin-bottom: 22px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; transition: box-shadow .2s, transform .2s, border-color .2s; }
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.product-card h3 { font-size: 1.2rem; margin-top: 18px; margin-bottom: 10px; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { color: var(--accent); }
.product-card > p { font-size: .9rem; color: var(--muted); }
.product-card > p:not(.client-row) { flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); }
.category { display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 18px; height: 18px; flex: none; color: var(--accent); }
.badge { display: inline-block; flex: none; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.badge.premium { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.free { background: var(--low-soft); color: var(--low); border-color: transparent; }
.client-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.client-label { margin-right: 2px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .74rem; border: 1px solid var(--line); }
.chip.warning { background: var(--medium-soft); color: var(--medium); border-color: transparent; }
.card-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: .82rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card-foot a { text-decoration: none; font-weight: 650; }
.product-card code { display: block; margin-block: 8px; }

/* Panels */
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-items: center; box-shadow: var(--shadow); }
.split-panel p { color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 28px; margin-bottom: 12px; position: relative; font-size: .92rem; line-height: 1.65; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--accent); padding: 29px; box-shadow: var(--shadow-lift); }
.price-card h2 { font-size: 1.3rem; letter-spacing: -.02em; min-height: 3rem; }
.price { font-size: 2.6rem; line-height: 1.25; font-weight: 750; letter-spacing: -.05em; margin-bottom: 10px; }
.price span { font-size: .82rem; font-weight: 450; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.price-card p:not(.price) { font-size: .88rem; color: var(--muted); }
.price-card .check-list { flex: 1; margin-block: 10px 24px; }
.pricing-note { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.compare tbody th { font-weight: 560; }
.compare td:last-child { font-weight: 650; }
.compare tr:last-child > * { border-bottom: none; }
.faq { display: grid; gap: 10px; }
.faq-item, .client-guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq-item summary, .client-guide summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker, .client-guide summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .client-guide summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after, .client-guide[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); font-size: .94rem; }
.client-guides { display: grid; gap: 10px; margin-block: 24px; }
.guide-steps { padding-left: 22px; }
.guide-steps li { margin-bottom: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 26px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer p { font-size: .88rem; color: var(--muted); margin-block: 10px; max-width: 420px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-heading { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.site-footer nav a { font-size: .86rem; text-decoration: none; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { font-size: .76rem; color: var(--muted); margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Forms and catalogue */
.catalogue-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; box-shadow: var(--shadow); }
label { display: block; font-size: .8rem; font-weight: 650; margin-bottom: 8px; }
input, select { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--bg); font-size: .95rem; min-height: 46px; }
input:focus, select:focus { border-color: var(--accent); }
input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--accent); }
input::placeholder { color: var(--muted); }

/* Product detail */
.back-link { display: inline-block; font-size: .86rem; text-decoration: none; margin-bottom: 28px; }
.product-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; margin-bottom: 52px; }
.product-hero h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.access-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.access-panel h2 { font-size: 1.1rem; letter-spacing: 0; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }
.access-panel p { font-size: .95rem; color: var(--muted); }
.access-panel .text-link { margin-top: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 44px; }
.detail-grid h2, .detail-section h2 { font-size: 1.7rem; }
.detail-section { padding-top: 44px; margin-top: 36px; border-top: 1px solid var(--line); }
.prompt { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; background: var(--surface); margin: 14px 0; font-size: 1rem; }
.prompt p { margin: 0; }
.connection-details { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.connection-details dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.connection-details dd { margin: 6px 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: 6px 10px; font-size: .8rem; border-radius: 6px; overflow-wrap: anywhere; word-break: break-word; display: inline-block; }
.notice { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; font-size: .92rem; margin-block: 22px; }
.callout { padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); margin-block: 22px; }

/* Account */
.signin-panel { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); max-width: 640px; }
.signin-panel .actions { margin-top: 0; }
.signin-panel .small { margin: 0; }
.account-toolbar { margin-block: 12px; }
/* Signed-in account: compact header, one message line, tabs. */
.account-message:empty { display: none; }
.account-message { margin-block: 0 18px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.account-head .eyebrow { margin: 0 0 4px; }
.account-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; letter-spacing: -.03em; }
.account-head .small { margin: 4px 0 0; }
.account-head .account-toolbar { margin: 0; }
.deletion-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 0 18px; }
.deletion-banner[hidden] { display: none; }
.deletion-banner p { margin: 0; flex: 1 1 320px; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px 6px 0 0; }
.tab[hidden] { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel > .detail-section:first-child, .tab-panel > .plan-picker:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 20px 24px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.next-step[hidden] { display: none; }
.next-step h2 { font-size: 1.1rem; margin: 0 0 2px; }
.next-step p { margin: 0; color: var(--muted); }
.account-help { margin-top: 40px; color: var(--muted); font-size: .92rem; }
.billing-section { border-top: 0; padding-top: 0; margin-top: 0; }
.plan-picker + .review-panel + .billing-section, .plan-picker:not([hidden]) ~ .billing-section { margin-top: 32px; }
.billing-section .actions { margin-top: 8px; }
.billing-status { margin: 0 0 6px; color: var(--muted); }
.billing-status:empty { display: none; }
#renewal-info:empty { display: none; }
.account-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.account-summary h2 { font-size: 1.5rem; margin: 0; }
.account-summary p { margin: 0; }
.account-summary .eyebrow { margin-bottom: 10px; display: block; }
.status-pill { display: inline-block !important; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 650; font-size: .9rem; }
.status-pill.good { background: var(--low-soft); color: var(--low); }
.status-pill.warn { background: var(--medium-soft); color: var(--medium); }
.status-pill.bad { background: var(--high-soft); color: var(--high); }
.plan-picker { margin-top: 28px; }
.plan-picker h2 { font-size: 1.4rem; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.offer-card.selected { border: 2px solid var(--accent); padding: 21px; box-shadow: 0 0 0 4px var(--accent-soft); }
.offer-card .price { font-size: 2rem; }
.offer-card .button { margin-top: auto; }
.review-panel { max-width: 860px; }
.disclosure-text { max-height: 420px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: .9rem; }
.disclosure-text p:last-child { margin-bottom: 0; }
.accept-row { margin-block: 18px 0; font-weight: 600; }
.accept-row label { font-size: .92rem; display: flex; align-items: center; }
.contract-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contract-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.contract-list li p { margin: 0; font-size: .92rem; }
.contract-list .actions { margin: 0; }
.document-viewer { margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lift); }
.viewer-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.viewer-head h3 { margin: 0; }
.document-summary { width: 100%; border-collapse: collapse; margin-block: 18px; font-size: .9rem; background: var(--bg); border-radius: 10px; }
.document-summary th, .document-summary td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.document-summary th { width: 38%; color: var(--muted); font-weight: 600; }
.document-viewer .disclosure-text { max-height: none; }
.owner-panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.metric { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.metric span { font-size: .8rem; color: var(--muted); }
.metric.alert { border-color: var(--high); background: var(--high-soft); }
@media (max-width: 740px) { .metric-grid { grid-template-columns: 1fr 1fr; } }
.redemption-input { display: flex; gap: 12px; max-width: 680px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 24px; }
.danger-notice { border-left-color: var(--high); background: var(--high-soft); }
.warning-list { padding-left: 20px; margin-block: 12px 18px; }
.warning-list li { margin-block: 6px; }
.button.danger-fill { background: var(--high); border-color: var(--high); color: #fff; }
#deletion-word { max-width: 220px; margin-block: 8px 12px; }
.owner-codes { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.code-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-block: 12px; }
.code-options label { font-size: .85rem; font-weight: 600; }
.code-options label input, .code-options label select { margin-top: 6px; font-weight: 400; }
#owner-code-value { font-size: 1rem; word-break: break-all; }
.owner-code-table { margin-top: 12px; }
.owner-code-table th { width: auto; overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 720px) { .code-options { grid-template-columns: 1fr; } .owner-code-table { display: block; overflow-x: auto; } }
.redemption-input input { flex: 1; min-width: 0; }
.redemption-input button { flex: none; }

/* Help, news, legal */
.help-nav { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: .88rem; border-block: 1px solid var(--line); padding-block: 18px; }
.news-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; box-shadow: var(--shadow); }
.news-card h2 { margin-top: 18px; font-size: 1.7rem; }
.news-card h2 a { color: var(--ink); text-decoration: none; }
.news-card p { color: var(--muted); }
.policy-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.policy-toc { position: sticky; top: 96px; font-size: .86rem; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.policy-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.policy-toc a { text-decoration: none; color: var(--muted); }
.policy-toc a:hover { color: var(--accent); }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--muted); margin-bottom: 26px; }
.policy-body h2 { font-size: 1.35rem; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.policy-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.policy-body p { max-width: 72ch; }
.policy-body, .policy-meta, .policy-toc { overflow-wrap: anywhere; min-width: 0; }
.policy-text { font-size: .95rem; }
.message-page { text-align: left; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { gap: 12px; }
  .price-card { padding: 24px; }
  .price-card.featured { padding: 23px; }
  .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .split-panel { gap: 32px; padding: 30px; }
  .steps-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-toc { position: static; }
}

@media (max-width: 740px) {
  .container { width: calc(100% - 32px); }
  .section { padding-block: 44px; }
  .hero { padding-block: 28px 44px; }
  .hero-grid, .pricing-grid, .split-panel, .product-hero, .detail-grid, .steps-grid, .offer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero-copy { font-size: 1.04rem; }
  .preview { margin-bottom: 24px; }
  /* Phone header: brand and My account on one row, other links in a single scrollable row. */
  .header-inner { position: relative; flex-wrap: wrap; gap: 6px; min-height: 0; padding-block: 12px 4px; }
  .site-nav { gap: 2px; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: .86rem; padding: 7px 10px; white-space: nowrap; }
  .account-menu { position: absolute; top: 10px; right: 0; margin: 0; }
  .site-nav .account-menu .nav-account { padding: 7px 12px; }
  .account-summary { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .account-head { align-items: flex-start; }
  .tab { padding: 12px 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 22px; }
  .stat-grid div:nth-child(2) { border-right: none; }
  .stat-grid span { font-size: .76rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 22px; }
  .split-panel { padding: 24px; gap: 22px; }
  .price-card h2 { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .catalogue-filters { grid-template-columns: 1fr; padding: 16px; }
  .account-summary { grid-template-columns: 1fr; padding: 20px; }
  .redemption-input { flex-direction: column; }
  .prompt { flex-direction: column; }
  .report-panel { padding: 20px; }
  .report-scores { gap: 10px; }
  .score { font-size: 1.8rem; }
  .compare th, .compare td { padding: 12px; }
  .steps-grid.compact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .actions, .preview, .notice, .redemption-panel, .account-summary,
  .plan-picker, #renewal-info, .detail-section > h2, #products-description, #account-products, #contracts-message,
  .contract-list, .account-page > .eyebrow, .account-page > h1, .account-page > .section-intro,
  .account-page > p, .signin-panel, #account-hero, .account-head, .account-tabs, .deletion-banner, .next-step,
  .billing-section, .account-message { display: none !important; }
  body { background: #fff; color: #000; }
  .document-viewer { border: 0; box-shadow: none; padding: 0; }
  .detail-section { border: 0; margin: 0; padding: 0; }
  .policy-toc { display: none; }
}
/* Setup guidance: plan notes, quick steps and the assistant table. */
.plan-note { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); font-size: .92rem; margin-block: 8px 14px; }
.quick-steps { padding-left: 22px; margin-block: 8px 20px; }
.quick-steps li { margin-block: 6px; }
.assistant-table th { width: auto; }
.assistant-table td:first-child { font-weight: 600; }
@media (max-width: 740px) { .assistant-table { display: block; overflow-x: auto; } }
/* Launch feedback strip and section. */
.launch-strip { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: .88rem; padding-block: 8px; color: var(--ink); }
.launch-strip .badge { margin-right: 6px; }
.launch-strip a { font-weight: 600; }
.feedback-section { margin-top: 40px; }
@media print { .launch-strip { display: none !important; } }
.all-access-connect { margin-block: 12px 18px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.all-access-connect h3 { margin-top: 0; }
.connect-address code { font-size: .95rem; }
