:root {
  color-scheme: light;
  --ink: #13273d;
  --ink-soft: #455b6e;
  --paper: #f3efe5;
  --surface: #fffdf7;
  --navy: #0b2946;
  --navy-2: #143c60;
  --aqua: #42d6c3;
  --aqua-soft: #d9f6f0;
  --orange: #b9431f;
  --orange-soft: #fff0e9;
  --line: #c9d0cf;
  --critical: #b53d2d;
  --warning: #a96516;
  --info: #216a7a;
  --shadow: 0 24px 60px rgb(10 37 61 / 12%);
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(19 39 61 / 4%) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header { height: 88px; }
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: var(--aqua);
  place-items: center;
  font-size: .78rem;
  letter-spacing: .04em;
  transform: rotate(-4deg);
}
.local-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgb(19 39 61 / 18%);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.local-badge span { color: var(--aqua); }

main { overflow: hidden; }
.hero, .workspace, .results, .scope, .service-bridge {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
  gap: 7vw;
  align-items: end;
  min-height: 500px;
  padding: 92px 0 76px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 8.2vw, 7.2rem);
  line-height: .95;
  letter-spacing: -.08em;
}
h1 em { color: var(--orange); font-style: normal; }
.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.9;
}
.hero-note {
  position: relative;
  padding: 36px 32px 32px;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.hero-note::before {
  position: absolute;
  inset: -12px 12px 12px -12px;
  z-index: -1;
  border: 2px solid var(--aqua);
  content: "";
}
.note-number {
  display: block;
  margin-bottom: 42px;
  color: var(--aqua);
  font: 700 .8rem ui-monospace, monospace;
}
.hero-note strong { font-size: 1.25rem; }
.hero-note p { margin: 12px 0 36px; color: #c9d8e5; line-height: 1.8; }
.route { color: var(--aqua); font: 700 .72rem ui-monospace, monospace; letter-spacing: .12em; }

.privacy-strip {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 14px 20px;
  color: white;
  background: var(--navy);
  font-size: .78rem;
  letter-spacing: .03em;
}
.privacy-strip strong { color: var(--aqua); font-family: ui-monospace, monospace; letter-spacing: .12em; }
.privacy-strip span::before { margin-right: 28px; color: #54708a; content: "/"; }

.workspace, .results { padding: 108px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 44px;
}
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.055em; }
.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}
.file-grid {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
}
.file-card {
  position: relative;
  min-height: 355px;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgb(255 253 247 / 84%);
}
.file-card-accent { border-top: 5px solid var(--orange); }
.step-label { font: 800 .72rem ui-monospace, monospace; letter-spacing: .16em; }
.file-card h3 { margin: 18px 0 8px; font-size: 1.55rem; letter-spacing: -.03em; }
.file-card > p { min-height: 50px; color: var(--ink-soft); line-height: 1.7; }
.file-drop {
  display: grid;
  min-height: 150px;
  margin-top: 24px;
  border: 1px dashed #8a9aa5;
  background: rgb(243 239 229 / 55%);
  text-align: center;
  place-content: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.file-drop:hover { border-color: var(--orange); background: var(--orange-soft); transform: translateY(-2px); }
.file-icon { color: var(--orange); font-size: 2rem; line-height: 1; }
.file-prompt { margin-top: 10px; font-weight: 800; }
.file-meta { margin-top: 6px; color: var(--ink-soft); font-size: .75rem; }
.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.compare-mark { text-align: center; font: 900 .78rem ui-monospace, monospace; }

.import-setting {
  margin: 30px 0;
  padding: 0;
  border: 0;
}
.import-setting legend { margin-bottom: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.switch-row small { display: block; margin-top: 5px; color: var(--ink-soft); }
.switch { position: relative; flex: 0 0 auto; width: 54px; height: 30px; margin-left: 20px; }
.switch input { position: absolute; opacity: 0; }
.switch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #a5adb1;
  transition: background .2s;
}
.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
  content: "";
  transition: transform .2s;
}
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 3px; }
.form-error { min-height: 24px; margin-bottom: 8px; color: var(--critical); font-weight: 700; }
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  border: 0;
  color: white;
  background: var(--orange);
  box-shadow: 0 14px 30px rgb(240 120 75 / 25%);
  font-size: 1.05rem;
  font-weight: 850;
  transition: filter .2s, transform .2s;
}
.primary-button:hover:not(:disabled) { filter: brightness(.93); transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }

.results { border-top: 1px solid var(--line); }
.results-heading { margin-bottom: 30px; }
.secondary-button { padding: 12px 16px; border: 1px solid var(--ink); background: transparent; font-weight: 800; text-decoration: none; }
.verdict {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.verdict[data-level="critical"] { border-left: 7px solid var(--critical); }
.verdict[data-level="warning"] { border-left: 7px solid var(--warning); }
.verdict[data-level="ok"] { border-left: 7px solid var(--aqua); }
.verdict-icon {
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  place-items: center;
  font: 900 1.6rem ui-monospace, monospace;
}
.verdict p { margin-bottom: 4px; color: var(--ink-soft); }
.verdict h3 { margin-bottom: 8px; font-size: 1.65rem; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 58px; border: 1px solid var(--line); }
.summary-item { padding: 24px; border-right: 1px solid var(--line); background: rgb(255 253 247 / 65%); }
.summary-item:last-child { border-right: 0; }
.summary-item dt { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.summary-item dd { margin: 10px 0 0; font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.issue-toolbar { display: flex; align-items: baseline; justify-content: space-between; }
.issue-toolbar h3 { font-size: 1.35rem; }
.issue-toolbar p { color: var(--ink-soft); }
.issue-list { display: grid; gap: 12px; }
.issue-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.severity { align-self: start; padding: 6px 8px; text-align: center; font: 800 .68rem ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.severity-critical { color: var(--critical); background: #fbe2dc; }
.severity-warning { color: var(--warning); background: #ffedce; }
.severity-info { color: var(--info); background: #dff3f5; }
.issue-card h4 { margin: 0 0 7px; font-size: 1rem; }
.issue-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.next-steps {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  margin-top: 40px;
  padding: 30px;
  color: white;
  background: var(--navy);
}
.next-steps .note-number { margin: 0; }
.next-steps h3 { margin-bottom: 8px; }
.next-steps p { margin-bottom: 0; color: #c9d8e5; line-height: 1.75; }

.scope { padding: 100px 0 120px; }
.scope h2 { max-width: 720px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.scope-grid > div { padding: 30px; border-top: 3px solid var(--aqua); background: rgb(255 253 247 / 60%); }
.scope-grid > div:last-child { border-color: var(--orange); }
.scope-grid h3 span { display: inline-grid; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; color: white; background: var(--navy); place-items: center; }
.scope-grid ul { margin: 0; padding-left: 22px; color: var(--ink-soft); line-height: 2; }

.service-bridge { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: clamp(32px, 7vw, 92px); align-items: center; margin-top: 48px; margin-bottom: 108px; padding: clamp(36px, 6vw, 72px); color: var(--paper); background: var(--navy); box-shadow: var(--shadow); }
.service-bridge .eyebrow { color: var(--aqua); }
.service-bridge h2 { max-width: 680px; }
.service-bridge-copy { max-width: 680px; margin: 28px 0 0; color: #c6d5e2; line-height: 1.9; }
.service-card { padding: 28px; border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 7%); }
.service-card .step-label { color: var(--aqua); }
.service-card p { margin: 24px 0; line-height: 1.8; }
.service-card strong { color: var(--paper); font-size: 1.15rem; }
.service-link { display: inline-block; padding: 13px 16px; color: var(--navy); background: var(--aqua); font-weight: 900; text-decoration: none; }
.service-link:hover { background: var(--paper); }
.service-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

footer { min-height: 110px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
footer p { margin: 0; color: var(--ink); font-weight: 850; }
footer p span { margin-left: 8px; color: var(--ink-soft); font-weight: 500; }
footer nav { display: flex; gap: 24px; }

button:focus-visible, a:focus-visible, label:focus-within { outline: 3px solid var(--aqua); outline-offset: 4px; }

@media (max-width: 760px) {
  .site-header, footer, .hero, .workspace, .results, .scope { width: min(100% - 28px, 1180px); }
  .hero { grid-template-columns: 1fr; gap: 64px; min-height: auto; padding: 64px 0 74px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .privacy-strip { flex-wrap: wrap; gap: 10px 18px; justify-content: flex-start; }
  .privacy-strip span::before { margin-right: 18px; }
  .workspace, .results { padding: 78px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .file-grid { grid-template-columns: 1fr; gap: 14px; }
  .compare-mark { padding: 4px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .scope-grid { grid-template-columns: 1fr; }
  .service-bridge { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
  footer nav { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .local-badge { font-size: 0; }
  .local-badge span { font-size: .8rem; }
  .file-card { padding: 24px; }
  .switch-row { align-items: flex-start; }
  .verdict { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-item, .summary-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-item:last-child { border-bottom: 0; }
  .issue-card { grid-template-columns: 1fr; gap: 10px; }
  .severity { width: fit-content; }
  .next-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
