@font-face {
    font-family: "Instrument Sans";
    src: url("/assets/fonts/instrument.woff2") format("woff2");
    font-weight: 400 600;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/jetbrains.woff2") format("woff2");
    font-weight: 400 500;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0B0C0A;
    --panel: #141511;
    --line: #2A2C25;
    --text: #F2F1EA;
    --muted: #A3A598;
    --accent: #D7FF3E;
    --error: #FFB4A1;
    --mono: "JetBrains Mono", monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --header: 88px;
    font-family: "Instrument Sans", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; font-size: 16px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: min(calc(100% - 48px), 1120px); margin-inline: auto; }
.service-page .panel { max-width: 760px; }
.section { padding-block: 96px; }
.accent { color: var(--accent); }
.field-note { color: var(--muted); }
.error { color: var(--error) !important; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 12px; background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    a { transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease); }
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
[aria-busy="true"] button:disabled { cursor: wait; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(38px, 5.2vw, 68px); letter-spacing: -.05em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.04em; }
h3 { font-size: 24px; letter-spacing: -.025em; }

.site-header, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-header { min-height: var(--header); gap: 0 24px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-header a, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .logo span { color: var(--accent); }
.logo { gap: 10px; font: 500 20px/1 var(--mono); text-decoration: none; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 80px; color: var(--muted); font-size: 14px; }
.footer-inner { gap: 12px 24px; }

.hero {
    isolation: isolate;
    position: relative;
    overflow: clip;
    padding-block: 36px 96px;
}
.hero-inner { display: grid; justify-items: center; position: relative; }
.hero-copy { text-align: center; }
.hero-copy h1 span { display: block; color: var(--accent); }
.hero-copy p { margin-top: 12px; color: var(--muted); font-size: clamp(18px, 2vw, 20px); text-wrap: balance; }
.hero-card { position: relative; width: min(100%, 740px); margin-top: 28px; }
.hero-card::before {
    position: absolute;
    inset: -52px -22px;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 46%, #D7FF3E21, transparent 68%);
}
.cipher-background { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; user-select: none; }
.cipher-layer {
    position: absolute;
    left: 0;
    color: #171914;
    font: 400 112px/1 var(--mono);
    white-space: nowrap;
    transform: translate3d(var(--pointer-x, 0px), calc(var(--pointer-y, 0px) + var(--scroll-y, 0px)), 0);
}
.cipher-layer:nth-child(1) { top: 12%; }
.cipher-layer:nth-child(2) { top: 44%; color: #1F221B; font-size: 56px; --track-width: 108ch; }
.cipher-layer:nth-child(3) { top: 73%; color: #2D3127; font-size: 24px; --track-width: 184ch; }
.cipher-track {
    display: block;
    width: var(--track-width, 116ch);
    height: 1em;
    overflow: visible;
    fill: currentColor;
    animation: drift 90s linear infinite;
}
.cipher-layer:nth-child(2) .cipher-track { animation-duration: 60s; animation-direction: reverse; }
.cipher-layer:nth-child(3) .cipher-track { animation-duration: 40s; }
@keyframes drift { to { transform: translateX(-25%); } }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.badges li { border: 1px solid var(--line); border-radius: 20px; padding: 8px 12px; color: var(--muted); font: 400 12px/1.5 var(--mono); }

.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.create-panel { box-shadow: 0 24px 80px #0007; }
fieldset { display: grid; gap: 16px; min-inline-size: 0; border: 0; margin: 0; padding: 0; }
label { display: block; color: var(--text); font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.counter { color: var(--muted); font: 400 12px/1.5 var(--mono); }
textarea, input, .readonly-secret {
    display: block;
    min-width: 0;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 12px;
    font: 400 16px/1.5 var(--mono);
}
textarea { min-height: 96px; max-height: 320px; resize: vertical; overflow: auto; overflow-wrap: anywhere; border-radius: 16px; }
textarea::placeholder { color: var(--muted); }
.field-note, .message { font-size: 14px; }
.field-note { display: flex; align-items: flex-start; gap: 8px; }
.field-note svg, .button svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.form-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.segments { display: flex; max-width: 100%; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.segments button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    white-space: nowrap;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
}
.segments button[aria-pressed="true"] { color: var(--bg); background: var(--text); }
.segments button:hover:not(:disabled):not([aria-pressed="true"]) { color: var(--text); border-color: var(--line); }
.button {
    display: inline-flex;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.button.primary { color: var(--bg); background: var(--accent); }
.button.primary:hover:not(:disabled) { background: #E7FF83; }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button.secondary:hover:not(:disabled) { border-color: var(--muted); }
.button.full { width: 100%; min-height: 56px; font-size: 18px; border-radius: 16px; }
form[aria-busy="true"] .primary { animation: busy 1.3s ease-in-out infinite alternate; }
@keyframes busy { to { opacity: .72; } }
.message { color: var(--muted); }
.message:not(:empty), .form-message { min-height: 22px; margin-top: 12px; }
[data-js-required]:not([hidden]) { margin: 0 0 12px; }
.fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 300ms var(--ease), opacity 300ms var(--ease); }
.fold.expanded { grid-template-rows: 1fr; opacity: 1; }
.fold-body { min-height: 0; overflow: clip; }
#pass-fields:not(.expanded) { margin-top: -16px; }
.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pass-grid input { margin-top: 6px; scroll-margin-block: 24px; }
.pass-field { scroll-margin-block: 24px; }
.pass-error { margin: 0; color: var(--error); font-size: 14px; font-weight: 600; }
.pass-error:not(:empty) { margin-top: 6px; }
.pass-grid input[aria-invalid="true"], #reveal-phrase[aria-invalid="true"], #secret[aria-invalid="true"] { border-color: var(--error); }
[aria-invalid="true"]:focus-visible { outline-color: var(--error); }
#secret + .pass-error:not(:empty) { margin-top: 8px; }
#secret { scroll-margin-block: 56px 24px; }
.pass-inner { padding: 4px; display: grid; gap: 12px; }
.pass-inner .button { justify-self: start; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pass-actions svg { width: 18px; height: 18px; flex: none; }

.phrase-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); overscroll-behavior: contain; }
.phrase-dialog::backdrop { background: rgba(11, 12, 10, .55); -webkit-backdrop-filter: blur(10px) saturate(.8); backdrop-filter: blur(10px) saturate(.8); }
.dialog-body { display: grid; gap: 16px; padding: 24px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-head h2 { font-size: 24px; }
.dialog-head p { margin-top: 6px; color: var(--muted); }
.dialog-close { flex: none; width: 44px; padding: 0; }
.dialog-close svg { width: 18px; height: 18px; }
.phrase-dialog output#dialog-phrase { display: block; min-height: 56px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--accent); font: 500 16px/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.dialog-actions { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; }
.dialog-actions svg { width: 18px; height: 18px; flex: none; }
.phrase-dialog .message:not(:empty) { margin-top: 0; }
.phrase-dialog .message:empty { display: none; }
@media (max-width: 480px) {
    .dialog-body { padding: 20px; }
    .dialog-actions { grid-template-columns: 1fr 1fr; }
    .dialog-actions .primary { grid-column: 1 / -1; grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .phrase-dialog[open] { animation: dialog-in 260ms var(--ease) both; }
    .phrase-dialog[open]::backdrop { animation: backdrop-in 260ms var(--ease) both; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
.result-title { display: flex; align-items: center; gap: 12px; }
.result-title svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.result-title h2 { font-size: 24px; }
.result-field, #create-result > .field-note, #another-link { margin-top: 16px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }

.steps { padding: 0; list-style: none; margin: 48px 0 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 36px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--accent); font: 400 64px/1 var(--mono); }
.steps p, .section-lead, .dash-list { color: var(--muted); font-size: 18px; }
.steps p, .section-lead { max-width: 72ch; margin-top: 12px; line-height: 1.6; }
.compare-section { padding-top: 44px; }
.panel-section { background: var(--panel); border-block: 1px solid var(--line); }
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.storage-table { background: var(--bg); }
.table-scroll-hint { display: none; }
@media (max-width: 689px) {
    .table-scroll-hint { display: block; margin: 20px 0 8px; color: var(--muted); font-size: 14px; }
    .table-scroll-hint + .table-wrap { margin-top: 0; }
}
.table-wrap th, .table-wrap td { padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.table-wrap thead th.accent { color: var(--accent); }
.table-wrap tbody th { font-weight: 600; }
.compare-section tbody th, .panel-section .storage-table tbody th { width: 28%; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.topic-table table { min-width: 0; table-layout: fixed; }
.topic-table thead th:first-child { width: 34%; }
.topic-table th, .topic-table td { hyphens: auto; overflow-wrap: break-word; }
.api-request-table thead th:first-child { width: 23%; }
.api-errors-table thead th:first-child { width: 13%; }
.api-errors-table thead th:nth-child(2) { width: 28%; }
.api-request-table table, .api-errors-table table { table-layout: fixed; }
.topic-faq + .topic-table, .faq-list + .topic-table, section:has(> .topic-faq) + .topic-table { margin-top: 48px; }
.topic-table caption { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.compare-section tbody td:nth-child(2) { width: 33%; color: var(--muted); }
.panel-section .storage-table tbody td:nth-child(2) { width: 32%; }
.limits-title { margin-top: 64px; }
.dash-list { max-width: 74ch; list-style: none; margin: 24px 0 0; padding: 0; }
.dash-list li { position: relative; padding-left: 28px; margin-top: 14px; }
.dash-list li::before { content: "−"; color: var(--accent); position: absolute; left: 0; font-family: var(--mono); }
.api-section { padding-bottom: 36px; }
.api-section .button { margin-top: 20px; }
code { font-family: var(--mono); }
.faq-section { padding-top: 48px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    transition: color 300ms var(--ease);
}
.topic-faq summary { font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary::after {
    content: "";
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
    transition: transform 300ms var(--ease), background-size 300ms var(--ease), border-color 300ms var(--ease);
}
@media (hover: hover) {
    .faq-list summary:hover { color: var(--accent); }
    .faq-list summary:hover::after { border-color: var(--accent); }
}
.faq-list details[open]:not(.closing) > summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; }
.faq-list details > p { max-width: 80ch; margin: 0; padding: 0 56px 24px 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.faq-list details > p a { color: var(--accent); }
.cta { overflow: clip; position: relative; isolation: isolate; border-top: 1px solid var(--line); text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta .button { margin-top: 24px; min-height: 56px; padding-inline: 24px; font-size: 18px; }
.cta-cipher { position: absolute; left: 0; bottom: 28px; z-index: -1; color: #171914; font: 400 112px/1 var(--mono); white-space: nowrap; user-select: none; pointer-events: none; }

.service-page { padding-block: 64px 96px; min-height: 60vh; }
.service-page h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.04em; }
.service-page .panel { margin-top: 32px; }
#reveal-pass label, .secret-label { margin-bottom: 8px; font-weight: 600; }
.readonly-secret {
    min-height: 96px;
    max-height: 320px;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#reveal-pass .field-note, #revealed .field-note, #refresh-status { margin-top: 12px; }
.status-state strong { margin-left: 4px; color: var(--accent); }
.status-times { margin: 16px 0; }
.status-times div { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.status-times dd { margin: 0; }
.prose h2 { margin-top: 44px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; }
.prose p { margin-top: 14px; max-width: 80ch; color: var(--muted); font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose li, .table-wrap td, .table-wrap tbody th { line-height: 1.6; }
.prose > .button, .article-list + .button, .blog-guide-link + .button { margin-top: 28px; }
.prose nav { color: var(--muted); margin-bottom: 12px; }
.prose nav a, .related a, .sitemap-list a, .article-list h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.prose ul, .api-docs-content ul { list-style: none; padding-left: 0; }
.prose ul li, .api-docs-content ul li { position: relative; padding-left: 28px; }
.prose ul li::before, .api-docs-content ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); }
.prose ul li:has(> a:only-child)::before { top: 21px; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.article-list article { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .2s; }
.article-list article:hover, .article-list article:focus-within { border-color: var(--accent); }
.article-list h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.article-list h2 a { min-height: 0; color: var(--text); text-decoration: none; }
.article-list h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article-list h2 a:focus-visible { outline: none; }
.article-list article:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.article-list p { margin: 0; color: var(--muted); }
.article-more { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 600; }
@media (max-width: 689px) { .article-list { grid-template-columns: 1fr; } .article-list article { padding: 20px; } }
.service-page code { font-size: 14px; }

.api-docs-header { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.api-docs-header .counter { margin-bottom: 12px; color: var(--accent); }
.api-docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.api-docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 36px; }
.api-docs-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 4px; }
.api-docs-nav p { padding-inline: 12px; margin-bottom: 8px; font-weight: 600; }
.api-docs-nav a { min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.api-docs-nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }
.api-docs-nav a:hover { background: var(--panel); }
.api-docs-content section { scroll-margin-top: 24px; }
.api-docs-content section + section { margin-top: 64px; }
.api-docs-content h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; }
.api-docs-content section > p { margin-top: 14px; max-width: 80ch; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.api-docs-content p a, .api-docs-footer a { color: var(--accent); }
.api-docs-content ul { color: var(--muted); }
.api-docs-content li + li { margin-top: 8px; }
.api-docs-content .api-endpoint { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--text); }
.api-endpoint strong { padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--accent); font: 500 12px/1.5 var(--mono); }
.api-code { min-width: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.api-code figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 14px; }
.api-code pre { overflow-x: auto; margin: 0; padding: 16px; border-top: 1px solid var(--line); background: var(--bg); }
.api-copy-feedback:not(:empty) { margin: 0; padding: 8px 16px; }
#ai-instructions { max-height: 420px; }
.api-states div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.api-states dt { font-weight: 600; }
.api-states dd { margin: 0; color: var(--muted); }
.api-docs-footer { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 32px; }
.api-docs-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.home-resources { padding-top: 48px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.resource-grid a { display: grid; align-content: start; gap: 8px; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-decoration: none; }
.resource-grid a:hover { border-color: var(--accent); }
.resource-grid strong { color: var(--text); font-size: 20px; }
.resource-grid span { color: var(--muted); }
.security-details, .all-questions, .blog-guide-link { margin-top: 24px; }
.blog-guide-link a, .topic-related a { color: var(--accent); }
.topic-related { margin-top: 44px; }
.topic-related h2 { margin-top: 0; }
.topic-related a { display: inline-flex; align-items: center; min-height: 44px; }
input[type="range"] { --fill: 50%; display: block; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill) 100% no-repeat, var(--line); }
input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; border: 4px solid var(--panel); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); -webkit-appearance: none; appearance: none; transition: transform 200ms var(--ease); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--panel); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(215, 255, 62, .3); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(215, 255, 62, .3); }
@media (hover: hover) { input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); } }
input[type="range"]:disabled { cursor: default; opacity: .5; }
.password-result { margin: 8px 0 16px; }
.footer-inner { align-items: start; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.site-footer .footer-groups nav { display: grid; align-content: start; gap: 0; }
.footer-groups p { margin-bottom: 4px; color: var(--text); font-weight: 600; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.entrance .hero-copy { animation: hero-appear 800ms var(--ease) both; }
.entrance .hero-card { animation: appear 800ms var(--ease) 150ms both; }
@keyframes hero-appear { from { transform: translateY(32px); opacity: .78; } to { transform: translateY(0); opacity: 1; } }
@keyframes appear { from { transform: translateY(32px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@supports (animation-timeline: view()) {
    .entrance .reveal-on-scroll {
        animation: appear linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}
@supports not (animation-timeline: view()) {
    .observing:not(.visible) { transform: translateY(32px); opacity: 0; }
    .observing.visible { transition: transform 800ms var(--ease), opacity 800ms var(--ease); }
}
.reveal-on-scroll:focus-within { animation: none !important; transform: none !important; opacity: 1 !important; }

@media (max-width: 800px) {
    .section { padding-block: 68px; }
    .compare-section, .faq-section { padding-top: 32px; }
    .api-section { padding-bottom: 32px; }
    .api-docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
    .api-docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 12px; }
    .api-docs-nav p { flex-basis: 100%; padding: 0; margin-bottom: 0; }
    .api-docs-nav a { padding-inline: 0; text-decoration: underline; }
}
@media (max-width: 640px) {
    .topic-table caption, .topic-table th, .topic-table td { padding: 12px; }
    .site-header { align-content: center; padding-block: 8px; }
    .site-header nav { gap: 0 14px; }
    .site-header nav a { font-size: 14px; }
    .hero { padding-block: 24px 64px; }
    .hero-copy p { font-size: 16px; }
    .hero-card { margin-top: 20px; }
    .panel { padding: 16px; border-radius: 20px; }
    .form-options { gap: 8px; }
    .segments button { padding-inline: 9px; }
    .pass-grid, .copy-row { grid-template-columns: minmax(0, 1fr); }
    .steps { margin-top: 28px; }
    .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
    .steps li > span { font-size: 32px; }
    .steps h3 { font-size: 20px; }
    .limits-title { margin-top: 44px; }
    .cta { padding-block: 80px; }
    .service-page { padding-block: 40px 64px; }
    .site-footer { padding-bottom: 48px; }
    .resource-grid { grid-template-columns: 1fr; }
    .resource-grid a { min-height: 0; }
    .footer-groups { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .site-footer .footer-brand { order: 2; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 360px) {
    .site-header nav { gap: 0 8px; }
    .segments button { padding-inline: 7px; }
    .cipher-layer:nth-child(1), .cta-cipher { font-size: 56px; }
    .cipher-layer:nth-child(2) { font-size: 28px; }
    .cipher-layer:nth-child(3) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .cipher-layer, .create-panel, .observing { transform: none !important; opacity: 1 !important; }
}

.reveal-page { display: grid; justify-items: center; align-content: start; }
.reveal-head { display: grid; justify-items: center; text-align: center; }
.reveal-head .section-lead { margin-top: 16px; max-width: 56ch; color: var(--muted); font-size: 18px; }
.reveal-lock {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--accent);
}
.reveal-lock::before {
    position: absolute;
    inset: -40px;
    z-index: -1;
    content: "";
    background: radial-gradient(circle, #D7FF3E26, transparent 65%);
    pointer-events: none;
}
.reveal-lock svg { width: 36px; height: 36px; overflow: visible; }
.reveal-shackle { transition: transform 500ms var(--ease); transform-origin: 33px 21px; }
[data-state="open"] .reveal-shackle { transform: translate(0, -4px) rotate(28deg); }
[data-state="gone"] .reveal-lock { color: var(--muted); }
[data-state="gone"] .reveal-lock::before { opacity: 0; }
.service-page .reveal-panel { position: relative; width: 100%; max-width: 640px; box-shadow: 0 24px 80px #0007; }
.reveal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 20px; }
.reveal-state { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 500 13px/1.5 var(--mono); }
.reveal-state::before { width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 0 4px #D7FF3E1F; }
[data-state="gone"] .reveal-state::before { background: var(--muted); box-shadow: none; }
#reveal-pass { margin-bottom: 20px; }
.reveal-pass-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 8px; }
#show-reveal-phrase { padding: 0; }
#show-reveal-phrase svg { width: 22px; height: 22px; margin: 0; }
#show-reveal-phrase[aria-pressed="false"] .reveal-eye-slash { display: none; }
#revealed .readonly-secret { border-color: #D7FF3E66; }
#revealed:not([hidden]) { animation: appear 500ms var(--ease) both; }
#copy-secret { margin-top: 16px; }
#reveal-copy-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    margin-top: 8px;
}
#reveal-copy-feedback:not(:empty):not(.error) { color: var(--accent); font-weight: 600; }
#reveal-copy-feedback:not(:empty):not(.error)::before {
    width: 7px;
    height: 12px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}
.reveal-facts { align-items: center; gap: 10px 28px; margin-top: 28px; }
.reveal-facts li { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; color: var(--muted); font-family: inherit; font-size: 14px; line-height: 1.5; }
.reveal-facts li::before { flex: none; width: 14px; height: 2px; border-radius: 1px; content: ""; background: var(--accent); }
.reveal-page:is([data-state="open"], [data-state="gone"]) .reveal-bar .counter { display: none; }
@media (max-width: 640px) {
    .reveal-lock { width: 60px; height: 60px; margin-bottom: 18px; }
    .reveal-head .section-lead { font-size: 16px; }
}

.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.stats-head .segments a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.stats-head .segments a[aria-current="page"] { color: var(--bg); background: var(--text); }
.stats-head .segments a:hover:not([aria-current]) { color: var(--text); }
.stats-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
.stats-tiles div { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.stats-tiles dt { color: var(--muted); font-size: 14px; }
.stats-tiles dd { margin: 8px 0 0; font: 500 clamp(28px, 3vw, 40px)/1.1 var(--mono); letter-spacing: -.03em; }
.service-page .stats-chart { max-width: none; margin: 12px 0 0; }
.stats-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-weight: 600; }
.stats-chart figcaption span, .stats-dates { color: var(--muted); font: 400 12px/1.5 var(--mono); }
.stats-chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.stats-axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats-bar rect { fill: var(--accent); }
.stats-bar .stats-hit { fill: transparent; }
.stats-bar:hover rect:not(.stats-hit) { fill: #E7FF83; }
.stats-bar:hover .stats-hit { fill: #F2F1EA0A; }
.stats-dates { display: flex; justify-content: space-between; margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stats-grid .table-wrap { margin-top: 0; }
.stats-table { min-width: 0 !important; }
.stats-table caption { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.stats-table th, .stats-table td { padding: 12px 20px !important; }
.stats-table tbody th { font-weight: 400; overflow-wrap: anywhere; }
.stats-table td:last-child, .stats-table thead th:last-child { width: 1%; text-align: right; white-space: nowrap; font-family: var(--mono); }
.stats-empty { color: var(--muted); text-align: left !important; white-space: normal !important; font-family: inherit !important; }
.stats-note { margin-top: 20px; }
@media (max-width: 800px) {
    .stats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
.stats-login { display: grid; justify-items: center; align-content: start; }
.service-page .stats-login .panel, .stats-login .panel { width: 100%; max-width: 420px; }
.stats-login label { margin-bottom: 8px; }
.stats-login .button { margin-top: 16px; }
.stats-head .stats-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stats-signout { color: var(--muted); font-size: 14px; }

.toast { position: fixed; inset: auto auto 24px 50%; z-index: 100; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px 12px 14px; overflow: visible; border: 0; border-radius: 14px; color: var(--bg); background: var(--accent); box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(11, 12, 10, .2); font-size: 15px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none; transition: opacity 250ms var(--ease), transform 300ms var(--ease); }
.toast.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .toast { bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .toast { transform: translate(-50%, 0); transition: opacity 150ms linear; } }

.masked { -webkit-text-security: disc; text-security: disc; }

.matrix-rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(0, 0, 0, .25), #000 100%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(0, 0, 0, .25), #000 100%);
}
.matrix-on .cipher-layer { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .create-panel { transition: transform 700ms var(--ease); }
}

.footer-brand { display: grid; justify-items: start; gap: 14px; }
.site-footer a.crafted {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font: 400 13px/1 var(--mono);
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.crafted-dot { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px #D7FF3E80; }
.crafted-brace { color: #5C6052; }
.crafted-string { color: var(--text); font-weight: 600; transition: color 300ms var(--ease); }
@media (hover: hover) {
    .site-footer a.crafted:hover { border-color: #D7FF3E66; color: var(--muted); box-shadow: 0 0 24px #D7FF3E14; }
    .site-footer a.crafted:hover .crafted-string { color: var(--accent); }
}
.site-footer a.crafted:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .crafted-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: crafted-pulse 2.4s var(--ease) infinite; }
}
@keyframes crafted-pulse { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.8); } }
