:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b1f1d;
  --muted: #5d6662;
  --line: #e3e1da;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e4eee9;
  --mark: #f4e3b5;
  --danger: #a3382c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151716; --surface: #1d201f; --ink: #ecefed; --muted: #a2aba7; --line: #2e3331;
    --accent: #8fc3b0; --accent-ink: #10201b; --accent-soft: #233631; --mark: #4a3f1d; --danger: #f08a7c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 560px; padding-block: 48px; }
.narrow-head { padding-top: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0; }

.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); box-shadow: inset -6px -6px 0 color-mix(in srgb, var(--accent) 60%, #000 0%); position: relative; }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang select { font: inherit; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.nav .btn-ghost { padding: 6px 14px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero { padding: 56px 0 28px; }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 18px; box-shadow: var(--shadow); }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pane { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-height: 340px; }
.pane-label { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 10px 14px 0; }
textarea, .output { flex: 1; width: 100%; border: 0; background: transparent; color: var(--ink); font: 1rem/1.65 var(--font); padding: 8px 14px; resize: vertical; min-height: 260px; }
textarea:focus { outline: none; }
.pane:focus-within { border-color: var(--accent); }
.output { white-space: pre-wrap; overflow-wrap: anywhere; }
.output:empty::before { content: "—"; color: var(--muted); }
.output ins { background: var(--mark); text-decoration: none; border-radius: 3px; }
.output del { color: var(--muted); }
.output.busy { opacity: .75; }
.pane-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 10px; min-height: 52px; }
.pane-foot .muted { margin-right: auto; padding-left: 4px; font-size: .9rem; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; }
.controls label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.controls .grow { flex: 1 1 220px; }
select, input[type=text], input[type=email] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
select:focus, input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.submit { display: flex; gap: 12px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.submit .btn { min-width: 140px; padding: 12px 22px; }
.error { color: var(--danger); font-weight: 500; }
.note { background: var(--accent-soft); padding: 10px 14px; border-radius: 10px; }

.features, .how, .faq, .pricing { padding: 56px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .big { font-size: 2rem; font-weight: 700; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 72ch; }

.pricing .free { margin-bottom: 36px; }
.pricing .free ul { margin: 0; padding-left: 18px; color: var(--muted); }
.pack { display: flex; flex-direction: column; gap: 6px; }
.pack .price { font-size: 2rem; font-weight: 700; color: var(--ink); }
.pack .btn { margin-top: 12px; }
.notes { margin-top: 20px; padding-left: 18px; }

.stack { display: grid; gap: 14px; margin-top: 20px; }
.stack label { display: grid; gap: 6px; font-weight: 600; }
.prose { max-width: 720px; padding-block: 48px; }
.prose p { margin: 0 0 1rem; }

.foot { border-top: 1px solid var(--line); margin-top: 72px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .panes { grid-template-columns: 1fr; }
  .pane { min-height: 220px; }
  textarea, .output { min-height: 180px; }
  .hero { padding-top: 32px; }
  .submit { margin-left: 0; width: 100%; }
  .submit .btn { flex: 1; }
  .grid.two { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}
