/* Secure Web Labs — marketing site. No external requests: fonts are served from /assets/fonts. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0F1B2D;
  --ink-2: #344256;
  --muted: #4A5568;
  --muted-2: #5A6578;
  --line: #DDE2EA;
  --line-soft: #EEF1F5;
  --bg: #F5F6F8;
  --navy: #0F1B2D;
  --navy-2: #16263D;
  --navy-line: #2A3B55;
  --on-navy: #C3CEDD;
  --on-navy-2: #A9B7CB;
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-soft: #EEF3FD;
  --sky: #7FA6FF;
  --ok: #15803D;   --ok-bg: #E7F6EC;
  --warn: #B45309; --warn-bg: #FEF3C7;
  --crit: #B91C1C; --crit-bg: #FEE2E2;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #93B4FF; outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: #3A4A63; font-weight: 500; }
.btn-ghost:hover { background: #1A2B44; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1F3150; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #B8C2D0; }
.btn-outline:hover { background: var(--line-soft); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---- Header ----------------------------------------------------------- */
.site-header { background: var(--navy); color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; list-style: none; padding: 0; }
.nav-links a:not(.btn) { color: #D6DEEA; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--sky); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-title { font-family: var(--display); font-size: clamp(38px, 6vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.hero-sub { font-size: 19px; color: var(--on-navy); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.report { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 16px; padding: 22px 24px 8px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; font-size: 14px; color: var(--on-navy-2); }
.badge-crit { font-size: 13px; color: #FCA5A5; background: #3B1D24; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.report-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--navy-line); }
.report-row .name { font-weight: 600; }
.report-row .detail { font-size: 13px; }
.report-row .when { font-size: 13px; color: var(--on-navy-2); white-space: nowrap; }
.detail-crit { color: #FCA5A5; }
.detail-warn { color: #FCD34D; }
.detail-ok { color: #86EFAC; }

.grade { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.grade-a { background: var(--ok-bg); color: var(--ok); }
.grade-b { background: #DDF3F0; color: #0F766E; }
.grade-c { background: var(--warn-bg); color: var(--warn); }
.grade-d { background: #FFEDD5; color: #C2410C; }
.grade-f { background: var(--crit-bg); color: var(--crit); }
.grade-sm { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }

/* ---- Sections --------------------------------------------------------- */
.section { padding-top: 96px; padding-bottom: 72px; }
.section-tight { padding-top: 56px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 700px; margin-bottom: 32px; }
.eyebrow { font-size: 13px; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.h2-sm { font-size: clamp(26px, 3.4vw, 34px); }
.lead { font-size: 17px; color: var(--muted); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-family: var(--display); font-size: 21px; font-weight: 600; }
.feature p { font-size: 15px; color: var(--muted); }
.feature-accent { background: var(--blue-soft); border-color: #C7D7FB; }
.feature-accent h3, .feature-accent p { color: var(--blue-dark); }
.icon { width: 26px; height: 26px; flex: none; }

/* product card (home) */
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; padding: 40px; border-radius: 16px; }
.product-main { display: flex; flex-direction: column; gap: 18px; }
.product-title { display: flex; align-items: center; gap: 12px; }
.product-title h3 { font-family: var(--display); font-size: 30px; font-weight: 700; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.product-main > p { font-size: 17px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.product-cta span { color: var(--muted); font-size: 15px; }

.issue { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.issue-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-crit { background: var(--crit-bg); color: #991B1B; }
.pill-info { background: var(--blue-soft); color: var(--blue-dark); }
.issue-type { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.issue p { font-size: 15px; }
.fix { font-size: 14px; color: var(--muted); background: #fff; border-radius: 8px; padding: 10px 12px; }
.fix strong { color: var(--ink); }
.issue-on-white { background: #fff; border-color: #F1A9A9; }
.issue-on-white .fix { background: #FAFBFC; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.about p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band > div { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cta-band p { font-size: 17px; color: var(--on-navy); }

/* ---- Domain Health page ---------------------------------------------- */
.mock { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; border: 1px solid var(--navy-line); }
.mock-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 70px 76px 86px; gap: 10px; align-items: center; padding: 14px 20px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-head { background: #FAFBFC; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.mock-row .name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.mock-row .sub { font-size: 12px; font-weight: 600; }
.sub-crit { color: var(--crit); }
.sub-warn { color: var(--warn); }
.sub-ok { color: var(--muted-2); font-weight: 400 !important; }
.txt-crit { color: var(--crit); font-weight: 600; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.steps li { display: flex; gap: 14px; }
.step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step-crit { background: var(--crit-bg); color: var(--crit); }
.step-warn { background: var(--warn-bg); color: var(--warn); }
.step-ok { background: var(--ok-bg); color: var(--ok); }
.steps strong { font-size: 16px; }
.steps p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.email-sample { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.email-sample .meta { font-size: 13px; color: var(--muted-2); }

/* pricing: pure CSS monthly/yearly switch */
.pricing { position: relative; }
.period-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.pricing-head .section-head { margin-bottom: 0; }
.period-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #E9EDF3; border-radius: 999px; }
.period-toggle label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
#period-monthly:checked ~ .pricing-head label[for="period-monthly"],
#period-yearly:checked ~ .pricing-head label[for="period-yearly"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12); }
#period-monthly:focus-visible ~ .pricing-head label[for="period-monthly"],
#period-yearly:focus-visible ~ .pricing-head label[for="period-yearly"] { outline: 3px solid #93B4FF; outline-offset: 2px; }
.price-yearly, .save { display: none; }
#period-yearly:checked ~ .plans .price-monthly { display: none; }
#period-yearly:checked ~ .plans .price-yearly { display: inline; }
#period-yearly:checked ~ .plans .save { display: block; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { border: 2px solid var(--blue); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.price { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.per { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--muted); }
.save { font-size: 13px; color: var(--ok); margin-top: -6px; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex-grow: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* FAQ with <details> (no JavaScript) */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---- Legal + contact pages ------------------------------------------- */
.page-hero { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.page-hero p { color: var(--on-navy); font-size: 17px; max-width: 680px; }
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 96px; }
.legal h2 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.updated { font-size: 14px; color: var(--on-navy-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 16px var(--font); color: var(--ink); background: #fff; border: 1px solid #B8C2D0; border-radius: 10px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid #C7D7FB; outline-offset: 0; }
.help { font-size: 13px; color: var(--muted-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.notice-ok { background: var(--ok-bg); color: #14532D; border: 1px solid #B7E4C7; }
.notice-err { background: var(--crit-bg); color: #7F1D1D; border: 1px solid #FCA5A5; }
.side-note { display: flex; flex-direction: column; gap: 14px; }
.side-note h2 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.side-note p { color: var(--muted); }
.notfound { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 24px; padding-top: 44px; padding-bottom: 44px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }
.footer-links a { color: #D6DEEA; }
.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .section { padding-top: 64px; padding-bottom: 48px; }
  .product { padding: 24px; }
  .card { padding: 22px; }
  .cta-band { padding: 36px 24px; }
  .mock-row { grid-template-columns: minmax(0, 1fr) 40px 64px; }
  .mock-row > :nth-child(4), .mock-row > :nth-child(5) { display: none; }
  .nav-links { gap: 0 16px; }
}
