/* site.css — Swiftly Workspace web surface (WEB05 monochrome zinc).
   Hand-authored, no framework, no external origins (WEB01 §4). Custom
   properties are the single source of color truth; the only literals
   outside :root are documented alpha variants of the tokens and the
   chat-avatar gradient (WEB05 §7.2d). System-UI face stack — no
   external fonts. */

:root {
    /* Palette — monochrome zinc (WEB05); --tone-error is the one
       retained chromatic value. */
    --bg: #09090b;
    --bg-raised: #131316;
    --bg-card: #18181b;
    --border: #27272a;
    --text: #f4f4f5;
    --text-muted: #9f9fa9;
    --accent: #fafafa;
    --accent-bright: #ffffff;
    --tone-ok: #52525c;
    --tone-warn: #71717b;
    --tone-error: #f87171;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
        monospace;

    --content-width: 46rem;
    --content-width-wide: 68rem; /* marketing pages (Phase 02) */
    --gutter: 1.25rem;

    --motion-dur-quick: 0.2s;
    --motion-dur-reveal: 0.6s;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-distance: 24px;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Clip the hero breakout's 50vw scrollbar spill (`hidden` is the
       older-engine fallback). */
    overflow-x: hidden;
    overflow-x: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.85); /* --bg, translucent */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header .inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    padding: 0.9rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.2rem;
}

/* The nav carries the `popover` attribute (2026-10-18). Reset the UA
   popover box so the attribute is inert wherever the nav renders inline:
   >= 900 px, and engines without the Popover API. */
.site-nav[popover] {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    overflow: visible;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav .nav-login {
    color: var(--bg);
    background: var(--accent);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
}

.site-nav .nav-login:hover {
    background: var(--accent-bright);
    color: var(--bg);
}

/* Small-screen menu (869fbdg4p; a native popover since 2026-10-18). The
   button is hidden by default and shown only where the Popover API exists,
   and the nav is hidden only by `:not(:popover-open)` inside that same
   @supports block, so the menu needs no JavaScript and an engine without
   popovers keeps the scrolling row (WEB-186). The 44x44 button never
   shrinks; the wordmark text truncates first (320 px, QA-UNIT24-WEB-71). */
.nav-toggle {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 899px) {
    .site-header .inner {
        flex-wrap: wrap;
    }

    .site-nav {
        flex: 1 1 100%;
        margin-left: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.2rem;
    }
}

@supports selector(:popover-open) {
    @media (max-width: 899px) {
        .site-header .inner {
            flex-wrap: nowrap;
        }

        .nav-toggle {
            display: inline-flex;
        }

        .site-nav:not(:popover-open) {
            display: none;
        }

        .site-nav:popover-open {
            position: fixed;
            inset: 5rem var(--gutter) auto auto;
            width: min(20rem, calc(100vw - 2 * var(--gutter)));
            max-height: calc(100vh - 6rem);
            margin: 0;
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            overflow-y: auto;
            white-space: normal;
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: var(--bg-raised);
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
        }

        .site-nav:popover-open a {
            padding: 0.7rem 0.75rem;
            font-size: 1.05rem;
            border-radius: 8px;
        }

        .site-nav:popover-open .nav-login {
            margin-top: 0.4rem;
            text-align: center;
        }
    }
}

/* Anchor targets scroll clear of the sticky header. */
section[id] {
    scroll-margin-top: 4.5rem;
}

.wordmark {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--text);
    text-decoration: none;
}

.wordmark .dot {
    color: var(--accent);
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 4rem;
}

main.wide {
    max-width: var(--content-width-wide);
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2.2rem 0 0.6rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.05rem;
    margin: 1.6rem 0 0.4rem;
    color: var(--accent-bright);
}

p {
    margin: 0.7rem 0;
}

ul,
ol {
    margin: 0.7rem 0;
    padding-left: 1.4rem;
}

li {
    margin: 0.35rem 0;
}

a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--text);
}

strong {
    color: var(--text);
}

.doc-meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

article.legal h2 {
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
}

article.legal li,
article.legal p {
    color: var(--text);
    overflow-wrap: anywhere;
}

.notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1.2rem 0;
    color: var(--text);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    margin: 1.5rem 0;
}

.contact-card p {
    margin: 0.4rem 0;
}

.error-page {
    padding: 2.5rem 0 3.5rem;
}

.error-page .error-code {
    font-family: var(--font-mono);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.error-page h1 {
    margin: 0 0 0.75rem;
}

.error-page .error-reference {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.error-page .error-reference code {
    font-family: var(--font-mono);
    word-break: break-all;
}

.section-sub {
    color: var(--text-muted);
    max-width: 38rem;
}

.hero {
    /* Full-bleed breakout: negative inline margins cancel the column,
       the top margin cancels main's 2.5rem padding (flush under the
       header), the gutter padding keeps content off the edges. */
    margin: -2.5rem calc(50% - 50vw) 0;
    padding: 6rem var(--gutter) 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    margin: 0 auto 1rem;
    max-width: 46rem;
}

.hero h1 .dot {
    color: var(--accent);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.6rem;
}

/* Download badges (vendored Apple artwork) */

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin: 1.2rem 0;
}

.badges img.badge {
    height: 50px;
    width: auto;
    display: block;
}

.features {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.features .section-sub {
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
}

.feature-card h3 {
    margin: 0.6rem 0 0.3rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Inline Lucide strokes inherit the accent via currentColor. */
.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.pricing {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.pricing .section-sub {
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.1rem;
    max-width: 70rem;
}

/* Glass chrome; highlighted accent border composes on top. Each card
   is a 4-row subgrid (name/tagline/price/bullets) so those rows align
   across all cards; no-subgrid engines fall back to auto rows. */
.price-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
}

.price-card.highlighted {
    border-color: var(--accent);
}

.price-card h3 {
    margin: 0 0 0.2rem;
    color: var(--text);
    font-size: 1.2rem;
}

.tier-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.1rem;
}

/* ONE Monthly / Annual switch for every card (owner review 2026-10-19):
   two real buttons with aria-pressed; nav.js writes the choice onto the
   section's data-billing. The server renders data-billing="monthly", so
   with JavaScript off every card shows its monthly figure and the switch,
   which could not work, is not shown. */
.billing-switch {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.6rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-raised);
}

@media (scripting: none) {
    .billing-switch,
    .billing-bar {
        display: none;
    }
}

.billing-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: none;
    cursor: pointer;
}

.billing-opt[aria-pressed="true"] {
    color: var(--bg);
    background: var(--accent);
}

.billing-opt:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.billing-save {
    font-size: 0.78rem;
}

/* At 320 px the saving stays on the annual figure, not in the switch. */
@media (max-width: 359px) {
    .billing-save {
        display: none;
    }
}

.price {
    display: none;
}

.pricing[data-billing="monthly"] .price-monthly,
.pricing[data-billing="annual"] .price-annual {
    display: block;
}

.price .amount {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.price .period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 0.15rem;
}

.price-basis {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

/* Annual shows two small lines ("billed annually as …", "two months
   free"), monthly one: the monthly line keeps the same height, so the
   switch never moves the bullets (fix pass 2, Issue 16). */
.price-monthly .price-basis {
    min-height: calc(2lh + 0.2rem);
}

.tier-bullets {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.tier-bullets li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}

.tier-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-bright);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.card-head h3 {
    margin: 0;
    white-space: nowrap;
}

/* At 320 px a long plan name keeps one line; its badge drops below. */
.card-head {
    flex-wrap: wrap;
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--bg);
    white-space: nowrap;
}

/* Swiftly Max, Coming soon: dashed border, a quiet badge, and a Coming
   soon marker on each bullet. Its price shows (owner ruling 2026-10-19);
   nothing on the card can be bought. */

.price-card.coming-soon {
    border-style: dashed;
}

.card-badge--soon {
    color: var(--text);
    background: none;
    border-color: var(--border);
}


/* A Coming soon item is not included yet: a hollow marker, not the check. */
.tier-bullets--soon li::before {
    content: "○";
    color: var(--text-muted);
}

.partners {
    margin-top: 1.8rem;
    color: var(--text-muted);
}

.pricing-footnote {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.closing-cta {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.closing-cta .section-sub {
    margin: 0 auto 1.5rem;
}

.cta-contact {
    color: var(--text-muted);
    margin-top: 1.4rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WEB06: wide measure (the header's), grouped columns, then a baseline
   bar sharing one row between socials and copyright — the wrap fix is
   structural, not a width patch. Icons reuse the .provider-logo
   recolour. ≤767 px stacking lives here, not in the 480 block. */

.site-footer .inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    padding: 2rem var(--gutter) 1.4rem;
}

.footer-oneliner {
    max-width: 40rem;
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 3.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-col p {
    margin: 0 0 0.15rem;
    color: var(--text);
    font-weight: 600;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.4rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.footer-social {
    display: flex;
    gap: 0.3rem;
}

.footer-social a {
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
}

.footer-social a:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.footer-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
    opacity: 1;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

.site-footer .copyright {
    margin-left: auto;
}

/* Fix pass 3 (2026-10-20): the rich public footer, FeedbackKit-shaped and
   chunkier. Brand block, then five headed groups (column four stacks
   Company over Legal), then the bar. The portal keeps the rules above. */
.site-footer--rich {
    font-size: 1rem;
}

.site-footer--rich .inner {
    padding: 4.5rem var(--gutter) 2.5rem;
}

.footer-top {
    display: grid;
    gap: 3rem;
}

.site-footer .footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-footer .footer-wordmark:hover {
    text-decoration: none;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.site-footer--rich .footer-oneliner {
    margin: 1.4rem 0 0.5rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-about,
.footer-company {
    max-width: 26rem;
    margin: 0 0 1.4rem;
    line-height: 1.6;
}

.footer-company {
    font-style: normal;
}

.site-footer--rich .footer-social img {
    width: 24px;
    height: 24px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
}

.site-footer--rich .footer-col {
    gap: 2.5rem;
}

.footer-heading {
    margin: 0 0 1.1rem;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.05rem;
}

.footer-linkbutton {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-linkbutton:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-linkbutton:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
}

.footer-bar .copyright {
    margin: 0;
}

@media (min-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Below 768 px the five groups flow as two balanced columns (no hole
   under a short group). */
@media (max-width: 767px) {
    .footer-nav {
        display: block;
        columns: 2;
        column-gap: 1.5rem;
    }

    .site-footer--rich .footer-col {
        display: contents;
    }

    .footer-group {
        break-inside: avoid;
        padding-bottom: 2.5rem;
    }

    .site-footer--rich .footer-bar {
        margin-top: 1rem;
    }
}

/* 640-1023 px: the brand block sits on top, so it fills its row in two
   columns (story left, company + socials right) instead of leaving a band. */
@media (min-width: 640px) and (max-width: 1023px) {
    .footer-brand {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        grid-template-areas: "mark company" "line company" "about social";
        column-gap: 2.5rem;
        align-items: start;
    }

    .site-footer .footer-wordmark { grid-area: mark; justify-self: start; }
    .site-footer--rich .footer-oneliner { grid-area: line; }
    .footer-about { grid-area: about; }
    .footer-company { grid-area: company; }
    .site-footer--rich .footer-social { grid-area: social; }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: minmax(16rem, 1.1fr) minmax(0, 3fr);
        gap: 4rem;
    }
}

@media (max-width: 767px) {
    .footer-cols {
        flex-direction: column;
        gap: 1.2rem;
    }

    .footer-base {
        justify-content: center;
    }

    .site-footer .copyright {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    main {
        padding-top: 1.6rem;
    }

    .hero {
        /* main's mobile padding-top is 1.6rem — keep the bleed flush. */
        margin-top: -1.6rem;
        padding-top: 3.4rem;
        text-align: left;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .badges,
    .hero .badges {
        justify-content: flex-start;
    }

    .closing-cta {
        text-align: left;
    }

    .closing-cta .badges {
        justify-content: flex-start;
    }
}

.auth {
    padding: 3rem 0 4rem;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 26rem;
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
}

.auth-sub {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.auth-form .field {
    margin-bottom: 1.1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

/* Visible focus for pointer users too — both pseudo-classes styled. */
.auth-form input:focus,
.auth-form input:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 1px;
    border-color: var(--accent);
}

.auth-form .btn-primary {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 1rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-form .btn-primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: var(--bg);
}

.auth-form .btn-primary:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* Empty swap target occupies nothing; styling lives on .form-error. */
.form-error-region:empty {
    display: none;
}

/* WCAG 1.4.1 — text + glyph + colour; never colour alone. */
.form-error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    padding: 0.7rem 0.85rem;
    background: rgba(248, 113, 113, 0.12); /* --tone-error, tinted */
    border: 1px solid var(--tone-error);
    border-left-width: 3px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-error-icon {
    flex: 0 0 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--tone-error);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25rem;
    text-align: center;
}

.auth-note {
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== PARTNER01 portal vocabulary — MOVED to the opt-in
   portal.css (WEB06 §8.2, the QA-INTEGRATION25-WEB §6.8 escape
   hatch). Only .portal-badge stays: /roadmap reuses it and links
   site.css alone. ===== */

/* Status badges — always paired with their text label; the tone
   class is never the sole signal. */

.portal-badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    background: var(--bg-raised);
    color: var(--text);
}

.portal-badge.ok { border-color: var(--tone-ok); }
.portal-badge.warn { border-color: var(--tone-warn); }
.portal-badge.pending { border-color: var(--accent); }
.portal-badge.ended { border-color: var(--tone-error); }
.portal-badge.muted { color: var(--text-muted); }

/* ===== WEB02 Phase 00 — motion foundation ===== */

/* Scroll reveal — hiding lives ONLY under the marker scope site.js
   stamps (§9 no-JS safety), never for reduced-motion visitors. */

html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition:
        opacity var(--motion-dur-reveal) var(--motion-ease),
        transform var(--motion-dur-reveal) var(--motion-ease);
}

html.js-reveal .reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal-stagger > * {
    transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

/* CSP has no unsafe-inline, so stagger indices are assigned
   structurally; children past the eighth share its delay. */
.reveal-stagger > *:nth-child(1) { --stagger-index: 0; }
.reveal-stagger > *:nth-child(2) { --stagger-index: 1; }
.reveal-stagger > *:nth-child(3) { --stagger-index: 2; }
.reveal-stagger > *:nth-child(4) { --stagger-index: 3; }
.reveal-stagger > *:nth-child(5) { --stagger-index: 4; }
.reveal-stagger > *:nth-child(6) { --stagger-index: 5; }
.reveal-stagger > *:nth-child(7) { --stagger-index: 6; }
.reveal-stagger > *:nth-child(n + 8) { --stagger-index: 7; }

/* Glass-card vocabulary — the .site-header treatment, boxed. */

.glass-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.lift-hover {
    transition:
        transform var(--motion-dur-quick) var(--motion-ease),
        box-shadow var(--motion-dur-quick) var(--motion-ease);
}

.lift-hover:hover {
    transform: translateY(-2px);
}

/* Consolidated reduced-motion guard: reveal forced visible, hover
   lift static. */

@media (prefers-reduced-motion: reduce) {
    html.js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lift-hover,
    .lift-hover:hover {
        transform: none;
        transition: none;
    }
}

/* ===== WEB02 Phase 01 — nav + hero ===== */

/* Nav logo mark: margin, not flex gap (a gap would also split the
   wordmark from its .dot span). */

.wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

/* 320 px: the text truncates before the menu button can be pushed off. */
.wordmark-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logo {
    flex: 0 0 auto;
    height: 28px;
    width: 28px;
    border-radius: 7px;
    display: block;
    margin-right: 0.55rem;
}

/* 2026-10-18 redesign (P3): the hero logo mark, the demo video with its
   reduced-motion twin and the WEB07 two-column hero are retired — the
   homepage hero is the F1 stage in marketing.css. */

/* ===== WEB02 Phase 02 — homepage static sections ===== */

/* AI-provider strip — every logo flattened to a white silhouette
   (brightness/invert; flattens the ai-google PNG too). No hover:
   nothing in the strip is a link. */

.provider-strip {
    padding: 2.4rem 0 0.6rem;
    text-align: center;
}

.provider-strip-line {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.3rem;
}

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.4rem 2.4rem;
}

.provider-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

/* Founders teaser — the circular crop is CSS; photos ship uncropped. */

.founders-teaser {
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.founders-photos {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.founder-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.founders-headline {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
}

.founders-line {
    color: var(--text-muted);
    max-width: 38rem;
    margin: 0 auto;
}

/* Merged rule for elements carrying BOTH .reveal + .lift-hover: the
   later transition SHORTHAND would otherwise reset the reveal fade +
   stagger (cascade order). Reveal owns opacity; lift owns
   transform/box-shadow. */

html.js-reveal .reveal.lift-hover {
    transform: none;
    transition:
        opacity var(--motion-dur-reveal) var(--motion-ease),
        transform var(--motion-dur-quick) var(--motion-ease),
        box-shadow var(--motion-dur-quick) var(--motion-ease);
    transition-delay: calc(var(--stagger-index, 0) * 100ms), 0s, 0s;
}

/* Outranks (0-3-1) the Phase 00 nulls, so it needs its own null. */

@media (prefers-reduced-motion: reduce) {
    html.js-reveal .reveal.lift-hover {
        transform: none;
        transition: none;
    }
}

/* ≤480 px — after the base rules it outranks; file order decides. */

@media (max-width: 480px) {
    .provider-logo {
        height: 22px;
    }

    .provider-logos {
        gap: 1rem 1.6rem;
    }

    .founders-teaser {
        text-align: left;
    }

    .founders-photos {
        justify-content: flex-start;
    }
}

/* ===== WEB02 Phase 03 — interactive sections ===== */

/* Visually-hidden utility (D5) — clip-rect: read by AT, never painted. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 2026-10-18 redesign (P3): the AI-chat demo and the product showcase are
   retired — the F1 hero stage tells that story (marketing.css). */

/* ===== WEB02 Phase 04 — about page ===== */

/* Eyebrow — the letter-spaced section kicker (generic — reusable). */

.eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
}

/* About + roadmap hero — centered band (.hero-sub is standalone). */

.about-hero,
.roadmap-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.about-hero h1,
.roadmap-hero h1 {
    font-size: 2.6rem;
    letter-spacing: -0.03em;
    margin: 0 auto 1rem;
    max-width: 46rem;
}

/* Founding story — reading measure inside the wide main. */

/* 46 rem measure in a 68 rem main. Keep OUT of the border-top group:
   a divider here paints inset while every sibling spans full width. */
.about-story,
.roadmap-upcoming {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.story-p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.timeline {
    border-left: 2px solid var(--border);
    padding-left: 1.5rem;
    margin-top: 2.5rem;
}

.timeline-row {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-row::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 5px);
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.timeline-title {
    color: var(--text);
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.timeline-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.about-mission,
.about-values,
.about-team,
.roadmap-shipped {
    padding: 2rem 0;
    text-align: center;
}

.about-mission,
.about-team,
.roadmap-shipped {
    border-top: 1px solid var(--border);
}

.about-mission h2 {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin: 0 auto 1rem;
    max-width: 44rem;
}

.mission-body {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 44rem;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.8rem;
    text-align: left;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    border-left: 3px solid var(--accent);
    padding: 1.4rem;
}

.value-glyph {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Team — two centered cards; the circular crop is CSS, not an asset. */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 1.8rem;
}

.team-card {
    width: 20rem;
    max-width: 100%;
    padding: 1.6rem;
    text-align: center;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 1px solid var(--border);
    display: block;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.team-linkedin,
.founders-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.team-linkedin:hover,
.founders-link:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

.founders-link {
    display: inline-block;
    margin-top: 0.9rem;
}

/* ≤480 px — after the base rules it outranks; file order decides. */

@media (max-width: 480px) {
    .about-hero,
    .about-mission,
    .about-values,
    .about-team,
    .roadmap-hero,
    .roadmap-shipped {
        text-align: left;
    }

    .team-grid {
        justify-content: flex-start;
    }

    .team-card {
        width: 100%;
    }
}

/* ===== WEB03 Phase 00 — roadmap page. Everything else reuses the
   about-page + portal-badge vocabularies above. ===== */

.roadmap-disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.6rem 0 0;
}

.roadmap-pill {
    margin-left: 0.6rem;
}

/* Phase 01 homepage teaser. The reading measure is NOT optional: `/` sets
   main.wide (68 rem), and without it the left rail stretches the full
   width and reads as broken. Not centred — a centred band fights a rail. */
.roadmap-teaser {
    padding: 3rem 0 1rem;
    max-width: 46rem;
    margin: 0 auto;
}

/* Author display rules outrank the UA [hidden] default, so assert
   it once with !important (scripts toggle el.hidden, never style). */
[hidden] {
    display: none !important;
}

/* SECURITY04 P10 — Sign in with Apple. Monochrome per Apple's HIG;
   channel spread 0, so WEB-123 is unmoved. Reuses .btn-primary's box
   because site.css is charged to WEB-72's budget; the :hover arm stops
   .btn-primary:hover repainting it accent. */
.auth-form .btn-apple,
.auth-form .btn-apple:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    background: #000;
    border-color: #fff;
    color: #fff;
}
