/* Layout: a writing desk at night. One draft on the left of the hero fans out into platform-ready posts on the right; below, the pipeline reads top to bottom like a manuscript margin. */
:root {
  --bg: #0b0a12;
  --bg-2: #12101c;
  --panel: #171425;
  --line: #2a2540;
  --fg: #ece9f6;
  --muted: #a8a2c0;
  --faint: #847ea3;
  --accent: #8b5cf6;
  --accent-ink: #c4b5fd;
  --accent-soft: rgba(139, 92, 246, .14);
  --spark: #fbbf24;
  --spark-ink: #fcd34d;
  --on-accent: #ffffff;
  --good: #34d399;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --f-display: 'Syne', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'DM Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --bg-2: #f6f3fd; --panel: #ffffff; --line: #e3ddf2;
    --fg: #14111f; --muted: #4a4463; --faint: #6c6687;
    --accent: #6d28d9; --accent-ink: #5b21b6; --accent-soft: rgba(109, 40, 217, .09);
    --spark: #d97706; --spark-ink: #b45309; --on-accent: #ffffff; --good: #059669;
    --shadow: 0 30px 70px -35px rgba(60, 30, 120, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f6f3fd; --panel: #ffffff; --line: #e3ddf2;
  --fg: #14111f; --muted: #4a4463; --faint: #6c6687;
  --accent: #6d28d9; --accent-ink: #5b21b6; --accent-soft: rgba(109, 40, 217, .09);
  --spark: #d97706; --spark-ink: #b45309; --on-accent: #ffffff; --good: #059669;
  --shadow: 0 30px 70px -35px rgba(60, 30, 120, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--spark); }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 15px/1 var(--f-body); padding: 15px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font: 800 18px/1 var(--f-display); letter-spacing: -.02em; }
.brand b span { color: var(--accent-ink); }
.brand small { display: block; font: 500 9px/1 var(--f-mono); letter-spacing: .2em; color: var(--faint); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 16px; font-size: 14px; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--fg); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
  }
  .nav.open .nav-links a { display: block; padding: 10px 0; font-size: 16px; }
}

/* Hero */
.hero { position: relative; padding-block: 72px 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; max-width: 100%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; line-height: .94; margin-block: 22px 24px; }
.hero h1 .ink { color: var(--accent-ink); }
.hero h1 .dim { color: var(--faint); }
.hero h1 .zap { position: relative; white-space: nowrap; }
.hero h1 .zap::after {
  content: ""; position: absolute; left: 0; right: 4%; bottom: .04em; height: .09em; border-radius: 4px;
  background: var(--spark); transform-origin: left; animation: write 1.1s .5s cubic-bezier(.6,.1,.2,1) both;
}
@keyframes write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 32px 30px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; justify-content: start; }
.stat b { display: block; font: 700 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font: 400 12px/1.4 var(--f-mono); color: var(--faint); letter-spacing: .04em; }

/* Studio demo */
.studio {
  min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.studio-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); color: var(--faint); }
.studio-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.studio-bar span { margin-left: 8px; }
.studio-bar em { margin-left: auto; font-style: normal; color: var(--good); display: inline-flex; align-items: center; gap: 6px; }
.studio-bar em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.draft { padding: 20px 22px 18px; border-bottom: 1px dashed var(--line); }
.draft label { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.draft h3 { font-size: 19px; margin-block: 8px 6px; font-weight: 700; }
.draft p { color: var(--muted); font-size: 14px; }
.meters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meter { font: 12px var(--f-mono); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.meter b { color: var(--fg); font-weight: 500; }
.meter.hi b { color: var(--good); }
.tabs { display: flex; gap: 4px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: none; font: 500 13px var(--f-body); color: var(--muted); background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 9px 9px 0 0; padding: 8px 12px; border-bottom: none;
}
.tab[aria-selected="true"] { color: var(--fg); background: var(--bg-2); border-color: var(--line); }
.out { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: -1px; padding: 18px 22px 22px; min-height: 196px; }
.out-head { display: flex; justify-content: space-between; gap: 12px; font: 12px var(--f-mono); color: var(--faint); margin-bottom: 10px; }
.out-head b { color: var(--spark-ink); font-weight: 500; }
.out-body { font-size: 14.5px; white-space: pre-line; }
.out-body .tag { color: var(--accent-ink); }
.out.swap .out-body { animation: fade .35s ease both; }
@keyframes fade { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, auto); }
}

/* Platform strip */
.platforms { border-block: 1px solid var(--line); padding-block: 22px; }
.platforms .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.platforms p { font: 12px var(--f-mono); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.platforms li { font: 600 15px var(--f-display); color: var(--muted); }

/* Sections */
section.block { padding-block: 104px; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 52px; }
.head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.02; margin-top: 16px; }
.head p { color: var(--muted); font-size: 17px; max-width: 32em; }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; } section.block { padding-block: 76px; } }

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pipeline li { padding: 28px 24px 8px 0; position: relative; min-width: 0; }
.pipeline li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pipeline .n { font: 500 13px var(--f-mono); color: var(--spark-ink); }
.pipeline h3 { font-size: 22px; margin-block: 14px 10px; }
.pipeline p { color: var(--muted); font-size: 15px; }
.pipeline ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.pipeline ul li { padding: 0 0 0 18px !important; border: 0 !important; font-size: 14px; color: var(--muted); }
.pipeline ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--accent); }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline > li:nth-child(3) { border-left: 0; padding-left: 0; }
  .pipeline > li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline > li, .pipeline > li + li { border-left: 0; padding-left: 0; }
  .pipeline > li + li { border-top: 1px solid var(--line); }
}

/* Tools */
.tools-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.tools { border-top: 1px solid var(--line); }
.tool { border-bottom: 1px solid var(--line); }
.tool summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 18px; align-items: center;
  padding: 22px 4px;
}
.tool summary::-webkit-details-marker { display: none; }
.tool .ix { font: 500 13px var(--f-mono); color: var(--faint); }
.tool h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
.tool h3 small { display: block; font: 400 14px var(--f-body); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.tool .metric { font: 13px var(--f-mono); color: var(--spark-ink); text-align: right; }
.tool .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .2s, border-color .2s; }
.tool .plus::before { content: "+"; font: 400 18px/1 var(--f-body); color: var(--muted); }
.tool[open] .plus { transform: rotate(45deg); border-color: var(--accent); }
.tool summary:hover h3 { color: var(--accent-ink); }
.tool-body { padding: 0 4px 26px 66px; display: grid; gap: 14px; max-width: 820px; }
.tool-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 12px var(--f-mono); padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 640px) {
  .tool summary { grid-template-columns: 30px 1fr 28px; gap: 12px; }
  .tool .metric { display: none; }
  .tool-body { padding-left: 42px; }
}

/* Checker */
.checker { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checker > * { min-width: 0; }
.checker h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.04; margin-block: 16px 18px; }
.checker > div > p { color: var(--muted); font-size: 17px; }
.report { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.report-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.report-top span { font: 12px var(--f-mono); color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.report-top b { font: 800 40px/1 var(--f-display); color: var(--good); font-variant-numeric: tabular-nums; }
.report-top b small { font-size: 16px; color: var(--muted); font-weight: 600; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 14px; align-items: center; font-size: 14px; }
.bar span { color: var(--muted); }
.bar i { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 6px; }
.bar b { font: 500 13px var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.detectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
@media (max-width: 860px) { .checker { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .bar { grid-template-columns: 96px 1fr 40px; gap: 10px; } }

.ck { display: grid; gap: 12px; margin-top: 24px; }
.ck textarea { font: 15px/1.55 var(--f-body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; width: 100%; resize: vertical; }
.ck textarea:focus { border-color: var(--accent); outline: none; }
.ck .btn { justify-self: start; }
.ck-msg { font: 13px var(--f-mono); color: var(--spark-ink); min-height: 1em; }
.ck-tips { margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.ck-note { margin-top: 16px; font: 12px/1.5 var(--f-mono); color: var(--faint); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 28px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; display: block; font: 800 46px/0.6 var(--f-display); color: var(--spark); margin-bottom: 12px; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote figcaption b { display: block; color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; gap: 4px; }
.toggle button { font: 500 14px var(--f-body); color: var(--muted); background: none; border: 0; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--fg); }
.toggle button em { font-style: normal; font: 11px var(--f-mono); color: var(--spark-ink); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 22px; min-width: 0; background: var(--bg); }
.plan.pop { background: var(--panel); border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 30px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--spark); color: #1a1205; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 800 48px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.price span { color: var(--faint); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent-ink); }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; }
.faq > * { min-width: 0; }
.faq h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.04; margin-top: 16px; }
.faq aside p { color: var(--muted); margin-top: 16px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 600 17px var(--f-body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; color: var(--faint); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--spark-ink); }
.qa details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* CTA + footer */
.cta { text-align: left; border: 1px solid var(--line); border-radius: 24px; padding: clamp(32px, 6vw, 64px); background: var(--panel); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1; max-width: 13em; }
.cta p { color: var(--muted); margin-block: 18px 28px; font-size: 17px; max-width: 34em; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 104px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.foot ul a { text-decoration: none; color: var(--muted); }
.foot ul a:hover { color: var(--fg); }
.foot .about p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 26em; }
.news { display: flex; gap: 8px; margin-top: 18px; max-width: 360px; }
.news input { flex: 1; min-width: 0; font: 14px var(--f-body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.news .btn { padding: 11px 14px; font-size: 14px; }
.news-msg { font: 12px var(--f-mono); color: var(--good); margin-top: 8px; min-height: 1em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px var(--f-mono); color: var(--faint); }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Blog, articles and legal pages */
.blog-hero { padding-block: 72px 40px; max-width: 760px; }
.blog-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; line-height: 1; margin-top: 18px; }
.blog-hero p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .tag { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.post-card h2 { font-size: 22px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .more { margin-top: auto; font-weight: 600; color: var(--accent-ink); font-size: 14.5px; }
.article { max-width: 760px; padding-block: 64px 0; }
.article .crumbs { font: 12px var(--f-mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.article .crumbs a { color: var(--accent-ink); text-decoration: none; }
.article h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.04; margin-top: 14px; }
.article .meta { font: 13px var(--f-mono); color: var(--faint); margin-top: 16px; }
.prose { margin-top: 32px; font-size: 17.5px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(23px, 2.8vw, 30px); line-height: 1.2; margin-top: 44px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent-ink); }
.prose b { color: var(--fg); }

/* ---------- Shared helpers ---------- */
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tryline { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); }

/* ---------- Free tool pages (/tools/...) ---------- */
.ptool { max-width: 860px; padding-bottom: 88px; }
.ptool.wide { max-width: var(--wrap); }
.ptool .pl { color: var(--muted); font-size: 18px; line-height: 1.65; margin-top: 18px; max-width: 46em; }
.ptool .prose h2:first-child { margin-top: 36px; }
.ptool .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tagbox { display: grid; gap: 14px; justify-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.tagbox .chip { font-size: 14px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; font: 500 13px var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding-top: 14px; }
.try-box { margin-top: 48px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.try-head h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.try-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.try-box .try-grid, .ptool .try-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.try-grid > * { min-width: 0; }
.try-box .gen { display: grid; gap: 14px; margin-top: 22px; }
.try-box .gen-fields { display: grid; gap: 14px; }
.try-box .gen label { font-size: 14px; font-weight: 500; display: grid; gap: 7px; }
.try-box .gen input, .try-box .gen select, .try-box .gen textarea { font: 15px/1.5 var(--f-body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; width: 100%; }
.try-box .gen textarea { resize: vertical; }
.try-box .gen .btn { justify-self: start; }
.try-box .gen .btn[disabled] { opacity: .6; cursor: progress; }
.try-box .results { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.try-box .results-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); color: var(--faint); }
.try-box .res { padding: 16px; }
.try-box .empty { color: var(--faint); font-size: 14px; padding: 24px 4px; text-align: center; }
.try-box .out-text { white-space: pre-wrap; font-size: 15px; line-height: 1.65; max-height: 560px; overflow: auto; }
.try-box .loading { color: var(--muted); font: 13px var(--f-mono); }
.try-box .credit { margin-top: 12px; font: 11px var(--f-mono); color: var(--faint); }
.pfaq { margin-top: 56px; }
.pfaq h2, .plinks h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.plinks { margin-top: 48px; }
.plinks ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.plinks a { color: var(--accent-ink); text-decoration: none; font-size: 15px; }
.plinks a:hover { text-decoration: underline; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 760px) {
  .try-box .try-grid, .ptool .try-grid { grid-template-columns: 1fr; gap: 0; }
  .spec th { width: 40%; }
}

/* ---------- Pricing with four options ---------- */
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.plans-4 .plan { padding: 26px 22px; }
.plans-foot { margin-top: 22px; color: var(--muted); font-size: 15px; }
.plans-foot a { color: var(--accent-ink); }
@media (max-width: 1080px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (max-width: 620px) { .plans.plans-4 { grid-template-columns: 1fr; } }

/* ---------- Upgrade popup and notices ---------- */
.pw { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 16, .72); backdrop-filter: blur(4px); }
.pw-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 5vw, 34px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.pw-card h2 { font-size: 28px; line-height: 1.1; padding-right: 30px; }
.pw-card p { color: var(--muted); }
.pw-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.pw-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pw-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pw-pack { position: relative; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: 14px var(--f-body); cursor: pointer; }
.pw-pack:hover { border-color: var(--accent); }
.pw-pack.best { border-color: var(--accent); background: var(--accent-soft); }
.pw-pack b { font: 800 26px/1 var(--f-display); }
.pw-pack b i { font: 400 13px var(--f-body); color: var(--muted); font-style: normal; }
.pw-pack small { color: var(--faint); font-size: 12px; }
.pw-pack em { position: absolute; top: -10px; left: 12px; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--spark); color: #1a1205; padding: 3px 8px; border-radius: 999px; font-style: normal; }
.pw-note { font-size: 13px; }
@media (max-width: 520px) { .pw-packs { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 15px; box-shadow: var(--shadow); }
