/* ==========================================================================
   Passwords365 public website (Http/Site/*). Built on app.css: the same tokens as the dashboard
   (--np-bg #0b0b0c, --np-surface #161513, --np-ink, --np-muted, --np-gold #d4af37), the same type
   (Schibsted Grotesk, JetBrains Mono) and the same pill buttons. Gold is the one accent.
   The look: one dark ground, hairline dividers instead of coloured bands, quiet glows behind the
   real screenshots, tight headings, mono eyebrows. Motion: the hero enters once on load; links,
   buttons and linked cards answer the pointer. Nothing fades in on scroll.
   ========================================================================== */
body.site {
    --s-hair: linear-gradient(90deg, transparent, var(--np-line-strong) 20%, var(--np-line-strong) 80%, transparent);
    --s-gold-hair: linear-gradient(90deg, transparent, rgba(212, 175, 55, .55), transparent);
    --s-card: linear-gradient(180deg, rgba(242, 237, 227, .035), rgba(242, 237, 227, .01));
    --s-ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--np-bg); color: var(--np-text);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
}
.site-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--np-gold); color: var(--np-gold-ink); padding: .5rem 1rem; border-radius: 999px; }
body.site .btn { --bs-btn-font-size: .95rem; padding-block: .55rem; }
body.site .btn-lg { --bs-btn-font-size: 1rem; padding-block: .75rem; padding-inline: 1.65rem; }
body.site .btn-sm { padding-block: .35rem; }
body.site .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 28px -14px rgba(212, 175, 55, .7); }
body.site .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 34px -14px rgba(212, 175, 55, .85); }
body.site .btn-outline-secondary { background: rgba(242, 237, 227, .02); }

/* ---------- Header: slim, translucent ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--np-bg) 72%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: background-color .25s ease; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--s-hair); opacity: 0; transition: opacity .25s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--np-bg) 86%, transparent); }
.site-header.is-scrolled::after { opacity: 1; }
.site-nav { padding: .6rem 0; background: transparent; border: 0; }
.site-nav .brand { font-size: 1.1rem; }
.site-nav .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.site-nav .nav-link { position: relative; font-weight: 500; font-size: .92rem; color: var(--np-muted); padding: .45rem .75rem !important; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: var(--np-ink); background: rgba(242, 237, 227, .05); }
.site-nav .nav-link.active { color: var(--np-ink); }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--np-gold); }
.site-nav .btn { --bs-btn-font-size: .9rem; padding-block: .4rem; }
.site-toggler { border: 1px solid var(--np-line-strong); border-radius: 999px; color: var(--np-ink); font-size: 1.3rem; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.site-toggler:focus { box-shadow: 0 0 0 .2rem var(--np-gold-soft); }
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { padding: .75rem 0 .5rem; }
    .site-nav .navbar-nav { margin-bottom: 1rem; }
    .site-nav .nav-link { font-size: 1.05rem; padding: .7rem .25rem !important; border-radius: 0; border-bottom: 1px solid var(--np-line); }
    .site-nav .nav-link:hover { background: transparent; }
    .site-nav .nav-link.active::after { left: auto; right: .25rem; top: 50%; bottom: auto; margin: -2px 0 0; }
    .site-nav-actions .btn { flex: 1 1 auto; padding-block: .65rem; }
}

/* ---------- Sections and type ---------- */
/* overflow-x: clip keeps the screenshot glows from widening the page (and, unlike hidden, keeps sticky children working). */
.site-section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow-x: clip; }
.site-section-tight { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; }
/* "alt" sections no longer paint a band: a hairline on top and a faint glow keep the rhythm. */
.site-section-alt { background: radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, .045), transparent 70%); }
.site-section-alt::before { content: ""; position: absolute; top: 0; left: max(1.5rem, calc(50% - 660px)); right: max(1.5rem, calc(50% - 660px)); height: 1px; background: var(--s-hair); }
.site-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.site-eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--np-gold); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.text-center .site-eyebrow::after, .site-head.text-center .site-eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.site-title { color: var(--np-ink); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 1.1rem; text-wrap: balance; }
.site-lead { color: var(--np-muted); font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.6; max-width: 640px; text-wrap: pretty; }
.text-center .site-lead, .site-head.text-center .site-lead { margin-left: auto; margin-right: auto; }
.site-subtitle { color: var(--np-ink); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.site-narrow { max-width: 860px; }
.site-crumbs { padding-top: 1.5rem; }
.site-breadcrumb { font-size: .85rem; margin: 0; --bs-breadcrumb-divider-color: var(--np-line-strong); }
.site-breadcrumb a { color: var(--np-muted); text-decoration: none; transition: color .2s ease; }
.site-breadcrumb a:hover { color: var(--np-gold); }
.site-breadcrumb .active { color: var(--np-text); }
.page-hero { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--np-line) 1px, transparent 1px), linear-gradient(90deg, var(--np-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; opacity: .45; -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 70%); }
.page-hero h1 { color: var(--np-ink); font-weight: 500; letter-spacing: -0.045em; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.02; margin-bottom: 1.1rem; max-width: 900px; text-wrap: balance; }
.page-hero.text-center h1, .text-center > .page-hero h1 { margin-left: auto; margin-right: auto; }
/* Content right under a page hero needs no full section gap. */
.page-hero + .site-section, .page-hero + .site-section-tight { padding-top: clamp(1rem, 2.5vw, 2rem); }
/* Pages with a narrow reading column put their breadcrumbs on the same edge. */
main:has(> .page-hero > .container.site-narrow:not(.text-center)) > .site-crumbs { max-width: 860px; }

/* ---------- Home hero ---------- */
.site-hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; overflow: hidden; isolation: isolate; }
.site-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1100px, 140vw); height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(212, 175, 55, .2), rgba(212, 175, 55, .05) 55%, transparent 75%); pointer-events: none; }
.site-hero::after { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none; background-image: linear-gradient(var(--np-line) 1px, transparent 1px), linear-gradient(90deg, var(--np-line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; opacity: .55; -webkit-mask-image: radial-gradient(60% 55% at 50% 10%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 10%, #000 20%, transparent 75%); }
.site-hero h1 { position: relative; color: var(--np-ink); font-weight: 500; letter-spacing: -0.055em; line-height: .98; font-size: clamp(2.8rem, 7.6vw, 5.8rem); margin: 0 auto 1.4rem; max-width: 980px; text-wrap: balance; }
.site-hero h1 em { font-style: normal; color: var(--np-gold); background: linear-gradient(180deg, #f3dc86 0%, #d4af37 55%, #a8862a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-hero .site-lead { position: relative; margin: 0 auto; max-width: 620px; }
.site-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .95rem .3rem .4rem; border: 1px solid var(--np-line-strong); border-radius: 999px; font-size: .84rem; color: var(--np-text); background: rgba(22, 21, 19, .7); text-decoration: none; margin-bottom: 1.75rem; transition: border-color .2s ease, color .2s ease; }
.site-pill i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--np-gold-soft); color: var(--np-gold); font-size: .8rem; }
.site-pill:hover { border-color: rgba(212, 175, 55, .5); color: var(--np-ink); }
.site-hero-shot { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.site-hero-shot::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; z-index: 2; background: var(--s-gold-hair); }

/* Screenshot frames: a slim window with a hairline and a glow behind it. */
.site-frame { position: relative; border-radius: 16px; padding: 6px; background: linear-gradient(180deg, rgba(242, 237, 227, .08), rgba(242, 237, 227, .02)); border: 1px solid var(--np-line-strong); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4); }
.site-frame .site-shot { border-radius: 11px; display: block; width: 100%; height: auto; background: var(--np-bg); }
.site-hero-shot .site-frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.site-split .site-frame { isolation: isolate; }
.site-split .site-frame::before { content: ""; position: absolute; z-index: -1; inset: 8% -6% -8%; border-radius: 40px; background: radial-gradient(closest-side, rgba(212, 175, 55, .16), transparent 75%); filter: blur(8px); pointer-events: none; }
.site-frame { transition: border-color .35s ease; }
.site-frame .site-shot { transition: transform .6s var(--s-ease); }
.site-split .site-frame:hover, .site-tools .site-frame:hover { border-color: rgba(212, 175, 55, .35); }

/* ---------- Trust strip: one row, divided by hairlines ---------- */
.site-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--np-line); border-bottom: 1px solid var(--np-line); }
.site-trust-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1.6rem 1.5rem; }
.site-trust-item + .site-trust-item { border-left: 1px solid var(--np-line); }
.site-trust-item i { color: var(--np-gold); font-size: 1.15rem; line-height: 1.3; }
.site-trust-item b { display: block; color: var(--np-ink); font-weight: 500; margin-bottom: .2rem; }
.site-trust-item span { font-size: .88rem; color: var(--np-muted); line-height: 1.5; }
@media (max-width: 991.98px) {
    .site-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-trust-item:nth-child(3) { border-left: 0; }
    .site-trust-item:nth-child(n+3) { border-top: 1px solid var(--np-line); }
}
@media (max-width: 575.98px) {
    .site-trust { grid-template-columns: minmax(0, 1fr); }
    .site-trust-item + .site-trust-item { border-left: 0; border-top: 1px solid var(--np-line); }
    .site-trust-item { padding: 1.2rem .25rem; }
}
.site-section-tight.site-section-alt:has(.site-trust) { background: none; padding-top: 0; }
.site-section-tight.site-section-alt:has(.site-trust)::before { display: none; }

/* ---------- Feature cards, splits, checks ---------- */
.site-feature { position: relative; padding: 1.75rem; border: 1px solid var(--np-line); border-radius: var(--np-radius); background: var(--s-card), var(--np-bg); transition: transform .3s var(--s-ease), border-color .3s ease, background-color .3s ease; overflow: hidden; }
.site-feature::before { content: ""; position: absolute; top: 0; left: 1.75rem; right: 1.75rem; height: 1px; background: var(--s-gold-hair); opacity: 0; transition: opacity .3s ease; }
.site-feature:hover { border-color: var(--np-line-strong); }
.site-feature:hover::before { opacity: 1; }
.site-feature:has(.site-more):hover { transform: translateY(-2px); }
.site-feature h3 { color: var(--np-ink); font-weight: 500; letter-spacing: -0.015em; margin: 1.25rem 0 .5rem; font-size: 1.15rem; }
.site-feature p { color: var(--np-muted); margin-bottom: 1rem; font-size: .95rem; line-height: 1.6; }
.site-feature-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; background: linear-gradient(180deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .06)); color: var(--np-gold); border: 1px solid rgba(212, 175, 55, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.site-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--np-gold); text-decoration: none; font-weight: 500; font-size: .93rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 1px; transition: background-size .3s var(--s-ease), color .2s ease; }
.site-more i { transition: transform .25s var(--s-ease); }
.site-more:hover { color: var(--np-gold-hover); background-size: 100% 1px; }
.site-more:hover i { transform: translateX(3px); }
.site-split { align-items: center; }
.site-split h2, .site-split h3 { color: var(--np-ink); font-weight: 500; letter-spacing: -0.03em; }
.site-split p { color: var(--np-muted); font-size: 1.05rem; line-height: 1.65; }
.site-checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .65rem; }
.site-checks li { display: flex; gap: .7rem; color: var(--np-text); font-size: .97rem; }
.site-checks i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--np-gold-soft); color: var(--np-gold); flex-shrink: 0; margin-top: .12rem; font-size: .8rem; }

/* Steps: mono numbers on one hairline */
.site-num { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--np-line); }
.site-num > div { position: relative; counter-increment: step; padding: 2rem 1.75rem 0 0; }
.site-num > div::before { content: counter(step, decimal-leading-zero); display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85rem; color: var(--np-gold); margin-bottom: 1.25rem; letter-spacing: .05em; }
.site-num > div::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--np-gold); box-shadow: 0 0 0 4px var(--np-bg), 0 0 18px rgba(212, 175, 55, .6); }
.site-num h3 { color: var(--np-ink); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.site-num p { color: var(--np-muted); margin: 0; font-size: .95rem; line-height: 1.6; }
@media (max-width: 991.98px) { .site-num { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; } .site-num > div { border-top: 1px solid var(--np-line); } }
@media (max-width: 575.98px) { .site-num { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; } .site-num > div { padding-right: 0; } }
.site-quote { border-left: 2px solid var(--np-gold); padding: .25rem 0 .25rem 1.25rem; color: var(--np-text); }

/* ---------- Pricing ---------- */
.site-billing { display: inline-flex; padding: 4px; border: 1px solid var(--np-line-strong); border-radius: 999px; background: var(--np-surface); }
.site-billing button { border: 0; background: transparent; color: var(--np-muted); padding: .5rem 1.2rem; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: color .2s ease, background-color .2s ease; min-height: 40px; }
.site-billing button:hover { color: var(--np-ink); }
.site-billing button.active { background: var(--np-gold); color: var(--np-gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.price-card { position: relative; padding: 2rem; border: 1px solid var(--np-line); border-radius: 20px; background: var(--s-card), var(--np-bg); height: 100%; display: flex; flex-direction: column; transition: border-color .3s ease; }
.price-card:hover { border-color: var(--np-line-strong); }
.price-card.is-featured { border-color: transparent; background: linear-gradient(var(--np-surface), var(--np-surface)) padding-box, linear-gradient(180deg, rgba(212, 175, 55, .85), rgba(212, 175, 55, .12) 70%) border-box; box-shadow: 0 40px 80px -50px rgba(212, 175, 55, .55); }
.price-badge { position: absolute; top: -12px; left: 2rem; background: var(--np-gold); color: var(--np-gold-ink); font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .75rem; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.price-card h3 { color: var(--np-ink); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.015em; }
.price-card .price-desc { color: var(--np-muted); min-height: 3rem; font-size: .95rem; }
.price-amount { font-size: 2.8rem; font-weight: 500; color: var(--np-ink); letter-spacing: -0.045em; line-height: 1; }
.price-amount small { font-size: .9rem; color: var(--np-muted); font-weight: 400; letter-spacing: 0; }
.price-note { font-size: .85rem; color: var(--np-muted); min-height: 1.3rem; }
.price-card .site-checks { flex-grow: 1; align-content: start; }
[data-billing="annual"] .price-monthly, [data-billing="monthly"] .price-annual { display: none; }
.site-table { --bs-table-bg: transparent; --bs-table-color: var(--np-text); --bs-table-border-color: var(--np-line); }
.site-table thead th { color: var(--np-ink); font-weight: 500; position: sticky; top: 0; background: var(--np-bg); }
.site-table th[scope="row"] { color: var(--np-text); font-weight: 400; }
.site-table td { text-align: center; }
.site-table tbody tr { transition: background-color .15s ease; }
.site-table tbody tr:hover { background: rgba(242, 237, 227, .025); }
.site-table .bi-check-lg { color: var(--np-gold); }
.site-table .bi-dash { color: var(--np-muted); opacity: .6; }
.site-table tr.site-table-group th { color: var(--np-gold); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-top: 1.75rem; }

/* ---------- FAQ: separated rows, no boxes ---------- */
.site-faq { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--np-line); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-btn-color: var(--np-ink); --bs-accordion-active-color: var(--np-ink); --bs-accordion-active-bg: transparent; --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--np-gold-soft); --bs-accordion-btn-padding-x: .25rem; --bs-accordion-btn-padding-y: 1.25rem; --bs-accordion-body-padding-x: .25rem; --bs-accordion-body-padding-y: 0; border-top: 1px solid var(--np-line); }
.site-faq .accordion-item { border-left: 0; border-right: 0; border-top: 0; }
.site-faq .accordion-button { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; box-shadow: none; transition: color .2s ease; }
.site-faq .accordion-button:hover { color: var(--np-gold); }
.site-faq .accordion-button:focus-visible { box-shadow: var(--bs-accordion-btn-focus-box-shadow); }
.site-faq .accordion-button::after { background-image: none; content: "+"; font-size: 1.4rem; font-weight: 300; line-height: 1; width: auto; height: auto; color: var(--np-muted); transition: transform .3s var(--s-ease), color .2s ease; }
.site-faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); color: var(--np-gold); }
.site-faq .accordion-body { color: var(--np-muted); line-height: 1.7; padding-bottom: 1.4rem; max-width: 720px; }
.site-faq .accordion-body p:last-child { margin-bottom: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.faq-cats a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--np-line-strong); color: var(--np-text); text-decoration: none; font-size: .9rem; transition: border-color .2s ease, color .2s ease; }
.faq-cats a:hover { border-color: var(--np-gold); color: var(--np-gold); }
.faq-group { scroll-margin-top: 90px; }
.faq-group h2 { color: var(--np-ink); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: .75rem; }

/* ---------- CTA ---------- */
.site-cta { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.site-cta-box { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: 28px; border: 1px solid rgba(212, 175, 55, .28); background: radial-gradient(90% 120% at 50% 0%, rgba(212, 175, 55, .16), transparent 60%), var(--np-surface); }
.site-cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--np-line) 1px, transparent 1px), linear-gradient(90deg, var(--np-line) 1px, transparent 1px); background-size: 48px 48px; background-position: center; -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent 75%); opacity: .6; }
.site-cta-box::after { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: var(--s-gold-hair); }
.site-cta-box .site-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* ---------- Forms (contact) ---------- */
.site-form .form-control, .site-form .form-select { background-color: var(--np-surface); min-height: 48px; }
.site-form textarea.form-control { min-height: 160px; }
.site-form .form-label { font-size: .9rem; color: var(--np-text); font-weight: 500; }
.site-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer-main { position: relative; padding: 4.5rem 0 2rem; background: var(--np-bg); overflow: hidden; }
.site-footer-main::before { content: ""; position: absolute; top: 0; left: max(1.5rem, calc(50% - 660px)); right: max(1.5rem, calc(50% - 660px)); height: 1px; background: var(--s-hair); }
.site-footer-lede { color: var(--np-muted); max-width: 340px; margin: .9rem 0 1.4rem; font-size: .95rem; line-height: 1.6; }
.site-footer-h { color: var(--np-ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer-links li { margin-bottom: .55rem; }
.site-footer-links a, .site-footer-legal a { color: var(--np-muted); text-decoration: none; font-size: .93rem; transition: color .2s ease; }
.site-footer-links a:hover, .site-footer-legal a:hover { color: var(--np-ink); }
.site-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--np-line); color: var(--np-muted); font-size: .85rem; }
.site-social a { color: var(--np-muted); font-size: 1.15rem; transition: color .2s ease; }
.site-social a:hover { color: var(--np-gold); }
@media (max-width: 991.98px) { .site-footer-links a { display: inline-block; padding: .3rem 0; } }

/* ---------- Documentation ---------- */
.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 3rem; padding: 2rem 0 5rem; }
@media (max-width: 1199.98px) { .docs-shell { grid-template-columns: 230px minmax(0, 1fr); } .docs-toc-col { display: none; } }
@media (max-width: 991.98px) { .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.docs-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; padding-right: .5rem; scrollbar-width: thin; }
.docs-sidebar h2 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--np-muted); margin: 1.5rem 0 .5rem .75rem; }
.docs-sidebar a { position: relative; display: block; padding: .38rem .75rem; border-radius: 8px; color: var(--np-muted); text-decoration: none; font-size: .91rem; transition: color .15s ease, background-color .15s ease; }
.docs-sidebar a:hover { background: rgba(242, 237, 227, .04); color: var(--np-ink); }
.docs-sidebar a.active { background: var(--np-gold-soft); color: var(--np-gold); font-weight: 500; }
.docs-sidebar a.active::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 2px; border-radius: 2px; background: var(--np-gold); }
.docs-content { max-width: 760px; }
.container.site-narrow.docs-content { max-width: 860px; } /* legal and about pages: on the hero's edges */
.docs-content h1 { color: var(--np-ink); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(2.1rem, 4vw, 2.8rem); line-height: 1.08; margin-bottom: .9rem; text-wrap: balance; }
.docs-content .docs-lede { color: var(--np-muted); font-size: 1.15rem; line-height: 1.6; margin-bottom: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--np-line); }
.docs-content h2 { color: var(--np-ink); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.025em; margin: 3rem 0 1rem; padding-top: .5rem; scroll-margin-top: 90px; }
.docs-content h3 { color: var(--np-ink); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; margin: 1.9rem 0 .75rem; scroll-margin-top: 90px; }
.docs-content p, .docs-content li { line-height: 1.75; }
.docs-content :is(ul, ol):not(.breadcrumb) > li + li { margin-top: .25rem; }
.docs-content .site-breadcrumb a { color: var(--np-muted); text-decoration: none; }
.docs-content .site-breadcrumb a:hover { color: var(--np-gold); }
.docs-content ul, .docs-content ol { padding-left: 1.3rem; }
.docs-content ul li::marker { color: var(--np-gold); }
.docs-content code { color: var(--np-gold); background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .14); padding: .05rem .35rem; border-radius: 6px; font-size: .86em; }
.docs-content pre { position: relative; background: var(--np-surface); border: 1px solid var(--np-line); border-radius: 12px; padding: 1rem 1.25rem; color: var(--np-ink); font-size: .86rem; }
.docs-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.docs-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .93rem; }
.docs-content th, .docs-content td { border-bottom: 1px solid var(--np-line); padding: .7rem .75rem; text-align: left; vertical-align: top; }
.docs-content th { color: var(--np-ink); font-weight: 500; font-size: .85rem; }
.docs-content a { color: var(--np-gold); text-decoration-color: rgba(212, 175, 55, .4); text-underline-offset: .2em; transition: text-decoration-color .2s ease; }
.docs-content a:hover { text-decoration-color: currentColor; }
.ui-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-weight: 500; color: var(--np-ink); background: var(--np-surface-2); border: 1px solid var(--np-line); border-radius: 7px; padding: .02rem .5rem; font-size: .9em; }
.ui-path i { font-size: .7em; color: var(--np-muted); }
.doc-note { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid var(--np-line); background: var(--s-card), var(--np-bg); margin: 1.5rem 0; }
.doc-note > i { font-size: 1.1rem; line-height: 1.6; }
.doc-note-info > i { color: #8fb8e0; } .doc-note-tip > i { color: #a9d6a9; } .doc-note-warning > i { color: #e7b86a; } .doc-note-danger > i { color: #f08c7a; }
.doc-note-info { border-left: 2px solid rgba(143, 184, 224, .6); } .doc-note-tip { border-left: 2px solid rgba(169, 214, 169, .6); }
.doc-note-warning { border-color: rgba(224, 165, 74, .3); border-left: 2px solid rgba(231, 184, 106, .8); } .doc-note-danger { border-color: rgba(240, 140, 122, .35); border-left: 2px solid rgba(240, 140, 122, .85); }
.doc-steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.doc-steps > li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.doc-steps > li::before { content: counter(s); position: absolute; left: 0; top: .15rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--np-gold-soft); color: var(--np-gold); border: 1px solid rgba(212, 175, 55, .3); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; font-weight: 500; }
.doc-steps > li:not(:last-child)::after { content: ""; position: absolute; left: .87rem; top: 2.1rem; bottom: -.85rem; width: 1px; background: var(--np-line); }
.doc-figure { margin: 1.75rem 0; padding: 5px; border-radius: 14px; border: 1px solid var(--np-line-strong); background: linear-gradient(180deg, rgba(242, 237, 227, .06), rgba(242, 237, 227, .02)); }
.doc-figure .site-shot { width: 100%; height: auto; border-radius: 10px; display: block; }
.doc-figure figcaption { color: var(--np-muted); font-size: .85rem; margin: .6rem .5rem .35rem; text-align: center; }
.docs-toc { position: sticky; top: 80px; font-size: .86rem; }
.docs-toc h2 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--np-muted); margin-bottom: .85rem; }
.docs-toc a { display: block; color: var(--np-muted); text-decoration: none; padding: .3rem 0 .3rem .85rem; border-left: 1px solid var(--np-line); transition: color .15s ease, border-color .15s ease; }
.docs-toc a:hover { color: var(--np-ink); }
.docs-toc a.active { color: var(--np-gold); border-left-color: var(--np-gold); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.docs-pager a { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--np-line); border-radius: 14px; text-decoration: none; color: var(--np-ink); font-weight: 500; transition: border-color .2s ease, transform .3s var(--s-ease); }
.docs-pager a:hover { border-color: rgba(212, 175, 55, .55); transform: translateY(-2px); }
.docs-pager small { display: block; color: var(--np-muted); font-weight: 400; font-size: .8rem; margin-bottom: .15rem; }
.docs-pager .next { text-align: right; grid-column: 2; }
.docs-related { margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--s-card), var(--np-bg); border: 1px solid var(--np-line); }
.docs-related h2 { margin: 0 0 .5rem; font-size: 1rem; padding: 0; }
.docs-mobile-bar { display: none; }
@media (max-width: 991.98px) { .docs-mobile-bar { display: flex; gap: .5rem; align-items: center; } }
.docs-card { position: relative; display: block; height: 100%; padding: 1.5rem; border: 1px solid var(--np-line); border-radius: var(--np-radius); background: var(--s-card), var(--np-bg); text-decoration: none; color: var(--np-text); transition: transform .3s var(--s-ease), border-color .3s ease; }
.docs-card::after { content: "\2192"; position: absolute; top: 1.35rem; right: 1.4rem; color: var(--np-muted); opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s var(--s-ease), color .2s ease; }
.docs-card:hover { transform: translateY(-2px); border-color: rgba(212, 175, 55, .45); color: var(--np-text); }
.docs-card:hover::after { opacity: 1; transform: none; color: var(--np-gold); }
.docs-card h3 { color: var(--np-ink); font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; margin: .9rem 0 .35rem; }
.docs-card p { color: var(--np-muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.docs-card i { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--np-gold-soft); border: 1px solid rgba(212, 175, 55, .22); color: var(--np-gold); font-size: 1.05rem; }

/* Search */
.docs-search { position: relative; }
.docs-search .form-control { padding-left: 2.75rem; height: 3.25rem; border-radius: 999px; background: var(--np-surface); border-color: var(--np-line-strong); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9); }
.docs-search > .bi-search { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--np-muted); pointer-events: none; }
.docs-search-results { position: absolute; z-index: 1040; left: 0; right: 0; top: calc(100% + .5rem); background: var(--np-surface); border: 1px solid var(--np-line-strong); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); max-height: 60vh; overflow: auto; padding: .45rem; display: none; text-align: left; }
.docs-search-results.is-open { display: block; }
.docs-search-results a { display: block; padding: .65rem .85rem; border-radius: 10px; text-decoration: none; color: var(--np-text); }
.docs-search-results a b { display: block; color: var(--np-ink); font-weight: 500; }
.docs-search-results a span { font-size: .86rem; color: var(--np-muted); }
.docs-search-results a.is-active, .docs-search-results a:hover { background: var(--np-surface-2); }
.docs-search-results mark { background: var(--np-gold-soft); color: var(--np-gold); padding: 0 .1em; border-radius: 3px; }
.docs-search-empty { padding: .9rem; color: var(--np-muted); font-size: .92rem; }

/* ---------- Motion: the hero enters once on load; links and cards answer the pointer ---------- */
@keyframes site-enter { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.site-hero .container > *, .page-hero .container > * { animation: site-enter .8s var(--s-ease) both; }
.site-hero .container > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .06s; }
.site-hero .container > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .12s; }
.site-hero .container > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .18s; }
.site-hero .container > :nth-child(n+5), .page-hero .container > :nth-child(n+5) { animation-delay: .26s; }
@media (hover: hover) {
    /* 1.015 of the screenshot stays inside the frame's 6px padding, so nothing needs clipping. */
    .site-split .site-frame:hover .site-shot, .site-tools .site-frame:hover .site-shot { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
    .site-hero .container > *, .page-hero .container > * { animation: none; }
    .site-feature, .docs-card, .docs-pager a, .site-frame, .site-frame .site-shot, .site-more, .site-more i { transition: none; }
    .site-feature:hover, .docs-card:hover, .docs-pager a:hover { transform: none; }
    html { scroll-behavior: auto !important; }
}

/* ---------- Light theme: same system, gold accent kept ---------- */
[data-bs-theme="light"] body.site { --s-card: linear-gradient(180deg, #fff, #fbfaf6); }
[data-bs-theme="light"] .site-header { background: color-mix(in srgb, var(--np-bg) 80%, transparent); }
[data-bs-theme="light"] .site-eyebrow, [data-bs-theme="light"] .site-more, [data-bs-theme="light"] .docs-sidebar a.active, [data-bs-theme="light"] .docs-toc a.active,
[data-bs-theme="light"] .docs-content a, [data-bs-theme="light"] .docs-content code, [data-bs-theme="light"] .site-checks i, [data-bs-theme="light"] .site-feature-icon,
[data-bs-theme="light"] .site-trust-item i, [data-bs-theme="light"] .docs-card i, [data-bs-theme="light"] .site-num > div::before, [data-bs-theme="light"] .site-table tr.site-table-group th { color: #8a6d12; }
[data-bs-theme="light"] .site-hero h1 em { background: linear-gradient(180deg, #b48d1f, #8a6d12); -webkit-background-clip: text; background-clip: text; }
[data-bs-theme="light"] .site-frame { box-shadow: 0 30px 60px -40px rgba(22, 20, 15, .45); }
[data-bs-theme="light"] .site-pill { background: rgba(255, 255, 255, .7); }
@media (max-width: 575.98px) {
    .site-eyebrow { font-size: .68rem; letter-spacing: .1em; }
    .site-eyebrow::before, .site-eyebrow::after { width: 12px; }
}
