:root {
  --ink: #171715;
  --paper: #f4f1e9;
  --surface: #fff;
  --muted: #69665f;
  --line: #d9d5ca;
  --accent: #e5482d;
  --accent-dark: #c83821;
  --success: #126b43;
  --danger: #a93226;
  --max-width: 1200px;
  --shadow: 0 24px 70px rgba(30, 28, 23, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 16px; padding: 12px 16px;
  background: var(--ink); color: white; transform: translateY(-150%); transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

.site-header {
  width: min(var(--max-width), calc(100% - 64px)); height: 80px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 730; text-decoration: none; letter-spacing: -0.02em; }
.wordmark-mark {
  display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--ink);
  font-size: 14px; font-weight: 800; border-radius: 7px;
}
nav { display: flex; gap: 32px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--ink); }

.hero {
  width: min(var(--max-width), calc(100% - 64px)); margin: 0 auto; padding: 88px 0 96px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr); gap: 88px; align-items: start;
}
.hero-copy { padding-top: 38px; position: sticky; top: 30px; }
.eyebrow, .step-label {
  margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 650px; font-size: clamp(3.4rem, 6.2vw, 6.4rem); line-height: 0.91;
  letter-spacing: -0.075em; font-weight: 760;
}
.hero-lead { max-width: 525px; margin: 36px 0 28px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.trust-inline { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 13px; font-weight: 650; }
.trust-inline span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inline i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }

.tool-card { position: relative; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tool-heading, .field-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.tool-heading h2 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.step-label { margin-bottom: 7px; font-size: 10px; }
.local-badge { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--success); border: 1px solid #bfdbce; border-radius: 8px; font-size: 12px; font-weight: 750; }
.local-badge svg { width: 15px; height: 15px; }

.drop-zone {
  min-height: 245px; margin-top: 25px; padding: 36px 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; cursor: pointer; border: 1.5px dashed #b9b5ab;
  border-radius: 13px; background: #fbfaf7; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.drop-zone[hidden], .selected-file[hidden] { display: none; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: #fff6f2; transform: translateY(-2px); }
.drop-zone:focus-within { outline: 3px solid rgba(229, 72, 45, 0.28); outline-offset: 3px; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; background: var(--ink); color: white; border-radius: 12px; }
.upload-icon svg { width: 23px; height: 23px; }
.drop-title { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.drop-description { margin-top: 5px; color: var(--muted); font-size: 13px; }
.file-rules { margin-top: 18px; color: #8d8981; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.selected-file { margin-top: 25px; padding: 12px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 15px; align-items: center; background: #f6f4ee; border: 1px solid var(--line); border-radius: 12px; }
.selected-file img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; background: #ddd; }
.file-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-meta span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.text-button { min-width: 48px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font-size: 13px; font-weight: 750; }

.target-group { margin-top: 28px; padding-top: 27px; border-top: 1px solid var(--line); }
.field-heading label { font-size: 16px; font-weight: 750; }
.target-readout { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.target-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.target-options label { cursor: pointer; }
.target-options input { position: absolute; opacity: 0; pointer-events: none; }
.target-options span { min-height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 700; transition: 140ms ease; }
.target-options input:hover + span { border-color: #9e9a91; }
.target-options input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }
.target-options input:focus-visible + span { outline: 3px solid rgba(229, 72, 45, 0.3); outline-offset: 2px; }
.custom-target { margin-top: 14px; }
.custom-target > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.input-with-unit { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; }
.input-with-unit:focus-within { outline: 3px solid rgba(229, 72, 45, 0.24); border-color: var(--accent); }
.input-with-unit input { min-width: 0; width: 100%; height: 46px; padding: 0 13px; border: 0; outline: 0; background: transparent; }
.input-with-unit span { padding-right: 13px; color: var(--muted); font-size: 12px; font-weight: 750; }

.primary-button, .download-button, .secondary-button {
  min-height: 54px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; border-radius: 10px; font-weight: 760; text-decoration: none; cursor: pointer; transition: transform 140ms ease, background 140ms ease;
}
.primary-button { margin-top: 22px; color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary-button svg, .download-button svg { width: 20px; height: 20px; }
.primary-button:not(:disabled):hover, .download-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { color: #9b9992; background: #e8e5de; border-color: #e8e5de; cursor: not-allowed; }
.primary-button.is-loading svg { animation: slide 900ms ease-in-out infinite; }
.privacy-assurance { margin-top: 12px; text-align: center; }
.privacy-note { margin: 0; color: var(--muted); font-size: 11px; }
.privacy-details { margin-top: 6px; color: var(--muted); font-size: 11px; }
.privacy-details summary { display: inline-flex; cursor: pointer; color: var(--success); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary::after { content: "+"; margin-left: 5px; text-decoration: none; }
.privacy-details[open] summary::after { content: "−"; }
.privacy-details p { max-width: 440px; margin: 8px auto 0; padding: 10px 12px; color: var(--muted); background: #f7f5ef; border-radius: 8px; line-height: 1.5; }
.form-error { margin: 16px 0 -8px; padding: 10px 12px; color: var(--danger); background: #fff0ed; border-left: 3px solid var(--danger); font-size: 13px; }

.result-panel { position: absolute; z-index: 5; inset: 0; padding: 32px; background: var(--ink); color: white; border-radius: 17px; display: flex; flex-direction: column; }
.result-panel[hidden] { display: none; }
.result-panel:focus { outline: 4px solid rgba(229, 72, 45, 0.35); outline-offset: 4px; }
.result-topline { display: flex; align-items: center; justify-content: space-between; }
.result-status { margin: 0; display: flex; align-items: center; gap: 8px; color: #a8e1c1; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; }
.result-status span { display: grid; place-items: center; width: 21px; height: 21px; color: var(--ink); background: #82d6a5; border-radius: 50%; }
.icon-button { width: 44px; height: 44px; border: 0; color: white; background: transparent; cursor: pointer; font-size: 28px; }
.result-body { flex: 1; padding: 42px 0 30px; display: flex; flex-direction: column; justify-content: space-between; }
.result-body .step-label { color: #f07660; }
.result-body h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.7rem); line-height: 0.95; letter-spacing: -0.065em; }
.result-body p:not(.step-label) { max-width: 400px; color: #aaa9a4; }
.size-comparison { margin-top: 42px; padding: 20px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid #3d3d39; border-bottom: 1px solid #3d3d39; }
.size-comparison div { display: flex; flex-direction: column; }
.size-comparison div:last-child { text-align: right; }
.size-comparison span:not(.size-arrow) { color: #91918c; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; }
.size-comparison strong { margin-top: 3px; font-size: 24px; font-variant-numeric: tabular-nums; }
.size-arrow { color: #787872; }
.download-button { color: white; background: var(--accent); }
.result-local-note { margin: 9px 0 0; color: #a8e1c1; text-align: center; font-size: 11px; }
.result-local-note span { font-weight: 800; }
.result-support { margin-top: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; color: #d7d6d0; background: #242421; border: 1px solid #3d3d39; border-radius: 9px; }
.result-support div { min-width: 0; display: flex; flex-direction: column; }
.result-support strong { color: white; font-size: 12px; }
.result-support span { color: #aaa9a4; font-size: 10px; }
.result-support > a { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; color: white; border: 1px solid #62625c; border-radius: 8px; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.result-support > a:hover { background: #33332f; }
.result-support > a span { margin-left: 5px; color: inherit; }
.result-support small { grid-column: 1 / -1; color: #888882; font-size: 9px; }
.secondary-button { min-height: 48px; margin-top: 8px; color: #d0cfca; background: transparent; border: 1px solid #42423e; }
.secondary-button:hover { background: #292926; }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-strip > div { min-height: 128px; padding: 28px max(32px, calc((100vw - var(--max-width)) / 2)); display: flex; align-items: center; gap: 18px; }
.proof-strip > div:nth-child(2) { padding-left: 48px; padding-right: 48px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.proof-strip strong { color: var(--accent); font-size: 12px; }
.proof-strip span { font-size: 14px; font-weight: 700; line-height: 1.35; }

.content-section { width: min(var(--max-width), calc(100% - 64px)); margin: 0 auto; padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-intro { max-width: 710px; }
.section-intro h2, .privacy-statement h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.065em; }
.process-section { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 120px; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { padding: 26px 0; display: grid; grid-template-columns: 48px 1fr; gap: 22px; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.process-list h3 { margin: -3px 0 7px; font-size: 19px; letter-spacing: -0.025em; }
.process-list p { margin: 0; max-width: 460px; color: var(--muted); font-size: 14px; }

.case-grid { margin-top: 64px; border-top: 1px solid var(--ink); }
.case-grid a { min-height: 145px; display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 180ms ease, background 180ms ease; }
.case-grid a:hover { padding: 0 20px; background: rgba(255, 255, 255, 0.45); }
.case-number { color: var(--accent); font-size: 11px; font-weight: 800; }
.case-grid h3 { margin: 0 0 6px; font-size: 25px; letter-spacing: -0.035em; }
.case-grid p { margin: 0; color: var(--muted); }
.case-arrow { font-size: 28px; }

.privacy-section { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 110px; align-items: end; }
.privacy-statement > svg { width: 48px; height: 48px; margin-bottom: 42px; color: var(--accent); }
.privacy-statement > p:last-child { max-width: 660px; margin: 30px 0 0; color: var(--muted); font-size: 17px; }
.privacy-facts { border-top: 1px solid var(--ink); }
.privacy-facts div { padding: 20px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.privacy-facts span { color: var(--muted); font-size: 12px; }
.privacy-facts strong { font-size: 13px; }

.faq-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 74px; padding: 20px 42px 20px 0; display: flex; align-items: center; cursor: pointer; font-weight: 730; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -2px 44px 25px 0; color: var(--muted); font-size: 14px; }

footer { width: min(var(--max-width), calc(100% - 64px)); margin: 0 auto; padding: 48px 0; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; }
footer p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-support { margin-left: 5px; color: var(--ink); font-weight: 750; text-underline-offset: 3px; }
.copyright { text-align: right; }

:focus-visible { outline: 3px solid rgba(229, 72, 45, 0.4); outline-offset: 3px; }

@keyframes slide { 50% { transform: translateX(5px); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 65px; }
  .hero-copy { position: static; padding-top: 0; }
  .hero h1 { max-width: 780px; }
  .tool-card { max-width: 680px; }
  .process-section, .privacy-section, .faq-section { grid-template-columns: 1fr; gap: 64px; }
  .privacy-facts { max-width: 600px; }
}

@media (max-width: 700px) {
  .site-header, .hero, .content-section, footer { width: min(100% - 32px, var(--max-width)); }
  .site-header { height: 64px; }
  nav { gap: 18px; }
  nav a { font-size: 12px; }
  .hero { padding: 48px 0 64px; gap: 38px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
  .hero-lead { margin-top: 24px; font-size: 16px; }
  .trust-inline { flex-direction: column; gap: 9px; }
  .tool-card { margin: 0 -4px; padding: 20px; border-radius: 14px; }
  .drop-zone { min-height: 210px; padding: 28px 14px; }
  .target-options { grid-template-columns: repeat(2, 1fr); }
  .result-panel { padding: 22px; border-radius: 13px; }
  .result-body { padding: 24px 0 18px; }
  .result-body h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .size-comparison { margin-top: 24px; padding: 14px 0; }
  .result-support { grid-template-columns: 1fr; }
  .result-support > a { margin-top: 5px; }
  .result-support small { grid-column: 1; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { min-height: 92px; padding: 20px 16px; }
  .proof-strip > div:nth-child(2) { padding: 20px 16px; border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .content-section { padding: 80px 0; }
  .process-section, .privacy-section, .faq-section { gap: 48px; }
  .case-grid { margin-top: 42px; }
  .case-grid a { min-height: 130px; grid-template-columns: 34px 1fr auto; gap: 10px; }
  .case-grid h3 { font-size: 20px; }
  .case-grid p { font-size: 13px; }
  footer { padding: 40px 0; grid-template-columns: 1fr; gap: 16px; }
  .copyright { text-align: left; }
}

@media (max-width: 380px) {
  .site-header nav a:first-child { display: none; }
  .tool-card { padding: 16px; }
  .local-badge { padding: 6px 8px; }
  .selected-file { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .selected-file img { width: 56px; height: 56px; }
}

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