/*
 * Public landing page ("Hugsa identity"). Everything is scoped under .pub and built on the app tokens (tokens.css).
 * Motifs: ruled ledger paper with a double margin line, hand-drawn contour lines, the amber crossbar from the brand mark.
 * Light = warm paper; dark = deep teal night. No inline scripts; motion is restrained and disabled for reduced-motion users.
 */

.pub {
    --p-paper: #f6f2e9;
    --p-paper-2: #eee8da;
    --p-card: #fffdf8;
    --p-ink: #0b2a31;
    --p-ink-2: #3b545c;
    --p-ink-3: #55707a;
    --p-teal: #0e6a78;
    --p-teal-deep: #0a2a31;
    --p-amber: #f2b84b;
    --p-amber-ink: #0b2a31;
    --p-rule: rgba(14, 106, 120, .13);
    --p-line: rgba(11, 42, 49, .14);
    --p-margin: rgba(214, 150, 30, .55);
    --p-shadow: 0 1px 2px rgba(11, 42, 49, .06), 0 14px 34px -10px rgba(11, 42, 49, .22), 0 40px 80px -30px rgba(11, 42, 49, .28);
    --p-link: #0b5662;
    --p-contour: rgba(14, 106, 120, .22);
    --p-panel: #0a2a31;
    --p-panel-text: #e8f1f2;
    --p-panel-muted: #a9c0c5;
    --p-serif: var(--font-display);
    --p-wrap: 82rem;

    position: relative;
    background: var(--p-paper);
    color: var(--p-ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
}

[data-bs-theme="dark"] .pub {
    --p-paper: #061014;
    --p-paper-2: #0a1b20;
    --p-card: #0d1f25;
    --p-ink: #e8f1f2;
    --p-ink-2: #b4c8cd;
    --p-ink-3: #93abb1;
    --p-teal: #4cb8c4;
    --p-rule: rgba(108, 198, 208, .09);
    --p-line: rgba(180, 220, 226, .14);
    --p-margin: rgba(242, 184, 75, .4);
    --p-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -12px rgba(0, 0, 0, .7), 0 40px 90px -30px rgba(0, 0, 0, .8);
    --p-link: #7fd0d9;
    --p-contour: rgba(108, 198, 208, .2);
    --p-panel: #0c2128;
    --p-panel-text: #e8f1f2;
    --p-panel-muted: #9db6bc;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-bs-theme]) .pub {
        --p-paper: #061014;
        --p-paper-2: #0a1b20;
        --p-card: #0d1f25;
        --p-ink: #e8f1f2;
        --p-ink-2: #b4c8cd;
        --p-ink-3: #93abb1;
        --p-teal: #4cb8c4;
        --p-rule: rgba(108, 198, 208, .09);
        --p-line: rgba(180, 220, 226, .14);
        --p-margin: rgba(242, 184, 75, .4);
        --p-link: #7fd0d9;
        --p-contour: rgba(108, 198, 208, .2);
        --p-panel: #0c2128;
    }
}

/* Double margin line running down the page, like a ledger sheet (wide screens only). */
.pub::before,
.pub::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--p-margin);
    opacity: .55;
    pointer-events: none;
    display: none;
}
@media (min-width: 1280px) {
    .pub::before, .pub::after { display: block; }
    .pub::before { left: calc(50% - var(--p-wrap) / 2 - 1.6rem); }
    .pub::after { left: calc(50% - var(--p-wrap) / 2 - 1.3rem); }
}

.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
.pub a { color: var(--p-link); text-underline-offset: .2em; }
.pub a:hover { color: var(--p-ink); }
.pub [tabindex="-1"]:focus { outline: none; }
.pub :focus-visible { outline: 3px solid var(--p-amber); outline-offset: 3px; border-radius: 4px; }
.pub h1, .pub h2, .pub h3 { font-family: var(--p-serif); color: var(--p-ink); margin: 0; font-weight: 520; }
:where(.pub) p { margin: 0; }
.pub ul, .pub ol { margin: 0; padding: 0; list-style: none; }

.pub-wrap { width: 100%; max-width: var(--p-wrap); margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }

.pub-eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--p-teal);
    margin-bottom: 1.1rem;
}
.pub-eyebrow::before { content: ""; width: 1.6rem; height: 3px; border-radius: 2px; background: var(--p-amber); }

.body-lg { font-size: 1.25rem; color: var(--p-ink-2); line-height: 1.7; max-width: 40rem; }
.fine { font-size: .875rem; color: var(--p-ink-3); }

/* ---------- Header ---------- */
.pub-header {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--p-paper) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--p-line);
}
.pub-header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.pub-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--p-ink) !important; }
.pub-brand .brand-mark { width: 2rem; height: 2rem; flex: none; }
.pub-brand-name { font-family: var(--p-serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.pub-nav { display: none; gap: 1.6rem; margin-inline: auto; }
.pub-nav a { color: var(--p-ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.pub-nav a:hover { color: var(--p-ink); border-bottom-color: var(--p-amber); }
.pub-nav a[aria-current="page"] { color: var(--p-ink); border-bottom-color: var(--p-amber); }
.pub-actions { display: none; align-items: center; gap: 1rem; }
.pub-link { font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--p-ink) !important; padding: .5rem .25rem; }
.pub-link:hover { text-decoration: underline; }

.pub-menu { margin-left: auto; position: relative; }
.pub-menu summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--p-line); font-size: 1.4rem; color: var(--p-ink); }
.pub-menu summary::-webkit-details-marker { display: none; }
.pub-menu-panel {
    position: absolute; right: 0; top: calc(100% + .6rem); width: min(19rem, calc(100vw - 2.5rem));
    display: grid; gap: .25rem; padding: .75rem; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 18px; box-shadow: var(--p-shadow);
}
.pub-menu-panel > a:not(.pbtn) { padding: .7rem .85rem; border-radius: 10px; text-decoration: none; color: var(--p-ink); font-weight: 500; }
.pub-menu-panel > a:not(.pbtn):hover { background: var(--p-paper-2); }
.pub-menu-panel > a[aria-current="page"] { background: var(--p-paper-2); }
.pub-menu-panel .pbtn { margin-top: .4rem; }
.pub-menu-panel .pub-theme { margin: .5rem .25rem .25rem; justify-self: start; }

@media (min-width: 75rem) {
    .pub-nav, .pub-actions { display: flex; }
    .pub-menu { display: none; }
    .pub-actions { margin-left: 0; }
}

/* ---------- Theme toggle ---------- */
.pub-theme { display: inline-flex; border: 1px solid var(--p-line); border-radius: 999px; padding: 3px; margin: 0; min-width: 0; gap: 2px; }
.pub-theme label { position: relative; margin: 0; }
.pub-theme input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.pub-theme label > span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; color: var(--p-ink-3); font-size: .9rem; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.pub-theme input:hover + span { color: var(--p-ink); }
.pub-theme input:checked + span { background: var(--p-ink); color: var(--p-paper); }
.pub-theme input:focus-visible + span { outline: 3px solid var(--p-amber); outline-offset: 1px; }

/* ---------- Buttons ---------- */
.pbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 650 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pbtn-sm { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .9375rem; }
.pub a.pbtn-primary { background: var(--p-amber); color: var(--p-amber-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(214, 150, 30, .7); }
.pub a.pbtn-primary:hover { color: var(--p-amber-ink); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 26px -8px rgba(214, 150, 30, .85); }
.pub a.pbtn-ghost { border-color: var(--p-ink); color: var(--p-ink); background: transparent; }
.pub a.pbtn-ghost:hover { background: var(--p-ink); color: var(--p-paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Hero ---------- */
.pub-hero { position: relative; padding: clamp(4rem, 8vw, 8rem) 0 0; isolation: isolate; }
.pub-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 46rem; z-index: -1; pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 2.4rem, var(--p-rule) 2.4rem calc(2.4rem + 1px));
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.pub-hero-grid { display: grid; gap: clamp(3.5rem, 6vw, 6rem); justify-items: center; text-align: center; }
.pub-hero-copy { max-width: 52rem; display: flex; flex-direction: column; align-items: center; }
.pub-hero-copy .pub-eyebrow { margin-bottom: 1.6rem; }
.pub-hero h1, .hero-headline-sizer { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.25rem); line-height: 1.02; padding-bottom: .08em; letter-spacing: -.04em; font-weight: 500; }
.pub-hero h1 { text-wrap: balance; }
.pub-hero h1 .mark, .hero-headline-sizer .mark { background: linear-gradient(transparent 82%, var(--p-amber) 82% 94%, transparent 94%); padding: 0 .06em; margin: 0 -.06em; color: var(--p-teal); }
.lede { margin-top: 2.2rem; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); color: var(--p-ink-2); max-width: 38rem; line-height: 1.6; }
.pub-hero .cta-row { margin-top: 2.8rem; justify-content: center; }
.pub-hero-status { margin-top: 1.8rem; font-size: .9375rem; color: var(--p-ink-3); max-width: 30rem; }
.pub-hero-status .pub-dot { display: inline-block; vertical-align: middle; margin-right: .5rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--p-amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-amber) 28%, transparent); }

/* Rotating hero. Every state occupies the same grid cell, so the tallest eyebrow / headline / paragraph
   reserves the space and the hero never jumps as states change. Remove data-hero-rotator (or this block
   together with the extra states) to go back to a single static hero. */
.hero-eyebrows, .hero-ledes { display: grid; justify-items: center; }
.hero-eyebrows { margin-bottom: 1.6rem; }
.hero-eyebrows .pub-eyebrow { grid-area: 1 / 1; margin-bottom: 0; }
.hero-ledes { margin-top: 2.2rem; }
.hero-ledes .lede { grid-area: 1 / 1; margin-top: 0; }
.hero-state {
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.hero-state.is-active { opacity: 1; visibility: visible; transition: opacity .35s var(--ease) .1s, visibility 0s; }
.hero-headline-space { display: grid; justify-items: center; }
.hero-headline-space > * { grid-area: 1 / 1; }
.hero-headline-sizer { display: grid; justify-items: center; visibility: hidden; }
.hero-headline-sizer > span { grid-area: 1 / 1; text-wrap: balance; }
.pub-hero h1 { display: grid; justify-items: center; }
.hero-headline { grid-area: 1 / 1; text-wrap: balance; opacity: 0; visibility: hidden; }
.hero-headline.is-active { opacity: 1; visibility: visible; }
.hero-caret {
    display: none; width: .045em; height: .82em; margin-left: .05em; vertical-align: -.02em;
    border-radius: 1px; background: currentColor;
}
.hero-rotate .hero-headline.is-active .hero-caret {
    display: inline-block; animation: hero-caret-blink 1.15s ease-in-out infinite;
}
@keyframes hero-caret-blink {
    0%, 45% { opacity: 1; }
    55%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-state, .hero-headline { transition: none; }
    .hero-caret { display: none; animation: none; }
}

.pub-hero-figure { position: relative; margin: 0; }
.pub-hero-figure figcaption { margin-top: .9rem; font-size: .8125rem; color: var(--p-ink-3); letter-spacing: .02em; }
.pub-contours { position: absolute; z-index: -1; color: var(--p-contour); inset: -18% -14% -16% -14%; width: 128%; height: 134%; pointer-events: none; }

.frame { border-radius: 14px; border: 1px solid var(--p-line); background: var(--p-card); box-shadow: var(--p-shadow); overflow: hidden; }
.shot-pair { display: block; }
.shot-pair img { display: block; width: 100%; height: auto; }
.shot-dark { display: none !important; }
[data-bs-theme="dark"] .shot-light { display: none !important; }
[data-bs-theme="dark"] .shot-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-bs-theme]) .shot-light { display: none !important; }
    :root:not([data-bs-theme]) .shot-dark { display: block !important; }
}

.pub-hero-desktop { display: none; }
.phone { width: min(15.5rem, 68vw); margin-inline: auto; border-radius: 2.1rem; border: 7px solid var(--p-ink); background: var(--p-ink); box-shadow: var(--p-shadow); overflow: hidden; }
.phone .shot-pair img { border-radius: 1.55rem; }
[data-bs-theme="dark"] .phone { border-color: #1d3a42; background: #1d3a42; }

.pub-hero-figure { width: 100%; max-width: 70rem; }
@media (min-width: 52rem) {
    .pub-hero-desktop { display: block; border-radius: 20px; }
    .pub-hero-phone { position: absolute; width: 12.5rem; left: -2.5rem; bottom: -3.5rem; margin: 0; }
    .pub-hero-figure { padding-bottom: 3.5rem; }
    .pub-hero-figure figcaption { text-align: right; }
}
@media (min-width: 90rem) { .pub-hero-phone { left: -4.5rem; width: 13.5rem; } }
@media (max-width: 51.99rem) { .pub-hero-figure { max-width: 24rem; } }

.pub .ledger-strip {
    display: flex; flex-wrap: wrap; margin-top: 6rem; border-block: 1px solid var(--p-line);
}
.ledger-strip li { flex: 1 1 12rem; padding: 1.5rem 1.4rem; font-weight: 550; font-size: .9375rem; color: var(--p-ink); border-left: 1px solid var(--p-line); display: flex; gap: .7rem; align-items: baseline; }
.ledger-strip li:first-child { border-left: 0; }
.ledger-strip li span { font-family: var(--p-serif); color: var(--p-teal); font-size: .875rem; font-variant-numeric: lining-nums; }
@media (min-width: 52rem) { .pub .ledger-strip { margin-top: 8rem; } }
@media (max-width: 40rem) { .ledger-strip li { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--p-line); } .ledger-strip li:first-child { border-top: 0; } }

/* ---------- Sections ---------- */
.pub-section { padding: clamp(5.5rem, 11vw, 11rem) 0; }
.pub-section-tint { background: var(--p-paper-2); border-block: 1px solid var(--p-line); }
.pub-section h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.pub-section-head { margin-bottom: clamp(3.5rem, 7vw, 6rem); max-width: 50rem; }
.pub-section-head-center { margin-inline: auto; text-align: center; }
.pub-section-head-center .body-lg { margin-inline: auto; }
.pub-section-head .body-lg { margin-top: 1.2rem; }

.split { display: grid; gap: 3rem 6rem; }
.split-head .body-lg { margin-top: 1.4rem; }
@media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; } .split-head { position: sticky; top: 7rem; } }

.principles { display: grid; }
.principles li { padding: 2.2rem 0 2.2rem 4rem; border-top: 1px solid var(--p-line); position: relative; counter-increment: pr; }
.principles li:last-child { border-bottom: 1px solid var(--p-line); }
.principles { counter-reset: pr; }
.principles li::before { content: counter(pr, decimal-leading-zero); position: absolute; left: 0; top: 2.35rem; font-family: var(--p-serif); font-size: 1.15rem; color: var(--p-teal); font-variant-numeric: lining-nums; }
.principles h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.principles p { margin-top: .5rem; color: var(--p-ink-2); max-width: 32rem; }

/* ---------- Steps ---------- */
.how-steps { display: grid; gap: 4rem; counter-reset: s; }
@media (min-width: 62rem) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; } }
.how-step { position: relative; display: flex; flex-direction: column; }
.crop { position: relative; width: 100%; aspect-ratio: 820 / 615; }
.crop .shot-pair { position: static; }
.how-no { font-family: var(--p-serif); font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--p-teal); margin-top: 1.4rem; font-variant-numeric: lining-nums; font-weight: 500; }
.how-step h3 { font-size: 1.75rem; margin-top: .4rem; letter-spacing: -.02em; }
.how-step p { margin-top: .8rem; font-size: 1.0625rem; line-height: 1.65; color: var(--p-ink-2); }

/* ---------- Features ---------- */
.features .pub-section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.feature { display: grid; gap: 2.5rem 6rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.feature + .feature { border-top: 1px solid var(--p-line); }
.feature h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); letter-spacing: -.025em; line-height: 1.1; }
.feature-text p { margin-top: 1.3rem; font-size: 1.125rem; line-height: 1.65; color: var(--p-ink-2); max-width: 30rem; }
.feature-text .fine { margin-top: 1.1rem; }
.pub .ticks { margin-top: 1.4rem; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--p-ink); font-weight: 500; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 1.05rem; height: 3px; border-radius: 2px; background: var(--p-amber); }
@media (min-width: 62rem) {
    .feature { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); }
    .feature-rev { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); }
    .feature-rev .feature-text { order: 2; }
}

.pub .extras { margin-top: 3rem; display: grid; gap: 0; border-top: 1px solid var(--p-line); grid-template-columns: 1fr; }
.extras li { display: flex; gap: 1rem; padding: 1.3rem .25rem; border-bottom: 1px solid var(--p-line); align-items: flex-start; }
.extras .bi { color: var(--p-teal); font-size: 1.35rem; margin-top: .1rem; }
.extras strong { display: block; font-weight: 650; }
.extras span { display: block; color: var(--p-ink-2); font-size: .9375rem; margin-top: .15rem; }
@media (min-width: 46rem) { .extras { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 70rem) { .extras { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Personas ---------- */
.personas { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .personas { grid-template-columns: repeat(3, 1fr); } }
.persona {
    position: relative; padding: 3rem 2.5rem 2.6rem 3.4rem; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 24px;
}
.persona::before { content: ""; position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 1px; background: var(--p-margin); opacity: .6; }
.persona-kind { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p-teal); }
.persona h3 { font-size: 1.55rem; margin-top: .6rem; letter-spacing: -.02em; line-height: 1.15; }
.persona p:not(.persona-kind) { margin-top: .9rem; color: var(--p-ink-2); }
.pub .pub-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pub-chips li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--p-line); font-size: .8125rem; font-weight: 600; color: var(--p-ink); background: var(--p-paper); }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 2rem; max-width: 62rem; margin-inline: auto; }
@media (min-width: 52rem) { .plans { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(2.2rem, 4vw, 3.5rem); background: var(--p-card); border: 1px solid var(--p-line); border-radius: 28px; }
.plan-featured { border: 2px solid var(--p-teal); box-shadow: var(--p-shadow); }
.plan h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.plan-price { margin-top: 1.4rem; font-family: var(--p-serif); font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; color: var(--p-ink); }
.plan-per { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: 0; color: var(--p-ink-3); }
.plan-note { margin-top: 1.2rem; color: var(--p-ink-2); line-height: 1.65; }
.plan .ticks { margin: 2rem 0 2.5rem; }
.plan .ticks-check { gap: .85rem; padding-top: 2rem; border-top: 1px solid var(--p-line); width: 100%; }
.ticks-check li { font-size: .9688rem; }
.ticks-check li::before { content: ""; width: 1.1rem; height: 1.1rem; top: .28em; border-radius: 50%; background: var(--p-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.7 2.7L12 5.5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks-check li { padding-left: 1.9rem; }
.ticks-check .tick-later { color: var(--p-ink-3); font-weight: 450; }
.ticks-check .tick-later::before { background-color: var(--p-line); }
.ticks-check .tick-plus { font-weight: 650; }
.ticks-check .tick-plus::before { background-color: var(--p-amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a2a31' stroke-width='2' stroke-linecap='round' d='M8 4v8M4 8h8'/%3E%3C/svg%3E"); }
.plan > .pbtn, .plan-later { margin-top: auto; }
.plan-later { font-weight: 600; color: var(--p-ink-3); min-height: 3.25rem; display: flex; align-items: center; }

/* ---------- Status ---------- */
.status-panel { background: var(--p-panel); color: var(--p-panel-text); border-radius: clamp(20px, 3vw, 32px); padding: clamp(2.5rem, 7vw, 6rem); position: relative; overflow: hidden; border: 1px solid transparent; }
[data-bs-theme="dark"] .status-panel { border-color: var(--p-line); }
.status-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0 2.4rem, rgba(255, 255, 255, .045) 2.4rem calc(2.4rem + 1px)); }
.status-panel > * { position: relative; z-index: 1; }
.status-panel h2, .status-panel h3 { color: #fff; }
.status-panel .pub-eyebrow { color: var(--p-amber); }
.status-panel .body-lg { color: var(--p-panel-muted); margin-top: 1.2rem; }
.status-panel .body-lg strong { color: #fff; font-weight: 650; }
.status-cols { display: grid; gap: 2.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 52rem) { .status-cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.status-cols h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; display: flex; align-items: center; gap: .55rem; }
.status-cols h3 .bi { color: var(--p-amber); font-size: 1.1rem; }
.pub .status-cols ul { margin-top: 1rem; display: grid; gap: .6rem; }
.status-cols li { color: var(--p-panel-muted); font-size: .96rem; padding-left: 1rem; position: relative; }
.status-cols li::before { content: ""; position: absolute; left: 0; top: .7em; width: .4rem; height: 1.5px; background: var(--p-amber); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--p-line); }
.faq details { border-bottom: 1px solid var(--p-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.7rem 2.5rem 1.7rem 0; font-weight: 600; font-size: 1.125rem; position: relative; color: var(--p-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--p-teal); border-bottom: 2px solid var(--p-teal); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--p-teal); }
.faq details p { padding: 0 2.5rem 1.9rem 0; color: var(--p-ink-2); max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Closing ---------- */
.closing { padding-top: 0; }
.closing-card { text-align: center; padding: clamp(4rem, 9vw, 8rem) 1.5rem; border-top: 1px solid var(--p-line); position: relative; }
.closing-card h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); }
.closing-card > p:not(.fine) { margin: 1.3rem auto 0; max-width: 30rem; color: var(--p-ink-2); font-size: 1.1875rem; }
.closing-card .cta-row { justify-content: center; margin-top: 2.2rem; }
.closing-card .fine { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.pub-footer { border-top: 1px solid var(--p-line); padding: 4.5rem 0 5rem; background: var(--p-paper-2); }
.pub-footer-grid { display: grid; gap: 2rem; }
.pub-footer-by { margin-top: 1rem; color: var(--p-ink-2); font-size: .9375rem; max-width: 24rem; }
.pub-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-content: start; }
.pub-footer-links a { font-weight: 550; color: var(--p-ink); text-decoration: none; padding: .4rem 0; }
.pub-footer-links a:hover { text-decoration: underline; }
.pub-footer-note { grid-column: 1 / -1; font-size: .8125rem; color: var(--p-ink-2); max-width: 46rem; padding-top: 1.5rem; border-top: 1px solid var(--p-line); }
@media (min-width: 52rem) { .pub-footer-grid { grid-template-columns: 1fr auto; } }

/* ---------- Public subpages (/why, /security) ---------- */
.pub-page-hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
    isolation: isolate;
}
.pub-page-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 30rem; z-index: -1; pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 2.4rem, var(--p-rule) 2.4rem calc(2.4rem + 1px));
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent);
    mask-image: linear-gradient(to bottom, #000 25%, transparent);
}
.pub-page-hero h1 {
    font-size: clamp(2.8rem, 1.7rem + 4.4vw, 5.4rem);
    line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; text-wrap: balance;
}
.pub-page-hero .lede { margin-top: 1.6rem; }
.pub-page-meta {
    display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: 1.8rem;
    font-size: .875rem; color: var(--p-ink-3);
}
.page-chips { margin-top: 2rem; }

.summary-band {
    display: grid; gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem);
    border-block: 1px solid var(--p-line);
}
.summary-band li { display: grid; gap: .3rem; padding: 1.4rem 0; }
.summary-band li + li { border-top: 1px solid var(--p-line); }
.summary-band strong { font-family: var(--p-serif); font-size: 1.15rem; font-weight: 600; color: var(--p-ink); }
.summary-band span { color: var(--p-ink-2); font-size: .9375rem; }
@media (min-width: 52rem) {
    .summary-band { grid-template-columns: repeat(3, 1fr); }
    .summary-band li { padding: 1.6rem 2rem; }
    .summary-band li:first-child { padding-left: 0; }
    .summary-band li + li { border-top: 0; border-left: 1px solid var(--p-line); }
}

.page-note {
    position: relative; margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: 1.5rem 1.8rem 1.6rem 2rem;
    background: var(--p-card); border: 1px solid var(--p-line); border-left: 4px solid var(--p-amber);
    border-radius: 0 14px 14px 0;
}
.page-note-top { margin-top: 0; margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-note h2 {
    font-family: var(--font-sans); font-size: .78rem; font-weight: 650; letter-spacing: .14em;
    text-transform: uppercase; color: var(--p-teal); margin-bottom: .55rem;
}
.page-note p { color: var(--p-ink-2); max-width: 50rem; }

.page-toc { margin-bottom: clamp(1rem, 3vw, 2rem); padding-top: 1.4rem; border-top: 1px solid var(--p-line); }
.page-toc > p {
    font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
    color: var(--p-teal); margin-bottom: .9rem;
}
.page-toc ol { display: grid; gap: .3rem 2.5rem; counter-reset: toc; }
.page-toc li { counter-increment: toc; }
.page-toc a {
    display: inline-flex; gap: .6rem; padding: .15rem 0; color: var(--p-ink-2);
    font-size: .9375rem; text-decoration: none;
}
.page-toc a::before {
    content: counter(toc, decimal-leading-zero); min-width: 1.4rem;
    font-family: var(--p-serif); font-size: .8rem; color: var(--p-teal);
}
.page-toc a:hover { color: var(--p-ink); text-decoration: underline; }
@media (min-width: 46rem) { .page-toc ol { grid-template-columns: 1fr 1fr; } }

.page-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--p-line); }
.page-section-grid { display: grid; gap: 2rem; }
.page-section h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.06;
    letter-spacing: -.03em; text-wrap: balance; max-width: 16ch;
}
.page-no {
    font-family: var(--p-serif); font-size: .95rem; color: var(--p-teal);
    margin-bottom: .8rem; font-variant-numeric: lining-nums;
}
@media (min-width: 62rem) {
    .page-section-grid { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 5rem; }
    .page-section-head { position: sticky; top: 7rem; align-self: start; }
}

.prose p { color: var(--p-ink-2); font-size: 1.0625rem; line-height: 1.75; max-width: 38rem; }
.prose p + p { margin-top: 1.05rem; }
.prose a { color: var(--p-link); }
.prose-lead { color: var(--p-ink-2); font-size: 1.125rem; line-height: 1.7; max-width: 38rem; margin-bottom: 1.8rem; }

.fact-list { border-top: 1px solid var(--p-line); }
.fact-list > div { display: grid; gap: .35rem; padding: 1.35rem 0; border-bottom: 1px solid var(--p-line); }
.fact-list dt { font-weight: 650; color: var(--p-ink); }
.fact-list dd { margin: 0; color: var(--p-ink-2); max-width: 34rem; }
@media (min-width: 46rem) {
    .fact-list > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}

.benefits { display: grid; column-gap: 3rem; border-top: 1px solid var(--p-line); }
.benefits li { padding: 1.5rem 0; border-bottom: 1px solid var(--p-line); }
.benefits h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.benefits p { margin-top: .45rem; color: var(--p-ink-2); max-width: 30rem; }
@media (min-width: 46rem) { .benefits { grid-template-columns: 1fr 1fr; align-items: start; } }

.limits { display: grid; gap: .9rem; max-width: 40rem; }
.limits li { position: relative; padding-left: 1.6rem; color: var(--p-ink-2); }
.limits li::before {
    content: ""; position: absolute; left: 0; top: .78em;
    width: .75rem; height: 2px; background: var(--p-margin);
}
.limits strong { color: var(--p-ink); font-weight: 650; }

.page-note-inline {
    margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--p-line);
    color: var(--p-ink-3); font-size: .9375rem;
}

.link-row { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; margin-top: 1.8rem; }
.text-link {
    display: inline-flex; align-items: center; gap: .45rem; padding-bottom: .15rem;
    border-bottom: 2px solid var(--p-amber); color: var(--p-ink) !important;
    font-size: .9688rem; font-weight: 650; text-decoration: none;
}
.text-link:hover { color: var(--p-teal) !important; }
.text-link .bi { font-size: .9em; }

.page-cta { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--p-line); }
.page-cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.page-cta h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.03em; }
.page-cta p { margin-top: .7rem; color: var(--p-ink-2); max-width: 32rem; }
.page-cta .cta-row { margin-top: 0; }
@media (max-width: 51.99rem) {
    .page-cta-inner { flex-direction: column; align-items: flex-start; }
}

.page-section[id], .pub-section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Contact (/contact) ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) {
    .contact-grid { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 5rem; }
}
.contact-copy h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.06;
    letter-spacing: -.03em; text-wrap: balance; max-width: 16ch;
}
.contact-points { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-points li { display: flex; gap: .9rem; }
.contact-points .bi { color: var(--p-teal); font-size: 1.2rem; margin-top: .15rem; }
.contact-points strong { display: block; color: var(--p-ink); font-weight: 650; }
.contact-points span { display: block; color: var(--p-ink-2); font-size: .9375rem; margin-top: .15rem; max-width: 30rem; }
.contact-direct { margin-top: 2rem; color: var(--p-ink-2); font-size: .9688rem; }
.contact-direct a { color: var(--p-link); font-weight: 600; }
.contact-privacy { margin-top: .8rem; color: var(--p-ink-3); font-size: .8125rem; max-width: 30rem; }

.contact-card {
    background: var(--p-card); border: 1px solid var(--p-line); border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--p-shadow);
}
.contact-field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.contact-field label {
    font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
    color: var(--p-teal);
}
.contact-field label span { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--p-ink-3); }
.contact-field input,
.contact-field textarea {
    width: 100%; padding: .8rem .95rem; border: 1px solid var(--p-line); border-radius: 10px;
    background: var(--p-paper); color: var(--p-ink); font: inherit; font-size: .9688rem;
}
.contact-field textarea { min-height: 9rem; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid var(--p-amber); outline-offset: 2px; border-color: var(--p-teal);
}
.contact-field .validation-message { color: var(--danger); font-size: .875rem; }
.contact-card .pbtn { width: 100%; justify-content: center; }
.contact-honeypot {
    position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.contact-success, .contact-warning, .contact-error {
    display: grid; gap: .6rem; align-content: start;
}
.contact-success .bi { color: var(--p-teal); font-size: 2rem; }
.contact-success h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.contact-success p, .contact-warning p { color: var(--p-ink-2); }
.contact-success .pbtn { width: auto; justify-self: start; margin-top: .4rem; }
.contact-warning, .contact-error {
    padding: 1.2rem 1.3rem; border-radius: 12px;
    border: 1px solid var(--p-line); border-left: 4px solid var(--p-amber); background: var(--p-paper-2);
}
.contact-error { border-left-color: var(--danger); }
.contact-warning a, .contact-error a { color: var(--p-link); font-weight: 600; }

/* ---------- Motion ---------- */
.pub-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.pub-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .pub-js .reveal { opacity: 1; transform: none; transition: none; }
    .pbtn, .pbtn:hover { transition: none; transform: none; }
}

@media print { .pub-header, .pub-menu { display: none; } }
