:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --ink: #0b1425;
    --muted: #4a5b70;
    --blue: #0756d6;
    --blue-dark: #0646ac;
    --teal: #087f70;
    --line: #d5e0ec;
    --panel: #fff;
    --danger: #991b1b;
    --navy: #071426;
}

* { 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:
        radial-gradient(circle at 82% 6%, rgba(7, 86, 214, .09), transparent 31rem),
        var(--bg);
}
a { color: var(--blue); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 56px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(160, 179, 201, .5); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { width: 176px; height: 48px; object-fit: contain; object-position: left center; }
.nav, .actions, .conversion-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #bdcada; background: #fff; color: var(--ink); padding: 10px 15px; font-weight: 800; text-decoration: none; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.button:hover { border-color: #849ab5; transform: translateY(-1px); }
.button.primary { border-color: var(--blue-dark); background: var(--blue); color: #fff; box-shadow: 0 9px 24px rgba(7, 86, 214, .2); }
.button.primary:hover { background: var(--blue-dark); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: 48px; align-items: center; padding: 76px 0 64px; }
.eyebrow { margin: 0 0 10px; color: var(--blue-dark); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.copy h1 { max-width: 790px; margin: 0; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.01; letter-spacing: -.045em; }
.lede { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill-row span { border: 1px solid #c8d6e5; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; }
.notice { margin-top: 22px; border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; background: #e9f8f5; padding: 14px 16px; color: #164b45; font-size: 13px; line-height: 1.55; }
.notice strong { display: block; margin-bottom: 3px; }
.example-card, .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 24px 56px rgba(15, 23, 42, .09); }
.example-card { padding: 24px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading h2, .panel h2, .trial-context h2, .conversion-panel h2 { margin: 0; letter-spacing: -.025em; }
.review-badge, .severity { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.review-badge { color: #7c2d12; background: #ffedd5; border: 1px solid #fed7aa; }
.example-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.example-summary div { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px; }
.example-summary dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.example-summary dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.example-finding { display: flex; gap: 12px; padding: 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; }
.severity.high { align-self: flex-start; color: #fff; background: #b42318; }
.example-finding p, .example-footnote { color: var(--muted); font-size: 13px; line-height: 1.5; }
.example-finding p { margin: 5px 0 0; }
.example-footnote { margin: 14px 0 0; }
.trial-section { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.trial-context { position: sticky; top: 24px; }
.trial-context h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.trial-context > p:not(.eyebrow), .governed-context p { color: var(--muted); line-height: 1.65; }
.governed-context { margin-top: 28px; padding: 18px; border: 1px solid #cddbea; border-radius: 10px; background: rgba(255,255,255,.65); }
.governed-context h3 { margin: 0; font-size: 17px; }
.governed-context p { margin-bottom: 0; font-size: 14px; }
.panel { padding: 24px; }
.panel h2 { font-size: 27px; }
.quota { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.quota div { border: 1px solid #d9e6f2; border-radius: 8px; padding: 12px; background: #f8fbff; }
.quota strong, .quota span { display: block; }
.quota strong { font-size: 22px; }
.quota span { color: var(--muted); font-size: 12px; font-weight: 750; }
label { display: block; margin: 16px 0 7px; font-weight: 850; }
select, textarea { width: 100%; border: 1px solid #aebfd1; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
select { min-height: 44px; padding: 8px 10px; }
textarea { min-height: 270px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(7, 86, 214, .3); outline-offset: 3px; }
.help { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.actions { margin-top: 16px; }
.status { min-height: 24px; margin-top: 14px; color: var(--muted); font-weight: 760; }
.status.error { color: var(--danger); }
.result { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.result[hidden] { display: none; }
.severity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.severity-grid div, .finding { border: 1px solid #d9e6f2; border-radius: 8px; background: #f8fbff; padding: 11px; }
.finding { margin-top: 10px; }
.finding strong { display: block; }
.finding p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.48; }
.conversion-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-radius: 16px; padding: 34px; background: var(--navy); color: #fff; box-shadow: 0 24px 54px rgba(7,20,38,.18); }
.conversion-panel p:not(.eyebrow) { max-width: 680px; color: #bdcadd; line-height: 1.6; }
.conversion-panel .eyebrow { color: #73d9cc; }
.conversion-panel .button:not(.primary) { border-color: #62748b; background: transparent; color: #fff; }
.text-link { color: #9fc2ff; font-weight: 800; }

@media (max-width: 920px) {
    .hero, .trial-section { grid-template-columns: 1fr; }
    .hero { gap: 30px; padding-top: 50px; }
    .trial-context { position: static; }
    .conversion-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 22px, 1180px); }
    .topbar { align-items: flex-start; flex-direction: column; padding: 12px 0 18px; }
    .brand img { width: 150px; }
    .nav { width: 100%; }
    .nav .button { flex: 1 1 auto; }
    .hero { padding: 42px 0; }
    .copy h1 { font-size: clamp(35px, 12vw, 50px); }
    .example-summary, .quota, .severity-grid { grid-template-columns: 1fr; }
    .panel, .example-card, .conversion-panel { padding: 19px; }
    .actions .button, .conversion-actions .button { width: 100%; }
    .conversion-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
