:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #65655f;
  --paper: #f5f2e9;
  --surface: #fffdf7;
  --line: #d8d3c7;
  --blue: #245eea;
  --blue-dark: #1744b7;
  --blue-soft: #e7edff;
  --green: #168360;
  --amber: #9f5d00;
  --red: #b5252e;
  --shadow: 0 18px 50px rgb(32 33 36 / 9%);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
button, select, textarea { font: inherit; }
button, select { min-height: 44px; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, 100%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; inset: 8px auto auto 8px; transform: translateY(-160%); background: var(--ink); color: white; padding: .65rem 1rem; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgb(245 242 233 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.product-mark, .chapa-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.product-mark img { border-radius: 12px; box-shadow: 0 5px 16px rgb(32 33 36 / 14%); }
.product-mark span { font-size: 1.05rem; white-space: nowrap; }
.site-header nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: .55rem .72rem; color: var(--muted); text-decoration: none; border-radius: 8px; font-size: .92rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.language-label select { width: 132px; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .65rem; background: var(--surface); color: var(--ink); }

.hero { overflow: hidden; padding: 76px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 48%, rgb(36 94 234 / 12%), transparent 28%), linear-gradient(135deg, #faf8f2 0%, var(--paper) 72%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: 70px; }
.hero h1, .page-hero h1 { max-width: 820px; margin: .28rem 0 1rem; font-size: clamp(2.45rem, 5.8vw, 5.15rem); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.hero-lead, .page-hero p { max-width: 720px; margin: 0; color: #44453f; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.eyebrow, .mini-label { margin: 0; color: var(--blue-dark); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.scope-note { display: inline-block; margin: 1.5rem 0 0; padding: .5rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgb(255 253 247 / 70%); font-size: .88rem; }
.hero-orbit { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgb(36 94 234 / 28%); border-radius: 50%; }
.hero-orbit::before { width: 310px; height: 310px; }
.hero-orbit::after { width: 215px; height: 215px; border-style: dashed; }
.orbit-card { position: relative; z-index: 1; width: 188px; padding: 1.25rem; border: 1px solid var(--ink); border-radius: 16px; background: var(--surface); box-shadow: 14px 14px 0 var(--blue); transform: rotate(-3deg); }
.orbit-card span, .orbit-card small { display: block; color: var(--muted); }
.orbit-card strong { display: block; margin: .2rem 0; font-size: 4.3rem; line-height: 1; letter-spacing: -.07em; }

.facts { border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts article { min-height: 175px; padding: 28px 24px; border-inline-end: 1px solid var(--line); }
.facts article:first-child { border-inline-start: 1px solid var(--line); }
.facts h2 { margin: 0 0 .55rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.facts p { margin: 0; color: var(--muted); font-size: .92rem; }

.section { padding: 84px 0; }
.section.soft { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { max-width: 680px; margin-bottom: 32px; }
.section-heading h2, .workspace-heading h2, .split h2 { margin: .3rem 0 .65rem; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p:last-child, .workspace-heading p { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plain-card, .case-card, .step-card, .privacy-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plain-card > span, .case-card > span { color: var(--blue); font-weight: 800; }
.plain-card h3, .case-card h2, .step-card h2, .privacy-card h2 { margin: 1.6rem 0 .5rem; font-size: 1.25rem; line-height: 1.18; }
.plain-card p, .case-card p, .step-card p, .privacy-card p { margin: 0; color: var(--muted); }

.workspace-section { padding: 86px 0 100px; color: #f7f5ef; background: #202124; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.workspace-heading h2 { color: white; }
.workspace-heading p { max-width: 630px; margin-bottom: 0; color: #bfc0c3; }
.workspace-heading .eyebrow, .result-title .eyebrow { color: #86a7ff; }
.local-badge { align-self: center; padding: .5rem .8rem; border: 1px solid #4d5056; border-radius: 999px; color: #bce9d9; font-size: .82rem; white-space: nowrap; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.input-panel, .result-panel { min-width: 0; padding: 24px; border: 1px solid #494b50; border-radius: var(--radius); background: #292b2f; }
.input-panel { display: grid; gap: 10px; }
.input-panel label { font-weight: 750; }
.input-panel select, .input-panel textarea { width: 100%; border: 1px solid #5b5e64; border-radius: 10px; background: #202124; color: white; }
.input-panel select { padding: .55rem .7rem; }
.input-panel textarea { min-height: 330px; padding: 14px; resize: vertical; font: .86rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.field-hint { margin: -.25rem 0 .25rem; color: #b4b5b9; font-size: .82rem; }
.drop-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 14px; border: 1px dashed #686b71; border-radius: 10px; color: #bfc0c3; transition: border-color .16s, background .16s; }
.drop-zone.is-dragging { border-color: #86a7ff; background: #343842; }
.button-row, .result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .62rem .9rem; border: 1px solid transparent; border-radius: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: inherit; border-color: currentColor; background: transparent; }
.input-panel .button-secondary, .result-panel .button-secondary { color: #e7e8ea; border-color: #666970; }
.text-button { min-height: 44px; padding: .55rem .65rem; border: 0; background: none; color: #c1c2c5; text-decoration: underline; cursor: pointer; }
.result-title h2 { margin: .3rem 0 1rem; font-size: 1.7rem; }
.empty-state, .error-box { margin: 0; padding: 34px 22px; border: 1px dashed #5c5f64; border-radius: 12px; color: #bfc0c3; text-align: center; }
.error-box { border-style: solid; border-color: #8f4349; color: #ffd6d9; background: #3b272a; }
.score-card { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 14px; background: #202124; }
.score-value { display: grid; place-items: center; flex: 0 0 86px; height: 86px; border: 6px solid #86a7ff; border-radius: 50%; font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.score-copy h2, .score-copy p { margin: 0; }
.score-copy h2 { font-size: 1.25rem; }
.score-copy p:last-child { color: #aeb0b5; font-size: .85rem; }
.result-notice { color: #bfc0c3; font-size: .82rem; }
.finding-list { display: grid; gap: 10px; margin-top: 18px; max-height: 760px; overflow: auto; padding-inline-end: 4px; }
.finding { padding: 17px; border: 1px solid #55585e; border-inline-start: 5px solid #86a7ff; border-radius: 11px; background: #24262a; }
.finding.severity-critical { border-inline-start-color: #ff6f78; }
.finding.severity-high { border-inline-start-color: #ff9f6f; }
.finding.severity-medium { border-inline-start-color: #ffd071; }
.finding-top { display: flex; justify-content: space-between; gap: 12px; }
.tool-name { font: 700 .8rem/1.4 ui-monospace, monospace; color: #cbd7ff; }
.severity-pill { padding: .18rem .5rem; border-radius: 999px; background: #3e4147; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.finding h3 { margin: .8rem 0 .6rem; font-size: 1.05rem; }
.finding-block { margin-top: .65rem; }
.finding-block > * { margin: .2rem 0; }
.finding .mini-label { color: #a9aaae; font-size: .65rem; }
.evidence { white-space: pre-wrap; overflow-wrap: anywhere; padding: .7rem; border-radius: 7px; background: #191a1c; color: #ebeced; font-size: .75rem; }
.confidence { color: #adafb4; font-size: .75rem; }
.finding a { color: #9ab6ff; font-size: .75rem; }

.page-hero { padding: 94px 0 72px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--surface), var(--paper)); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; }
td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:last-child { width: 150px; text-align: end; }
.status { display: inline-block; padding: .2rem .48rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-yes { color: #065b42; background: #d8f3e8; }
.status-no { color: #7b2228; background: #ffe1e3; }
.status-unknown { color: #714400; background: #fff0c9; }
.rule-list, .source-list, .check-list { padding: 0; list-style: none; }
.rule-list li { display: flex; justify-content: space-between; gap: 14px; padding: .63rem 0; border-bottom: 1px solid var(--line); }
.rule-list small { color: var(--muted); text-transform: uppercase; }
.source-list li { margin: .75rem 0; }
.check-list li { position: relative; margin: .8rem 0; padding-inline-start: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 900; }
.faq-list details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq-list summary { cursor: pointer; font-weight: 760; }
.faq-list p { color: var(--muted); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-block: 74px 96px; }
.privacy-card:first-child { grid-column: 1 / -1; }

.chapa-banner { border-top: 1px solid #3e4044; color: #d8d9dc; background: #202124; }
.banner-inner { min-height: 112px; display: flex; align-items: center; gap: 22px; }
.chapa-mark { color: white; }
.chapa-mark img { width: 34px; height: 34px; }
.banner-inner p { margin: 0; color: #aeb0b4; font-size: .82rem; }
.banner-inner nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.banner-inner nav a { color: #d8d9dc; font-size: .82rem; }
.not-found { min-height: calc(100vh - 112px); display: grid; place-content: center; justify-items: start; width: min(680px, calc(100% - 40px)); margin: auto; }
.not-found h1 { margin: .4rem 0; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.05em; }
.not-found p:not(.eyebrow) { color: var(--muted); }

:focus-visible { outline: 3px solid #87a6ff; outline-offset: 3px; }
[dir="rtl"] .hero-orbit .orbit-card { transform: rotate(3deg); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .language-label { margin-inline-start: auto; }
  .hero-grid, .workspace-grid, .split { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
  .facts-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .workspace-heading { align-items: start; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 26px, 1180px); }
  .product-mark span { display: none; }
  .site-header nav a { padding-inline: .6rem; white-space: nowrap; }
  .hero { padding-block: 48px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .facts-grid, .step-grid, .privacy-grid { grid-template-columns: 1fr; }
  .facts article, .facts article:first-child { border: 0; border-bottom: 1px solid var(--line); }
  .section, .workspace-section { padding-block: 58px; }
  .workspace-heading, .banner-inner { align-items: flex-start; flex-direction: column; }
  .input-panel, .result-panel { padding: 16px; }
  .input-panel textarea { min-height: 260px; }
  .drop-zone { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .score-card { align-items: flex-start; flex-direction: column; }
  .banner-inner { padding-block: 24px; }
  .banner-inner nav { margin: 0; }
  .privacy-card:first-child { grid-column: auto; }
}

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