/* Textyy — paper, ink and a highlighter.
   Warm paper and near-black ink, one loud accent (highlighter lime) for the
   things to press, and coral for what reads as machine-made. Light and dark
   follow the system unless the visitor picks one (html[data-theme]).
   Everything is self-hosted: the CSP allows no outside fonts or styles, and
   no inline style attributes, so all styling lives in this file. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-latin-wght-normal.woff2) format("woff2-variations"),
       url(/static/fonts/geist-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"),
       url(/static/fonts/geist-mono-latin-wght-normal.woff2) format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --bg: #f5f3ec;
  --bg-2: #eeebe2;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --surface-3: #f3f1ea;
  --ink: #121211;
  --ink-2: #2b2a27;
  --muted: #615f57;
  --faint: #8c897f;
  --line: #e4e1d7;
  --line-2: #d4d0c4;
  --lime: #d4ff3a;
  --lime-2: #c2f01c;
  --lime-ink: #121211;
  --lime-soft: #efffbf;
  --lime-text: #4d6800;
  --coral: #ff5b37;
  --coral-soft: #ffe5dc;
  --coral-text: #b02f10;
  --good: #1b7f47;
  --good-soft: #e0f3e7;
  --warn: #965506;
  --warn-soft: #fbefd8;
  --bad: #b0311c;
  --bad-soft: #fbe3dc;
  --shadow-sm: 0 1px 2px rgba(18, 18, 10, .06), 0 2px 8px rgba(18, 18, 10, .04);
  --shadow: 0 1px 2px rgba(18, 18, 10, .05), 0 12px 32px -12px rgba(18, 18, 10, .16);
  --shadow-lg: 0 2px 4px rgba(18, 18, 10, .04), 0 40px 80px -32px rgba(30, 30, 10, .30);
  --glow: rgba(212, 255, 58, .55);
  --header-bg: rgba(245, 243, 236, .78);
  --grain-o: .5;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0b; --bg-2: #121210; --surface: #171715; --surface-2: #1c1c19; --surface-3: #22221f;
    --ink: #f2f0e8; --ink-2: #dad7cd; --muted: #a3a097; --faint: #77756c;
    --line: #2a2926; --line-2: #3a3935;
    --lime-soft: rgba(212, 255, 58, .13); --lime-text: #d4ff3a;
    --coral: #ff7452; --coral-soft: rgba(255, 116, 82, .15); --coral-text: #ff9f86;
    --good: #6fe0a0; --good-soft: rgba(111, 224, 160, .12);
    --warn: #f0b862; --warn-soft: rgba(240, 184, 98, .13);
    --bad: #ff8f7a; --bad-soft: rgba(255, 143, 122, .13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 90px -30px rgba(0, 0, 0, .9);
    --glow: rgba(212, 255, 58, .28);
    --header-bg: rgba(13, 13, 11, .74);
    --grain-o: .35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0b; --bg-2: #121210; --surface: #171715; --surface-2: #1c1c19; --surface-3: #22221f;
  --ink: #f2f0e8; --ink-2: #dad7cd; --muted: #a3a097; --faint: #77756c;
  --line: #2a2926; --line-2: #3a3935;
  --lime-soft: rgba(212, 255, 58, .13); --lime-text: #d4ff3a;
  --coral: #ff7452; --coral-soft: rgba(255, 116, 82, .15); --coral-text: #ff9f86;
  --good: #6fe0a0; --good-soft: rgba(111, 224, 160, .12);
  --warn: #f0b862; --warn-soft: rgba(240, 184, 98, .13);
  --bad: #ff8f7a; --bad-soft: rgba(255, 143, 122, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 90px -30px rgba(0, 0, 0, .9);
  --glow: rgba(212, 255, 58, .28);
  --header-bg: rgba(13, 13, 11, .74);
  --grain-o: .35;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}
/* paper grain over everything, very faint */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main { flex: 1; position: relative; }
::selection { background: var(--lime); color: var(--lime-ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
p a, .fine a, .quota a, li a, dd a { color: var(--ink); font-weight: 500; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; }
p a:hover, .fine a:hover, .quota a:hover { background: var(--lime-soft); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 460px; }
.wrap.mid { max-width: 880px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.flat { margin: 0; }
.flat-top { margin-top: 0; }
.mt { margin-top: 14px; }
.mt-l { margin-top: 28px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-feature-settings: normal; letter-spacing: -.01em; }
.serif, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.display em, .serif em { font-style: italic; }
.danger { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime-2); border-radius: 2px; }
.band-ink .eyebrow::before { background: var(--lime); }

/* ---------- buttons ---------- */
button, .btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 550 15px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .25s var(--ease), color .18s, opacity .18s;
}
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .5; transform: none !important; box-shadow: none !important; }
button:active:not(:disabled), .btn:active { transform: translateY(1px) scale(.99); }
.primary {
  background: var(--lime); color: var(--lime-ink); border-color: rgba(0, 0, 0, .1);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.primary:hover:not(:disabled) {
  background: var(--lime-2); transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 28px -8px var(--glow);
}
.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ink:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.ink .arrow { color: var(--lime); }
.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.ghost:hover:not(:disabled) { border-color: var(--ink); }
.ghost.danger, button.danger { color: var(--bad); }
.ghost.danger:hover:not(:disabled) { border-color: var(--bad); background: var(--bad-soft); }
.plain { background: transparent; border-color: transparent; padding-inline: 10px; color: var(--muted); }
.plain:hover:not(:disabled) { color: var(--ink); background: var(--surface-3); }
.block { display: flex; width: 100%; }
.lg { height: 52px; padding: 0 26px; font-size: 16.5px; }
.xl { height: 60px; padding: 0 32px; font-size: 18px; }
button.small, .btn.small { height: 34px; padding: 0 13px; font-size: 13.5px; }
.icon-btn { width: 40px; padding: 0; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
button:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }
.linklike {
  height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: var(--ink);
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.linklike:hover { background: var(--lime-soft); }
.btn.google { background: var(--surface); border-color: var(--line-2); color: var(--ink); height: 48px; }
.btn.google:hover { border-color: var(--ink); }
.btn.google svg { width: 18px; height: 18px; }
.kbd {
  font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; margin-left: 4px;
  background: rgba(0, 0, 0, .08); color: inherit; opacity: .75;
}

/* ---------- form fields ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 550; font-size: 14px; margin-bottom: 7px; }
input, select, textarea { font: inherit; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]), select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input:not([type="checkbox"]) { width: auto; flex: 1; min-width: 120px; height: 42px; }
.inline select { width: auto; height: 42px; }

/* ---------- small pieces ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  box-shadow: var(--shadow-sm);
}
a.pill:hover { border-color: var(--ink); }
.pill .tag {
  font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--lime); color: var(--lime-ink); padding: 5px 7px; border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d353; box-shadow: 0 0 0 0 rgba(57, 211, 83, .6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57, 211, 83, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(57, 211, 83, 0); } }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 600 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.lime { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.badge.ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.check { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--lime); position: relative; }
.check::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4.5px; height: 8.5px; border: solid var(--lime-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cross { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; }
.cross::before, .cross::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.6px; background: var(--faint); border-radius: 2px; }
.cross::before { transform: translate(-50%, -50%) rotate(45deg); }
.cross::after { transform: translate(-50%, -50%) rotate(-45deg); }

.notice { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin: 0 0 14px; border: 1px solid transparent; }
.notice.good { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 22%, transparent); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.notice button { margin-left: 8px; height: 30px; font-size: 13px; vertical-align: middle; }
.notice .btn { margin-left: 8px; height: 30px; font-size: 13px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.card h3 { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fine { font-size: 13.5px; color: var(--muted); margin: 18px 0 0; line-height: 1.55; }

/* ---------- announcement + header ---------- */
.announce {
  position: relative; z-index: 60; background: #121211; color: #f5f3ec;
  font-size: 13.5px; text-align: center; padding: 9px 44px; border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .announce { font-size: 12.5px; padding: 8px 40px 8px 16px; } .announce .hide-xs { display: none; } }
.announce a { color: var(--lime); font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce .x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; padding: 0;
  color: #f5f3ec; opacity: .6; border-radius: 8px; font-size: 18px;
}
.announce .x:hover { opacity: 1; background: rgba(255, 255, 255, .1); color: #f5f3ec; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand .logo { width: 34px; height: 34px; color: var(--ink); transition: transform .5s var(--spring); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.brand .word { font: 400 27px/1 var(--serif); letter-spacing: -.02em; }
.brand .word i { font-style: italic; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.who { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.who .btn { height: 40px; }
.words-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--ink-2); text-decoration: none;
}
.words-pill:hover { border-color: var(--ink); }
.words-pill .ring { width: 16px; height: 16px; }
.words-pill .ring circle { fill: none; stroke-width: 3; }
.words-pill .ring .track { stroke: var(--line-2); }
.words-pill .ring .val { stroke: var(--lime-2); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); }
.theme-btn { width: 40px; height: 40px; padding: 0; color: var(--ink-2); }
.theme-btn:hover { background: var(--surface-3); color: var(--ink); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; width: 42px; height: 42px; padding: 0; margin-left: 4px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.top.open .menu-btn span { background: transparent; }
.top.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.top.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .top.open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .who .hide-m { display: none; }
  .top-row { gap: 12px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .who .btn.ghost { display: none; }
  .who .btn { padding: 0 14px; font-size: 14px; }
  .brand .word { font-size: 24px; }
  .words-pill { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 24px; isolation: isolate; }
.hero-bg { position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-bg .b1 { width: 520px; height: 420px; left: 50%; top: 360px; margin-left: -620px; background: var(--lime); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 460px; height: 380px; left: 50%; top: 420px; margin-left: 180px; background: #ff9a6b; opacity: .22; animation: drift 22s ease-in-out infinite alternate-reverse; }
:root[data-theme="dark"] .hero-bg .b1 { opacity: .14; }
:root[data-theme="dark"] .hero-bg .b2 { opacity: .10; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-bg .b1 { opacity: .14; }
  :root:not([data-theme="light"]) .hero-bg .b2 { opacity: .10; }
}
@keyframes drift { to { transform: translate(60px, -40px) scale(1.12); } }
.hero-copy { text-align: center; max-width: 980px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(48px, 7.6vw, 96px); margin: 18px auto 18px; text-wrap: balance;
}
.hero h1 .w { display: inline-block; }
.hero h1 em { font-style: italic; padding: 0 .04em; }
.marker {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 42%;
  animation: swipe 1s 1s var(--ease) forwards;
}
@keyframes swipe { to { background-size: 100% 42%; } }
:root[data-theme="dark"] .marker { color: var(--lime); background-image: linear-gradient(rgba(212, 255, 58, .2), rgba(212, 255, 58, .2)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marker { color: var(--lime); background-image: linear-gradient(rgba(212, 255, 58, .2), rgba(212, 255, 58, .2)); }
}
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 680px; margin: 0 auto; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 550; }
.hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }

/* staggered entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; } .d5 { animation-delay: .41s; } .d6 { animation-delay: .5s; }
.d7 { animation-delay: .6s; } .d8 { animation-delay: .72s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the workspace (humanizer) ---------- */
.ws-wrap { max-width: 1240px; margin: 30px auto 0; padding-inline: 24px; position: relative; }
.workspace {
  position: relative; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.workspace::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, var(--lime), transparent 30%, transparent 70%, #ff9a6b) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; border: 1px solid transparent; opacity: 0; transition: opacity .4s;
}
.workspace.busy::before, .workspace:focus-within::before { opacity: .9; }
.ws-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ws-bar .label-s { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-right: 4px; }
.modes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mode {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: transparent; border: 1px solid transparent; color: var(--muted);
}
.mode:hover:not(:disabled) { color: var(--ink); background: var(--surface-3); }
.mode[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.mode[aria-checked="true"]:hover { background: var(--ink); color: var(--bg); }
.mode.locked { color: var(--faint); gap: 6px; }
.mode.locked:hover { color: var(--ink-2); }
.quota { font-size: 13.5px; color: var(--muted); }
.quota b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.ws-panes { display: grid; grid-template-columns: 1fr 1fr; height: clamp(440px, calc(100vh - 240px), 540px); }
.ws-panes > .pane { min-height: 0; overflow: hidden; }
.pane { display: flex; flex-direction: column; min-width: 0; position: relative; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 6px; min-height: 52px; }
.pane-title { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pane-title .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.pane-out .pane-title .sw { background: var(--lime-2); }
.input-wrap { position: relative; flex: 1; display: flex; min-height: 0; }
#text {
  flex: 1; width: 100%; min-height: 0; resize: none; border: 0; outline: 0; background: transparent;
  padding: 8px 20px 20px; font: 400 16.5px/1.7 var(--sans); color: var(--ink);
}
#text:focus { box-shadow: none; }
.empty-actions {
  position: absolute; left: 20px; right: 20px; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none; transition: opacity .2s;
}
.empty-actions > * { pointer-events: auto; }
.empty-actions .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip-btn {
  height: 46px; padding: 0 18px; border-radius: 14px; gap: 10px; font-size: 15px; font-weight: 550;
  background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink);
}
.chip-btn:hover { border-style: solid; border-color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.chip-btn svg { width: 18px; height: 18px; }
.empty-actions .hint { font-size: 13px; color: var(--faint); }
.pane-foot {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap;
  min-height: 72px;
}
.pane-foot .grow { flex: 1; min-width: 0; }
.count { font: 500 13px/1.3 var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.count .meter { width: 54px; height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; display: inline-block; }
.count .meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .3s var(--ease), background .2s; }
.count.over { color: var(--bad); }
.count.over .meter i { background: var(--bad); }
.count.ok .meter i { background: var(--lime-2); }
.count .need { color: var(--faint); }
.count.bare .meter { display: none; }
.over-note { font-size: 13px; color: var(--bad); }
.over-note a { color: var(--bad); }
#go { min-width: 168px; }
#go .spinner { display: none; }
#go.working .spinner { display: inline-block; }
#go.working .arrow, #go.working .kbd { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* output pane */
.pane-out { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.out-body { flex: 1; position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.out-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 32px 30px; gap: 18px; min-height: 0; overflow: auto; }
.out-empty .ghost-lines { display: grid; gap: 10px; margin-bottom: 8px; }
.out-empty .ghost-lines i { display: block; height: 10px; border-radius: 6px; background: var(--surface-3); }
.out-empty .ghost-lines i:nth-child(1) { width: 92%; } .out-empty .ghost-lines i:nth-child(2) { width: 78%; }
.out-empty .ghost-lines i:nth-child(3) { width: 86%; } .out-empty .ghost-lines i:nth-child(4) { width: 54%; }
.out-empty h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -.01em; margin: 0; }
.out-empty h3 em { font-style: italic; }
.out-empty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.out-empty li { display: flex; gap: 10px; align-items: flex-start; }
.out-empty li .check { margin-top: 2px; }

.output {
  white-space: pre-wrap; overflow-wrap: anywhere; font: 400 16.5px/1.7 var(--sans); color: var(--ink);
  padding: 8px 20px 20px; min-height: 0; overflow: auto; flex: 1;
}
.output.original { color: var(--muted); }
.output .para { display: block; opacity: 0; transform: translateY(6px); animation: rise .6s var(--ease) forwards; }
.out-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); }
.out-tabs button { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 999px; color: var(--muted); }
.out-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.score {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; background: var(--good-soft); color: var(--good);
}
.score::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: currentColor; -webkit-mask: radial-gradient(circle, #000 40%, transparent 42%); mask: radial-gradient(circle, #000 40%, transparent 42%); opacity: .9; }
.score small { font-weight: 500; opacity: .75; font-size: 12px; }
.score.mid { background: var(--warn-soft); color: var(--warn); }
.score.low { background: var(--bad-soft); color: var(--bad); }
.score:empty { display: none; }
.kept { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.kept .lock { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime-text); }
.kept .lock svg { width: 13px; height: 13px; }
.kept.warn .lock { background: var(--warn-soft); color: var(--warn); }
.run-stats { font: 500 12.5px/1.3 var(--mono); color: var(--faint); }

/* progress, inside the output pane */
.progress { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 32px 28px; gap: 16px; min-height: 0; overflow: auto; }
.prog-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.prog-pct { font: 400 64px/0.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.prog-phase { font-weight: 600; font-size: 15px; }
.prog-eta { font: 500 12.5px/1.4 var(--mono); color: var(--muted); text-align: right; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink); transition: width .25s linear; }
.progress .bar .fill { background: linear-gradient(90deg, var(--lime-2), var(--lime)); }
.progress .bar .fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: sheen 1.4s linear infinite;
}
@keyframes sheen { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.progress.done .bar .fill::after { animation: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.steps li {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); padding: 9px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); transition: color .3s, border-color .3s, background .3s;
}
.steps .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; transition: background .3s, box-shadow .3s; }
.steps li.active { color: var(--ink); border-color: var(--ink); }
.steps li.active .dot { background: var(--lime-2); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 1.2s infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.prog-foot { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); color: var(--faint); }
.skeleton { display: grid; gap: 10px; margin-top: 6px; }
.skeleton i {
  display: block; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--line) 40%, var(--surface-3) 80%); background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton i:nth-child(2) { width: 88%; } .skeleton i:nth-child(3) { width: 94%; } .skeleton i:nth-child(4) { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.ws-msg { margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 14px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upsell {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 14px 18px 14px 20px; border-top: 1px solid var(--line); background: var(--lime-soft);
}
.upsell p { margin: 0; font-size: 14.5px; color: var(--ink); }
.upsell p b { font-weight: 650; }

.assure { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: 14px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 17px; height: 17px; color: var(--ink-2); }

@media (max-width: 900px) {
  .ws-wrap { padding-inline: 12px; margin-top: 28px; }
  .workspace { border-radius: var(--radius-l); }
  .ws-panes { grid-template-columns: 1fr; height: auto; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  #text { flex: none; height: 260px; }
  .output { flex: none; max-height: 440px; }
  .out-body { min-height: 0; }
  .out-empty { padding: 8px 20px 24px; }
  .out-empty .ghost-lines, .out-empty ul { display: none; }
  .out-empty h3 { font-size: 22px; }
  .empty-actions { top: 92px; }
  .progress { padding: 10px 20px 24px; }
  .prog-pct { font-size: 52px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .ws-bar { padding: 10px 12px; }
  .modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; width: calc(100% + 24px); }
  .modes::-webkit-scrollbar { display: none; }
  .ws-bar .label-s { display: none; }
  .quota { width: 100%; }
}
/* phones: the result's score and stats get their own row, the buttons share the next */
@media (max-width: 640px) {
  #out-foot .grow, .pane-foot .grow:has(.over-note:not([hidden])) { flex-basis: 100%; }
  #out-foot > button { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .pane-foot { padding: 12px; }
  #go { flex: 1; }
  .output { max-height: 440px; }
}

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .h-xl {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.03em;
  margin: 0 0 18px; text-wrap: balance;
}
.section-head h2 em, .h-xl em { font-style: italic; }
.section-head p { font-size: 18.5px; color: var(--muted); margin: 0; text-wrap: pretty; }
.section-head.center p { margin-inline: auto; max-width: 620px; }
@media (max-width: 700px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 17px; }
}

/* the ink band: always dark, in either theme */
.band-ink {
  --bg: #0d0d0b; --bg-2: #121210; --surface: #181816; --surface-2: #1d1d1a; --surface-3: #252522;
  --ink: #f2f0e8; --ink-2: #d9d6cc; --muted: #a29f95; --faint: #75736a; --line: #2c2b27; --line-2: #3d3c37;
  --lime-soft: rgba(212, 255, 58, .14); --lime-text: #d4ff3a;
  --coral-soft: rgba(255, 116, 82, .16); --coral-text: #ff9f86;
  background: var(--bg); color: var(--ink); border-radius: 40px; margin: 0 12px; overflow: hidden; isolation: isolate;
}
.band-ink::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -300px; margin-left: -450px;
  background: radial-gradient(closest-side, rgba(212, 255, 58, .16), transparent); pointer-events: none;
}
:root[data-theme="dark"] .band-ink { background: #050504; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-ink { background: #050504; border: 1px solid var(--line); } }
@media (max-width: 700px) { .band-ink { border-radius: 28px; margin: 0 6px; } }

/* marquee: what drafts come from */
.logos { padding: 56px 0 96px; }
.logos p { text-align: center; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 400 30px/1 var(--serif); color: var(--muted); letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::after { content: "✦"; font-size: 14px; color: var(--lime-2); margin-left: 44px; }
.marquee-track .ai-mark { width: 28px; height: 28px; flex: none; color: var(--ink-2); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* before / after demo */
.demo { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.demo-copy .h-xl { font-size: clamp(40px, 5vw, 64px); }
.demo-copy p { color: var(--muted); font-size: 18px; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.legend mark { flex: none; font-size: 13px; margin-top: 1px; }
.legend b { color: var(--ink); }
.demo-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.demo-tabs { display: flex; align-items: center; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.demo-tabs button { height: 34px; font-size: 14px; color: var(--muted); border-radius: 999px; padding: 0 14px; }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.demo-tabs button[aria-selected="true"].h { background: var(--lime); color: var(--lime-ink); }
.demo-tabs .meter-wrap { margin-left: auto; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); color: var(--muted); padding-right: 6px; }
.demo-meter { width: 90px; height: 6px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 92%; background: var(--coral); border-radius: inherit; transition: width .9s var(--ease), background .5s; }
.demo-card.is-h .demo-meter i { width: 8%; background: var(--lime); }
.demo-text { position: relative; padding: 24px 26px 28px; min-height: 330px; }
.demo-text p { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s; }
.demo-text .v-h { position: absolute; inset: 24px 26px 28px; opacity: 0; transform: translateY(8px); filter: blur(4px); pointer-events: none; }
.demo-card.is-h .v-ai { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.demo-card.is-h .v-h { opacity: 1; transform: none; filter: none; pointer-events: auto; }
mark.ai { background: var(--coral-soft); color: var(--coral-text); border-radius: 4px; padding: 0 3px; box-shadow: inset 0 -1.5px 0 rgba(255, 116, 82, .55); }
mark.lk { background: var(--lime-soft); color: var(--lime-text); border-radius: 4px; padding: 0 3px; box-shadow: inset 0 -1.5px 0 rgba(212, 255, 58, .55); white-space: nowrap; }
mark.lk::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 4px; vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'><path d='M1.5 4.5V3a3 3 0 0 1 6 0v1.5H8a1 1 0 0 1 1 1V9a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5.5a1 1 0 0 1 1-1zm1.3 0h3.4V3a1.7 1.7 0 0 0-3.4 0z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'><path d='M1.5 4.5V3a3 3 0 0 1 6 0v1.5H8a1 1 0 0 1 1 1V9a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5.5a1 1 0 0 1 1-1zm1.3 0h3.4V3a1.7 1.7 0 0 0-3.4 0z'/></svg>") center/contain no-repeat; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font: 500 12px/1.3 var(--mono); color: var(--faint); }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 36px; }
  .demo-text { min-height: 420px; }
}
@media (max-width: 420px) { .demo-text { min-height: 500px; } .demo-tabs .meter-wrap span { display: none; } }

/* bento of features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.wide { grid-column: span 3; }
.tile.xwide { grid-column: span 4; }
.tile h3 { font-size: 19px; margin: 18px 0 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1);
}
.ico svg { width: 22px; height: 22px; }
.ico.ink { background: var(--ink); color: var(--lime); }
.ico.soft { background: var(--surface-3); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.tile .viz { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
}
.chip.lk { background: var(--lime-soft); border-color: transparent; color: var(--lime-text); font-family: var(--mono); font-size: 12.5px; }
.chip.lk svg { width: 12px; height: 12px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rewrite-viz { display: grid; gap: 8px; font-size: 14.5px; }
.rewrite-viz .row { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rewrite-viz .tag { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; flex: none; }
.rewrite-viz .tag.a { background: var(--coral-soft); color: var(--coral-text); }
.rewrite-viz .tag.b { background: var(--surface-3); color: var(--muted); }
.rewrite-viz .tag.c { background: var(--lime); color: var(--lime-ink); }
.rewrite-viz s { color: var(--faint); text-decoration-color: var(--coral); }
.timeline { display: grid; gap: 8px; }
.timeline .step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.timeline .step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.timeline .step.on .dot { background: var(--lime-2); box-shadow: 0 0 0 4px var(--lime-soft); }
.timeline .bar { margin-top: 6px; }
.timeline .bar .fill { width: 64%; background: linear-gradient(90deg, var(--lime-2), var(--lime)); }
.big-num { font: 400 64px/1 var(--serif); letter-spacing: -.03em; margin: 18px 0 4px; }
.big-num small { font-size: 22px; color: var(--muted); letter-spacing: 0; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.xwide { grid-column: span 1; }
  .tile.full-m { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile.full-m { grid-column: span 1; }
  .tile { padding: 24px; }
}

/* three steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step3 { padding: 34px 32px 8px 0; position: relative; }
.step3 + .step3 { padding-left: 32px; border-left: 1px solid var(--line); }
.step3 .n { font: 500 13px/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.step3 h3 { font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; margin: 26px 0 12px; }
.step3 h3 em { font-style: italic; }
.step3 p { color: var(--muted); margin: 0; }
.step3::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--ink); transition: width 1.1s var(--ease); }
.step3 + .step3::before { left: -1px; }
.steps3.in .step3::before { width: 100%; }
.steps3.in .step3:nth-child(2)::before { transition-delay: .25s; }
.steps3.in .step3:nth-child(3)::before { transition-delay: .5s; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.cta-row .note { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .steps3 { grid-template-columns: 1fr; border-top: 0; }
  .step3, .step3 + .step3 { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step3 h3 { margin-top: 16px; font-size: 30px; }
}

/* who it's for */
.uses { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.use-tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.use-tabs button {
  height: auto; justify-content: flex-start; text-align: left; padding: 16px 18px; border-radius: 16px; gap: 14px;
  font-size: 17px; color: var(--muted); border: 1px solid transparent; white-space: normal;
}
.use-tabs button:hover { color: var(--ink); background: var(--surface); }
.use-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.use-tabs .ico { width: 36px; height: 36px; border-radius: 11px; }
.use-tabs .ico svg { width: 18px; height: 18px; }
.use-tabs button:not([aria-selected="true"]) .ico { background: var(--surface-3); box-shadow: none; color: var(--muted); }
.use-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 40px; min-height: 380px; box-shadow: var(--shadow-sm); }
.use-panel h3 { font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 14px; }
.use-panel h3 em { font-style: italic; }
.use-panel > p { font-size: 17px; color: var(--muted); max-width: 560px; }
.use-panel ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.use-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.use-panel li .check { margin-top: 3px; }
.use-panel.swap { animation: rise .5s var(--ease); }
@media (max-width: 900px) {
  .uses { grid-template-columns: 1fr; gap: 16px; }
  .use-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .use-tabs::-webkit-scrollbar { display: none; }
  .use-tabs button { padding: 10px 14px; font-size: 15px; }
  .use-panel { padding: 26px; min-height: 0; }
  .use-panel h3 { font-size: 32px; }
  .use-panel ul { grid-template-columns: 1fr; }
}

/* comparison */
.compare { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
.compare thead th.us { color: var(--lime-ink); background: var(--lime); }
.compare td.us { background: var(--lime-soft); font-weight: 550; }
.compare td .cell { display: flex; align-items: center; gap: 10px; }
.compare td:first-child { color: var(--ink); font-weight: 500; width: 40%; }
.compare td.them { color: var(--muted); }
@media (max-width: 640px) {
  .compare th, .compare td { padding: 14px 12px; font-size: 14px; }
  .compare td:first-child { width: auto; }
  .compare td .cell { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* pricing: soft stains of the two brand inks behind the plans, fading out at the edges */
#pricing { isolation: isolate; }
#pricing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0055' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.83 0 0 0 0 1 0 0 0 0 0.23 -3.2 0 0 0 1.75'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0045' numOctaves='4' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.45 0 0 0 0 0.33 -3.2 0 0 0 1.75'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3C/svg%3E");
  background-size: cover, cover; background-position: 0 30%, 100% 70%; background-repeat: no-repeat;
  opacity: var(--wash-o);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 55%, #000 35%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 55%, #000 35%, transparent 100%);
}
:root { --wash-o: .75; }
:root[data-theme="dark"] { --wash-o: .2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wash-o: .2; } }
/* pricing */
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.price-head .section-head { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 28px 24px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan h3 { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.plan .price { font: 400 58px/1 var(--serif); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; }
.plan .price small { font: 400 15px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .per { font: 500 12.5px/1.45 var(--mono); color: var(--faint); margin: 10px 0 0; min-height: 36px; }
.plan .words { font-size: 17px; font-weight: 600; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .check { width: 16px; height: 16px; margin-top: 2px; }
.plan li .check::after { left: 5.3px; top: 3px; width: 4px; height: 7.5px; }
.plan .ribbon { position: absolute; top: 18px; right: 18px; }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.plan.featured h3, .plan.featured .price small, .plan.featured .per { color: rgba(255, 255, 255, .6); }
.plan.featured .words { border-top-color: rgba(255, 255, 255, .14); }
.plan.featured ul { color: rgba(255, 255, 255, .86); }
.plan.featured .ghost { background: transparent; color: var(--bg); border-color: rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .plan.featured { background: var(--surface-2); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 80px -30px rgba(212, 255, 58, .25); }
:root[data-theme="dark"] .plan.featured h3, :root[data-theme="dark"] .plan.featured .price small, :root[data-theme="dark"] .plan.featured .per { color: var(--muted); }
:root[data-theme="dark"] .plan.featured ul { color: var(--ink-2); }
:root[data-theme="dark"] .plan.featured .words { border-top-color: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan.featured { background: var(--surface-2); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 80px -30px rgba(212, 255, 58, .25); }
  :root:not([data-theme="light"]) .plan.featured h3, :root:not([data-theme="light"]) .plan.featured .price small, :root:not([data-theme="light"]) .plan.featured .per { color: var(--muted); }
  :root:not([data-theme="light"]) .plan.featured ul { color: var(--ink-2); }
  :root:not([data-theme="light"]) .plan.featured .words { border-top-color: var(--line); }
}
.plan.current { outline: 2px solid var(--lime-2); outline-offset: 2px; }
.plan .price small.stack { display: inline-flex; flex-direction: column; gap: 5px; }
.plan .price .was { font: 500 15px/1 var(--sans); color: var(--faint); text-decoration-thickness: 1.5px; }
.plan .billed { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.plan.featured .price .was { color: rgba(255, 255, 255, .42); }
.plan.featured .billed { color: rgba(255, 255, 255, .72); }
:root[data-theme="dark"] .plan.featured .price .was { color: var(--faint); }
:root[data-theme="dark"] .plan.featured .billed { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan.featured .price .was { color: var(--faint); }
  :root:not([data-theme="light"]) .plan.featured .billed { color: var(--muted); }
}

/* Week pass and word pack, under the plan cards */
.extras { margin: 34px auto 0; max-width: 980px; }
.extras[hidden] { display: none; }
.extras-head { text-align: center; font: 400 26px/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 16px; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.extra {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 22px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.extra-main { min-width: 0; }
.extra-kicker { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.extra-price { font: 400 40px/1 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.extra-price small { font: 400 14.5px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.extra-words { font-size: 14.5px; font-weight: 550; margin: 12px 0 0; }
.extra-note { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.extra button { flex-shrink: 0; }
@media (max-width: 560px) {
  .extra { flex-direction: column; align-items: stretch; }
  .extra button { width: 100%; }
}
.limit-plan.pack { border-style: dashed; }

/* Yearly | Monthly */
.billing-slot { display: flex; justify-content: center; margin: -12px 0 30px; }
.billing-slot[hidden] { display: none; }
.billing {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.billing button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 550; color: var(--muted); background: transparent; border: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.billing button:hover { color: var(--ink); }
.billing button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.billing .save {
  font: 600 11.5px/1 var(--mono); letter-spacing: .02em; padding: 4px 7px; border-radius: 999px;
  background: var(--lime); color: #121211;
}
.billing.sm { justify-self: start; padding: 3px; box-shadow: none; }
.billing.sm button { height: 32px; padding: 0 14px; font-size: 13.5px; }
.billing.sm .save { font-size: 10.5px; padding: 3px 6px; }
.plans .loading { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plans .loading i { height: 420px; border-radius: var(--radius-l); background: linear-gradient(90deg, var(--surface-3) 0%, var(--line) 40%, var(--surface-3) 80%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--ink-2); }
@media (max-width: 1040px) { .plans, .plans .loading { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans, .plans .loading { grid-template-columns: 1fr; } .plan .price { font-size: 52px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .h-xl { font-size: clamp(40px, 5vw, 64px); }
.faq-side p { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 550; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--ink), var(--ink)) center/11px 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.6px 11px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-list summary:hover::after { background-color: var(--surface-3); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); border-color: transparent; }
.faq-list details p { color: var(--muted); margin: -6px 0 22px; padding-right: 50px; font-size: 16px; }
.faq-list details[open] p { animation: rise .45s var(--ease); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
  .faq-list summary { font-size: 16.5px; padding: 18px 0; }
  .faq-list details p { padding-right: 0; }
}

/* final call to action */
.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: var(--lime); color: var(--lime-ink); border-radius: 40px; margin: 0 12px; padding: 120px 24px;
}
.final .h-xl { font-size: clamp(48px, 8vw, 112px); line-height: .95; margin: 0 auto 24px; max-width: 980px; color: var(--lime-ink); }
.final p { font-size: 19px; max-width: 560px; margin: 0 auto 36px; color: rgba(18, 18, 17, .72); }
.final .ink { background: #121211; color: #f5f3ec; border-color: #121211; }
.final .ink .arrow { color: var(--lime); }
.final .fine { color: rgba(18, 18, 17, .6); margin-top: 18px; }
.final .rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final .rings i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(18, 18, 17, .1); border-radius: 50%; transform: translate(-50%, -50%); }
.final .rings i:nth-child(1) { width: 520px; height: 520px; }
.final .rings i:nth-child(2) { width: 860px; height: 860px; }
.final .rings i:nth-child(3) { width: 1200px; height: 1200px; }
.final .rings i:nth-child(4) { width: 1540px; height: 1540px; }
@media (max-width: 700px) { .final { border-radius: 28px; margin: 0 6px; padding: 80px 20px; } }

/* ---------- footer ---------- */
.foot { margin-top: 64px; padding: 64px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 14px 0 0; }
.foot-mail {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 550;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--lime-2); padding-bottom: 2px;
}
.foot-mail:hover { border-bottom-color: var(--ink); }
.foot-mail svg { width: 17px; height: 17px; color: var(--ink-2); }
.foot h4 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 6px 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.foot-legal { flex-basis: 100%; font-size: 12.5px; }
.foot-word {
  font: 400 clamp(110px, 25vw, 360px)/.78 var(--serif); letter-spacing: -.05em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); margin: 10px 0 -0.12em; user-select: none;
}
.foot-word i { font-style: italic; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot { margin-top: 72px; } }

/* ---------- sticky call to action (phones) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: 14px; flex: 1; line-height: 1.3; }
.sticky-cta span b { color: var(--lime); }
.sticky-cta .btn { height: 44px; }
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* ---------- modal ---------- */
dialog.modal {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 1px solid var(--line-2); border-radius: 28px; padding: 34px 30px 26px; color: var(--ink); background: var(--surface);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55);
}
dialog.modal[open] { animation: pop .4s var(--spring); }
dialog.modal.modal-wide { width: min(1220px, calc(100vw - 24px)); padding: 34px 28px 30px; }
.modal-wide .sub { max-width: 640px; }
.modal-wide .billing-slot { margin: 0 0 22px; }
.modal-wide .extras { margin-top: 24px; }
.modal-wide > .badge { margin-bottom: 14px; }
.plans.paid-only, .plans.paid-only .loading { grid-template-columns: repeat(3, 1fr); }
.unlock-login { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .plans.paid-only, .plans.paid-only .loading { grid-template-columns: 1fr; } }
dialog.modal::backdrop { background: rgba(13, 13, 11, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; color: var(--muted); font-size: 22px; }
.modal-x:hover { background: var(--surface-3); color: var(--ink); }
.modal h2 { font: 400 38px/1.02 var(--serif); letter-spacing: -.025em; margin: 16px 0 10px; }
.modal h2 em { font-style: italic; }
.modal .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.modal .perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14.5px; }
.modal .perks li { display: flex; gap: 10px; align-items: center; }

/* ---------- auth pages ---------- */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 68px); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font: 400 52px/1 var(--serif); letter-spacing: -.03em; margin: 0 0 10px; }
.auth-box h1 em { font-style: italic; }
.auth-box #subtitle { font-size: 17px; margin-bottom: 26px; }
.auth-box .field input { height: 50px; }
.auth-box #submit { height: 52px; font-size: 16px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 10px; font-size: 13px; color: var(--muted); border-radius: 9px; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-3); }
.pw-toggle:active:not(:disabled) { transform: translateY(-50%); }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate; margin: 12px 12px 12px 0; border-radius: 32px;
  background: var(--ink); color: var(--bg); padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
:root[data-theme="dark"] .auth-side { background: #050504; border: 1px solid var(--line); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-side { background: #050504; border: 1px solid var(--line); color: var(--ink); } }
.auth-side::before {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -220px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 255, 58, .32), transparent);
}
.auth-side .quote { font: 400 clamp(36px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -.025em; margin: 0; }
.auth-side .quote em { font-style: italic; color: var(--lime); }
.auth-side ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; font-size: 16px; opacity: .9; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side .mini {
  margin-top: 40px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 18px 20px;
  font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .8);
}
:root[data-theme="dark"] .auth-side .mini { color: var(--ink-2); }
.auth-side .mini .lbl { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); display: block; margin-bottom: 10px; }
.auth-side .mini mark.lk { background: rgba(212, 255, 58, .16); color: var(--lime); box-shadow: none; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { display: none; }
  .auth-main { padding: 40px 20px 20px; }
  .auth-box h1 { font-size: 44px; }
}
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }

/* ---------- account dashboard ---------- */
.dash { padding-top: 40px; padding-bottom: 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font: 400 clamp(44px, 6vw, 64px)/1 var(--serif); letter-spacing: -.03em; margin: 0 0 8px; }
.dash-head h1 em { font-style: italic; }
.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.dash-grid .card { margin-bottom: 0; }
.dash > .card, .dash > section.card { margin-top: 20px; }
.card .h-label { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.words-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ring-lg { width: 132px; height: 132px; position: relative; }
.ring-lg svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-lg circle { fill: none; stroke-width: 10; }
.ring-lg .track { stroke: var(--surface-3); }
.ring-lg .val { stroke: var(--lime-2); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-lg .ring-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 500 12px/1.2 var(--mono); color: var(--muted); }
.ring-lg .ring-c b { display: block; font: 400 30px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.big { font: 400 46px/1 var(--serif); letter-spacing: -.03em; margin: 6px 0 12px; }
.meter { height: 8px; margin: 14px 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.plan-name { font: 400 40px/1 var(--serif); letter-spacing: -.02em; margin: 8px 0 18px; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { border-top: 1px solid var(--line); padding: 16px 0; }
.hist li:first-child { border-top: 0; }
.hist .meta { display: flex; gap: 8px; flex-wrap: wrap; font: 500 12px/1 var(--mono); color: var(--faint); margin-bottom: 8px; }
.hist .meta span { padding: 5px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.hist .pv { cursor: pointer; color: var(--ink-2); border-radius: 10px; padding: 6px 8px; margin: 0 -8px; transition: background .15s; }
.hist .pv:hover { background: var(--surface-2); }
.hist .open { margin-top: 12px; }
.hist .open .output { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; max-height: 360px; }
.hist .empty { color: var(--muted); text-align: center; padding: 40px 10px; border: 1px dashed var(--line-2); border-radius: 16px; }
.hist .empty a { display: inline-flex; margin-top: 14px; }
details summary { cursor: pointer; }
details summary.danger { color: var(--bad); font-weight: 550; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) {
  .dash-grid, .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .words-card { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat b { display: block; font: 400 36px/1 var(--serif); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table input { height: 36px !important; }
.table select { height: 36px; }
.table button { height: 34px; font-size: 13px; padding: 0 12px; }
.table .inline input:not([type="checkbox"]) { flex: none; width: 96px; min-width: 0; }
.table td:last-child { min-width: 300px; }

/* ---------- prose (terms, privacy) ---------- */
.prose { max-width: 760px; padding-top: 64px; }
.prose h1 { font: 400 clamp(48px, 7vw, 76px)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 12px; }
.prose h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -.015em; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--lime-2); }
.prose .updated { font: 500 13px/1 var(--mono); color: var(--faint); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); z-index: 400;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 12px 18px 12px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--spring); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.r2 { transition-delay: .08s; } .js .reveal.r3 { transition-delay: .16s; }
.js .reveal.r4 { transition-delay: .24s; } .js .reveal.r5 { transition-delay: .32s; }
.appear { animation: rise .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .rise { opacity: 1; transform: none; }
  .marker { background-size: 100% 42%; }
  .marquee-track { animation: none; }
}
@media print {
  .top, .foot, .announce, .sticky-cta, .toast, .hero-bg, body::before { display: none !important; }
  .js .reveal, .rise { opacity: 1; transform: none; }
}

/* ---------- small additions ---------- */
.nav .m-only { display: none; }
@media (max-width: 900px) { .nav .m-only { display: block; } }
@media (max-width: 520px) { .who .hide-s { display: none; } }
#result { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.output .para + .para { margin-top: 1em; }
.locked-rest { position: relative; margin-top: 1em; min-height: 230px; }
.locked-rest .fake { filter: blur(6px); opacity: .75; user-select: none; pointer-events: none; }
.unlock-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 24px));
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.unlock-card b { font-size: 17px; }
.unlock-card p { margin: 0; color: var(--muted); font-size: 14px; }
.unlock-card button { margin-top: 6px; }
dialog.go-pay {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 16px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: fade .3s ease;
}
dialog.go-pay[open] { display: grid; place-items: center; }
dialog.go-pay::backdrop { background: transparent; }
.go-card { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.go-brand { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); }
.go-brand svg { width: 34px; height: 34px; }
.go-card h2 { font: 400 clamp(34px, 6vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; margin: 18px 0 0; }
.go-card h2 em { font-style: italic; }
.go-sum { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.go-sum b { color: var(--ink); }
.go-bar { width: 220px; height: 4px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.go-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--lime-2); animation: go-slide 1.1s ease-in-out infinite; }
@keyframes go-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.go-trust { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.go-trust > span { display: block; line-height: 1.5; }
.go-trust b { color: var(--ink-2); letter-spacing: -.02em; }
.go-trust svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.unlock-card .unlock-copy { margin-top: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .unlock-card { top: 14px; transform: translateX(-50%); } }
.locked-rest.orig .unlock-card { top: 24px; transform: translateX(-50%); }
.pane-in.drag { background: var(--lime-soft); }
.pane-in.drag::after {
  content: "Drop your .docx or .txt file"; position: absolute; inset: 12px; border: 2px dashed var(--ink); border-radius: 20px;
  display: grid; place-items: center; font: 400 28px/1 var(--serif); color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); pointer-events: none;
}
#text[readonly] { color: var(--muted); }
.auth-page .foot { margin-top: 0; }
.auth-page .foot-word { display: none; }
.inner .foot-word { font-size: clamp(90px, 18vw, 260px); }
:root[data-theme="dark"] .plan.featured .ghost { color: var(--ink); border-color: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.featured .ghost { color: var(--ink); border-color: var(--line-2); } }

/* out of words: a countdown and the plans, inside the output pane */
.out-limit { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 14px; padding: 6px 32px 28px; min-height: 0; overflow: auto; }
.out-limit .badge { background: var(--coral-soft); color: var(--coral-text); border-color: transparent; }
.out-limit .badge.lime { background: var(--lime); color: #121211; }
.out-limit h3 { font: 400 32px/1.08 var(--serif); letter-spacing: -.015em; margin: 0; }
.out-limit h3 em { font-style: italic; }
.out-limit p { margin: 0; font-size: 15px; }
.limit-clock { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.limit-clock span { font: 400 54px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.limit-clock small { font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.limit-plans { display: grid; gap: 8px; width: 100%; }
.limit-plan {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 12px 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.limit-plan.featured { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.limit-plan b { font-size: 15px; }
.limit-plan .lp-meta { font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.limit-plan .btn, .limit-plan button { grid-row: span 2; }
#quota .renew { color: var(--faint); }
@media (max-width: 900px) { .out-limit { padding: 6px 20px 24px; } .limit-clock span { font-size: 44px; } .out-limit h3 { font-size: 26px; } }

/* ---------- the free tools: nav menu, tool pages, citation generator ---------- */
.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; padding: 8px 13px; border-radius: 999px; color: var(--ink-2);
  font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease);
}
.nav-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-more summary:hover, .nav-more[open] summary { background: var(--surface-3); color: var(--ink); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 250px; padding: 8px;
  display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.nav .nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; }
.nav .nav-menu a small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
@media (max-width: 900px) {
  .nav-more summary { display: flex; justify-content: space-between; padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav-menu { position: static; min-width: 0; padding: 0 0 6px 10px; border: 0; box-shadow: none; background: transparent; }
  .nav .nav-menu a { padding: 10px 12px; font-size: 16px; }
}

.tool-hero h1 { font-size: clamp(44px, 6.6vw, 84px); }
.tool-hero .eyebrow { margin-bottom: 4px; }
.ws-opts { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-width: 0; }
.tool-badge {
  font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.cost-note { font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.count.over + .cost-note, .count.over { color: var(--bad); }
.tool-page #text { min-height: 300px; }
.tool-wait { padding: 14px 20px 24px; }
.output.diff del { color: var(--bad); background: var(--bad-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 4px; }
.output.diff ins { color: var(--good); background: var(--good-soft); text-decoration: none; border-radius: 4px; }
.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tool-link {
  position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 52px 24px 24px; min-height: 132px;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tool-link:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-link b { font: 400 28px/1.05 var(--serif); letter-spacing: -.015em; }
.tool-link span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tool-link .arrow { position: absolute; right: 22px; top: 26px; color: var(--ink); font-size: 18px; }
.tool-page .section-head h2 { font: 400 clamp(36px, 4.6vw, 56px)/1 var(--serif); letter-spacing: -.03em; }
.tool-page .section-head h2 em { font-style: italic; }
@media (max-width: 900px) {
  .ws-opts { width: 100%; gap: 8px; }
  .ws-opts .modes { width: calc(100% + 24px); }
  .tool-page #text { min-height: 220px; }
}

/* citation generator */
.cite-search { display: flex; gap: 10px; padding: 18px 18px 8px; }
.cite-search input { flex: 1; height: 52px !important; font-size: 16.5px; border-radius: 14px !important; }
.cite-search #find { min-width: 132px; }
.cite-search #find .spinner { display: none; }
.cite-search #find.working .spinner { display: inline-block; }
.cite-search #find.working .arrow { display: none; }
.cite-manual { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 18px 18px; font-size: 14px; color: var(--muted); }
.chip-btn.small-chip { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; }
.cite-picks { border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pick:first-child { border-top: 0; }
.pick-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.cite-work { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 1px solid var(--line); }
.cite-form { padding: 16px 20px 22px; border-right: 1px solid var(--line); }
.cite-form .pane-title, .cite-preview .pane-title, .cite-picks .pane-title { margin-bottom: 14px; }
.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cf { min-width: 0; }
.cf.wide { grid-column: 1 / -1; }
.cf label, .cf .label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 6px; color: var(--ink-2); }
.cf input:not([type="checkbox"]), .cf select { height: 42px; font-size: 15px; }
.cf-hint { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }
.people { display: grid; gap: 8px; margin-bottom: 4px; }
.person { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.person button { height: 42px; width: 38px; padding: 0; font-size: 18px; }
.cite-preview { padding: 16px 20px 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: flex; flex-direction: column; gap: 14px; }
.cite-entry {
  font: 400 17px/1.65 var(--sans); padding: 16px 16px 16px 40px; text-indent: -24px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; min-height: 60px;
}
.cite-cites { display: grid; gap: 8px; }
.cite-line { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 14.5px; }
.cite-label { font: 500 11.5px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.cite-body { overflow-wrap: anywhere; }
.bib { margin-top: 22px; }
.bib-list { list-style: none; margin: 0; padding: 0; }
.bib-item { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.bib-item:first-child { border-top: 0; }
.bib-text { padding-left: 28px; text-indent: -28px; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.bib-list.numbered .bib-text { padding-left: 0; text-indent: 0; }
@media (max-width: 900px) {
  .cite-work { grid-template-columns: 1fr; }
  .cite-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .cf-grid { grid-template-columns: 1fr 1fr; }
  .cite-search { padding: 14px 12px 6px; }
  .cite-manual { padding: 4px 12px 14px; }
}
@media (max-width: 520px) {
  .cite-search { flex-direction: column; }
  .cite-search input { flex: none; }
  .cite-search #find { width: 100%; }
  .pick { grid-template-columns: 1fr; }
  .pick .badge { justify-self: start; }
  .cite-line { grid-template-columns: 1fr; gap: 2px; }
  .bib-item { grid-template-columns: 1fr auto; }
  .bib-item .bib-text { grid-column: 1 / -1; }
}
