:root {
  color-scheme: light;
  --ink: #17302d;
  --muted: #60716e;
  --green-950: #0d322e;
  --green-800: #18584f;
  --green-650: #26786c;
  --green-100: #e8f4f0;
  --green-50: #f3faf7;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --line: #d8e2de;
  --amber: #a85f18;
  --amber-bg: #fff4df;
  --red: #a33d35;
  --shadow: 0 18px 50px rgba(13, 50, 46, 0.09);
  --radius: 20px;
  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;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(95, 180, 154, 0.16), transparent 28rem),
    var(--cream);
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green-800);
}

.shell {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green-950);
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  color: white;
  background: var(--green-800);
  border-radius: 10px 10px 10px 3px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.header-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: 76px 0 56px;
  text-align: center;
}

.eyebrow {
  color: var(--green-650);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin: 12px auto 18px;
  color: var(--green-950);
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.062em;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  color: #4f6561;
  font-size: clamp(1.06rem, 2vw, 1.26rem);
}

.privacy-promise {
  max-width: 690px;
  margin: 30px auto 0;
  padding: 15px 19px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--green-950);
  background: var(--green-100);
  border: 1px solid #cfe5dd;
  border-radius: 15px;
  font-size: 0.94rem;
}

.promise-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: white;
  background: var(--green-650);
  border-radius: 50%;
  font-weight: 900;
}

.tool {
  margin-bottom: 110px;
  padding: clamp(24px, 5vw, 52px);
  background: var(--paper);
  border: 1px solid rgba(24, 88, 79, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 4px;
  color: var(--green-950);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--green-800);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 850;
}

.step-number.success {
  background: #2d846e;
}

.drop-zone {
  min-height: 238px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green-950);
  background: var(--green-50);
  border: 2px dashed #a9c9bf;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  background: #e9f7f2;
  border-color: var(--green-650);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.upload-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--green-800);
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 1.75rem;
  font-weight: 450;
}

.drop-zone strong {
  font-size: 1.12rem;
}

.drop-zone > span:not(.upload-symbol) {
  color: var(--muted);
}

.drop-zone .file-limit {
  margin-top: 14px;
  font-size: 0.78rem;
}

.file-status {
  min-height: 30px;
  padding-top: 13px;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-message {
  color: var(--red);
  font-weight: 650;
}

.success-message {
  color: var(--green-800);
  font-weight: 650;
}

.workspace {
  margin-top: 28px;
}

.tool-stage {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.scan-card {
  min-height: 154px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.scan-card.sensitive,
.scan-card.warning {
  background: #fffbf2;
  border-color: #ead7b7;
}

.scan-card.clear {
  background: #f6faf8;
}

.scan-card.neutral {
  background: #f5f7f7;
}

.scan-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.scan-card.clear .status-dot {
  background: #46a184;
}

.scan-card.neutral .status-dot {
  background: #78918c;
}

.scan-card h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.scan-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.notice {
  margin-top: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.notice.warning {
  color: #724413;
  background: var(--amber-bg);
  border: 1px solid #efd19d;
}

.options-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.option-group {
  min-width: 0;
  margin: 0;
  padding: 21px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.option-group legend {
  padding: 0 7px;
  color: var(--green-950);
  font-weight: 800;
}

.check-option {
  padding: 12px 3px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  border-bottom: 1px solid #e7ecea;
}

.check-option:last-child {
  border-bottom: 0;
}

.check-option input,
.risk-confirm input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--green-650);
}

.check-option span {
  display: flex;
  flex-direction: column;
}

.check-option strong {
  font-size: 0.93rem;
}

.check-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.check-option.caution strong {
  color: #85531e;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.select-field,
.custom-distance {
  margin-top: 16px;
  display: block;
}

.select-field > span,
.custom-distance > span,
.feedback-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 750;
}

select,
.custom-distance input,
textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid #bdccc7;
  border-radius: 10px;
  outline: none;
}

select,
.custom-distance input {
  height: 45px;
  padding: 0 11px;
}

select:focus,
.custom-distance input:focus,
textarea:focus {
  border-color: var(--green-650);
  box-shadow: 0 0 0 3px rgba(38, 120, 108, 0.13);
}

.precision-field {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.preflight {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--green-50);
  border: 1px solid #cfe0da;
  border-radius: 14px;
  font-size: 0.88rem;
}

.preflight p {
  margin: 4px 0 0;
}

.preflight-warning {
  margin-top: 10px;
  color: #774410;
}

.risk-confirm {
  margin-top: 13px;
  padding: 13px 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #754414;
  background: var(--amber-bg);
  border: 1px solid #efd19d;
  border-radius: 12px;
  font-size: 0.86rem;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.primary-button {
  min-height: 50px;
  margin-top: 18px;
  padding: 0 24px;
  color: white;
  background: var(--green-800);
  box-shadow: 0 8px 20px rgba(24, 88, 79, 0.18);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.safety-note {
  max-width: 740px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-stage {
  padding-bottom: 26px;
}

.comparison {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 28px 0.65fr 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 11px 15px;
}

.comparison-head {
  color: var(--muted);
  background: #f2f6f4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-row {
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
}

.comparison-row em {
  color: var(--green-650);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.download-button {
  min-width: 220px;
}

.feedback-stage {
  padding: 30px;
  text-align: center;
  background: var(--green-50);
  border-radius: var(--radius);
}

.feedback-stage h2 {
  margin-bottom: 17px;
  font-size: 1.25rem;
}

.feedback-buttons {
  display: flex;
  gap: 9px;
  justify-content: center;
}

.secondary-button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--green-950);
  background: white;
  border: 1px solid #b8cdc6;
}

.secondary-button.selected {
  color: white;
  background: var(--green-800);
}

.feedback-form {
  max-width: 580px;
  margin: 22px auto 0;
  text-align: left;
}

.feedback-form textarea {
  padding: 11px 12px;
  resize: vertical;
}

.feedback-form .secondary-button {
  margin-top: 8px;
}

.form-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.feedback-privacy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.faq {
  max-width: 850px;
  margin-bottom: 110px;
}

.faq > h2 {
  margin: 8px 0 28px;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.faq details {
  border-top: 1px solid #cfdad6;
}

.faq details:last-child {
  border-bottom: 1px solid #cfdad6;
}

.faq summary {
  padding: 20px 34px 20px 0;
  position: relative;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  color: var(--green-650);
  font-size: 1.35rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 760px;
  padding: 0 38px 20px 0;
  color: var(--muted);
}

.site-footer {
  padding: 45px 0;
  color: #dce9e5;
  background: var(--green-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 36px;
}

.footer-grid strong {
  color: white;
}

.footer-grid p {
  max-width: 520px;
  margin: 7px 0 0;
  color: #aec6bf;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-links a {
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .scan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .shell,
  .site-header {
    width: min(100% - 24px, 1100px);
  }

  .site-header {
    min-height: 65px;
  }

  .hero {
    padding: 52px 0 40px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .privacy-promise {
    align-items: flex-start;
  }

  .tool {
    margin-bottom: 78px;
    padding: 20px 14px;
    border-radius: 19px;
  }

  .drop-zone {
    min-height: 210px;
    padding: 24px 14px;
  }

  .scan-grid {
    grid-template-columns: 1fr;
  }

  .scan-card {
    min-height: 128px;
  }

  .tool-stage {
    padding: 34px 0;
  }

  .option-group {
    padding: 15px;
  }

  .comparison {
    border: 0;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr auto 18px auto;
    padding: 12px 5px;
  }

  .comparison-row em {
    grid-column: 1 / -1;
  }

  .feedback-stage {
    padding: 26px 15px;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
