@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/outfit-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/work-sans-v24-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #102f41;
  --ink-soft: #486574;
  --sky: #0877ad;
  --sky-dark: #086391;
  --sky-pale: #e9f7fd;
  --orange: #e85d0b;
  --orange-dark: #be4300;
  --paper: #ffffff;
  --wash: #f7fbfe;
  --line: #cfe0e8;
  --success: #08795f;
  --danger: #b42318;
  --warning: #875b00;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(24, 74, 99, 0.12);
  color-scheme: light;
  font-family: "Work Sans", 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(--wash);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
button, input { font: inherit; }
button, summary, .drop-zone, .option-card, .mode-switch label { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(8, 119, 173, 0.38);
  outline-offset: 3px;
}

.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;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 { margin-bottom: 22px; font-size: clamp(2.45rem, 6vw, 4.6rem); }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
h3 { margin-bottom: 10px; font-size: 1.22rem; }

.site-header {
  border-bottom: 1px solid rgba(207, 224, 232, 0.78);
  background: rgba(247, 251, 254, 0.92);
}
.header-inner, footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: var(--sky);
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.1);
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
  content: "";
  position: absolute;
  left: 8px;
  height: 3px;
  border-radius: 3px;
  background: white;
}
.brand-mark::before { top: 8px; width: 16px; }
.brand-mark span { top: 14px; width: 12px; }
.brand-mark::after { top: 20px; width: 8px; }
.privacy-pill, .local-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}
.privacy-pill {
  padding: 7px 11px;
  border: 1px solid #b8dfd3;
  border-radius: 999px;
  background: #f1fbf7;
}
.privacy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(8, 121, 95, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: start;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: -190px;
  right: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
}
.hero-copy { padding-top: 52px; }
.eyebrow, .step-label {
  margin-bottom: 12px;
  color: var(--sky-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.13rem;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list li span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--success);
  border-radius: 50%;
  position: relative;
}
.trust-list li span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 6px;
  height: 3px;
  border: solid var(--success);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.tool-shell {
  min-height: 440px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.tool-heading, .processing-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.tool-heading h2, .processing-topline h3 { margin: 0; font-size: 1.55rem; }
.local-badge { margin-top: 3px; white-space: nowrap; }
.local-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}
.notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.notice-warning { border: 1px solid #efd395; background: #fff9e8; color: var(--warning); }
.notice strong { display: block; }

.drop-zone {
  display: flex;
  min-height: 258px;
  padding: 34px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed #a7cedf;
  border-radius: var(--radius-md);
  background: #f8fcfe;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.drop-zone:hover, .drop-zone:focus-within, .drop-zone.is-dragging {
  border-color: var(--sky);
  background: var(--sky-pale);
  box-shadow: inset 0 0 0 1px rgba(11, 131, 190, 0.12);
}
.upload-mark {
  position: relative;
  width: 54px;
  height: 43px;
  margin-bottom: 18px;
  border: 2px solid var(--sky);
  border-radius: 9px;
  background: white;
}
.upload-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 10px;
  height: 10px;
  border: solid var(--sky);
  border-width: 2px 0 0 2px;
  transform: translateX(-50%) rotate(45deg);
}
.upload-mark span {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 2px;
  height: 18px;
  background: var(--sky);
  transform: translateX(-50%);
}
.drop-title { font-family: "Outfit", system-ui, sans-serif; font-size: 1.14rem; font-weight: 700; }
.drop-divider { margin: 5px 0; color: #77909c; font-size: 0.84rem; }
.select-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 19px;
  border: 1px solid var(--sky);
  border-radius: 9px;
  background: white;
  color: var(--sky-dark);
  font-weight: 700;
}
.drop-help { margin-top: 14px; color: var(--ink-soft); font-size: 0.79rem; }

.file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fcfe;
}
.file-mark {
  position: relative;
  width: 36px;
  height: 42px;
  border: 2px solid var(--sky);
  border-radius: 6px;
  background: white;
}
.file-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  border-width: 6px 0 6px 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--sky);
}
.file-copy { min-width: 0; display: flex; flex-direction: column; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy span { color: var(--ink-soft); font-size: 0.84rem; }
.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--sky-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(8, 99, 145, 0.35);
  text-underline-offset: 4px;
}
.text-button:hover { color: var(--ink); }

.settings { margin-top: 26px; }
.section-heading { margin-bottom: 18px; }
.section-heading h3 { font-size: 1.35rem; }
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf5f8;
}
.mode-switch label { position: relative; }
.mode-switch input { position: absolute; opacity: 0; }
.mode-switch span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.mode-switch input:checked + span {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 77, 100, 0.12);
}
.mode-switch input:focus-visible + span, .option-card input:focus-visible + span { outline: 3px solid rgba(11, 131, 190, 0.34); outline-offset: 2px; }
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.option-grid legend { grid-column: 1 / -1; margin-bottom: 9px; font-weight: 700; }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; }
.option-card > span {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.option-card:hover > span { border-color: #86bdd5; }
.option-card input:checked + span { border-color: var(--sky); background: var(--sky-pale); box-shadow: inset 0 0 0 1px var(--sky); }
.option-card small { color: var(--ink-soft); font-size: 0.72rem; line-height: 1.3; }
.quality-grid { grid-template-columns: repeat(3, 1fr); }
.custom-size {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f5fafc;
  font-weight: 600;
}
.input-suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.input-suffix input { width: 105px; min-height: 44px; padding: 8px 10px; border: 0; color: var(--ink); }
.input-suffix span { padding-right: 11px; color: var(--ink-soft); font-size: 0.86rem; }
.field-error { margin-bottom: 12px; color: var(--danger); font-weight: 600; }

.primary-button, .secondary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.primary-button { width: 100%; border: 1px solid var(--orange); background: var(--orange); color: white; box-shadow: 0 8px 18px rgba(232, 93, 11, 0.2); }
.primary-button:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-arrow { font-size: 1.3rem; line-height: 1; }
.secondary-button { border: 1px solid var(--sky); background: white; color: var(--sky-dark); }
.secondary-button:hover { background: var(--sky-pale); }
.resource-note { margin: 11px 0 0; color: var(--ink-soft); font-size: 0.78rem; text-align: center; }

.processing-panel, .result-panel, .error-panel { padding: 10px 0 2px; }
.drop-zone:not([hidden]),
.file-card:not([hidden]),
.settings:not([hidden]),
.option-grid:not([hidden]),
.custom-size:not([hidden]),
.notice:not([hidden]),
.processing-panel:not([hidden]),
.result-panel:not([hidden]),
.error-panel:not([hidden]) { animation: panel-reveal 180ms ease both; }
@keyframes panel-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.processing-topline strong { color: var(--sky-dark); font-family: "Outfit", system-ui, sans-serif; font-size: 1.5rem; }
.progress-track { height: 12px; overflow: hidden; border-radius: 99px; background: #dfebf0; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), #43bdd9); transition: width 180ms ease; }
.processing-status { min-height: 26px; margin: 13px 0 18px; color: var(--ink-soft); }
.processing-panel .secondary-button { width: 100%; }

.result-panel { text-align: center; }
.success-mark, .info-mark, .error-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 50%;
}
.success-mark { position: relative; background: #e4f6ef; }
.success-mark span { width: 24px; height: 12px; border: solid var(--success); border-width: 0 0 3px 3px; transform: translateY(-3px) rotate(-45deg); }
.info-mark { background: var(--sky-pale); color: var(--sky-dark); font-family: Georgia, serif; font-weight: 700; }
.error-mark { background: #fceae8; color: var(--danger); font-weight: 800; }
.result-panel h3 { font-size: 1.72rem; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.result-stats div { padding: 14px 8px; border-right: 1px solid var(--line); background: #f8fcfe; }
.result-stats div:last-child { border-right: 0; }
.result-stats span, .result-stats strong { display: block; }
.result-stats span { color: var(--ink-soft); font-size: 0.74rem; }
.result-stats strong { font-family: "Outfit", system-ui, sans-serif; font-size: 1rem; }
.download-mark { position: relative; width: 18px; height: 18px; border-bottom: 2px solid white; }
.download-mark::before { content: ""; position: absolute; left: 8px; top: 1px; width: 2px; height: 10px; background: white; }
.download-mark::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.another-button { margin-top: 12px; }
.skipped-panel p:not(.step-label) { max-width: 440px; margin: 0 auto 22px; color: var(--ink-soft); }
.error-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; text-align: left; }
.error-panel p:not(.step-label) { color: var(--ink-soft); }

.content-section, .privacy-section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}
.section-intro { max-width: 660px; margin-bottom: 46px; }
.section-intro > p:last-child, .choice-copy > p, .privacy-section > div > p, .limits-grid p, .steps-grid p { color: var(--ink-soft); }
.steps-section { border-top: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps-grid li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.steps-grid li > span { display: inline-block; margin-bottom: 34px; color: var(--sky); font-family: "Outfit", system-ui, sans-serif; font-size: 0.83rem; font-weight: 700; }
.steps-grid p { margin-bottom: 0; }

.choice-section { display: grid; grid-template-columns: 1fr 0.95fr; gap: 80px; align-items: center; }
.choice-copy p { margin-bottom: 16px; }
.choice-copy strong { color: var(--ink); }
.choice-visual { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #e8f5fa; transform: rotate(1.5deg); }
.choice-visual div { display: grid; padding: 24px; border: 1px solid #c2dde8; border-radius: 13px; background: white; transform: rotate(-1.5deg); }
.choice-visual span, .choice-visual small { color: var(--ink-soft); }
.choice-visual strong { margin: 5px 0 3px; font-family: "Outfit", system-ui, sans-serif; font-size: 1.45rem; }

.privacy-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.privacy-visual { position: relative; min-height: 310px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: var(--radius-lg); background: #e6f6f0; }
.device-shape { position: relative; width: 170px; height: 112px; display: flex; align-items: center; justify-content: center; border: 5px solid var(--success); border-radius: 13px; background: white; box-shadow: 0 18px 30px rgba(8, 121, 95, 0.12); }
.device-shape::after { content: ""; position: absolute; left: 50%; bottom: -23px; width: 76px; height: 5px; border-radius: 4px; background: var(--success); transform: translateX(-50%); }
.file-shape { width: 44px; height: 54px; border: 3px solid var(--success); border-radius: 6px; }
.file-shape::after { content: ""; display: block; width: 21px; height: 3px; margin: 14px auto 0; background: var(--success); box-shadow: 0 8px 0 var(--success), 0 16px 0 var(--success); opacity: 0.62; }
.local-line { width: 2px; height: 25px; margin-top: 24px; background: var(--success); }
.device-label { color: var(--success); font-size: 0.82rem; font-weight: 700; }

.limits-section { border-top: 1px solid var(--line); }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.limits-grid article { padding-top: 22px; border-top: 3px solid var(--sky); }
.faq-section { padding-top: 70px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 48px 22px 0; font-family: "Outfit", system-ui, sans-serif; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 18px; color: var(--sky); font-family: "Work Sans", sans-serif; font-size: 1.6rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 740px; padding: 0 40px 22px 0; color: var(--ink-soft); }

footer { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-brand { color: var(--ink); }
footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 50px; max-width: 750px; }
  .hero-copy { max-width: 680px; padding-top: 0; text-align: center; margin: 0 auto; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .trust-list { justify-content: center; }
  .choice-section, .privacy-section { gap: 48px; }
  .steps-grid, .limits-grid { gap: 16px; }
}

@media (max-width: 720px) {
  .header-inner, footer, .hero, .content-section, .privacy-section { width: min(100% - 28px, 620px); }
  .site-header .privacy-pill { border: 0; padding: 0; background: transparent; }
  .site-header .privacy-pill { font-size: 0; }
  .site-header .privacy-pill::after { content: "Local processing"; font-size: 0.78rem; }
  .hero { padding: 54px 0 70px; }
  .hero-copy { text-align: left; }
  .trust-list { justify-content: flex-start; }
  .tool-shell { padding: 22px 17px; border-radius: 18px; }
  .tool-heading { display: block; }
  .local-badge { margin-top: 8px; }
  .drop-zone { min-height: 235px; padding: 26px 16px; }
  .option-grid, .quality-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .result-stats div:nth-child(2) { border-right: 0; }
  .result-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid, .choice-section, .privacy-section, .limits-grid { grid-template-columns: 1fr; }
  .content-section, .privacy-section { padding: 72px 0; }
  .choice-visual { margin-top: 8px; }
  .privacy-visual { min-height: 275px; order: 2; }
  footer { padding: 28px 0; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  h1 { font-size: 2.45rem; }
  .brand { font-size: 0.94rem; }
  .header-inner { min-height: 66px; }
  .site-header .privacy-pill::after { content: "Local"; }
  .trust-list { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-heading h2 { font-size: 1.4rem; }
  .option-card > span { min-height: 78px; }
  .custom-size { grid-template-columns: 1fr; }
  .input-suffix input { width: 100%; }
  .result-stats strong { font-size: 0.9rem; }
}

@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; }
}
