/* Public website styling — violet, bridged to the admin app's glass theme
   (design handoff: docs/design — "Qchirp Site v2", 2026-08-19).
   Standalone: does NOT depend on the admin --ad-* tokens or kiosk.css.
   Light-only by design; the login/auth pages are separately themed. */
@font-face {
    font-family: "Manrope";
    src: url("/static/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    /* Core palette (handoff tokens) */
    --q-violet: #4C2FE0;
    --q-violet-hover: #3F24CC;
    --q-violet-deep: #3E22C9;
    --q-violet-ink: #2A1B7A;
    --q-violet-bright: #6242F5;
    --q-violet-bright-hover: #7657FF;
    --q-ink: #14122B;
    --q-bar: #080B14;
    --q-on-bar: #C8C3E4;
    --q-ink-2: #16162A;
    --q-body: #4B4C6B;
    --q-muted: #6A6C8C;
    --q-nav: #3F4160;
    --q-mint: #24C7B4;
    --q-mint-light: #5FE3D2;
    --q-mint-text: #8CF0E2;
    --q-surface: #FBFAFF;
    --q-white: #FFFFFF;
    --q-lav-1: #F5F1FE;
    --q-lav-2: #F1ECFE;
    --q-lav-3: #F1EDFD;
    --q-border: #E7E2FA;
    --q-border-2: #E2DAFB;
    --q-border-3: #DED5FB;
    --q-field-border: #D8D2F0;
    --q-on-dark: #BEB6E4;
    --q-on-dark-2: #D6D0F0;
    --q-on-dark-3: #A79BDF;
    --q-on-dark-4: #9A8FD0;
    --q-error: #B02A1E;
    --q-error-dark: #8E241A;
    --q-error-bg: #FEF1F1;
    --q-error-border: #F3C7C7;
    --q-error-rule: #C0392B;
    --q-ok-bg: #DFFAF5;
    --q-ok-border: #A9EDE2;
    --q-ok-text: #0E7A6B;
    --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }

/* Anchor nav ("How it works" -> #how) glides instead of teleporting — an
   instant jump between two same-styled sections reads as "the same page
   again" (user feedback 2026-08-19). Reduced-motion users keep the jump. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--q-ink-2);
    background: var(--q-surface);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--q-violet); }
img { max-width: 100%; }

/* Global visible focus ring — never remove */
:focus-visible {
    outline: 3px solid #7B5CFF;
    outline-offset: 3px;
    border-radius: 6px;
}

.pub-wrap { max-width: var(--maxw); margin: 0 auto; }
.pub-wrap--narrow { max-width: 620px; margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.pub-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--q-bar);
    background-image:
        radial-gradient(70% 200% at 8% 0%, rgba(72, 58, 150, .55) 0%, rgba(8, 11, 20, 0) 62%),
        radial-gradient(50% 190% at 92% 110%, rgba(28, 110, 105, .42) 0%, rgba(8, 11, 20, 0) 60%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.pub-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}
.pub-header__brand { display: flex; align-items: center; }
.pub-header__brand img { height: 36px; width: auto; display: block; }
.pub-nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.pub-nav a {
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--q-on-bar);
    text-decoration: none;
}
.pub-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pub-nav .pub-nav__cta {
    margin-left: 6px;
    padding: 11px 19px;
    border-radius: 12px;
    background: var(--q-violet-bright);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px -10px rgba(98, 66, 245, .9);
}
.pub-nav .pub-nav__cta:hover { background: var(--q-violet-bright-hover); color: #fff; }

/* Skip link + screen-reader-only text */
.pub-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 40;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--q-white);
    color: var(--q-violet-ink);
    font-weight: 700;
    text-decoration: none;
}
.pub-skip:focus { top: 12px; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0; padding: 0; margin: -1px;
}
#main:focus { outline: none; }

/* Mobile navigation. The toggle is a real <button>; script un-hides it below
   the breakpoint and collapses the list. Script-off (no .js on <html>) keeps
   the list visible and wrapping — never a menu that can't be opened. */
.pub-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.pub-nav-toggle[hidden] { display: none; }
.pub-nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.pub-nav-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.pub-nav-toggle[aria-expanded="true"] .pub-nav-toggle__bars span:nth-child(2) { opacity: 0; }
@media (max-width: 799px) {
    html.js .pub-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 6px 0 4px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    html.js .pub-nav.is-open { display: flex; }
    html.js .pub-nav a { min-height: 44px; display: flex; align-items: center; }
    html.js .pub-nav .pub-nav__cta { margin: 6px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- buttons */
.pub-btn {
    display: inline-block;
    padding: 13px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--q-violet);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 34px -16px rgba(76, 47, 224, .9);
}
.pub-btn:hover { background: var(--q-violet-hover); }
.pub-btn--lg { padding: 17px 30px; font-size: 17px; }
.pub-btn--ghost {
    background: var(--q-white);
    border: 1px solid var(--q-border-3);
    color: var(--q-violet-ink);
    box-shadow: none;
}
.pub-btn--ghost:hover { background: var(--q-lav-1); }

/* ---------------------------------------------------------------- hero */
.pub-hero {
    position: relative;
    overflow: hidden;
    background: var(--q-surface);
    background-image:
        radial-gradient(90% 70% at 88% -6%, rgba(123, 92, 255, .20) 0%, rgba(251, 250, 255, 0) 60%),
        radial-gradient(70% 60% at 4% 8%, rgba(95, 227, 210, .16) 0%, rgba(251, 250, 255, 0) 58%);
    padding: clamp(56px, 8vw, 96px) 20px clamp(52px, 7vw, 88px);
}
.pub-hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}
.pub-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 7px 15px 7px 11px;
    background: var(--q-white);
    border: 1px solid var(--q-border-3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--q-violet-deep);
    box-shadow: 0 2px 10px -6px rgba(76, 47, 224, .5);
}
.pub-eyebrow-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--q-mint);
    display: block;
    flex: none;
}
.pub-trust li::before,
.pub-assure li::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--q-mint);
    display: block;
    flex: none;
}
.pub-hero h1 {
    font-size: clamp(35px, 6.1vw, 64px);
    line-height: 1.03;
    letter-spacing: -.037em;
    font-weight: 800;
    color: var(--q-ink);
}
.pub-hero h1 .accent { color: var(--q-violet); }
.pub-hero .lead {
    margin-top: 24px;
    max-width: 545px;
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.58;
    color: var(--q-body);
}
.pub-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.pub-hero__cta .pub-btn { text-align: center; }
.pub-hero__sub { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--q-nav); }
.pub-trust {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}
.pub-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #55567A;
}
.pub-trust li::before { width: 7px; height: 7px; }

.pub-hero__fig {
    margin: 0;
    position: relative;
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(244, 240, 255, .9));
    border: 1px solid var(--q-border-2);
    box-shadow: 0 40px 80px -40px rgba(38, 20, 110, .45);
}
.pub-hero__fig img { display: block; width: 100%; height: auto; border-radius: 16px; }
.pub-hero__fig figcaption {
    margin-top: 12px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #6A5BA8;
}
.pub-float-card {
    position: absolute;
    right: -14px;
    bottom: 74px;
    padding: 13px 17px;
    max-width: min(320px, 84%);
    background: var(--q-white);
    border: 1px solid var(--q-border-2);
    border-radius: 16px;
    box-shadow: 0 18px 36px -18px rgba(38, 20, 110, .4);
    animation: qFloat 6s ease-in-out infinite;
}
.pub-float-card .k {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7C6BB5;
}
.pub-float-card .q {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--q-ink);
}
@keyframes qFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ------------------------------------------------------- credibility strip */
.pub-cred {
    background: var(--q-ink);
    padding: 20px;
}
.pub-cred__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
    align-items: center;
    justify-content: space-between;
}
.pub-cred .k {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--q-on-dark-3);
}
.pub-cred .v { font-size: 15px; font-weight: 500; color: #CFC7EF; }

/* ---------------------------------------------------------------- sections */
.pub-section { padding: clamp(60px, 8vw, 100px) 20px; scroll-margin-top: 80px; }
.pub-section--white { background: var(--q-white); }
.pub-section--warm { background: var(--q-surface); }
.pub-section-head { max-width: 700px; }
.pub-eyebrow-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--q-violet);
}
.pub-section-head h2 {
    margin-top: 14px;
    font-size: clamp(29px, 4.4vw, 47px);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 800;
    color: var(--q-ink);
}
.pub-section-head .lede {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--q-body);
}

.pub-cards {
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}
.pub-card {
    background: var(--q-surface);
    border: 1px solid var(--q-border);
    border-radius: 22px;
    padding: 32px 30px 34px;
}
.pub-section--warm .pub-card { background: var(--q-white); }
.pub-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--q-violet);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}
.pub-card h3 {
    margin-top: 20px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--q-ink);
}
.pub-card p { margin-top: 11px; font-size: 17px; line-height: 1.6; color: var(--q-body); }

.pub-fig {
    margin: 40px 0 0;
    border: 1px solid var(--q-border);
    border-radius: 24px;
    background: var(--q-surface);
    padding: 16px;
}
.pub-section--warm .pub-fig { background: var(--q-white); }
.pub-fig img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--q-border); }
.pub-fig figcaption { margin-top: 12px; padding: 0 4px; font-size: 14px; font-weight: 600; color: #6A5BA8; }

/* ----------------------------------------------------- two voices (dark) */
.pub-voices {
    background: var(--q-ink);
    background-image:
        radial-gradient(85% 70% at 10% 0%, rgba(123, 92, 255, .30) 0%, rgba(20, 18, 43, 0) 62%),
        radial-gradient(60% 60% at 96% 100%, rgba(36, 199, 180, .18) 0%, rgba(20, 18, 43, 0) 60%);
    padding: clamp(60px, 8vw, 100px) 20px;
    color: #EDEAFB;
}
.pub-voices .pub-section-head { max-width: 760px; }
.pub-voices .pub-eyebrow-label { color: var(--q-mint-text); }
.pub-voices .pub-section-head h2 { color: #fff; }
.pub-voices .pub-section-head .lede { color: var(--q-on-dark); }
.pub-voices__grid {
    margin-top: 46px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}
.pub-voice {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    padding: 34px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pub-voice h3 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.pub-voice > p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--q-on-dark); }
.pub-voice ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pub-voice li { display: flex; gap: 11px; font-size: 16px; color: var(--q-on-dark-2); }
.pub-voice li::before {
    content: "";
    margin-top: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--q-mint-light);
    flex: none;
}

/* --------------------------------------------------------- early access */
.pub-early {
    max-width: var(--maxw);
    margin: 0 auto;
    background: var(--q-lav-1);
    border: 1px solid var(--q-border-2);
    border-radius: 28px;
    padding: clamp(34px, 5vw, 56px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 36px;
    align-items: center;
}
.pub-early h2 {
    margin-top: 14px;
    font-size: clamp(29px, 4.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 800;
    color: var(--q-ink);
}
.pub-early .lede { margin-top: 16px; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--q-body); }
.pub-early__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.pub-early__cta .pub-btn { text-align: center; }
@media (max-width: 720px) {
    .pub-early__cta { justify-content: flex-start; }
}
@media (max-width: 380px) {
    .pub-hero__cta .pub-btn, .pub-early__cta .pub-btn, .pub-thanks__cta .pub-btn { width: 100%; }
    .pub-float-card { position: static; margin-top: 12px; max-width: none; }
}

/* --------------------------------------------------- Founding Centre offer */
.pub-section--offer .pub-section-head { max-width: 760px; }
.pub-offer {
    margin-top: 44px;
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 799px) {
    .pub-offer { grid-template-columns: minmax(0, 1fr); }
}
.pub-offer__price {
    background: var(--q-white);
    border: 1px solid var(--q-border-2);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 36px);
    box-shadow: 0 30px 70px -46px rgba(38, 20, 110, .5);
}
.pub-offer__k {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--q-violet);
}
.pub-offer__badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--q-violet);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    vertical-align: middle;
}
.pub-offer__amount {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: clamp(44px, 7vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--q-ink);
}
.pub-offer__amount .cur { font-size: .45em; font-weight: 700; color: var(--q-violet-deep); letter-spacing: 0; }
.pub-offer__amount .per { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--q-muted); }
.pub-offer__list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pub-offer__list li { display: flex; gap: 11px; font-size: 16px; line-height: 1.5; color: var(--q-nav); }
.pub-offer__list li::before {
    content: "";
    margin-top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--q-mint);
    flex: none;
}
.pub-offer__price .pub-btn { margin-top: 24px; width: 100%; text-align: center; }
.pub-offer__std { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--q-nav); }
.pub-offer__fine { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--q-muted); }
.pub-offer__stack {
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 36px);
}
.pub-offer__stack h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--q-ink); }
.pub-offer__h3 { margin-top: 28px; }
.pub-offer__inclusions { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
/* Block, not flex: a <strong> lead-in + trailing text must flow as one
   paragraph, so the bullet is absolutely placed rather than a flex item. */
.pub-offer__inclusions li { position: relative; padding-left: 19px; font-size: 16px; line-height: 1.55; color: var(--q-body); }
.pub-offer__inclusions li strong { color: var(--q-ink); }
.pub-offer__inclusions li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--q-violet);
}
.pub-offer__inclusions--plain li::before { background: var(--q-mint); }
.pub-offer__note {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--q-lav-1);
    border: 1px solid var(--q-border-3);
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--q-nav);
}

/* --------------------------------------------------------- doc pages */
.pub-doc-head {
    background: var(--q-ink);
    background-image: radial-gradient(80% 70% at 88% 0%, rgba(123, 92, 255, .28) 0%, rgba(20, 18, 43, 0) 60%);
    padding: clamp(44px, 6vw, 66px) 20px clamp(40px, 5vw, 58px);
}
.pub-doc-head__inner { max-width: 780px; margin: 0 auto; }
.pub-doc-head .pub-eyebrow-label { color: var(--q-mint-text); }
.pub-doc-head h1 {
    margin-top: 12px;
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #fff;
}
.pub-doc-head .updated { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--q-on-dark-3); }

.pub-doc .pub-wrap { max-width: 780px; padding: clamp(40px, 6vw, 60px) 20px clamp(60px, 8vw, 96px); }
.pub-doc h2 {
    margin: 38px 0 0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--q-ink);
}
.pub-doc h2:first-child { margin-top: 0; }
.pub-doc p, .pub-doc ul, .pub-doc ol {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.68;
    color: #45465F;
}
.pub-doc li { margin-top: 8px; }
.pub-doc .updated { font-size: 15px; color: var(--q-muted); }
.pub-doc-card {
    margin-top: 44px;
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: 22px;
    padding: 28px 30px;
}
.pub-doc-card h2 { margin: 0; }

/* --------------------------------------------------- get-started form */
.pub-form-section {
    background: var(--q-surface);
    background-image: radial-gradient(70% 40% at 88% 0%, rgba(123, 92, 255, .16) 0%, rgba(251, 250, 255, 0) 60%);
    padding: clamp(40px, 6vw, 72px) 20px clamp(60px, 8vw, 96px);
}
.pub-form-section h1 {
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--q-ink);
}
.pub-form-section .lead { margin-top: 16px; font-size: 19px; line-height: 1.6; color: var(--q-body); }

.pub-assure {
    margin: 26px 0 0;
    padding: 20px 22px;
    list-style: none;
    background: var(--q-white);
    border: 1px solid var(--q-border-2);
    border-radius: 18px;
    display: grid;
    gap: 12px;
}
.pub-assure li {
    display: flex;
    gap: 11px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--q-nav);
}
.pub-assure li::before { margin-top: 7px; }

.pub-form-errors {
    margin-top: 26px;
    background: var(--q-error-bg);
    border: 1px solid var(--q-error-border);
    border-left: 5px solid var(--q-error-rule);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--q-error-dark);
}
.pub-form-errors ul { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }

.pub-form {
    margin-top: 26px;
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 30px 70px -46px rgba(38, 20, 110, .5);
    display: grid;
    gap: 26px;
}
.pub-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 700; color: var(--q-ink); }
.pub-form .muted { font-weight: 400; color: var(--q-muted); }
.pub-form .req { color: var(--q-error); font-weight: 800; }
.pub-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 22px; }
.pub-fieldset > legend {
    padding: 0;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--q-violet);
}
.pub-field { display: grid; gap: 8px; min-width: 0; }
.pub-field > label { display: block; }   /* the required-mark span stays inline */
.pub-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; }
.pub-radios { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.pub-radios > legend { padding: 0; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--q-ink); }
.pub-radio, .pub-check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--q-field-border);
    border-radius: 13px;
    font-weight: 500 !important;
    cursor: pointer;
}
.pub-radio:hover, .pub-check:hover { background: var(--q-lav-1); }
.pub-radio input, .pub-check input {
    flex: none;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    accent-color: var(--q-violet);
}
.pub-radio:has(input:checked) { border-color: var(--q-violet); background: var(--q-lav-1); }
.pub-radio:has(input:focus-visible), .pub-check:has(input:focus-visible) { outline: 3px solid #7B5CFF; outline-offset: 2px; }
.pub-consent { padding-top: 4px; }
.pub-form .is-invalid .pub-radio, .pub-form .is-invalid .pub-check,
.pub-form [aria-invalid="true"] { border-color: var(--q-error-rule); box-shadow: 0 0 0 1px var(--q-error-rule) inset; }
.pub-form-errors a { color: var(--q-error-dark); font-weight: 600; }
.pub-form-errors:focus { outline: 3px solid #7B5CFF; outline-offset: 3px; }
.pub-assure--left { text-align: left; }
.pub-form input[type="text"],
.pub-form input[type="email"],
.pub-form input[type="tel"],
.pub-form select,
.pub-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--q-field-border);
    border-radius: 13px;
    font-family: inherit;
    font-size: 16px;
    color: var(--q-ink);
    background: var(--q-white);
}
.pub-form .field-error { margin: 0; font-size: 15px; font-weight: 600; color: var(--q-error); }
.pub-form .field-error::before { content: "\26A0\FE0E  "; }
.pub-form .field-help { margin: 0; font-size: 14px; font-weight: 400; color: var(--q-muted); }
.pub-form .pub-btn { width: 100%; padding: 17px 26px; font-size: 17px; }
.pub-form-fine { margin-top: 14px; font-size: 14px; color: var(--q-muted); }

.pub-reveal-panel {
    background: var(--q-lav-1);
    border: 1px solid var(--q-border-3);
    border-radius: 16px;
    padding: 18px 20px;
    display: grid;
    gap: 8px;
    animation: qReveal 180ms ease-out;
}
.pub-reveal-panel.is-hidden { display: none; }
@keyframes qReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Honeypot — visually hidden, never display:none */
.pub-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* --------------------------------------------------------- thanks page */
.pub-thanks { text-align: center; }
.pub-thanks .tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: var(--q-ok-bg);
    border: 1px solid var(--q-ok-border);
    font-size: 30px;
    font-weight: 800;
    color: var(--q-ok-text);
}
.pub-thanks h1 { margin-top: 22px; }
.pub-thanks .lead { max-width: 500px; margin-left: auto; margin-right: auto; }
.pub-next-card {
    margin-top: 34px;
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: 22px;
    padding: 26px 28px;
    text-align: left;
}
.pub-next-card ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: step; }
.pub-next-card li {
    display: flex;
    gap: 13px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--q-nav);
    counter-increment: step;
}
.pub-next-card li::before {
    content: counter(step);
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: var(--q-lav-2);
    color: var(--q-violet-deep);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-thanks__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------------------------------------------------------- footer */
.pub-footer {
    background: var(--q-ink);
    padding: 52px 20px 44px;
    color: var(--q-on-dark);
}
.pub-footer__row {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    align-items: center;
    justify-content: space-between;
}
.pub-footer__row img { height: 32px; width: auto; display: block; }
.pub-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pub-footer__links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--q-on-dark);
    text-decoration: none;
}
.pub-footer__links a:hover { color: #fff; }
.pub-footer__fine {
    max-width: var(--maxw);
    margin: 30px auto 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
    line-height: 1.6;
    color: var(--q-on-dark-4);
}
.pub-footer__fine a { color: var(--q-on-dark-2); }
.pub-footer__fine--tight { margin-top: 10px; padding-top: 0; border-top: 0; }

/* ------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pub-float-card { animation: none; }
    .pub-reveal-panel { animation: none; }
}


/* ---- Guides & tour video (2026-09-06) ------------------------------------ */
.pub-wrap--guides { max-width: 960px; }
.pub-section--watch .pub-section-head { max-width: 760px; }
.pub-section--watch .lede a { color: var(--q-violet); font-weight: 600; }
.pub-video {
    position: relative; margin-top: 36px; aspect-ratio: 16 / 9; width: 100%;
    border-radius: 16px; overflow: hidden; background: #0f0c24;
    border: 1px solid var(--q-border); box-shadow: 0 18px 50px rgba(37, 24, 96, .18);
}
.pub-video__play {
    display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
    background: #0f0c24; cursor: pointer; position: relative;
}
.pub-video__play img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s ease, transform .4s ease; }
.pub-video__play:hover img, .pub-video__play:focus-visible img { opacity: 1; transform: scale(1.02); }
.pub-video__play:focus-visible { outline: 3px solid var(--q-mint-text); outline-offset: -3px; }
.pub-video__btn {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
    background: var(--q-violet); color: #fff; box-shadow: 0 10px 30px rgba(104, 67, 229, .45);
    transition: transform .2s ease, background .2s ease;
}
.pub-video__btn svg { width: 38px; height: 38px; margin-left: 4px; }
.pub-video__play:hover .pub-video__btn { transform: translate(-50%, -50%) scale(1.06); background: var(--q-violet-hover); }
.pub-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pub-video noscript a { position: absolute; left: 16px; bottom: 16px; color: #fff; font-weight: 600; }
.pub-video__fallback { margin-top: 12px; font-size: 14px; color: var(--q-muted); }
.pub-video__fallback a { color: var(--q-violet); font-weight: 600; }
.pub-guides { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.pub-guide {
    background: var(--q-white); border: 1px solid var(--q-border); border-radius: 18px;
    padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.pub-guide--soon { background: transparent; border-style: dashed; }
.pub-guide__k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--q-violet); }
.pub-guide h3 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--q-ink); }
.pub-guide p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--q-body); }
.pub-guide__meta { font-size: 14px !important; color: var(--q-muted) !important; }
.pub-guide__quote {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--q-violet);
  background: color-mix(in srgb, var(--q-violet) 6%, transparent);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.55;
}
/* margin-top:auto pins the button to the card foot, so the three cards' buttons
   sit on one line however long each blurb runs (user ask 2026-09-19). The
   8px was the old fixed gap above the button; keep it as the minimum. */
.pub-guide .pub-btn { align-self: flex-start; margin-top: auto; }
.pub-guide__meta { padding-bottom: 8px; }
.pub-guide--soon a { color: var(--q-violet); font-weight: 600; }
