:root {
  --bg: #07111f;
  --bg-2: #0b1728;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --ink: #102033;
  --muted: #68778a;
  --line: #e3e8ef;
  --accent: #67e8c5;
  --accent-strong: #14b88d;
  --good: #14855f;
  --good-bg: #eaf8f2;
  --warn: #aa7010;
  --warn-bg: #fff6df;
  --bad: #b83a4b;
  --bad-bg: #fff0f2;
  --info: #316fbd;
  --info-bg: #edf5ff;
  --shadow: 0 24px 65px rgba(2, 13, 28, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #eef2f6; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.topbar { height: 72px; display: flex; align-items: center; gap: 38px; padding: 0 max(24px, calc((100vw - 1180px)/2)); color: #d9e5f2; background: var(--bg); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 760; letter-spacing: -.02em; color: #fff; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.topnav { display: flex; gap: 24px; font-size: 14px; color: #9eafc3; }
.topnav a:hover { color: #fff; }
.privacy-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #aebccd; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(103,232,197,.1); }
.hero { min-height: 440px; background: var(--bg); color: #fff; display: grid; grid-template-columns: 1fr 1.05fr; gap: 68px; align-items: center; padding: 70px max(24px, calc((100vw - 1180px)/2)) 92px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -220px; top: -190px; border: 1px solid rgba(103,232,197,.08); box-shadow: 0 0 0 75px rgba(103,232,197,.025), 0 0 0 150px rgba(103,232,197,.018); pointer-events: none; }
.eyebrow,.section-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 11px; color: var(--accent-strong); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(44px, 5.1vw, 70px); line-height: .98; letter-spacing: -.055em; margin: 0; max-width: 630px; }
.hero h1 span { color: var(--accent); }
.lede { color: #9fb0c5; line-height: 1.7; font-size: 16px; max-width: 540px; margin: 24px 0 0; }
.scan-card { background: rgba(255,255,255,.98); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); position: relative; z-index: 1; }
.scan-card > label { display: block; font-weight: 750; font-size: 13px; margin-bottom: 9px; }
.domain-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; border: 1px solid #cfd8e4; border-radius: 11px; padding: 6px; background: #fff; box-shadow: 0 1px 0 rgba(16,32,51,.03); }
.input-icon { text-align: center; color: #7c8b9c; font-size: 22px; }
.domain-row input { min-width: 0; border: 0; outline: none; color: var(--ink); padding: 11px 8px; font-size: 16px; }
.primary-button { border: 0; border-radius: 8px; background: var(--bg); color: #fff; min-height: 44px; padding: 0 18px; display: flex; gap: 9px; align-items: center; font-weight: 720; }
.primary-button:hover { background: #0e2037; }
.primary-button svg { width: 18px; }
.advanced-row { display: grid; grid-template-columns: auto minmax(130px,1fr); gap: 8px 12px; align-items: center; margin-top: 17px; }
.selector-label { font-size: 12px; color: #526174; font-weight: 700; }
.selector-label span { font-weight: 500; color: #8996a5; }
.advanced-row > input { border: 1px solid #d7dee7; background: #f9fafc; border-radius: 8px; padding: 9px 10px; outline: none; }
.toggle { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #667689; cursor: pointer; }
.toggle input { display: none; }
.toggle span { width: 30px; height: 17px; background: #c8d0db; border-radius: 20px; position: relative; transition: .2s; }
.toggle span::after { content:""; width: 13px; height: 13px; border-radius: 50%; background: #fff; position: absolute; left: 2px; top: 2px; transition: .2s; }
.toggle input:checked + span { background: var(--accent-strong); }
.toggle input:checked + span::after { transform: translateX(13px); }
.form-note { margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: #8794a4; }
.loading-panel,.error-panel { max-width: 1180px; margin: -34px auto 34px; position: relative; z-index: 2; background: #fff; border-radius: 14px; padding: 22px 25px; box-shadow: var(--shadow); }
.loading-panel { display: flex; gap: 15px; align-items: center; }
.loading-panel div:last-child { display: flex; flex-direction: column; gap: 3px; }
.loading-panel span { color: var(--muted); font-size: 13px; }
.spinner { width: 26px; height: 26px; border: 3px solid #dce5ec; border-top-color: var(--accent-strong); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { border-left: 4px solid var(--bad); color: var(--bad); }
.results { max-width: 1180px; margin: -50px auto 70px; position: relative; z-index: 2; }
.results-head { background: #fff; padding: 26px 30px; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.results-head h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; word-break: break-all; }
.results-head .eyebrow { margin-bottom: 5px; }
.muted { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.score-wrap { display: flex; align-items: center; gap: 13px; min-width: 210px; }
.score-ring { --score: 0deg; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-strong) var(--score), #e6ebf0 0); position: relative; font-weight: 800; }
.score-ring::before { content:""; position:absolute; inset: 6px; border-radius:50%; background:white; }
.score-ring span,.score-ring small { position: relative; z-index: 1; }
.score-ring span { font-size: 22px; margin-left: 7px; }
.score-ring small { font-size: 10px; color: #8491a1; align-self: end; margin: 0 0 18px -7px; }
.score-wrap > div:last-child { display:flex; flex-direction:column; gap:3px; }
.score-wrap > div:last-child strong { font-size: 14px; }
.score-wrap > div:last-child span { color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin: 14px 0; }
.summary-card { background:#fff; border-radius: 13px; padding: 17px; border:1px solid rgba(213,221,231,.7); min-height: 120px; }
.summary-top { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.summary-card h4 { margin:0; font-size:13px; }
.status-icon { width: 26px; height: 26px; border-radius: 50%; display:grid; place-items:center; font-size:14px; font-weight:800; }
.status-icon.good { color:var(--good); background:var(--good-bg); }
.status-icon.warn { color:var(--warn); background:var(--warn-bg); }
.status-icon.bad { color:var(--bad); background:var(--bad-bg); }
.status-icon.info { color:var(--info); background:var(--info-bg); }
.summary-value { margin-top: 18px; font-weight: 800; font-size: 17px; letter-spacing:-.02em; }
.summary-card p { margin:4px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.content-grid { display:grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); gap:14px; align-items:start; }
.content-grid > div, aside { display:grid; gap:14px; }
.panel { background:#fff; border:1px solid rgba(213,221,231,.75); border-radius:14px; overflow:hidden; }
.panel-head { padding: 20px 22px; display:flex; justify-content:space-between; align-items:center; gap:14px; border-bottom:1px solid var(--line); }
.panel-head h3 { margin:0; font-size:18px; letter-spacing:-.025em; }
.panel-head .section-kicker { margin-bottom:4px; color:#8491a1; }
.count-badge { background:var(--surface-2); min-width:30px; text-align:center; border-radius:30px; padding:5px 9px; font-size:12px; font-weight:750; color:#556477; }
.findings-list { padding: 6px 22px; }
.finding { display:grid; grid-template-columns: 28px 1fr; gap:12px; padding:15px 0; border-bottom:1px solid #edf0f4; }
.finding:last-child { border-bottom:0; }
.finding-icon { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:13px; }
.finding-icon.good { background:var(--good-bg); color:var(--good); }
.finding-icon.warn { background:var(--warn-bg); color:var(--warn); }
.finding-icon.bad { background:var(--bad-bg); color:var(--bad); }
.finding-icon.info { background:var(--info-bg); color:var(--info); }
.finding strong { display:block; font-size:13px; margin:1px 0 4px; }
.finding p { margin:0; color:var(--muted); line-height:1.5; font-size:12px; }
.ghost-button { border:1px solid var(--line); background:#fff; border-radius:8px; padding:8px 11px; color:#5f6f82; font-size:12px; }
.check-item { border-bottom:1px solid var(--line); }
.check-item:last-child { border-bottom:0; }
.check-toggle { width:100%; border:0; background:#fff; padding:17px 22px; display:grid; grid-template-columns: 31px 1fr auto 18px; gap:12px; align-items:center; text-align:left; color:var(--ink); }
.check-toggle:hover { background:#fbfcfd; }
.check-name strong { display:block; font-size:13px; }
.check-name span { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.check-status { font-size:11px; font-weight:750; border-radius:20px; padding:5px 8px; }
.check-status.good { color:var(--good); background:var(--good-bg); }
.check-status.warn { color:var(--warn); background:var(--warn-bg); }
.check-status.bad { color:var(--bad); background:var(--bad-bg); }
.check-status.info { color:var(--info); background:var(--info-bg); }
.chevron { color:#8a98a7; transition:.2s; }
.check-item.open .chevron { transform:rotate(180deg); }
.check-detail { display:none; padding:0 22px 18px 65px; }
.check-item.open .check-detail { display:block; }
.record-box { border:1px solid var(--line); background:#f8fafc; border-radius:8px; padding:11px 12px; margin-top:8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:11px; line-height:1.6; overflow-wrap:anywhere; white-space:pre-wrap; }
.check-detail p { color:var(--muted); font-size:12px; line-height:1.55; margin:0 0 8px; }
.compact-panel .panel-head { padding-bottom:16px; }
.overview-list { padding: 10px 20px 17px; margin:0; }
.overview-list div { display:flex; justify-content:space-between; gap:20px; padding:9px 0; border-bottom:1px solid #eff2f5; }
.overview-list div:last-child { border:0; }
.overview-list dt { color:var(--muted); font-size:11px; }
.overview-list dd { margin:0; font-size:11px; font-weight:700; text-align:right; overflow-wrap:anywhere; }
.mini-list { padding:10px 20px 17px; }
.mini-item { padding:10px 0; border-bottom:1px solid #eff2f5; }
.mini-item:last-child { border:0; }
.mini-item strong { display:block; font-size:11px; overflow-wrap:anywhere; }
.mini-item span { color:var(--muted); font-size:10px; }
.empty-mini { color:var(--muted); font-size:11px; padding:8px 0; }
.export-card { padding:20px; display:grid; grid-template-columns:38px 1fr; gap:10px 12px; }
.export-icon { width:36px; height:36px; border-radius:9px; display:grid; place-items:center; color:var(--good); background:var(--good-bg); font-weight:800; }
.export-card h3 { margin:1px 0 4px; font-size:14px; }
.export-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.secondary-button { grid-column:1/-1; border:1px solid #cfd8e2; background:#fff; border-radius:8px; padding:9px 12px; color:var(--ink); font-size:12px; font-weight:700; }
.features { max-width:1180px; margin:0 auto 80px; padding-top:10px; }
.features-title { max-width:550px; margin-bottom:27px; }
.features-title h2 { margin:0; font-size:32px; letter-spacing:-.04em; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feature-grid article { background:#fff; border:1px solid var(--line); border-radius:14px; padding:25px; }
.feature-grid article span { color:var(--accent-strong); font-size:11px; font-weight:800; letter-spacing:.12em; }
.feature-grid h3 { margin:22px 0 8px; font-size:16px; }
.feature-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
footer { min-height:90px; background:#fff; border-top:1px solid var(--line); display:flex; align-items:center; gap:28px; padding:0 max(24px, calc((100vw - 1180px)/2)); }
footer > span { font-weight:800; }
footer p { color:var(--muted); font-size:11px; }
@media (max-width: 940px) {
  .hero { grid-template-columns:1fr; gap:38px; padding-top:54px; }
  .summary-grid { grid-template-columns:repeat(3,1fr); }
  .content-grid { grid-template-columns:1fr; }
  aside { grid-template-columns:repeat(2,1fr); }
  .export-card { align-self:stretch; }
}
@media (max-width: 680px) {
  .topbar { padding:0 18px; height:64px; }
  .topnav,.privacy-pill { display:none; }
  .hero { padding:45px 18px 78px; }
  .hero h1 { font-size:46px; }
  .scan-card { padding:18px; }
  .domain-row { grid-template-columns:34px 1fr; }
  .primary-button { grid-column:1/-1; justify-content:center; margin-top:5px; }
  .advanced-row { grid-template-columns:1fr; }
  .advanced-row > input,.toggle { grid-column:1; }
  .loading-panel,.error-panel,.results { margin-left:12px; margin-right:12px; }
  .results-head { align-items:flex-start; flex-direction:column; padding:22px; }
  .summary-grid { grid-template-columns:1fr 1fr; }
  aside { grid-template-columns:1fr; }
  .features { margin:0 12px 55px; }
  .feature-grid { grid-template-columns:1fr; }
  footer { padding:25px 18px; flex-direction:column; align-items:flex-start; gap:5px; }
  .check-detail { padding-left:22px; }
}


/* Support / coffee card */
.coffee-section { max-width:1180px; margin:0 auto 80px; }
.coffee-card { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr); gap:36px; align-items:center; padding:30px 32px; border-radius:18px; background:var(--bg); color:#fff; box-shadow:0 24px 60px rgba(2,13,28,.14); position:relative; overflow:hidden; }
.coffee-card::after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; right:-110px; top:-120px; border:1px solid rgba(103,232,197,.12); box-shadow:0 0 0 45px rgba(103,232,197,.035),0 0 0 90px rgba(103,232,197,.02); pointer-events:none; }
.coffee-copy { display:grid; grid-template-columns:56px 1fr; gap:18px; align-items:start; position:relative; z-index:1; }
.coffee-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:14px; background:rgba(103,232,197,.12); border:1px solid rgba(103,232,197,.18); font-size:27px; }
.coffee-copy .eyebrow { color:var(--accent); margin-bottom:5px; }
.coffee-copy h2 { margin:0 0 8px; font-size:27px; letter-spacing:-.035em; }
.coffee-copy p:last-child { margin:0; max-width:650px; color:#a9b8ca; font-size:13px; line-height:1.65; }
.coffee-action { position:relative; z-index:1; display:grid; gap:12px; padding:18px; border-radius:14px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.08); }
.coffee-price { display:flex; justify-content:space-between; gap:14px; align-items:baseline; }
.coffee-price strong { font-size:24px; letter-spacing:-.03em; color:#fff; }
.coffee-price span { font-size:10px; color:#9fb0c5; text-align:right; }
.coffee-button { min-height:48px; border-radius:9px; background:var(--accent); color:var(--bg); display:flex; align-items:center; justify-content:center; gap:10px; padding:0 16px; font-size:13px; font-weight:800; transition:transform .15s ease,background .15s ease; }
.coffee-button:hover { background:#8af0d4; transform:translateY(-1px); }
.coffee-button svg { width:18px; }
.coffee-note { margin:0; color:#8fa1b6; font-size:10px; line-height:1.5; }
.coffee-note code { color:#bfd0e1; }

@media (max-width:940px) {
  .coffee-section { margin-left:12px; margin-right:12px; }
  .coffee-card { grid-template-columns:1fr; gap:22px; }
}
@media (max-width:680px) {
  .coffee-section { margin-bottom:45px; }
  .coffee-card { padding:24px 20px; }
  .coffee-copy { grid-template-columns:1fr; }
  .coffee-icon { width:50px; height:50px; }
  .coffee-price { align-items:flex-start; flex-direction:column; gap:3px; }
  .coffee-price span { text-align:left; }
}
