/* ============================================================
   Lumohub — public.css : the MARKETING SITE only.

   The public pages used to load app.css whole — 158 KB of application rules for the handful
   they actually use — plus Bootstrap, of which they used not one class. What is left here is
   what more than one public page reaches for: the page header, the legal body, the tiles, cards
   and call-to-action boxes, the FAQ accordion, the Without/With Lumohub block, the page
   transitions and the buttons' touch floor. A page keeps in its own style block only what is its
   alone — including where it departs from a shared rule here.
   Tokens, the reset, the language/theme controls and the button family live in tokens.css,
   loaded first by BOTH hosts.
   ============================================================ */

/* Headings share their words across their lines (a phone left "in." alone under a three-line title), and
   a word longer than a 320 px phone breaks instead of widening the page ("boekhoudsoftware"). */
h1, h2, h3, .pg-cta-title {
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ── Page header: eyebrow, title, subtitle ─────────────────────────────────── */
/* Two variants restate only what they change: -center (serif, centred: features, accountants,
   Peppol) and -doc (compact: legal pages, security). */
.pg-hero {
    margin-bottom: 2.2rem;
    max-width: 48rem;
}

/* The label that opens a page: neutral words after the family's signature stroke (AD.Ui base.css .signature) —
   the accent is the stroke's, never the label's. */
.pg-eyebrow {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: 0.45rem;
}

.pg-h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    line-height: 1.2;
}

.pg-sub {
    color: var(--clr-text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.65;
    margin: 0;
}

.pg-hero-center {
    max-width: none;
    margin-bottom: 0;
    padding: var(--space-40) 0 var(--space-24);
    text-align: center;
}

.pg-hero-center .pg-eyebrow {
    font-size: var(--fs-sm);
    letter-spacing: 0.07rem;
    margin: 0 0 var(--space-8);
}

.pg-hero-center .pg-h1 {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 600;
    line-height: inherit;
    margin: 0 0 var(--space-12);
}

.pg-hero-center .pg-sub {
    max-width: 46rem;
    margin: 0 auto;
    font-size: inherit;
    line-height: 1.6;
}

.pg-hero-doc {
    max-width: none;
    margin-bottom: 1.5rem;
}

/* font-size restated: the compact title keeps its size on phones. */
.pg-hero-doc .pg-h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    line-height: inherit;
}

.pg-hero-doc .pg-sub {
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 640px) {
    .pg-h1 {
        font-size: var(--fs-2xl);
    }
}

/* ── Legal body (legal notice, privacy, terms) ─────────────────────────────── */
.leg-body {
    max-width: 46rem;
    line-height: 1.7;
}

.leg-body h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.6rem 0 0.5rem;
}

.leg-body p, .leg-body li {
    color: var(--clr-text-secondary);
}

.leg-body p {
    margin: 0 0 0.6rem;
}

.leg-body ul {
    margin: 0 0 0.6rem;
    padding-left: 1.2rem;
}

.leg-body a {
    color: var(--clr-accent);
}

/* ── Icon tiles and contact box (About, Security) ──────────────────────────── */
.pg-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18.5rem, 100%), 1fr));
    gap: 1.15rem;
}

.pg-tile,
.pg-contact {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
    padding: 1.3rem 1.4rem;
}

.pg-tile-icon {
    line-height: 1;
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

/* The shared flag SVG carries a small inline size — scale it up to match the emoji icons. */
.pg-tile-icon svg {
    width: 2rem !important;
    height: 1.4rem !important;
}

.pg-tile-title {
    font-weight: 600;
    font-size: var(--fs-lg);
    margin-bottom: 0.4rem;
}

.pg-tile-body {
    font-size: var(--fs-md);
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.pg-contact {
    text-align: center;
}

.pg-contact-text {
    margin-bottom: 0.9rem;
    color: var(--clr-text-muted);
}

.pg-contact-mail {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
}

/* ── Two-column cards (Accountants, Peppol) ────────────────────────────────── */
.pg-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.pg-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-16) var(--space-20);
}

.pg-card-icon {
    font-size: 1.43rem;
    margin-bottom: var(--space-8);
}

@media (max-width: 700px) {
    .pg-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Closing call to action ────────────────────────────────────────────────── */
/* ── Content sections of the long-form pages (Accountants, Peppol) ───────── */
.pg-block {
    max-width: 52rem;
    margin: 0 auto var(--space-28);
}

.pg-h2 {
    font-family: var(--font-serif);
    font-size: 1.43rem;
    margin: 0 0 var(--space-12);
}

.pg-h3 {
    font-size: var(--fs-lg);
    margin: 0 0 0.36rem;
}

/* Closing call to action: a centred band, not the bordered .pg-cta card. */
.pg-cta-band {
    text-align: center;
    padding: var(--space-16) 0 3.43rem;
}

.pg-cta {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
    padding: 1.5rem 1.6rem;
    text-align: center;
}

.pg-cta-title {
    font-weight: 600;
    font-size: var(--fs-lg);
    margin-bottom: 0.4rem;
}

.pg-cta-text {
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--space-14);
}

/* Centred under a centred CTA band (ForWho, Simulator). */
.pg-cta-text--centered {
    max-width: 38rem;
    margin: 0 auto 1.1rem;
}

/* ── Radio driving a pure-CSS switch (ForWho modes, landing features and estimator, pricing period) */
/* Off-screen, never display:none: the radios stay reachable with the arrow keys. */
.pg-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ── FAQ accordion (Lumohub.Public/FaqItem.razor) ──────────────────────────── */
.faq-list {
    display: grid;
    gap: 0.6rem;
}

.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
}

.faq-item[open] {
    border-color: var(--clr-accent-border);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-14);
    padding: var(--space-14) 1.15rem;
    font-weight: 600;
    font-size: var(--fs-base);
    line-height: 1.45;
    color: var(--clr-text-primary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    list-style: none;
}

/* Chrome/Safari still paint the native triangle without this. */
.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    background: var(--clr-bg-alt);
}

.faq-q:focus-visible {
    outline: .15rem solid var(--clr-accent);
    outline-offset: -.15rem;
}

.faq-chev {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: var(--clr-text-muted);
    transition: transform var(--dur-1) var(--ease-out);
}

.faq-item[open] .faq-chev {
    transform: rotate(180deg);
    color: var(--clr-accent);
}

.faq-a {
    padding: 0.9rem 1.15rem 1.15rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-secondary);
    font-size: var(--fs-md);
    line-height: 1.7;
}

.faq-a strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

.faq-a a {
    color: var(--clr-accent);
}

@media (max-width: 640px) {
    .faq-q {
        padding: 0.9rem var(--space-14);
        font-size: var(--fs-base);
    }

    .faq-a {
        padding: 0.85rem var(--space-14) var(--space-14);
    }
}

/* ── Without / With Lumohub (Lumohub.Public/GainCompare.razor) ─────────────── */
/* Amounts stay neutral serif; only the variation is green — green qualifies a gain, never the
   net itself (THEME.md). */
.gain {
    margin-top: var(--space-8);
}

.gain-cols {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: var(--space-8);
}

.gain-col {
    display: flex;
    flex-direction: column;
    gap: 0.21rem;
    padding: var(--space-10) var(--space-12);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background: var(--clr-bg-alt);
    text-align: center;
}

.gain-col-with {
    border-color: var(--clr-border-strong);
    background: var(--clr-surface);
}

.gain-lbl {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.gain-amt {
    font-family: var(--font-serif);
    font-variant-numeric: tabular-nums;
    font-size: 1.57rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--clr-text-secondary);
    white-space: nowrap;
}

.gain-col-with .gain-amt {
    color: var(--clr-text-primary);
}

.gain-arrow {
    align-self: center;
    color: var(--clr-text-muted);
}

.gain-delta {
    margin-top: var(--space-10);
    font-size: var(--fs-md);
    color: var(--clr-text-secondary);
}

.gain-delta b {
    color: var(--clr-success);
    font-variant-numeric: tabular-nums;
}

.gain-via {
    margin-top: 0.21rem;
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
}

.gain-sep {
    margin: 0 var(--space-4);
    color: var(--clr-text-muted);
}

.gain-note {
    margin: var(--space-6) 0 0;
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
}

@media (max-width: 480px) {
    .gain-cols {
        grid-template-columns: 1fr;
    }

    .gain-arrow {
        display: none;
    }
}

/* ── Page transitions ───────────────────────────────────────────────────────── */
/* Every navigation here is a full document load, which flashes between pages. The cross-document
   view transition makes the browser cross-fade the two documents itself — declarative, no script,
   and a browser without support simply navigates as before. It lives here, not in app.css: the
   app is a SPA that never leaves its document, and the public pages do not load app.css. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: var(--dur-2);
    animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ── Mobile menu entrance (the only keyframe of the marketing site) ──────── */
@keyframes modal-overlay-in {
    from {
        opacity: 0;
    }
}
