/* The LoreAI design system for the public site and sign-in pages, from the approved homepage
   (heist variant A, provenance in templates/home.html). Colours, type and the bloom come from
   tokens.css. Order: base, shared components, content pages, sign-in, homepage sections. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--text-body);
    line-height: var(--leading);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--w, var(--wrap))); margin-inline: auto; }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* the light bloom behind every hero */
.bloom { position: relative; overflow: clip; border-bottom: 1px solid var(--rule); background: var(--bloom); }

/* kicker above a heading */
.label { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--accent-deep); }
.sub { max-width: 560px; margin: 26px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid transparent;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent-deep); box-shadow: inset 0 -2px 0 var(--accent-deep); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { background: var(--paper); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--rule-strong); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16); }
.btn-ink:hover { background: var(--accent-deep); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; min-height: 44px; border-radius: var(--radius-sm); font-size: 16px; }

/* masthead */
.masthead { position: relative; z-index: 5; background: var(--ground); }
.bar { --w: 968px; display: flex; align-items: center; height: 61px; }
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.site-nav { display: flex; flex: 1; align-items: center; }
.links { display: flex; flex: 1; justify-content: center; gap: 4px; }
.links a, .signin { display: inline-block; padding: 8px 14px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.links a:hover, .signin:hover, .links a[aria-current="page"] { color: var(--ink); }
.account { display: flex; align-items: center; gap: 8px; }
.menu { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--rule); background: var(--paper); align-items: center; justify-content: center; }
.announce { background: var(--accent); text-align: center; }
.announce a { display: inline-block; padding: 11px 16px; font-size: 16px; line-height: 1.4; color: var(--paper); text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce a:focus-visible { outline-color: var(--paper); outline-offset: -4px; }

/* footer */
.foot { position: relative; overflow: clip; background: var(--accent-deep); color: var(--on-dark); }
.foot :focus-visible { outline-color: var(--paper); }
.foot-grid { --w: 1158px; display: grid; grid-template-columns: 1fr auto; gap: 48px; padding: 140px 0 0; }
.foot .wordmark { color: var(--paper); font-size: 24px; }
.foot-brand p { max-width: 380px; margin-top: 26px; font-size: 16px; line-height: 1.55; }
.foot-brand .legal { margin-top: 36px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 52px; }
.foot h2 { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--paper); }
.foot ul { margin-top: 22px; }
.foot li + li { margin-top: 12px; }
.foot-link { font-size: 16px; line-height: 1.5; text-decoration: none; }
.foot-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.foot-docs { --w: 1158px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.foot-docs h3 { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--paper); }
.foot-docs ul { margin-top: 16px; }
.giant {
    margin: 80px 0 0 7.5vw;
    height: 0.68em;
    overflow: hidden;
    font-family: var(--display);
    font-size: clamp(110px, 25vw, 380px);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.06em;
    color: transparent;
    background: radial-gradient(circle, rgba(165, 160, 255, 0.95) 1.5px, transparent 2.1px) 0 0 / 7px 7px, linear-gradient(90deg, rgba(165, 160, 255, 0.55), rgba(108, 99, 255, 0.5) 45%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

/* crop: one rectangle of an example panel, measured in the panel image's own pixels */
.crop { position: relative; display: block; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: var(--paper); }
.crop img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    width: calc(var(--iw) / var(--w) * 100%);
    height: auto;
    transform: translate(calc(var(--x) / var(--iw) * -100%), calc(var(--y) / var(--ih) * -100%));
}

/* chip: a dotted swatch and an uppercase label on deep violet */
.chip {
    position: absolute;
    display: flex;
    align-items: stretch;
    gap: 5px;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}
.chip i { width: 26px; flex: none; border: 1px solid var(--accent-deep); background: radial-gradient(circle, var(--accent) 0.9px, transparent 1.3px) 0 0 / 3px 3px, var(--paper); box-shadow: inset 0 0 0 3px var(--paper); }
.chip span { padding: 6px 10px; background: var(--accent-deep); color: var(--paper); }

/* folder tabs: each topic is a divider in its own colour, and the selected one runs on into the panel frame */
.f-birth { --folder: var(--folder-rose); --on-folder: var(--paper); }
.f-marriage { --folder: var(--folder-amber); --on-folder: var(--ink); }
.f-transcripts { --folder: var(--folder-teal); --on-folder: var(--paper); }
.f-scans { --folder: var(--folder-indigo); --on-folder: var(--paper); }
.folder-tabs { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin-top: 72px; padding: 8px 20px 0; overflow-x: auto; scrollbar-width: none; }
.tabs { display: flex; align-items: flex-end; gap: 16px; }
.tab, .tab-ink {
    position: relative;
    isolation: isolate;
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 26px 0 12px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: var(--folder);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--on-folder);
    text-decoration: none;
    transition: height 160ms ease;
}
.tab::before, .tab-ink::before {
    content: '';
    position: absolute;
    inset: 0 -7px;
    z-index: -1;
    border-radius: 10px 10px 0 0;
    background: var(--folder);
    transform: perspective(80px) rotateX(9deg);
    transform-origin: bottom;
}
.tab[aria-selected="false"]:hover { height: 46px; }
.tab[aria-selected="true"] { height: 52px; font-weight: 500; }
.tab:focus-visible, .tab-ink:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tab-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: color-mix(in srgb, var(--on-folder) 18%, transparent); }
.tab-ink { --folder: var(--ink); --on-folder: var(--paper); }
.tab-ink .tab-icon { background: radial-gradient(circle, var(--accent-soft) 1px, transparent 1.4px) 0 0 / 4px 4px, var(--ink); outline: 1px solid color-mix(in srgb, var(--tint) 40%, transparent); }
.case { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; background: var(--folder); border-radius: var(--radius); text-align: left; }
.case[hidden] { display: none; }
.case:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.case-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 38px 24px 48px; background: var(--panel); }
.case-label { font-size: 16px; color: var(--accent-deep); }
.case h3 { margin-top: 26px; font-family: var(--display); font-size: 33px; line-height: 1.15; letter-spacing: var(--track-title); }
.case-copy > p:not(.case-label) { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.case-copy .btn { margin-top: 36px; min-height: 46px; padding: 0 18px; font-size: 16px; }
.case-proof { position: relative; min-height: 440px; overflow: hidden; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 50%, transparent), color-mix(in srgb, var(--accent-soft) 30%, transparent)); }
.case-proof::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.7px, transparent 1px) 0 0 / 4px 4px; }
.chip-band { left: 37px; top: 76px; z-index: 1; }
.case-sheet { --pad: 34px; position: absolute; left: 37px; top: 128px; right: 0; background: var(--paper); padding: var(--pad) 0 0 var(--pad); }
.band-row {
    position: absolute;
    left: calc(var(--pad) + (100% - var(--pad)) * var(--bl));
    right: 0;
    top: calc(var(--pad) + (100% - var(--pad)) * var(--bt));
    height: calc((100% - var(--pad)) * var(--bh));
    border: 2px solid var(--accent);
    border-right: 0;
    background: var(--wash);
}

/* questions: a dashed-rule list of disclosures with a plus box */
.faq details { border-bottom: 1px dashed var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq details:first-child summary { padding-top: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { font-size: 19px; line-height: 1.4; }
.faq .box { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--rule-strong); background: var(--paper); }
.faq .box::before, .faq .box::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; margin: -0.5px 0 0 -5.5px; background: var(--ink); }
.faq .box::after { transform: rotate(90deg); }
.faq details[open] .box::after { display: none; }
.faq .answer { padding: 0 58px 26px 0; margin-top: -8px; }
.faq .answer p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.faq .answer a { color: var(--ink); text-underline-offset: 3px; }

/* an example: the scan and the Word file on paper, labelled above each page */
.example-figure { margin: 0; }
.panels { display: grid; gap: 12px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--rule-strong); }
.panels.side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.panels.side .panel { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.panel figcaption { margin-bottom: 8px; font-size: var(--text-body); font-weight: 500; line-height: 1.4; color: var(--accent-deep); }
.panel img { width: 100%; outline: 1px solid var(--dot); }
.example-figure > figcaption { margin-top: 14px; font-size: var(--text-body); line-height: 1.55; color: var(--ink-2); }
.example-figure > figcaption a { color: var(--ink); white-space: nowrap; text-underline-offset: 3px; }

/* page heads: keyword pages, the directory, FAQ, blog, legal pages, 404 */
.breadcrumb { padding-top: 28px; font-size: 15px; color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--rule-strong); }
.breadcrumb a { text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); }
.page-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 40px 0 88px; }
.page-hero.no-example .grid { grid-template-columns: minmax(0, 46rem); }
.page-hero h1, .page-head h1 { font-family: var(--display); font-size: var(--type-page); line-height: 1.08; letter-spacing: var(--track-display); text-wrap: balance; }
.page-hero .intro { margin-top: 24px; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.page-hero .intro a { color: var(--ink); text-underline-offset: 3px; }
.page-head .wrap { padding: 84px 0 80px; }
.page-head .label { margin-bottom: 20px; }
.page-head h1 { max-width: 15em; }
.page-head p { max-width: 40rem; margin-top: 24px; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 36px; }

/* the upload box on a keyword page */
.try-box { margin-top: 32px; padding: 28px; background: var(--paper); border: 1px dashed var(--rule-strong); border-radius: var(--radius); text-align: center; }
.try-box .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); }
.try-box .title { font-family: var(--display); font-size: 22px; line-height: 1.4; letter-spacing: -0.02em; }
.try-box .formats { margin-top: 6px; color: var(--ink-2); }
.try-box .btn { width: 100%; max-width: 22rem; margin-top: 20px; }
.try-box .fine { margin-top: 14px; line-height: 1.5; color: var(--ink-2); }
.try-box .fine a { color: var(--ink); text-underline-offset: 3px; }

/* long-form text */
.prose-wrap { padding: 24px 0 72px; }
.prose { max-width: 46rem; }
.prose section { padding: 48px 0; border-top: 1px solid var(--rule); }
.prose section:first-child { border-top: 0; }
.prose h2 { margin-bottom: 20px; font-family: var(--display); font-size: var(--type-section); line-height: 1.15; letter-spacing: var(--track-title); }
.prose h3 { margin: 28px 0 12px; font-family: var(--display); font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }
.prose p, .prose li { font-size: var(--text-copy); line-height: 1.6; color: var(--ink-2); }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.5rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose .faq { margin-top: 8px; }
/* the directory spans the page; its guide grid is not a bulleted list */
.prose:has(.directory) { max-width: none; }
.prose:has(.directory) > section > :not(.directory) { max-width: 46rem; }
.prose .doc-grid { margin: 0; padding: 0; list-style: none; }
.prose .doc-grid li { margin: 0 -1px -1px 0; padding: 0; }

.legal { padding-top: 40px; }
.legal h2 { margin: 44px 0 14px; font-size: 24px; letter-spacing: -0.02em; }
.legal h2:first-child { margin-top: 0; }
.page-head .label a { color: inherit; text-underline-offset: 3px; }

/* key and value pairs between hairlines */
.kv { margin: 24px 0; border-top: 1px solid var(--rule); }
.kv div { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kv dt { font-weight: 500; color: var(--ink); }
.kv dd { color: var(--ink-2); }

/* guides: a grid of links between dashed rules */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
/* each cell draws its right and bottom rule; the grid clips the outer ones under its own border */
.doc-grid li { margin: 0 -1px -1px 0; border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.doc-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 28px 30px; text-decoration: none; }
.doc-card .card-title { font-size: 19px; font-weight: 500; line-height: 1.3; }
.doc-card p { margin: 0; font-size: var(--text-copy); line-height: 1.5; color: var(--ink-2); }
.doc-card .more { margin-top: auto; padding-top: 8px; font-size: 16px; font-weight: 500; color: var(--accent); }
.doc-card:hover .card-title { color: var(--accent-deep); }
.doc-card:focus-visible { outline-offset: -3px; }
.directory h3 { margin: 48px 0 18px; font-family: var(--display); font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.directory h3:first-child { margin-top: 8px; }
.related { padding: 56px 0 24px; border-top: 1px solid var(--rule); }
.related h2 { margin-bottom: 24px; font-family: var(--display); font-size: var(--type-section); line-height: 1.15; letter-spacing: var(--track-title); }

/* a template to copy, on a sheet of paper */
.template-doc { margin: 24px 0; }
.template-doc .sheet { padding: 28px; background: var(--paper); border: 1px solid var(--rule-strong); color: var(--ink); font-family: 'Times New Roman', Georgia, serif; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-doc .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* the closing call to action on content pages */
.final-cta { padding: var(--section-y) 0; border-top: 1px solid var(--rule); text-align: center; }
.final-cta h2 { max-width: 14em; margin-inline: auto; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: var(--track-display); }
.final-cta p { max-width: 36rem; margin: 20px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.final-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 36px; }

/* questions and answers on /faq: question left, answer right */
.qa { --w: 1158px; padding: 24px 0 var(--section-y); }
.qa-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 64px; padding: 34px 0; border-bottom: 1px dashed var(--rule); }
.qa-item h2 { font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.qa-item p { font-size: var(--text-copy); line-height: 1.6; color: var(--ink-2); }
.qa-item p + p { margin-top: 0.8em; }
.qa-item a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* blog */
.posts { --w: 1158px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 31px; padding: 56px 0 var(--section-y); }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); text-decoration: none; }
.post-card img { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--rule); }
.post-card-content { display: flex; flex-direction: column; gap: 12px; padding: 28px 30px 30px; }
.post-card h2 { font-family: var(--display); font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.post-card p { font-size: var(--text-copy); line-height: 1.5; color: var(--ink-2); }
.post-card .read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--accent); }
.post-card:hover h2 { color: var(--accent-deep); }
.article { padding: 48px 0 var(--section-y); }
.article .prose { margin-inline: auto; }
.article img { width: 100%; margin: 32px 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.article h2 { margin: 48px 0 16px; }

/* sign-in, sign-up and password pages */
.auth .wrap { --w: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center; padding: 72px 0 96px; }
.auth-intro h1 { font-family: var(--display); font-size: var(--type-page); line-height: 1.08; letter-spacing: var(--track-display); text-wrap: balance; }
.auth-intro p { max-width: 30rem; margin-top: 24px; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.auth-card { padding: 32px 34px 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-card h2 { font-family: var(--display); font-size: 28px; line-height: 1.2; letter-spacing: var(--track-title); }
.auth-card .card-description { margin-top: 10px; color: var(--ink-2); line-height: 1.5; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.auth-card .form-group:first-of-type { margin-top: 0; }
.form-label { font-size: 15px; font-weight: 500; line-height: 1.4; }
.form-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.form-input::placeholder { color: var(--ink-2); opacity: 0.75; }
.form-input:hover { border-color: var(--ink-2); }
.form-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.auth-card .btn-block { margin-top: 28px; min-height: 48px; }
.auth-card .btn-block:disabled { background: var(--panel); border-color: var(--rule); box-shadow: none; color: var(--ink-2); cursor: not-allowed; }
.forgot-password-link-container { margin-top: 2px; }
.auth-card .text-link { font-size: var(--text-body); color: var(--ink-2); text-underline-offset: 3px; }
.auth-card .text-link:hover { color: var(--ink); }
.sign-in-link { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); text-align: center; color: var(--ink-2); }
.sign-in-link [role="button"] { font-weight: 500; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sign-in-link [role="button"]:hover { color: var(--accent); }
.back-link { display: block; margin-top: 20px; text-align: center; color: var(--ink-2); text-underline-offset: 3px; }
.plan-context { margin-bottom: 18px; font-weight: 600; color: var(--accent-deep); }
/* messages are plain text in the status colour, never a tinted box */
.flash-message, .error-message { margin: 0 0 18px; font-size: var(--text-body); line-height: 1.5; transition: opacity 0.3s ease; }
.flash-message.error, .error-message { font-weight: 600; color: var(--danger); }
.flash-message.success { font-weight: 600; color: var(--success); }
.flash-message.warning { font-weight: 600; color: var(--warning); }
.flash-message.info { color: var(--ink); }
#authForm .form-group:nth-of-type(3), #authForm.sign-up-mode .forgot-password-link-container { display: none; }
#authForm.sign-up-mode .form-group:nth-of-type(3) { display: flex; }
.requirements { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.requirements h3 { font-size: 15px; font-weight: 500; }
.requirements li { position: relative; margin-top: 6px; padding-left: 18px; color: var(--ink-2); }
.requirements li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; background: var(--accent); }

/* homepage: hero */
.hero-copy { --w: 1100px; padding-top: 112px; text-align: center; }
.hero h1 { max-width: 16.2em; text-wrap: balance; margin-inline: auto; font-family: var(--display); font-size: var(--type-hero); line-height: 1.12; letter-spacing: var(--track-display); }
.hero h1 .accent { color: var(--accent); font-weight: 500; letter-spacing: 0; }
.hero .lead { max-width: 650px; margin: 30px auto 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.hero .lead strong { font-weight: 400; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 42px; }
.strip { position: relative; height: 290px; margin-top: 56px; }
.strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--dot) 1px, transparent 1px), linear-gradient(90deg, var(--dot) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: -12px 14px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
    mask-image: linear-gradient(to bottom, transparent, #000 45%);
    opacity: 0.8;
}
.strip .sheet { position: absolute; top: 76px; width: 16.2%; padding: 0.9%; background: var(--paper); border: 1px solid var(--rule-strong); }
.strip .sheet .crop { outline: 1px solid var(--dot); }
.strip .s1 { left: -7.8%; }
.strip .s2 { left: 14.4%; }
.strip .s3 { left: 36.6%; width: 13.7%; overflow: hidden; }
.strip .s3 .crop { width: 118%; }
.strip .s3::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 26%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tint) 40%, transparent)); }
.scanline { position: absolute; top: -1px; right: -1px; bottom: 0; width: 2px; background: var(--accent); z-index: 1; }
.pixels i { position: absolute; width: 15px; height: 15px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 85%, transparent) 0.9px, transparent 1.3px) 0 0 / 3px 3px, color-mix(in srgb, var(--tint) 45%, transparent); }
.pixels i:nth-child(1) { left: 37.8%; top: 96px; }
.pixels i:nth-child(2) { left: 38.8%; top: 110px; }
.pixels i:nth-child(3) { left: 38.2%; top: 124px; opacity: 0.6; }
.pixels i:nth-child(4) { left: 45.9%; top: 110px; opacity: 0.6; }
.pixels i:nth-child(5) { left: 43.3%; top: 150px; }
.pixels i:nth-child(6) { left: 44.2%; top: 163px; }
.pixels i:nth-child(7) { left: 41.4%; top: 186px; width: 30px; }
.pixels i:nth-child(8) { left: 38.7%; top: 228px; width: 38px; height: 12px; }
.pixels i:nth-child(n + 9) { background-color: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.pixels i:nth-child(9) { left: 52%; top: 150px; }
.pixels i:nth-child(10) { left: 51.8%; top: 173px; }
.pixels i:nth-child(11) { left: 54%; top: 204px; }
.pixels i:nth-child(12) { left: 55.3%; top: 216px; }
.pixels i:nth-child(13) { left: 53.6%; top: 236px; }
.pixels i:nth-child(14) { left: 56.4%; top: 252px; }
.strip .tile { position: absolute; left: 46.7%; top: 194px; width: 6.6%; aspect-ratio: 1; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule-strong); z-index: 2; }
.strip .tile b {
    font-family: var(--display);
    font-size: clamp(22px, 3.2vw, 46px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: transparent;
    background: radial-gradient(circle, var(--ink) 1.1px, transparent 1.5px) 0 0 / 4px 4px, var(--accent-deep);
    -webkit-background-clip: text;
    background-clip: text;
}
.strip .chip { left: 55.7%; top: 136px; }
.strip .out { position: absolute; background: var(--paper); border: 1px solid var(--rule-strong); padding: 6px; }
.strip .out .crop { opacity: 0.85; }
.strip .o1 { left: 55.7%; top: 166px; width: 7.2%; }
.strip .o2 { left: 61%; top: 197px; width: 6.3%; }
.strip .marker { position: absolute; left: 62.4%; top: 186px; width: 9px; height: 9px; background: var(--accent-deep); }

/* homepage: key facts */
.facts .wrap { --w: 1140px; padding: 69px 0 132px; }
.facts .label { color: var(--ink); font-weight: 400; }
.statement { margin-top: 44px; font-family: var(--display); font-size: clamp(38px, 5vw, 72px); line-height: 1.07; letter-spacing: var(--track-display); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 15px; margin-top: 172px; }
.figures div { padding-top: 42px; border-top: 1px solid var(--rule-strong); }
.figures dt { font-family: var(--display); font-size: clamp(56px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.figures dd { margin-top: 38px; font-size: 16px; line-height: 1.4; }

/* homepage: birth certificates, with the folder tabs */
.birth .wrap { --w: 1096px; padding: 110px 0 120px; text-align: center; }
.birth .label { justify-content: center; }
.birth h2 { max-width: 15.5em; text-wrap: balance; margin: 20px auto 0; font-family: var(--display); font-size: clamp(32px, 3.9vw, 56px); line-height: 1.12; letter-spacing: -0.035em; }

/* homepage: guides by document type, between perforated rails */
.documents { padding: 100px 0 110px; }
.documents .head { --w: 760px; text-align: center; }
.documents .label { justify-content: center; color: var(--accent); }
.documents h2 { max-width: 7.6em; margin: 20px auto 0; font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); line-height: 1.1; letter-spacing: var(--track-display); }
.rails { position: relative; width: min(100% - 32px, 1218px); margin: 64px auto 0; padding: 0 28px; border: 1px solid var(--rule); }
.rails::before, .rails::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; background: radial-gradient(circle, var(--dot) 4.5px, transparent 5px) 50% 14px / 28px 28px repeat-y; }
.rails::before { left: 0; border-right: 1px dashed var(--rule); }
.rails::after { right: 0; border-left: 1px dashed var(--rule); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.cells li { border-bottom: 1px dashed var(--rule); }
.cells li:not(:nth-child(3n)) { border-right: 1px dashed var(--rule); }
.cells li:nth-last-child(-n + 3) { border-bottom: 0; }
.cell { display: flex; flex-direction: column; height: 100%; padding: 0 31px 34px; text-decoration: none; }
.cell:focus-visible { outline-offset: -3px; }
.art { position: relative; display: block; height: 272px; }
.art-page { position: absolute; left: 50%; top: 48px; width: 150px; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--rule-strong); padding: 5px; }
.art-page .crop { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.kind-sheet .art-page { width: 206px; top: 64px; }
.kind-pair .art-page:first-child { margin-left: -46px; top: 60px; width: 124px; opacity: 0.7; }
.kind-pair .art-page:nth-child(2) { margin-left: 42px; top: 44px; width: 132px; }
.art .tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 5px;
    background: var(--panel);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--ink);
    z-index: 1;
}
.art .tag i { width: 16px; height: 16px; border: 1px solid var(--ink-2); background: radial-gradient(circle, var(--ink) 0.8px, transparent 1.2px) 0 0 / 3px 3px, var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.t-a { left: calc(50% + 62px); top: 106px; }
.t-b { right: calc(50% + 62px); top: 140px; }
.t-c { left: calc(50% - 8px); top: 204px; }
.t-d { right: calc(50% + 44px); top: 70px; }
.t-e { left: calc(50% + 70px); top: 52px; }
.kind-sheet .t-a { left: calc(50% + 70px); top: 50px; }
.kind-sheet .t-c { left: calc(50% - 40px); top: 190px; }
.cell-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; line-height: 1.3; }
.cell-body { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.cell .more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 16px; font-weight: 500; color: var(--accent); }
.cell:hover .cell-title { color: var(--accent-deep); }
.all { margin-top: 36px; text-align: center; }
.all a, .all-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--accent); text-underline-offset: 4px; }

/* homepage: how it works, three layers of one page */
.how .wrap { --w: 1096px; padding: 96px 0 120px; }
.how-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; margin-top: 34px; }
.how-head h2 { max-width: 4.6em; padding-left: 53px; font-family: var(--display); font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; }
.how-head p { max-width: 430px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.how-body { position: relative; margin-top: 140px; min-height: 440px; }
.how .stack { position: absolute; left: 50%; top: 0; width: 460px; height: 440px; transform: translateX(-50%); }
.layer { position: absolute; left: 50%; width: 226px; margin-left: -113px; transform: rotateX(58deg) rotateZ(-42deg); border: 1px solid var(--rule-strong); background: var(--paper); }
.layer .crop { display: block; }
.l-word { top: 156px; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule); }
.l-token { top: 66px; aspect-ratio: 1440 / 2036; background: color-mix(in srgb, var(--tint) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.l-token::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.l-token svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-scan { top: -24px; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule-strong); }
.leader { position: absolute; left: 329px; top: 48px; width: 84px; height: 1px; background: var(--ink-2); }
.leader::after { content: ''; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; background: var(--ink); }
.how .steps { position: relative; display: grid; grid-template-columns: 330px 1fr 315px; grid-template-rows: auto auto; row-gap: 72px; }
.how .steps li { max-width: 330px; }
.step-1 { grid-column: 1; grid-row: 1; padding-top: 8px; }
.step-2 { grid-column: 3; grid-row: 1 / span 2; align-self: center; padding-top: 30px; }
.step-3 { grid-column: 1; grid-row: 2; }
.how .steps h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.how .steps p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* homepage: languages, rolling one name at a time */
.lang { --w: 1140px; position: relative; display: grid; grid-template-columns: 341px 1fr; align-items: center; padding: 120px 0 130px; }
.lang-label h2, .lang-label p { font-size: 17px; line-height: 1.4; font-weight: 400; color: var(--ink); max-width: 300px; }
.lang-roll { --fs: clamp(34px, 3.75vw, 54px); --row: calc(var(--fs) * 1.25); height: calc(var(--row) * 7); overflow-x: visible; overflow-y: clip; overflow-clip-margin: 0; }
.lang-words { transform: translateY(calc(var(--i) * var(--row) * -1)); transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1); }
.lang-words li {
    width: max-content; height: var(--row);
    font-family: var(--display); font-size: var(--fs); line-height: 1.25; letter-spacing: -0.03em; white-space: nowrap;
    color: var(--ink); opacity: 0.5;
    transform: scale(0.94); transform-origin: left center;
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-words li[data-d="1"] { opacity: 0.78; transform: scale(0.97); }
.lang-words li[data-d="2"] { opacity: 0.62; }
.lang-words li.on { opacity: 1; transform: scale(1); }
.lang-words.snap, .lang-words.snap li { transition: none; }
/* The focused name: colours drift through the word, a blurred copy behind it glows in the same colours,
   and a light sheen crosses it now and then. One element animates at a time; paused off-screen. */
.lang-words .w { position: relative; display: inline-block; isolation: isolate; }
.lang-words li.on .w {
    background: var(--rainbow-flow); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: lang-flow 7s ease-in-out infinite alternate;
}
.lang-words li.on .w::before {
    content: attr(data-text); position: absolute; inset: 0; z-index: -1;
    background: var(--rainbow-flow); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: blur(20px) saturate(1.9); opacity: 0.85; transform: scale(1.08);
    animation: lang-flow 7s ease-in-out infinite alternate, lang-breathe 3.6s ease-in-out infinite alternate;
}
.lang-words li.on .w::after {
    content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%) no-repeat;
    background-size: 260% 100%; background-position: 130% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: lang-sheen 4.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.lang-roll:not(.is-running) .w, .lang-roll:not(.is-running) .w::before, .lang-roll:not(.is-running) .w::after { animation-play-state: paused; }
@keyframes lang-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes lang-breathe { from { opacity: 0.6; } to { opacity: 0.95; } }
@keyframes lang-sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
    .lang-words li { transition: none; }
    .lang-words li.on .w, .lang-words li.on .w::before { animation: none; }
    .lang-words li.on .w::after { display: none; }
}
.lang-all { grid-column: 1 / -1; }
.lang-all summary { position: absolute; right: 0; top: calc(120px + 3.5 * 1.25 * clamp(34px, 3.75vw, 54px) - 21px); display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 3px; font-size: 16px; cursor: pointer; list-style: none; background: var(--ground); }
.lang-all summary::-webkit-details-marker { display: none; }
.lang-all summary:hover { background: var(--paper); }
.lang-all ul { columns: 5 180px; column-gap: 24px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rule); }
.lang-all li { font-size: 16px; line-height: 1.9; break-inside: avoid; }

/* homepage: pricing */
.pricing .wrap { --w: 1318px; padding: 100px 0 110px; text-align: center; }
.pricing h2 { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: 1.1; letter-spacing: var(--track-display); }
.pricing .sub { margin-top: 16px; }
.period { display: inline-flex; gap: 4px; margin-top: 54px; padding: 4px; background: var(--band); border: 1px solid rgba(1, 0, 2, 0.06); border-radius: var(--radius); }
.period button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; color: var(--ink-2); }
.period button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; text-align: left; }
.plan { display: flex; flex-direction: column; padding: 32px 30px 44px; background: var(--paper); border: 1px solid rgba(1, 0, 2, 0.09); border-radius: var(--radius-lg); }
.plan-pro { border-color: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: var(--shadow-md); }
.plan-art { color: var(--ink); }
.plan-art .node { fill: var(--tint); }
.plan h3 { margin-top: 42px; font-family: var(--display); font-size: 33px; line-height: 1.1; letter-spacing: var(--track-title); }
.plan .summary { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.plan .price { margin-top: 24px; font-size: 23px; font-weight: 600; line-height: 1.4; }
.plan .per { font-weight: 400; font-size: 17px; color: var(--ink-2); }
.plan .cadence { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.plan .btn-block { margin-top: 30px; }
.features { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--rule); }
.features li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }
.features li + li { margin-top: 12px; }
.features .icon { margin-top: 2px; color: var(--ink-2); }
.pricing .note { margin-top: 48px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pricing .note a { text-underline-offset: 3px; }

/* homepage: more real examples */
.ex { --w: 1318px; display: grid; grid-template-columns: 205px 1fr; gap: 132px; padding: 90px 0 110px; }
.ex-side h2 { padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: 32px; line-height: 1.15; letter-spacing: var(--track-title); }
.ex-side p { margin-top: 18px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.ex-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; }
.ex-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(1, 0, 2, 0.1); border-radius: var(--radius-lg); }
.ex-band { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 203px; overflow: hidden; padding: 18px 18px 0; background: var(--band); border-bottom: 1px solid rgba(1, 0, 2, 0.06); }
.ex-page figcaption { min-height: 2.8em; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.ex-page img { margin-top: 6px; background: var(--paper); box-shadow: 0 0 0 1px rgba(1, 0, 2, 0.08); }
.ex-body { padding: 30px 30px 0; }
.ex-body h3 { font-family: var(--display); font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.ex-pair { margin-top: 14px; font-size: 17px; font-weight: 500; line-height: 1.45; }
.ex-caption { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ex-files { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: auto; padding: 26px 24px 28px 30px; }
.ex-files a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; text-decoration: none; }
.ex-files a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* homepage: questions */
.faq-grid { --w: 1158px; display: grid; grid-template-columns: 1fr 549px; gap: 48px; padding: 84px 0 110px; }
.faq-head h2 { font-family: var(--display); font-size: clamp(48px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.045em; }
.faq-head .all-link { margin-top: 28px; }

/* homepage: closing call to action */
.cta { overflow: clip; }
.cta .wrap { --w: 1140px; padding-top: 140px; text-align: center; }
.lockup { display: inline-flex; align-items: baseline; gap: 6px; font-size: 22px; line-height: 1.2; }
.lockup span { font-family: var(--display); letter-spacing: -0.02em; }
.lockup strong { font-weight: 700; letter-spacing: -0.01em; }
.cta h2 { max-width: 12em; margin: 34px auto 0; font-family: var(--display); font-size: clamp(40px, 4.3vw, 62px); line-height: 1.08; letter-spacing: var(--track-display); }
.cta .sub { margin-top: 26px; max-width: 600px; color: var(--ink); }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 34px; margin-top: 40px; }
.cta .btn-ink { min-height: 46px; padding: 0 18px; font-size: 17px; }
.disc-link { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; text-decoration: none; }
.disc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.disc { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.cta-panel { display: grid; grid-template-columns: 184px 1fr; height: 190px; margin-top: 210px; overflow: hidden; border: 1px solid var(--rule); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper); }
.panel-side { padding: 22px 30px 0; background: var(--panel); border-right: 1px solid var(--rule); }
.panel-side .crop { outline: 1px solid var(--rule); }
.panel-main { display: block; padding: 34px 0 0; }
.panel-main .crop { width: 460px; margin-inline: auto; outline: 1px solid var(--rule); box-shadow: 0 1px 6px rgba(1, 0, 2, 0.06); }

@media (max-width: 1080px) {
    .menu { display: inline-flex; }
    .site-nav { position: absolute; left: 0; right: 0; top: 61px; display: none; flex-direction: column; align-items: stretch; padding: 8px 16px 20px; background: var(--ground); border-bottom: 1px solid var(--rule); }
    .site-nav.open { display: flex; }
    .links { flex-direction: column; gap: 0; }
    .links a { display: block; padding: 12px 0; font-size: 17px; }
    .account { margin-top: 10px; gap: 16px; }
    .signin { padding-left: 0; }
    .how .steps { grid-template-columns: 1fr 300px 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-docs { grid-template-columns: repeat(3, 1fr); }
    .ex { grid-template-columns: 1fr; gap: 40px; }
    .ex-side { max-width: 520px; }
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .bloom { background: var(--bloom-narrow); }
    .hero-copy { padding-top: 72px; }
    .hero .lead { font-size: 18px; }
    .strip { height: 230px; margin-top: 48px; }
    .strip .sheet { top: 60px; width: 34%; }
    .strip .s1 { left: -20%; }
    .strip .s2 { left: 18%; }
    .strip .s3 { left: 58%; width: 29%; }
    .strip .tile { left: 80%; top: 150px; width: 15%; }
    .pixels i:nth-child(n + 4), .strip .chip, .strip .out, .strip .marker { display: none; }
    .pixels i:nth-child(1) { left: 61%; top: 80px; }
    .pixels i:nth-child(2) { left: 64%; top: 96px; }
    .pixels i:nth-child(3) { left: 62%; top: 112px; }
    .figures { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
    .figures div { padding-top: 24px; }
    .figures dd { margin-top: 14px; }
    .facts .wrap { padding: 56px 0 80px; }
    .folder-tabs { justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; }
    .case { grid-template-columns: 1fr; }
    .case-proof { min-height: 360px; }
    .cells { grid-template-columns: 1fr 1fr; }
    .cells li { border-right: 0 !important; border-bottom: 1px dashed var(--rule) !important; }
    .cells li:nth-child(odd) { border-right: 1px dashed var(--rule) !important; }
    .cells li:nth-last-child(-n + 2) { border-bottom: 0 !important; }
    .how-head { grid-template-columns: 1fr; }
    .how-head h2 { padding-left: 0; }
    .how-body { margin-top: 56px; }
    .how .stack { position: relative; left: auto; transform: none; margin: 0 auto; width: 100%; max-width: 420px; height: 360px; }
    .leader { display: none; }
    .how .steps { grid-template-columns: 1fr; row-gap: 32px; margin-top: 24px; }
    .step-1, .step-2, .step-3 { grid-column: 1; grid-row: auto; padding-top: 0; }
    .lang { grid-template-columns: 1fr; gap: 32px; padding: 80px 0; }
    .lang-roll { --fs: 30px; }
    .lang-label h2, .lang-label p { max-width: none; }
    .lang-all summary { position: static; margin-top: 8px; }
    .lang-all ul { margin-top: 28px; }
    .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .ex-cards { grid-template-columns: 1fr; max-width: 460px; }
    .faq-grid { grid-template-columns: 1fr; gap: 36px; }
    .cta-panel { grid-template-columns: 110px 1fr; margin-top: 120px; height: 160px; }
    .panel-side { padding: 18px 14px 0; }
    .panel-main { padding: 24px 16px 0; }
    .panel-main .crop { width: 100%; max-width: 420px; }
    .foot-grid { padding-top: 88px; }
    .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
    .foot-docs { grid-template-columns: repeat(2, 1fr); }
    .page-hero .grid, .auth .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .page-hero .grid { padding-bottom: 64px; }
    .auth .wrap { padding: 48px 0 72px; }
    .qa-item { grid-template-columns: 1fr; }
    .posts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .announce a { padding: 10px 8px; }
    .hero h1 { letter-spacing: -0.035em; }
    .hero .actions, .page-head .actions, .final-cta .actions { flex-direction: column; align-items: stretch; }
    .btn { padding: 0 20px; }
    .statement { margin-top: 28px; }
    .statement .br { display: none; }
    .birth .wrap { padding: 72px 0 80px; }
    .folder-tabs { margin-top: 44px; }
    .case-copy { padding: 28px 20px 32px; }
    .case h3 { font-size: 28px; }
    .case-proof { min-height: 300px; }
    .chip-band { left: 16px; top: 28px; }
    .case-sheet { --pad: 18px; left: 16px; top: 76px; }
    .documents { padding: 72px 0 80px; }
    .rails { padding: 0 20px; }
    .rails::before, .rails::after { width: 20px; background-size: 20px 24px; background-position: 50% 12px; }
    .cells, .doc-grid { grid-template-columns: 1fr; }
    .cells li, .cells li:nth-child(odd) { border-right: 0 !important; border-bottom: 1px dashed var(--rule) !important; }
    .cells li:last-child { border-bottom: 0 !important; }
    .cell { padding: 0 18px 28px; }
    .art { height: 250px; }
    .how .wrap { padding: 72px 0 80px; }
    .how .stack { height: 320px; }
    .layer { width: 150px; margin-left: -75px; }
    .l-word { top: 120px; }
    .l-token { top: 56px; }
    .l-scan { top: -6px; }
    .pricing .wrap, .faq-grid { padding: 72px 0 80px; }
    .plan { padding: 28px 22px 32px; }
    .ex { padding: 64px 0 80px; }
    .cta .wrap { padding-top: 88px; }
    .cta .actions { flex-direction: column; }
    .foot-cols, .foot-docs { grid-template-columns: 1fr 1fr; }
    .giant { margin-top: 56px; margin-left: 4vw; }
    .page-head .wrap { padding: 56px 0 56px; }
    .kv div { grid-template-columns: 1fr; gap: 4px; }
    .try-box { padding: 20px 18px; }
    .try-box .icon { display: none; }
    .auth-card { padding: 28px 20px 24px; }
    .example-figure .panels.side { grid-template-columns: minmax(0, 1fr); }
    .post-card img { height: 180px; }
    .faq .answer { padding-right: 0; }
}

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