:root {
  --ink: #152236;
  --muted: #5c6879;
  --navy: #102033;
  --teal: #087d72;
  --teal-dark: #05655d;
  --mint: #eaf7f4;
  --paper: #f4f7f8;
  --white: #ffffff;
  --line: #d8e0e6;
  --warning: #a45f05;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(16, 32, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
a { color: var(--teal); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3, strong, b { letter-spacing: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: var(--white); color: var(--ink); border: 2px solid var(--teal); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 72px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 850; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--navy); color: var(--white); border-radius: 7px; font-size: 13px; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a, .footer nav a { color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
.topbar nav a:hover, .footer nav a:hover { color: var(--teal); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.language-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 850; text-decoration: none; transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--teal); color: var(--white); }
.button--primary:hover { background: var(--teal-dark); box-shadow: 0 10px 25px rgba(8, 125, 114, 0.2); }
.button--compact { min-height: 40px; padding-inline: 15px; }
.button--block { width: 100%; }
.button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(8, 125, 114, 0.3); outline-offset: 3px; }

.workspace { min-height: 760px; padding: 68px 0 62px; background: var(--navy); color: var(--white); }
.workspace-inner { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr); gap: 64px; width: min(1180px, calc(100% - 56px)); margin: 0 auto; align-items: start; }
.workspace-copy { padding-top: 30px; }
.eyebrow { margin: 0 0 10px; color: #56cec2; font-size: 13px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.workspace h1 { max-width: 650px; margin: 0 0 22px; font-size: 58px; line-height: 1.04; }
.lead { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,0.76); font-size: 19px; }
.scan-form { display: grid; gap: 10px; max-width: 660px; padding: 22px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.17); border-radius: 8px; }
.scan-form label { font-size: 13px; font-weight: 800; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aebac5; border-radius: 7px; background: var(--white); color: var(--ink); }
.form-note { margin: 0; color: rgba(255,255,255,0.58); font-size: 12px; }
.scope-note { max-width: 640px; margin-top: 18px; color: rgba(255,255,255,0.65); font-size: 13px; }
.scope-note strong { color: var(--white); }

.scan-panel { min-height: 512px; padding: 28px; background: var(--white); color: var(--ink); border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; box-shadow: 0 32px 80px rgba(0,0,0,0.26); }
.panel-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: flex; flex-direction: column; }
.panel-kicker { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.panel-head strong { margin-top: 4px; font-size: 17px; }
.status-dot { width: 12px; height: 12px; margin-top: 6px; background: #98a5b3; border-radius: 50%; box-shadow: 0 0 0 6px #eef1f3; }
.scan-panel.is-scanning .status-dot { background: #d89614; box-shadow: 0 0 0 6px #fff3d8; animation: pulse 1.2s ease-in-out infinite; }
.scan-panel.has-result .status-dot { background: var(--teal); box-shadow: 0 0 0 6px var(--mint); }
.scan-panel.score-medium .score-dial { background: #fff4d8; border-color: #f1d18a; }
.scan-panel.score-medium .score-dial strong { color: #9a5d00; }
.scan-panel.score-low .score-dial { background: #fff0ef; border-color: #efc1bd; }
.scan-panel.score-low .score-dial strong { color: var(--danger); }
@keyframes pulse { 50% { transform: scale(0.72); opacity: 0.55; } }
.score-row { display: flex; align-items: center; gap: 22px; padding: 26px 0; }
.score-row > div:last-child p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.score-dial { display: flex; align-items: baseline; justify-content: center; width: 112px; height: 112px; padding-top: 27px; background: var(--mint); border: 10px solid #c9e8e2; border-radius: 50%; }
.score-dial strong { color: var(--teal); font-size: 31px; line-height: 1; }
.score-dial span { color: var(--muted); font-size: 11px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.check-grid span { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.check-grid span:nth-child(2n) { border-right: 0; }
.check-grid span:nth-last-child(-n+2) { border-bottom: 0; }
.check-grid i { flex: 0 0 9px; width: 9px; height: 9px; background: #a6b2bd; border-radius: 50%; }
.check-grid b { margin-left: auto; color: var(--ink); font-size: 11px; }
.check-grid .pass i { background: var(--teal); }
.check-grid .warn i { background: #d89614; }
.check-grid .fail i { background: var(--danger); }
.pipeline { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin-top: 27px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.pipeline b { height: 2px; background: linear-gradient(90deg, var(--teal), #9dd6cf); }

.scan-result { grid-column: 1 / -1; margin-top: 4px; padding: 30px; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); scroll-margin-top: 24px; }
.result-loading { display: flex; flex-direction: column; gap: 4px; }
.result-loading span { color: var(--muted); font-size: 13px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-head > div:first-child { display: flex; flex-direction: column; }
.result-head span { color: var(--muted); font-size: 12px; }
.result-head strong { font-size: 20px; }
.result-score { display: flex; align-items: baseline; color: var(--teal); }
.result-score b { font-size: 38px; }
.result-verdict { margin: 22px 0 0; padding: 18px 20px; border-left: 4px solid var(--line); background: var(--paper); }
.result-verdict > span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.result-verdict h2 { margin: 3px 0 7px; font-size: 23px; }
.result-verdict p { max-width: 850px; margin: 0; color: var(--muted); font-size: 14px; }
.result-verdict small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.result-verdict--good { border-left-color: var(--teal); background: var(--mint); }
.result-verdict--medium { border-left-color: #d89614; background: #fff8e8; }
.result-verdict--low { border-left-color: var(--danger); background: #fff3f2; }
.category-bars { display: grid; gap: 10px; margin: 24px 0 28px; }
.category-bars > div { display: grid; grid-template-columns: 160px 1fr 46px; align-items: center; gap: 12px; font-size: 13px; }
.category-bars progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 4px; background: #e8edf1; color: var(--teal); }
.category-bars progress::-webkit-progress-bar { background: #e8edf1; border-radius: 4px; }
.category-bars progress::-webkit-progress-value { background: var(--teal); border-radius: 4px; }
.category-bars progress::-moz-progress-bar { background: var(--teal); border-radius: 4px; }
.category-bars strong { text-align: right; }
.scan-result h2 { margin: 0 0 14px; font-size: 21px; }
.issue-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.issue-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 13px; background: var(--paper); border-left: 3px solid var(--line); }
.issue-list li[data-level="high"] { border-left-color: var(--danger); }
.issue-list li[data-level="medium"] { border-left-color: #d89614; }
.issue-list li > span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.issue-list p { margin: 0; font-size: 14px; }
.package-detail-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 14px 16px; background: #eef3f6; color: var(--muted); font-size: 12px; }
.package-detail-note strong { max-width: 720px; color: var(--ink); }
.package-detail-note span { flex: 0 0 auto; color: var(--teal); font-weight: 800; }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 20px; background: var(--navy); color: var(--white); }
.result-actions > div { display: flex; flex-direction: column; gap: 3px; }
.result-actions > div span { max-width: 680px; color: rgba(255,255,255,0.68); font-size: 12px; }
.result-actions .button { flex: 0 0 auto; }
.result-scope { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.proof-band { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.proof-inner span { min-height: 100px; padding: 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.proof-inner span:last-child { border-right: 0; }
.proof-inner strong { display: block; color: var(--ink); font-size: 24px; }

.section, .section-inner { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 86px 0; }
.section-band { padding: 82px 0; background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 35px; }
.section-head .eyebrow, .price-copy .eyebrow, .method-grid .eyebrow, .faq-band .eyebrow { color: var(--teal); }
h2 { margin: 0 0 15px; font-size: 39px; line-height: 1.12; }
.section-head > p:last-child, .price-copy > p:last-child, .method-grid > div > p { color: var(--muted); }
.deliverable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.deliverable-grid article { min-height: 250px; padding: 26px 22px; background: var(--white); border-right: 1px solid var(--line); }
.deliverable-grid article:last-child { border-right: 0; }
.file-type { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; background: var(--mint); color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 850; }
.deliverable-grid h3 { margin: 38px 0 9px; font-size: 19px; }
.deliverable-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.method-band { background: #eaf0f2; }
.method-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr); gap: 64px; align-items: center; }
.check-list { display: grid; gap: 9px; margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; top: 9px; left: 0; width: 10px; height: 10px; background: var(--teal); }
.product-visual { margin: 0; }
.product-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.product-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }

.price-section { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr); gap: 70px; align-items: center; }
body.scan-good .price-section { display: none; }
.price-box { padding: 30px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 8px; box-shadow: var(--shadow); }
.price-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-head > div { display: flex; flex-direction: column; }
.price-head span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.price-head strong { margin-top: 4px; font-size: 40px; }
.price-head small { color: var(--muted); }
.price-box ul { display: grid; gap: 10px; margin: 23px 0; padding: 0; list-style: none; }
.price-box li { position: relative; padding-left: 24px; }
.price-box li::before { content: ""; position: absolute; top: 8px; left: 1px; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; }
.price-box > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.faq-band { background: var(--white); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 42px 22px 0; cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--teal); font-size: 24px; }
details[open] summary::after { content: "-"; }
details p { max-width: 820px; margin: -4px 0 22px; color: var(--muted); }

.footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px max(28px, calc((100vw - 1120px) / 2)); background: var(--navy); color: var(--white); }
.footer p { margin: 4px 0 0; color: rgba(255,255,255,0.62); font-size: 13px; }
.footer nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: rgba(255,255,255,0.72); }

.legal-page { background: var(--white); }
.legal { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 90px; }
.legal h1 { margin: 0 0 30px; font-size: 42px; line-height: 1.1; }
.legal h2 { margin-top: 32px; font-size: 23px; }
.legal p { color: var(--muted); }
.status-page { min-height: 100svh; background: var(--paper); }
.status-page > .topbar { width: 100%; }
.status-box { width: min(720px, calc(100% - 40px)); margin: 70px auto; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.status-box h1 { margin: 3px 0 18px; font-size: 38px; line-height: 1.12; }
.status-box > p { color: var(--muted); }
.status-steps { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.status-steps li { display: flex; align-items: center; gap: 12px; padding: 13px; background: var(--paper); }
.status-steps b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; background: var(--navy); color: var(--white); border-radius: 50%; }
.notice { margin: 25px 0; padding: 18px; background: var(--mint); border-left: 4px solid var(--teal); }
.notice p { margin: 5px 0 0; color: var(--muted); }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .workspace-inner { grid-template-columns: 1fr; }
  .workspace-copy { padding-top: 0; }
  .workspace h1 { font-size: 50px; }
  .scan-panel { min-height: auto; }
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .deliverable-grid article:nth-child(2) { border-right: 0; }
  .deliverable-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-grid, .price-section { grid-template-columns: 1fr; }
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
  .proof-inner span:nth-child(2) { border-right: 0; }
  .proof-inner span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .topbar { min-height: 64px; padding: 10px 16px; }
  .brand span:last-child { font-size: 14px; }
  .topbar-actions .button { display: none; }
  .workspace { min-height: 0; padding: 44px 0; }
  .workspace-inner { width: min(100% - 32px, 560px); gap: 32px; }
  .workspace h1 { font-size: 39px; }
  .lead { font-size: 17px; }
  .input-row { grid-template-columns: 1fr; }
  .scan-form .button { width: 100%; }
  .scan-panel { padding: 20px; }
  .score-row { gap: 15px; }
  .score-dial { width: 96px; height: 96px; padding-top: 22px; }
  .check-grid { grid-template-columns: 1fr; }
  .check-grid span, .check-grid span:nth-child(2n), .check-grid span:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .check-grid span:last-child { border-bottom: 0; }
  .pipeline { grid-template-columns: auto 1fr auto; }
  .pipeline b:nth-of-type(2), .pipeline span:last-child { display: none; }
  .scan-result { padding: 20px; }
  .category-bars > div { grid-template-columns: 112px 1fr 42px; gap: 8px; }
  .issue-list li { grid-template-columns: 1fr; gap: 4px; }
  .package-detail-note { flex-direction: column; gap: 6px; }
  .package-detail-note span { flex: initial; }
  .result-verdict { padding: 16px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .button { width: 100%; }
  .section, .section-inner { width: min(100% - 32px, 560px); }
  .section { padding: 64px 0; }
  .section-band { padding: 62px 0; }
  h2 { font-size: 31px; }
  .proof-inner { width: 100%; grid-template-columns: 1fr 1fr; }
  .proof-inner span { padding: 18px 16px; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .deliverable-grid article, .deliverable-grid article:nth-child(2) { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .deliverable-grid article:last-child { border-bottom: 0; }
  .price-box { padding: 22px; }
  .price-head { flex-direction: column; }
  .footer { flex-direction: column; padding: 28px 18px; }
  .footer nav { align-items: flex-start; flex-direction: column; gap: 9px; }
  .legal { width: min(100% - 32px, 560px); padding-top: 45px; }
  .legal h1 { font-size: 34px; }
  .status-box { margin: 34px auto; padding: 25px; }
  .status-box h1 { font-size: 31px; }
}

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