:root {
  color-scheme: light;
  --ink: #11233f;
  --muted: #52637a;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #d9e1eb;
  --blue: #1261d8;
  --blue-dark: #0a469f;
  --cyan: #14b8a6;
  --amber: #c26a00;
  --red: #b42318;
  --shadow: 0 24px 65px rgba(27, 52, 89, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--blue-dark); }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { background: rgba(247, 249, 252, 0.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 650; }
.nav-links a:hover { color: var(--blue); }
.hero { padding: 5.5rem 0 4rem; background: radial-gradient(circle at 78% 18%, #dbeafe 0, transparent 31%), linear-gradient(180deg, #fff, var(--paper)); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 4rem; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.13em; font-weight: 850; font-size: 0.76rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.5rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.55rem; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 58ch; margin: 1.4rem 0 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0; margin: 0; list-style: none; }
.trust-row li { background: #eaf2ff; color: #17447d; border: 1px solid #c8ddfb; border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.86rem; font-weight: 720; }
.tool-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.tool-kicker { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 800; }
.privacy-dot { color: #067a6d; background: #ddfbf6; border-radius: 999px; padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.dropzone { display: grid; place-items: center; min-height: 235px; text-align: center; border: 2px dashed #9db6d8; border-radius: 18px; background: #f7fbff; padding: 2rem; transition: 160ms ease; cursor: pointer; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--blue); background: #edf5ff; transform: translateY(-2px); }
.drop-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--blue); color: #fff; font-size: 1.6rem; margin-bottom: 0.8rem; }
.dropzone strong { font-size: 1.05rem; }
.dropzone small { color: var(--muted); margin-top: 0.3rem; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tool-status { min-height: 1.7rem; color: var(--muted); margin: 0.9rem 0 0; font-size: 0.93rem; }
.tool-status[data-state="error"] { color: var(--red); }
.tool-status[data-state="success"] { color: #067a46; }
.results { margin-top: 1.3rem; scroll-margin-top: 90px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.results h3 { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--blue-dark); cursor: pointer; font-weight: 750; }
.issue-list { display: grid; gap: 0.7rem; margin: 1rem 0; }
.issue-card { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; border: 1px solid var(--line); padding: 0.85rem; border-radius: 13px; cursor: pointer; }
.issue-card:has(input:checked) { border-color: #95b9ec; background: #f4f8ff; }
.issue-card input { margin-top: 0.28rem; width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.issue-copy { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; }
.issue-heading { font-weight: 780; }
.issue-detail { grid-column: 1 / -1; color: var(--muted); font-size: 0.89rem; }
.severity { align-self: start; border-radius: 999px; padding: 0.15rem 0.5rem; font-size: 0.72rem; font-weight: 760; background: #fff3d6; color: #8a4b00; }
.severity-medium { background: #e7f1ff; color: #174d8c; }
.primary-button { width: 100%; border: 0; border-radius: 12px; padding: 0.9rem 1.2rem; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(18, 97, 216, 0.2); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { opacity: 0.55; cursor: wait; }
.clean-result { color: #067a46; background: #eafaf2; border: 1px solid #b8e8ce; border-radius: 12px; padding: 1rem; }
.section { padding: 5rem 0; }
.section-white { background: var(--surface); }
.section-intro { max-width: 690px; margin-bottom: 2.4rem; }
.section-intro p, .prose p, .prose li { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { border: 1px solid var(--line); background: var(--surface); border-radius: 17px; padding: 1.4rem; }
.feature-number { color: var(--blue); font-weight: 900; font-size: 0.78rem; letter-spacing: 0.1em; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.problem-card { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 1.4rem; transition: 150ms ease; }
.problem-card:hover { border-color: #9bbbe7; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 52, 89, 0.08); }
.problem-card p { color: var(--muted); margin-bottom: 0; }
.notice { border-left: 4px solid var(--cyan); background: #ecfdf9; padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.ad-slot[data-enabled="false"] { display: none; }
.footer { padding: 2.3rem 0; border-top: 1px solid var(--line); background: #edf2f8; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.article-hero { padding: 4.5rem 0 2.5rem; background: linear-gradient(180deg, #fff, var(--paper)); }
.article-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 15ch; }
.article-meta { color: var(--muted); font-size: 0.92rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 260px; gap: 4rem; align-items: start; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 2.6rem; font-size: 2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose code { background: #e9eef5; padding: 0.12rem 0.35rem; border-radius: 5px; }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding-left: 3.2rem; position: relative; margin: 1.15rem 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 850; }
.side-card { position: sticky; top: 90px; background: #eaf2ff; border: 1px solid #c8ddfb; border-radius: 16px; padding: 1.2rem; }
.side-card a { display: inline-block; margin-top: 0.6rem; font-weight: 800; }
.legal { max-width: 780px; }

@media (max-width: 850px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-grid { gap: 2.3rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-primary) { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .issue-copy { grid-template-columns: 1fr; }
  .severity, .issue-detail { grid-column: 1; }
  h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
