:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #a8b2c2;
  --deep: #090d18;
  --panel: #111827;
  --line: #273044;
  --violet: #7657f5;
  --indigo: #4f7cff;
  --mint: #43d3a0;
  --orange: #ff835f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(88, 73, 221, .35), transparent 35rem),
    radial-gradient(circle at -10% 50%, rgba(46, 111, 237, .14), transparent 28rem),
    var(--deep);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }

.page-shell { width: min(100% - 32px, 820px); margin: 0 auto; padding: 28px 0 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: 0 12px 30px rgba(86, 75, 235, .32); }
.brand-mark::after { content: "✦"; font-size: 17px; }
.brand em { color: #9aa7ba; font-style: normal; font-weight: 500; }

.hero { padding: 80px 0 34px; }
.eyebrow { margin: 0 0 14px; color: #b8aaff; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 7vw, 70px); line-height: .98; letter-spacing: -.055em; }
.gradient-text { background: linear-gradient(105deg, #7ea3ff, #c38aff 70%); color: transparent; background-clip: text; }
.lede { max-width: 670px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.65; }

.input-card { margin-top: 26px; padding: 8px; border: 1px solid var(--line); border-radius: 24px; background: rgba(17, 24, 39, .84); box-shadow: 0 25px 80px rgba(0, 0, 0, .32); backdrop-filter: blur(16px); }
textarea { width: 100%; min-height: 230px; resize: vertical; padding: 22px; border: 0; border-radius: 18px; outline: none; background: transparent; color: var(--ink); font-size: 16px; line-height: 1.65; }
textarea::placeholder { color: #657087; }
.input-card:focus-within { border-color: #6e72e5; box-shadow: 0 0 0 3px rgba(100, 93, 225, .12), 0 25px 80px rgba(0, 0, 0, .32); }
.input-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 14px 12px; color: #727d90; font-size: 12px; }
.example-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.example-label { color: #718096; font-size: 12px; }
.example-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #101727; color: #c6cfdd; font-size: 12px; transition: .2s ease; }
.example-chip:hover, .example-chip:focus-visible { border-color: #776af0; color: white; transform: translateY(-1px); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 22px; border: 0; border-radius: 16px; background: linear-gradient(100deg, #4d7ef8, #8057ea); color: white; font-weight: 800; box-shadow: 0 18px 45px rgba(91, 80, 230, .25); transition: .2s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:disabled { opacity: .38; }
.trust-line { margin: 12px 0 0; color: #707b8e; text-align: center; font-size: 12px; }
.privacy-note { margin: 14px 0 0; color: #737e91; font-size: 12px; line-height: 1.6; }
.error { margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(255, 104, 104, .35); border-radius: 13px; background: rgba(104, 22, 32, .35); color: #ffc0c0; font-size: 14px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.loading { display: grid; place-items: center; min-height: 560px; text-align: center; }
.loader { width: 60px; height: 60px; border: 5px solid #222b40; border-top-color: #7868f2; border-radius: 50%; animation: spin 1.25s linear infinite; }
.loading h2 { margin: 28px 0 8px; font-size: 22px; }
.loading p { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.results-header { padding-top: 65px; }
.results-header h2 { margin: 8px 0 12px; font-size: clamp(38px, 6vw, 56px); letter-spacing: -.045em; }
.results-header > p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.stat-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin: 28px 0 14px; }
.stat { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-feature { background: linear-gradient(135deg, #4e70e9, #7e52df); border-color: transparent; }
.stat-value { font-size: 35px; font-weight: 900; letter-spacing: -.04em; }
.stat-label { margin-top: 5px; color: #8792a5; font-size: 12px; }
.stat-feature .stat-label { color: #d7d9ff; }
.basis { margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: #9ba6b8; background: rgba(17, 24, 39, .6); font-size: 13px; line-height: 1.5; }
.basis .confidence { display: block; margin-bottom: 4px; color: #b9a9ff; font-weight: 800; text-transform: capitalize; }
.basis .hours-basis { display: block; }

.findings-list { display: grid; gap: 16px; }
.finding-card { position: relative; overflow: hidden; padding: 24px; border-radius: 20px; background: #fff; color: #152033; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); }
.finding-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; }
.severity-high::before { background: #f05c64; }
.severity-medium::before { background: #f4ae45; }
.severity-low::before { background: #90a0b7; }
.finding-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.finding-number { color: #9aa5b4; font-size: 12px; font-weight: 800; }
.finding-title { flex: 1 1 250px; margin: 0; font-size: 20px; letter-spacing: -.02em; }
.impact-pill, .quick-pill, .tool-pill { padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.impact-pill { max-width: 240px; background: #eef1f7; color: #516074; line-height: 1.25; text-align: right; white-space: normal; }
.quick-pill { background: #dcf7ec; color: #1b795a; }
.evidence-box { margin: 18px 0 12px; padding: 13px 15px; border-left: 3px solid #8a7bf4; background: #f5f3ff; }
.evidence-box .label { color: #665bc2; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.evidence-box p { margin: 5px 0 0; color: #4b5361; font-size: 13px; line-height: 1.5; }
.finding-copy { color: #566171; font-size: 14px; line-height: 1.6; }
.fix-row { display: flex; gap: 10px; margin-top: 15px; color: #263348; font-size: 14px; line-height: 1.6; }
.fix-row p { margin: 0; }
.icon-dot { color: #6259dc; font-weight: 900; }
.tool-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0 24px; }
.tool-pill { background: #eef0ff; color: #5149ad; }
.first-step { margin-top: 18px; padding: 15px; border-radius: 13px; background: #f3f5f8; color: #313e51; font-size: 14px; line-height: 1.55; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.action-button { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: #111827; color: #d8deea; font-weight: 750; }
.action-button.primary { border: 0; background: linear-gradient(100deg, #4d7ef8, #8057ea); color: white; }
.cta { margin-top: 38px; padding: 28px; border: 1px solid #344057; border-radius: 22px; background: linear-gradient(145deg, rgba(29, 38, 59, .96), rgba(19, 25, 42, .96)); }
.cta h3 { margin: 0 0 8px; font-size: 24px; }
.cta p { margin: 0; color: var(--muted); line-height: 1.6; }
.cta a { display: inline-flex; margin-top: 17px; padding: 13px 18px; border-radius: 12px; background: white; color: #101524; text-decoration: none; font-weight: 850; }
.disclaimer { margin: 18px 0 0; color: #667185; font-size: 11px; line-height: 1.6; }
footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid #20283a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: #6f7a8d; font-size: 12px; }
footer nav { display: flex; gap: 14px; }

@media (max-width: 650px) {
  .page-shell { width: min(100% - 22px, 820px); padding-top: 20px; }
  .hero { padding-top: 58px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-feature { grid-column: 1 / -1; }
  .finding-card { padding: 21px 18px; }
  .impact-pill { max-width: 100%; text-align: left; }
}

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