/* Homepage only. Builds on the tokens in app.css. */
.ico { flex: none; display: inline-block; vertical-align: middle; }

.h-section { padding: 96px 0; }
.h-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.h-head h2, .h-split h2, .h-faq h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; margin: 0 0 14px; }
.h-head p, .h-muted { color: var(--muted); font-size: 18px; margin: 0; }
.h-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
@media (max-width: 640px) { .h-section { padding: 64px 0; } .h-head { margin-bottom: 32px; } .h-head p, .h-muted { font-size: 16px; } }

/* ---------- hero ---------- */
.h-hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: linear-gradient(180deg, #f1f2ff 0%, var(--bg) 100%); }
.h-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(67, 56, 202, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(67, 56, 202, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.h-hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 65%); pointer-events: none; }
.h-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.h-announce { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; margin-bottom: 22px; }
.h-announce:hover { border-color: #c7cbff; }
.h-announce-tag { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.h-title { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
.h-grad { background: linear-gradient(90deg, #4338ca, #7c3aed 55%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.h-lead b { color: var(--ink); font-weight: 600; }
.h-url { display: flex; align-items: center; gap: 8px; background: #fff; padding: 7px 7px 7px 14px; border-radius: 16px; border: 1px solid #d9dcee; box-shadow: 0 12px 32px rgba(40, 40, 110, .10); max-width: 580px; }
.h-url:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15), 0 12px 32px rgba(40, 40, 110, .10); }
.h-url-ico { color: var(--muted); display: flex; }
.h-url input { border: 0; padding: 12px 6px; font-size: 16px; background: transparent; min-width: 0; flex: 1; }
.h-url input:focus { outline: none; }
.h-url .btn { flex: none; white-space: nowrap; }
.h-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.h-points li { display: flex; align-items: center; gap: 6px; }
.h-points .ico { color: var(--ok); }
@media (max-width: 960px) { .h-hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; } .h-hero { padding-top: 56px; } }
@media (max-width: 520px) {
  .h-url { flex-wrap: wrap; padding: 8px; }
  .h-url-ico { display: none; }
  .h-url input { flex-basis: 100%; padding: 10px; }
  .h-url .btn { width: 100%; }
  .h-lead { font-size: 17px; }
}

/* hero visual */
.h-visual { position: relative; padding: 24px 0 24px 24px; }
.h-window, .h-report { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px rgba(30, 30, 100, .16), 0 2px 6px rgba(30, 30, 100, .05); overflow: hidden; }
.h-window-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f6f7fc; border-bottom: 1px solid var(--line); }
.h-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1ec; }
.h-window-bar i:nth-child(1) { background: #fca5a5; } .h-window-bar i:nth-child(2) { background: #fcd34d; } .h-window-bar i:nth-child(3) { background: #86efac; }
.h-window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.h-window-body { padding: 20px; }
.h-rep-top { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.h-ring { --p: 70; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--major) calc(var(--p) * 1%), #eceef6 0); display: grid; place-items: center; flex: none; }
.h-ring > div { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.h-ring b { font-size: 24px; }
.h-ring small { font-size: 9.5px; color: var(--muted); }
.h-rep-counts { display: flex; gap: 8px; flex: 1; }
.h-rep-counts div { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.h-rep-counts b { display: block; font-size: 20px; line-height: 1.1; }
.h-rep-counts span { font-size: 11.5px; color: var(--muted); }
.c-crit { color: var(--crit); } .c-major { color: var(--major); } .c-minor { color: var(--minor); }
.h-rows { display: grid; gap: 6px; }
.h-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.h-path { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.h-code { font: 700 11.5px ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 6px; flex: none; }
.h-code.bad { background: var(--crit-soft); color: var(--crit); }
.h-code.warn { background: var(--major-soft); color: var(--major); }
.h-code.ok { background: var(--ok-soft); color: var(--ok); }
.h-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; flex: none; }
.h-tag.crit { background: var(--crit-soft); color: var(--crit); } .h-tag.major { background: var(--major-soft); color: var(--major); } .h-tag.minor { background: var(--minor-soft); color: var(--minor); }
.h-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 10px; box-shadow: 0 16px 40px rgba(30, 30, 100, .16); font-size: 13px; animation: h-bob 6s ease-in-out infinite; }
.h-float b { display: block; font-size: 13px; }
.h-float span:not(.h-float-ico) { color: var(--muted); font-size: 12px; }
.h-float-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.h-float-ico.crit { background: var(--crit-soft); color: var(--crit); }
.h-float-ico.major { background: var(--major-soft); color: var(--major); }
.h-float-1 { left: -18px; top: 0; }
.h-float-2 { right: -22px; bottom: 54px; animation-delay: -2s; }
.h-float-3 { left: 6px; bottom: -6px; background: #0f1222; border-color: #0f1222; color: #e4e7ff; padding: 10px 14px; animation-delay: -4s; }
.h-float-3 code { font: 12.5px ui-monospace, Menlo, monospace; }
@keyframes h-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .h-float { animation: none; } }
@media (max-width: 960px) { .h-visual { padding: 24px 8px; max-width: 560px; margin: 0 auto; width: 100%; } .h-float-1 { left: -4px; } .h-float-2 { right: -4px; } }
@media (max-width: 520px) { .h-float-2, .h-float-3 { display: none; } .h-float-1 { top: -6px; } .h-tag { display: none; } .h-rep-counts span { font-size: 10.5px; } }

/* ---------- logos ---------- */
.h-logos { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.h-logos p { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.h-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.h-logo-row span { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: #9aa0bd; }

/* ---------- facts ---------- */
.h-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.h-facts div { padding: 28px 24px; text-align: center; border-left: 1px solid var(--line); }
.h-facts div:first-child { border-left: 0; }
.h-facts b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.h-facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .h-facts { grid-template-columns: 1fr 1fr; }
  .h-facts div:nth-child(3) { border-left: 0; }
  .h-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- bento ---------- */
.h-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.h-card:hover { border-color: #cdd0f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.h-card h3 { font-size: 18px; margin: 16px 0 8px; letter-spacing: -.01em; }
.h-card p { margin: 0; color: var(--muted); font-size: 15px; }
.h-span-2 { grid-column: span 2; }
.h-card-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.h-card-ico.crit { background: var(--crit-soft); color: var(--crit); }
.h-card-ico.major { background: var(--major-soft); color: var(--major); }
.h-card-ico.minor { background: var(--minor-soft); color: var(--minor); }
.h-card-ico.ok { background: var(--ok-soft); color: var(--ok); }
.h-card-ico.brand { background: var(--brand-soft); color: var(--brand); }
.h-mini-table { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.h-mini-table div { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.h-mini-table div:first-child { border-top: 0; }
.h-mini-table code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px ui-monospace, Menlo, monospace; }
.h-mini-table em { font-style: normal; font-size: 12px; color: var(--crit); white-space: nowrap; }
.h-mini-table em.ok { color: var(--ok); }
.h-mini-mock { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.h-mm-head { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.h-mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.h-mm-grid i { height: 36px; border-radius: 6px; background: linear-gradient(135deg, #c7d2fe, #e0e7ff); }
.h-mm-grid i.bad { background: repeating-linear-gradient(45deg, #fee2e2, #fee2e2 5px, #fff 5px, #fff 10px); outline: 2px solid #fca5a5; }
.h-mm-flag { margin-top: 8px; font: 600 11.5px ui-monospace, Menlo, monospace; color: var(--crit); }
.h-checklist { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.h-checklist li { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.h-checklist .ico { color: var(--ok); }
@media (max-width: 960px) { .h-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .h-bento { grid-template-columns: minmax(0, 1fr); } .h-span-2 { grid-column: auto; } .h-mini-table em { display: none; } }

/* ---------- steps ---------- */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.h-steps::before { content: ""; position: absolute; top: 24px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #c7cbff 0 8px, transparent 8px 16px); }
.h-steps li { position: relative; text-align: center; padding: 0 12px; }
.h-step-n { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 18px; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--bg); }
.h-steps h3 { font-size: 19px; margin: 0 0 8px; }
.h-steps p { color: var(--muted); margin: 0 auto; max-width: 300px; font-size: 15px; }
@media (max-width: 760px) { .h-steps { grid-template-columns: 1fr; gap: 28px; } .h-steps::before { display: none; } }

/* ---------- sample report ---------- */
.h-report { max-width: 1000px; margin: 0 auto; }
.h-report-body { padding: 26px; }
.h-report-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.h-report-site { font-size: 24px; margin: 4px 0 0; word-break: break-word; }
.h-report-stats { margin: 0; grid-template-columns: 1fr 1fr; }
.h-report-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 16px; overflow-x: auto; }
.h-report-tabs span { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.h-report-tabs span.on { color: var(--brand); border-color: var(--brand); }
@media (max-width: 760px) { .h-report-top { grid-template-columns: minmax(0, 1fr); } .h-report-body { padding: 16px; } }

/* ---------- test code ---------- */
.h-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.h-feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.h-feature-list li { display: flex; gap: 14px; }
.h-feature-list li > span { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-top: 2px; }
.h-feature-list b { display: block; margin-bottom: 2px; }
.h-feature-list div { color: var(--muted); font-size: 15px; }
.h-feature-list div b { color: var(--ink); font-size: 16px; }
.h-code-win { background: #0f1222; border-radius: 16px; box-shadow: 0 30px 70px rgba(15, 18, 34, .35); overflow: hidden; border: 1px solid #23284a; }
.h-code-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: #151933; border-bottom: 1px solid #23284a; flex-wrap: wrap; }
.h-code-tabs button { background: none; border: 0; color: #9ca3d4; font: 600 13px inherit; font-family: inherit; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.h-code-tabs button[aria-selected=true] { background: #262c57; color: #fff; }
.h-code-file { margin-left: auto; font: 12px ui-monospace, Menlo, monospace; color: #6f76a8; }
.h-code-pre { margin: 0; padding: 22px; color: #d7dbff; font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; min-height: 420px; }
.h-code-pre[hidden] { display: none; }
.t-k { color: #c792ea; } .t-f { color: #82aaff; } .t-s { color: #c3e88d; } .t-v { color: #f78c6c; } .t-c { color: #6f76a8; font-style: italic; }
@media (max-width: 960px) { .h-split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .h-code-pre { min-height: 0; } }
@media (max-width: 520px) { .h-code-file { display: none; } .h-code-pre { font-size: 12px; padding: 16px; } }

/* ---------- safety (dark) ---------- */
.h-dark { background: #0f1222; color: #e4e7ff; padding: 96px 0; position: relative; overflow: hidden; }
.h-dark::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, rgba(99, 102, 241, .35), transparent 65%); pointer-events: none; }
.h-head-dark { position: relative; }
.h-head-dark p { color: #a3a9d6; }
.h-dark .h-kicker { color: #a5b4fc; }
.h-safe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-safe > div { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 24px; }
.h-safe span { width: 44px; height: 44px; border-radius: 12px; background: rgba(129, 140, 248, .16); color: #a5b4fc; display: grid; place-items: center; }
.h-safe h3 { font-size: 17px; margin: 16px 0 8px; color: #fff; }
.h-safe p { margin: 0; font-size: 14.5px; color: #a3a9d6; }
@media (max-width: 960px) { .h-safe { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .h-safe { grid-template-columns: 1fr; } .h-dark { padding: 64px 0; } }

/* ---------- pricing ---------- */
.h-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.h-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.h-plan.hot { border: 2px solid var(--brand); box-shadow: 0 24px 60px rgba(67, 56, 202, .18); }
.h-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.h-plan h3 { font-size: 20px; margin: 0; }
.h-plan-desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.h-price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; line-height: 1.1; }
.h-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.h-plan ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 11px; font-size: 15px; }
.h-plan li { display: flex; gap: 10px; align-items: flex-start; }
.h-plan li .ico { color: var(--brand); margin-top: 3px; }
@media (max-width: 900px) { .h-plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; } }

/* ---------- faq ---------- */
.h-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.h-faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.h-faq-list details:first-child { border-top: 1px solid var(--line); }
.h-faq-list summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.h-faq-list summary::-webkit-details-marker { display: none; }
.h-faq-list summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.h-faq-list details[open] summary::after { transform: rotate(45deg); }
.h-faq-list p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 860px) { .h-faq { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- final cta ---------- */
.h-cta-wrap { padding: 96px 0; }
.h-cta { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 72px 32px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(135deg, #4338ca 0%, #6d28d9 60%, #9333ea 100%); box-shadow: 0 30px 70px rgba(67, 56, 202, .3); }
.h-cta h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; margin: 0 0 12px; }
.h-cta p { color: rgba(255, 255, 255, .82); font-size: 18px; margin: 0 0 30px; }
.h-cta .h-url { margin: 0 auto; border-color: transparent; }
.h-cta-btn { background: #0f1222; color: #fff; border-color: #0f1222; }
.h-cta-btn:hover { background: #1c2142; border-color: #1c2142; }
@media (max-width: 560px) { .h-cta { padding: 48px 18px; border-radius: 20px; } .h-cta-wrap { padding: 56px 0; } }
.h-span-3 { grid-column: 1 / -1; }
.h-card-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.h-mini-code { background: #0f1222; color: #d7dbff; border-radius: 12px; padding: 18px 20px; font: 13px/1.7 ui-monospace, Menlo, monospace; white-space: pre; overflow-x: auto; }
.h-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.h-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .h-card-wide { grid-template-columns: minmax(0, 1fr); } .h-mini-code { font-size: 12px; } }
/* keep the floating badges off the window content */
.h-window-bar span { flex: 0 1 auto; max-width: 58%; }
.h-float-1 { left: auto; right: -14px; top: 0; }
.h-float-2 { right: -14px; bottom: -14px; }
.h-float-3 { left: 0; bottom: 4px; }
.h-visual { padding-bottom: 44px; }
@media (max-width: 960px) { .h-float-1 { right: -4px; } .h-float-2 { right: -4px; } }
@media (max-width: 520px) { .h-float-1 { top: -4px; right: -4px; } .h-window-bar span { max-width: 45%; } }
