@font-face {
  font-family: "Geist";
  src: url("/static/vendor/geist/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --sunken: #f1f1f3;
  --text: #17171a;
  --muted: #5d5d66;
  --line: #e3e3e8;
  --accent: #d63c17;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee9;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --shadow: 0 1px 2px rgb(23 23 26 / .05), 0 8px 28px rgb(23 23 26 / .06);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1b1b1f;
    --sunken: #232328;
    --text: #ececef;
    --muted: #a2a2ad;
    --line: #2e2e35;
    --accent: #ff6a3d;
    --accent-ink: #1a0b06;
    --accent-soft: #3a1c13;
    --warn: #ffbf5e;
    --warn-soft: #33270f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 28px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.bar, main, .foot { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 19px; }
.free { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; }
.lede { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0 0 28px; }
.hero-art { margin: 0; justify-self: center; width: min(100%, 380px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s;
}
.btn i { font-size: 20px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--sunken); }
.btn-wide { width: 100%; }
.btn:focus-visible, .drop:focus-visible, .mode:has(input:focus-visible), .page-tab:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px;
}

/* before / after slider */
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: var(--ratio, 3 / 4); width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line); user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-size: 20px; box-shadow: 0 2px 10px rgb(0 0 0 / .2);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + .compare-knob, .compare:has(.compare-range:focus-visible) .compare-knob { outline: 3px solid var(--text); outline-offset: 2px; }
.compare-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.compare-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend i { font-size: 18px; }

/* tool */
.tool { padding: 8px 0 64px; scroll-margin-top: 16px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.mode {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.mode:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode:has(input:checked) { border-color: var(--accent); }
.mode-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--sunken); font-size: 30px; color: var(--muted); transition: color .2s, background-color .2s; }
.mode:has(input:checked) .mode-icon { background: var(--accent-soft); color: var(--accent); }
.mode:has(input:disabled) { cursor: default; }
.mode:has(input:disabled):not(:has(input:checked)):hover { border-color: var(--line); }
.mode:has(input:disabled):not(:has(input:checked)) { opacity: .5; }
.mode-text { display: grid; gap: 2px; }
.mode-text b { font-size: 17px; font-weight: 650; }
.mode-text small { font-size: 14px; color: var(--muted); line-height: 1.35; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.drop {
  display: grid; justify-items: center; gap: 6px; padding: 56px 24px; cursor: pointer; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--muted) 40%, var(--line));
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { font-size: 52px; color: var(--accent); margin-bottom: 6px; transition: transform .3s var(--ease); }
.drop.is-over .drop-icon { transform: translateY(-4px) scale(1.06); }
.drop-main { margin: 0; font-size: 19px; font-weight: 600; }
.drop-main u { text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.drop-hint { margin: 0; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* progress */
.work { padding: 32px 28px 28px; }
.work-file { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 26px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.work-file i { font-size: 18px; flex: none; }
.steps { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; }
.steps li { display: grid; justify-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.steps i {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 26px;
  background: var(--sunken); color: var(--muted); transition: background-color .3s, color .3s;
}
.steps li.is-done i { background: var(--accent-soft); color: var(--accent); }
.steps li.is-now i { background: var(--accent); color: var(--accent-ink); }
.steps li.is-now { color: var(--text); font-weight: 600; }
.meter { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; max-width: 560px; margin: 0 auto; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.work-note { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.work-note i { font-size: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .steps li.is-now i { animation: breathe 1.6s var(--ease) infinite; }
  @keyframes breathe { 50% { transform: scale(1.08); } }
  .hero-copy, .hero-art, .tool { animation: rise .7s var(--ease) both; }
  .hero-art { animation-delay: .08s; }
  .tool { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* result */
.result { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 24px; }
.result-view { min-width: 0; }
.result .compare { max-height: 72vh; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-tab {
  min-width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted);
}
.page-tab[aria-selected="true"] { border-color: var(--accent); color: var(--accent); }
.result-side { display: flex; flex-direction: column; gap: 22px; }
.inks { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.inks i { font-size: 20px; }
.swatches { display: flex; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch + .swatch { margin-left: -6px; }
.block { display: grid; gap: 10px; }
.block-head { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.block-head i { font-size: 18px; color: var(--accent); }
.warn .block-head i { color: var(--warn); }
.lines, .fonts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.lines { gap: 14px; max-height: 340px; }
.lines li { display: grid; gap: 6px; }
.lines small { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips b { font-weight: 600; font-size: 14px; background: var(--sunken); border-radius: 8px; padding: 4px 10px; overflow-wrap: anywhere; }
.fonts li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fonts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.warn .fonts li { color: var(--warn); }

/* error */
.error { display: grid; justify-items: center; gap: 12px; padding: 44px 24px; text-align: center; }
.error-icon { font-size: 48px; color: var(--warn); }
.error-text { margin: 0 0 6px; font-size: 17px; font-weight: 500; max-width: 46ch; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.fact { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.fact i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 24px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 0 16px 40px; font-size: 14px; color: var(--muted); }
.foot > * { display: inline-flex; align-items: center; gap: 8px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot i { font-size: 18px; }

/* pricing */
.free { text-decoration: none; }
.pricing { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 8px 0 48px; scroll-margin-top: 24px; }
.price-item { display: grid; justify-items: start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-item i { font-size: 24px; color: var(--accent); }
.price-item b { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.price-item span { font-size: 14px; color: var(--muted); }
.btn .price { margin-left: auto; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); font-size: 18px; }
.btn[data-pay] { justify-content: flex-start; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.faq h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.qa[open] summary i { transform: rotate(45deg); }
.qa summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.qa p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; max-width: 62ch; }

/* converter pages */
.converters { width: min(1120px, 100% - 32px); margin: 0 auto 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.converters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; }
.converters a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.converters a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* terms page */
.legal { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 12px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .hero-art { width: min(100%, 340px); }
  .result { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .mode { padding: 14px 16px; }
  .drop { padding: 40px 16px; }
  .work { padding: 24px 12px; }
  .steps i { width: 44px; height: 44px; font-size: 22px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .lede { font-size: 17px; }
}
