/* ==========================================================================
   Rabbitpoet design system
   Near-black, warm paper text, one acid signal color. Crisp lines, no glow.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0c0c0b;
    --surface: #131312;
    --surface-2: #1a1a18;
    --surface-3: #23231f;
    --line: #262623;
    --line-2: #37372f;
    --text: #f1efe8;
    --dim: #a5a297;
    --muted: #6c6a62;
    --signal: #d7ff3a;
    --signal-ink: #0c0c0b;
    --signal-soft: rgba(215, 255, 58, .1);
    --danger: #ff5b4f;
    --danger-soft: rgba(255, 91, 79, .1);
    --warn: #ffb224;
    --warn-soft: rgba(255, 178, 36, .1);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .1);

    --r: 10px;
    --r-sm: 7px;
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --serif: 'Instrument Serif', Georgia, serif;
    --maxw: 1120px;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    font-size: 15px;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--signal-ink); }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ─── Icons ──────────────────────────────────────────────────────────── */
.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i.lg { width: 20px; height: 20px; }
.i.xl { width: 28px; height: 28px; stroke-width: 1.5; }

/* ─── Site header ────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12,12,11,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.4px; flex-shrink: 0; }
.brand .i { width: 22px; height: 22px; color: var(--signal); stroke-width: 2; }
.brand.small { font-size: 14px; }
.brand.small .i { width: 18px; height: 18px; }
.site-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
html, body { overflow-x: hidden; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--dim); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.site-nav a.active .i { color: var(--signal); }

/* ─── Page ───────────────────────────────────────────────────────────── */
.page { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 56px 24px 72px; }
.page.wide { max-width: var(--maxw); }

.tool-head { margin-bottom: 36px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.kicker-num { color: var(--signal-ink); background: var(--signal); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.tool-head h1 { font-size: clamp(34px, 5.5vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.tool-head h1 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.tool-head h1 em { color: var(--signal); }
.tool-head p { color: var(--dim); font-size: 16px; margin-top: 14px; max-width: 560px; }

/* ─── Cards & sections ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.label, .form-group > label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.label .opt, .form-group > label .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); margin-left: 4px; }

/* Feature strip under tool forms */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.features > div { background: var(--surface); padding: 18px; font-size: 13px; color: var(--dim); }
.features b { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.features .i { color: var(--signal); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.section-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.section-sub { font-size: 13.5px; color: var(--dim); margin-bottom: 16px; }
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.stack > * + * { margin-top: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--text); text-decoration: none;
    font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--surface-3); border-color: #4a4a40; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn:focus-visible, .input:focus-visible, .pill:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 600; }
.btn-primary:hover { background: #e3ff6b; border-color: #e3ff6b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: rgba(255,91,79,.4); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn-sm .i { width: 14px; height: 14px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-icon { width: 32px; padding: 0; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Forms ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.input {
    width: 100%; height: 42px; padding: 0 13px; background: var(--bg); border: 1px solid var(--line-2);
    border-radius: var(--r-sm); color: var(--text); font-family: inherit; font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
textarea.input { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; cursor: pointer; padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a5a297' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; }
.input.mono { font-family: var(--mono); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .addon { display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); color: var(--dim); font-family: var(--mono); font-size: 13px; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--dim); cursor: pointer; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--signal); width: 15px; height: 15px; flex-shrink: 0; }
.check b { color: var(--text); font-weight: 500; }

/* Segmented pills */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; }
.pill:hover { color: var(--text); border-color: #4a4a40; }
.pill.active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Tabs */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab:hover { color: var(--dim); }
.tab.active { color: var(--text); border-bottom-color: var(--signal); }

/* ─── Data display ───────────────────────────────────────────────────── */
.mono-box { font-family: var(--mono); font-size: 13.5px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; word-break: break-all; color: var(--text); min-height: 42px; }
.blurred { filter: blur(5px); user-select: none; cursor: pointer; transition: filter .2s; }
.reveal-hint { position: relative; }
.big-value { font-family: var(--mono); font-size: clamp(18px, 3.4vw, 26px); font-weight: 500; letter-spacing: -.02em; word-break: break-all; line-height: 1.25; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-family: var(--mono); font-size: 11px; color: var(--dim); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.signal { color: var(--signal); border-color: rgba(215,255,58,.3); background: var(--signal-soft); }
.tag.warn { color: var(--warn); border-color: rgba(255,178,36,.3); background: var(--warn-soft); }
.kv { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-family: var(--mono); font-size: 12px; padding-top: 1px; }
.kv dd { color: var(--text); word-break: break-word; }

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(215,255,58,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215,255,58,.5) } 70% { box-shadow: 0 0 0 8px rgba(215,255,58,0) } 100% { box-shadow: 0 0 0 0 rgba(215,255,58,0) } }

.meter { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.meter > div { height: 100%; background: var(--signal); transition: width 1s linear; }
.meter.warn > div { background: var(--warn); }
.meter.danger > div { background: var(--danger); }

/* ─── Notices ────────────────────────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 16px; line-height: 1.5; color: var(--dim); }
.notice .i { margin-top: 2px; }
.notice b { color: var(--text); font-weight: 600; }
.notice.warn { border-color: rgba(255,178,36,.35); background: var(--warn-soft); }
.notice.warn .i { color: var(--warn); }
.notice.danger { border-color: rgba(255,91,79,.35); background: var(--danger-soft); }
.notice.danger .i { color: var(--danger); }
.notice.ok { border-color: rgba(215,255,58,.3); background: var(--signal-soft); }
.notice.ok .i { color: var(--signal); }
.notice code, code.inline { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; color: var(--text); }

/* ─── Empty / loading ────────────────────────────────────────────────── */
.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .i { width: 28px; height: 28px; stroke-width: 1.4; margin-bottom: 12px; color: var(--line-2); }
.empty b { display: block; color: var(--dim); font-weight: 500; margin-bottom: 2px; }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ─── Lists ──────────────────────────────────────────────────────────── */
.list-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--signal); }
.avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); flex-shrink: 0; text-transform: uppercase; }

/* ─── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal-overlay.open { display: grid; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; width: 100%; max-width: 680px; max-height: 88vh; display: flex; flex-direction: column; animation: modalIn .18s ease-out; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-header h3 { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ─── Toast ──────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; left: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); padding: 11px 15px; font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 32px rgba(0,0,0,.5); animation: toastIn .2s ease-out; max-width: 380px; transition: opacity .3s; pointer-events: auto; }
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.toast.success::before { background: #5c8a00; }
.toast.error { background: var(--danger); color: #fff; }
.toast.error::before { background: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { font-size: 12.5px; color: var(--muted); }

/* ─── Account ───────────────────────────────────────────────────────── */
.acc-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; flex-shrink: 0; transition: border-color .15s; }
.acc-btn:hover { border-color: var(--signal); }
.acc-btn .i { width: 15px; height: 15px; }
.acc-pill { font-family: var(--mono); font-size: 11.5px; background: var(--signal); color: var(--signal-ink); border-radius: 99px; padding: 1px 8px; font-weight: 600; }
.acc-pill:empty { display: none; }
.acc-btn:has(.acc-pill:empty) { padding-right: 12px; }
.acc-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acc-balance { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.acc-credits { font-family: var(--mono); font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.acc-cost { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.acc-cost .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.acc-keycallout .mono-box { border-color: rgba(215,255,58,.4); }
.copy-row { display: flex; gap: 6px; margin-bottom: 12px; }
.copy-row .mono-box { flex: 1; font-size: 12.5px; min-height: 0; padding: 9px 12px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pack { text-align: left; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; transition: all .15s; }
.pack:hover { border-color: #4a4a40; }
.pack.active { border-color: var(--signal); background: var(--signal-soft); }
.pack .n { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.pack .l { font-size: 12px; color: var(--muted); }
.pack .p { font-size: 15px; font-weight: 600; margin-top: 8px; }
.pack .per { font-size: 11.5px; color: var(--dim); }
.pay-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.pay-qr { background: #fff; padding: 10px; border-radius: var(--r-sm); width: 150px; height: 150px; }
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pro { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; background: var(--signal); color: var(--signal-ink); vertical-align: 1px; }
.free { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--dim); vertical-align: 1px; }
@media (max-width: 600px) { .packs { grid-template-columns: 1fr; } .pay-grid { grid-template-columns: 1fr; } .pay-qr { margin: 0 auto; order: -1; } .acc-btn span[data-acc-label] { display: none; } }

/* ─── SEO content ───────────────────────────────────────────────────── */
.seo { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.seo h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
.seo h2:not(:first-child) { margin-top: 44px; }
.seo-steps { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.seo-steps li { counter-increment: s; display: flex; gap: 14px; font-size: 14.5px; color: var(--dim); line-height: 1.6; }
.seo-steps li::before { content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--text); }
.seo-faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 8px; }
.seo-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.seo-faq details[open] summary::after { content: '−'; }
.seo-faq p { padding: 0 16px 16px; color: var(--dim); font-size: 14.5px; line-height: 1.65; }
.seo-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.seo-related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; transition: border-color .15s; }
.seo-related a:hover { border-color: var(--signal); }
.seo-related b { display: block; font-weight: 500; margin-bottom: 3px; }
.seo-related span { font-size: 13px; color: var(--dim); }
.footer-col { max-width: 420px; }
.footer-col p { margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { font-size: 13px; color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--signal); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .site-header-inner { padding: 0 16px; gap: 14px; }
    .site-nav a span { display: none; }
    .site-nav a { padding: 8px 10px; }
    .site-nav a.active span { display: inline; }
}
@media (max-width: 600px) {
    .page { padding: 36px 16px 56px; }
    .card { padding: 18px; }
    .row { grid-template-columns: 1fr; gap: 0; }
    .tool-head { margin-bottom: 28px; }
    .tool-head p { font-size: 15px; }
    .site-footer-inner { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
