/* ConvertLocal — local file conversion, no uploads. */

:root {
  --bg: #f8fafc;
  --bg-deep: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #475569;
  --muted-light: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-tint: #dbeafe;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -26px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 24px 70px -30px rgba(15, 23, 42, 0.4);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% -4%, rgba(37, 99, 235, 0.08), transparent 38%),
    radial-gradient(circle at 96% 4%, rgba(15, 23, 42, 0.03), transparent 32%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; }

::selection { background: #bfdbfe; color: var(--ink); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.75);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--white); border-color: var(--ink-soft); }

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-small { min-height: 44px; padding: 9px 16px; font-size: 0.9rem; }
.btn-large { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.is-busy .btn-arrow { animation: spin 1s linear infinite; }
.btn.is-busy { pointer-events: none; }

.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.35);
  text-underline-offset: 3px;
}
.text-btn:hover { background: var(--brand-tint); text-decoration-color: currentColor; }
.text-btn.danger-text { color: var(--danger); text-decoration-color: rgba(180, 35, 24, 0.3); justify-content: flex-start; }
.text-btn.danger-text:hover { background: var(--danger-soft); }

.footer-btn {
  padding: 10px 2px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-btn:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.8);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-name span { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.usage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.usage-chip.is-pro { border-color: #bfdbfe; background: var(--brand-soft); color: var(--brand-dark); }
.usage-chip.is-pro .usage-dot { background: var(--brand-dark); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 60px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: pulse 2.6s ease-out infinite;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
h1 .hl {
  display: block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 0.66em;
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 700;
  background-image: linear-gradient(transparent 74%, rgba(217, 119, 6, 0.22) 74%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: fit-content;
}

.hero-sub {
  max-width: 56ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.62;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 9px;
  margin-top: 30px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.trust-list .icon { width: 16px; height: 16px; color: var(--brand); }

/* Receipt */

.receipt {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  padding: 26px 26px 22px;
  background:
    linear-gradient(180deg, #fffefb, #fbf8ef);
  border: 1px solid #d9d5c8;
  border-radius: 6px;
  box-shadow: 0 26px 60px -34px rgba(42, 48, 38, 0.5), 0 2px 0 rgba(255, 255, 255, 0.7) inset;
  transform: rotate(1.4deg);
}
.receipt::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed #cfc9b8;
  border-radius: 3px;
  pointer-events: none;
}
.receipt > * { position: relative; z-index: 1; }
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cfc9b8;
  color: #6a685d;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.receipt-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 0 18px;
  border-bottom: 1px dashed #cfc9b8;
}
.receipt-zero {
  font-family: var(--mono);
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.receipt-caption {
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.receipt-rows { padding: 14px 0 8px; border-bottom: 1px dashed #cfc9b8; }
.receipt-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 0.88rem;
}
.receipt-rows dt { color: #757267; }
.receipt-rows dd { margin: 0; font-weight: 650; text-align: right; }
.receipt-stamp {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin: 12px 4px 0 auto;
  padding: 6px 9px;
  border: 2px solid rgba(37, 99, 235, 0.55);
  border-radius: 4px;
  color: rgba(29, 78, 216, 0.75);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-8deg);
}
.receipt-stamp .icon { width: 14px; height: 14px; }
.receipt-foot {
  padding-top: 16px;
  color: #6a685d;
  font-size: 0.76rem;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */

.section-intro { max-width: 720px; margin-bottom: 26px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro.centered .eyebrow { justify-content: center; }
.section-intro h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 730;
  text-wrap: balance;
}
.section-sub {
  max-width: 58ch;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.converter-section { padding: clamp(26px, 4vw, 40px) 0 12px; }

/* Tool tabs */

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tool-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.tool-tab:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }
.tool-tab.is-active {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}
.tool-icon .icon { width: 23px; height: 23px; }
.tool-tab.is-active .tool-icon { background: var(--brand-soft); color: var(--brand-dark); }
.tool-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.tool-text strong { font-size: 0.93rem; letter-spacing: -0.01em; }
.tool-text small { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.tool-go { margin-left: auto; color: var(--muted-light); }
.tool-tab.is-active .tool-go { color: var(--brand); }

/* Converter panel */

.converter-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.panel-kicker {
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel-title-wrap h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.panel-title-wrap > p:last-child {
  max-width: 62ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meter {
  width: 236px;
  flex: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.meter-top span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.meter-count { color: var(--brand-dark); white-space: nowrap; }
.meter-track {
  height: 7px;
  margin: 9px 0 7px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #60a5fa);
  transition: width 0.4s ease;
}
.meter-fill.is-low { background: linear-gradient(90deg, #c98218, var(--amber)); }
.meter-hint { color: var(--muted-light); font-size: 0.68rem; line-height: 1.4; }
.meter.is-pro { border-color: #bfdbfe; background: var(--brand-tint); }
.meter.is-pro .meter-fill { background: var(--brand); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  grid-template-areas:
    "main options"
    "actions options";
  gap: 18px 22px;
  padding-top: 22px;
  align-items: start;
}

.workspace-main { min-width: 0; grid-area: main; }
.options-card { grid-area: options; }
.convert-box { grid-area: actions; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 208px;
  padding: 40px 24px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--surface-soft);
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background-color: var(--brand-tint); }
.dropzone.is-dragging {
  border-color: var(--brand);
  background-color: var(--brand-tint);
  transform: scale(1.005);
}
.dropzone.is-busy { opacity: 0.6; pointer-events: none; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 3px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.drop-icon .icon { width: 25px; height: 25px; }
.dropzone strong { font-size: 1.05rem; letter-spacing: -0.015em; }
.drop-browse { color: var(--muted); font-size: 0.9rem; }
.drop-browse u { color: var(--brand-dark); font-weight: 650; text-underline-offset: 3px; }
.drop-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 600;
}
.drop-note .icon { width: 13px; height: 13px; }

.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
}
.file-toolbar .text-btn { font-size: 0.78rem; }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  animation: slide-in 0.2s ease both;
}
.file-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .icon { width: 22px; height: 22px; }
.file-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.file-info strong {
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info .file-warn { color: var(--amber); }
.file-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease;
}
.icon-btn:hover { background: var(--surface-soft); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn[disabled] { opacity: 0.28; cursor: default; background: transparent; }
.icon-btn .icon { width: 18px; height: 18px; }

.mini-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.result-file-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}
.result-file-fallback .icon { width: 34px; height: 34px; color: var(--brand-dark); }

.btn.is-pro-locked { background: var(--ink-soft); border-color: var(--ink-soft); }

.empty-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.empty-hint .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--brand); }

/* Options */

.options-card {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.convert-box {
  padding: 2px 2px 0;
}
.options-card h3 {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.option-group { margin-bottom: 16px; }
.option-group:last-of-type { margin-bottom: 18px; }

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.option-label .badge-pro { margin-left: auto; }

.option-note {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 0.7rem;
  line-height: 1.45;
}

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.84rem;
  appearance: none;
  cursor: pointer;
}
.select-wrap .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg-deep);
}
.segmented.two { grid-auto-columns: 1fr; }
.seg-option { position: relative; display: block; }
.seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.seg-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.seg-option input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.seg-option input:focus-visible + span { outline: 2px solid rgba(37, 99, 235, 0.45); outline-offset: 1px; }

.choice-stack { display: flex; flex-direction: column; gap: 7px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.choice-body strong { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 650; }
.choice-body small { color: var(--muted); font-size: 0.68rem; }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand); }
.choice input:focus-visible + .choice-body { outline: 2px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }

.badge-pro, .badge-free {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-pro { background: var(--ink); color: #fde68a; }
.badge-free { background: var(--brand-soft); color: var(--brand-dark); }

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.84rem;
}
.input::placeholder { color: var(--muted-light); }
.input.has-error { border-color: var(--danger); background: var(--danger-soft); }

.option-static {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
}
.option-static .icon { width: 16px; height: 16px; color: var(--brand); }

.btn-convert {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.btn-convert .btn-arrow { width: 18px; height: 18px; }
.btn-convert.is-busy .btn-arrow { display: none; }
.btn-convert.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.gate-hint {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}
.gate-hint.is-upsell { color: #b45309; }
.gate-hint.is-error { color: var(--danger); }

.privacy-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
  font-size: 0.68rem;
}
.privacy-mini .icon { width: 13px; height: 13px; }

/* Results */

.results {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg), var(--surface));
  box-shadow: var(--shadow-sm);
  animation: slide-in 0.25s ease both;
}
.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.results-title-wrap h2 { font-size: 1.45rem; letter-spacing: -0.025em; }
.results-title-wrap p:last-child { margin-top: 3px; color: var(--muted); font-size: 0.84rem; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.result-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.result-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-color: #eef2f7;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  cursor: zoom-in;
}
.result-thumb img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
}
.result-thumb .result-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.result-thumb:hover .result-zoom, .result-thumb:focus-visible .result-zoom { opacity: 1; }
.result-thumb .result-zoom .icon { width: 16px; height: 16px; }
.result-body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 11px 12px 12px; }
.result-body strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-meta { color: var(--muted); font-size: 0.7rem; }
.result-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.result-actions .btn { flex: 1; min-height: 44px; font-size: 0.78rem; padding: 8px 10px; }
.result-actions .text-btn { flex: none; font-size: 0.74rem; }

/* Steps */

.steps-section { padding: clamp(56px, 8vw, 92px) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}
.step-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.step-card h3 { margin-bottom: 6px; font-size: 1.03rem; letter-spacing: -0.015em; }
.step-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

/* Pricing */

.pricing-section { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(241, 245, 249, 0.6); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 34px auto 0;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.price-card-pro {
  position: relative;
  border-color: var(--ink-soft);
  background: linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: var(--surface);
  box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.75);
}
.pro-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 119, 6, 0.55);
  border-radius: 999px;
  color: #fde68a;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.price-card-pro .plan-tag { color: #93c5fd; }
.price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price span { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 740; letter-spacing: -0.05em; line-height: 1; }
.price small { color: var(--muted); font-size: 0.78rem; }
.price-card-pro .price small { color: #94a3b8; }
.plan-desc { min-height: 48px; margin-top: 10px; color: var(--muted); font-size: 0.86rem; }
.price-card-pro .plan-desc { color: #cbd5e1; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; line-height: 1.4; }
.feature-list .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--brand); }
.price-card-pro .feature-list .icon { color: #60a5fa; }
.feature-list.compact { margin: 16px 0; }
.price-card .btn { margin-top: auto; }
.price-card-pro .btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: none; }
.price-card-pro .btn-primary:hover { background: #b45309; border-color: #b45309; color: var(--white); }
.price-foot { margin-top: 9px; color: #94a3b8; font-size: 0.66rem; text-align: center; }
.pricing-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}
.pricing-note .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; }

/* FAQ */

.faq-section { padding: clamp(56px, 8vw, 96px) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 14px 2px;
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 36px 18px 2px; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

/* Footer */

.site-footer { padding: 40px 0 34px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; align-items: start; }
.footer-brand p { max-width: 34ch; margin-top: 8px; color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a, .footer-links .footer-btn {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { color: var(--muted-light); font-size: 0.7rem; line-height: 1.6; text-align: right; }

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  animation: fade-in 0.16s ease both;
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease both;
  overscroll-behavior: contain;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.modal-close:hover { background: var(--surface-soft); color: var(--ink); }
.modal-card h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -0.035em; }
.modal-lead { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.paywall-view .eyebrow { margin-bottom: 8px; }
.paywall-view h2 { padding-right: 42px; }
.paywall-lead { margin-top: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.paywall-context {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #b45309;
  font-size: 0.78rem;
  line-height: 1.5;
}
.paywall-features { margin: 20px 0 18px; }
.paywall-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.paywall-price-row div { display: flex; align-items: baseline; gap: 8px; }
.paywall-price-row strong { font-size: 2rem; letter-spacing: -0.04em; }
.paywall-price-row span { color: var(--muted); font-size: 0.76rem; }
.paywall-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paywall-later { display: flex; margin: 4px auto 0; }
.fine-print {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}
.fine-print .icon { width: 13px; height: 13px; margin-top: 1px; flex: none; }

/* Checkout */

.order-summary {
  margin: 16px 0 18px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 0.82rem;
}
.order-summary > div { display: flex; justify-content: space-between; gap: 14px; }
.order-summary .order-total { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-strong); }
.order-total strong { font-size: 0.95rem; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 650; }
.field > span em { color: var(--muted-light); font-style: normal; font-weight: 400; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.88rem;
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.field-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 10px; }
.form-error {
  margin: 2px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.76rem;
}
#backToOffer { display: flex; margin: 8px auto 0; }

/* Success */

.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  animation: pop-in 0.3s ease both;
}
.success-icon .icon { width: 28px; height: 28px; stroke-width: 2.3; }
.license-key-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
}
.license-key-box > span { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.license-key-box code {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.license-key-box .text-btn { align-self: flex-start; margin-top: 2px; font-size: 0.72rem; }
.license-reset { color: var(--muted-light); font-size: 0.68rem; }

/* License modal */

.license-status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: var(--amber-soft);
}
.status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}
.license-status > div { display: flex; flex-direction: column; min-width: 0; }
.license-status strong { font-size: 0.86rem; color: #92400e; }
.license-status span:not(.status-dot):not(.license-badge) { color: #b45309; font-size: 0.7rem; }
.license-badge { margin-left: auto; padding: 3px 8px; border-radius: 99px; background: var(--amber); color: var(--white); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; }
.license-free-view h3 { font-size: 0.92rem; }
.restore-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.restore-block h3 { margin-bottom: 4px; font-size: 0.92rem; letter-spacing: -0.01em; }
.restore-block > p { margin-bottom: 12px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
#licenseFreeView > .modal-lead { margin-bottom: 14px; }

/* Preview */

.preview-modal { padding: 16px; }
.preview-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: 94vh;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease both;
}
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 4px; }
.preview-head h2 { overflow-wrap: anywhere; font-size: 1.15rem; }
.preview-head p:last-child { margin-top: 3px; color: var(--muted); font-size: 0.75rem; }
.preview-head .eyebrow { margin-bottom: 4px; }
.preview-stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 16px 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #eef2f7;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.preview-stage img { max-width: 100%; max-height: 68vh; object-fit: contain; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.5); }
.preview-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  max-width: min(460px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 0.22s ease both;
}
.toast.is-error { background: var(--danger); }
.toast.is-success { background: var(--brand-dark); }

/* ---------- Animations ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop-in { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .receipt { justify-self: start; width: min(100%, 430px); transform: rotate(0.8deg); }
  h1 { max-width: 18ch; }
  .workspace { grid-template-columns: minmax(0, 1fr) 290px; }
  .tool-tab { padding: 12px; gap: 9px; }
  .tool-text small { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 64px; }
  .usage-chip { display: none; }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "options" "actions";
    gap: 16px;
  }
  .options-card { padding: 16px; }
  .panel-head { flex-direction: column; gap: 16px; }
  .meter { width: 100%; }
  .tool-tabs { grid-template-columns: 1fr; gap: 8px; }
  .tool-tab { min-height: 64px; }
  .tool-text small { display: block; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .results-head { flex-direction: column; gap: 12px; }
  .results-actions { width: 100%; }
  .results-actions .btn { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .btn-buy { padding: 9px 13px; font-size: 0.8rem; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .hero { padding-top: 36px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.9rem); }
  h1 .hl { font-size: 0.7em; }
  .hero-cta .btn { width: 100%; }
  .trust-list li { font-size: 0.76rem; }
  .receipt { padding: 22px 20px 18px; }
  .converter-panel { border-radius: 20px; }
  .dropzone { min-height: 180px; }
  .panel-head { padding-bottom: 18px; }
  .seg-option span { font-size: 0.72rem; padding: 4px; }
  .file-item { gap: 8px; padding: 7px; }
  .file-thumb { width: 44px; height: 44px; }
  .file-actions { gap: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .result-thumb { aspect-ratio: 16 / 10; }
  .modal { padding: 10px; }
  .modal-card { padding: 22px 18px; border-radius: 18px; max-height: 94vh; }
  .modal-close { top: 8px; right: 8px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .preview-card { padding: 14px; border-radius: 16px; }
  .preview-stage { margin: 10px 0; }
  .preview-actions .btn { flex: 1; }
  .toast { bottom: 14px; border-radius: 14px; }
}

@media (max-width: 430px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 44px; padding: 8px 11px; font-size: 0.78rem; }
  .brand { font-size: 0.98rem; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.98rem; }
  .btn-license { display: none; }
  .btn-buy { font-size: 0.74rem; padding: 8px 10px; }
  .header-actions { gap: 6px; }
  .receipt-zero { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
