/* Public/Auth layout — plain CSS, no framework dependency */

/* GH #746: public/share/auth pages now opt OUT of Fluent's adopted
   default-fuib.css entirely — App.razor stamps Fluent's no-fuib-style
   attribute on <body> for every PublicSurface route, so the bare element
   styles (body, *, h1-h6, a, kbd, mark, hr, table) never apply there.
   The overrides below stay as a backstop for any Fluent-free surface that
   ever renders without the attribute. The two things these pages were
   silently borrowing from default-fuib are owned here instead: */

/* 1. box-sizing — default-fuib supplied `* { box-sizing: border-box }`. */
.public-layout, .public-layout *, .public-layout *::before, .public-layout *::after,
.share-layout, .share-layout *, .share-layout *::before, .share-layout *::after {
    box-sizing: border-box;
}

/* 2. Unclassed prose links (FAQ answers, legal text) — were painted by
   default-fuib's bare `a` rule; keep the brand-orange underlined look they
   already had. :where() zeroes specificity so EVERY other link rule in this
   file (nav, footer, auth-footer, …) wins, exactly like they beat Fluent's
   bare `a` before. */
:where(.public-layout, .share-layout) :where(a:not([class])) {
    color: var(--public-primary-hover);
    text-decoration: underline;
}

:where(.public-layout, .share-layout) :where(a:not([class]):hover) {
    color: var(--public-primary);
}

/* Backstop: Fluent UI v5's lib.module.js auto-injects default-fuib.css even
   when we don't <link> the main bundle. default-fuib locks
   body { height:100dvh; overflow:hidden } which breaks public-page scrolling.
   Override on pages using .public-layout or .share-layout. */
body:has(.public-layout),
body:has(.share-layout) {
    height: auto;
    overflow: visible;
}

/* Fluent v5 also ADOPTS a document-level constructable stylesheet (invisible to
   the network tab) with bare-element typography — h1–h6 font-size/line-height
   ride design tokens (h3 → --lineHeightHero700 = 36px), which re-spaces
   marketing headings (first seen: /support FAQ). Revert headings to UA metrics
   here; classed heading rules later in this file still win by source order. */
.public-layout h1, .public-layout h2, .public-layout h3,
.public-layout h4, .public-layout h5, .public-layout h6,
.share-layout h1, .share-layout h2, .share-layout h3,
.share-layout h4, .share-layout h5, .share-layout h6 {
    font-size: revert;
    line-height: revert;
}

/* Inter, self-hosted. Same woff2 the back-office brand layer declares in
   wwwroot/css/fonts.css — the FONT FILE is shared, the STYLESHEET is not.
   public.css stays independent of the Fluent/brand token layer, which is
   <HeadContent>-injected by the portal and never reaches a public page
   (docs/web-conventions.md:629). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: local('Inter'),
         url('/fonts/inter/InterVariable.woff2') format('woff2-variations'),
         url('/fonts/inter/InterVariable.woff2') format('woff2');
}

:root {
    --public-font: 'Inter', "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    /* Brand orange. Was #F89E1F — one digit off from tokens.css --orange
       (#F89E1E) — until the landing rebuild; hover was an unrelated #e08a10
       and is now --orange-deep. */
    --public-primary: #F89E1E;
    --public-primary-hover: #E6781E;
    --public-primary-soft: #fef4e3;
    --public-bg: #f5f5f5;
    --public-surface: #ffffff;
    --public-text: #1a1a1a;
    --public-text-muted: #666;
    --public-border: #ddd;
    --public-border-soft: #efeff1;
    /* Dark bands — landing CTA strip and the site footer.
       --public-text-muted (#666) is a light-surface token and drops to ~2.5:1
       on --public-ink; use --public-ink-muted for secondary text there. */
    --public-ink: #231F20;
    --public-ink-text: #d8d4ce;
    --public-ink-muted: #aeaeb2;
    --public-ink-rule: #3a3637;
    /* Scope-map marker colors from the shipped mobile app, mirrored for the
       legend beneath the panel-scoping screenshot. Not PDR web chrome. */
    --public-scope-scoped: #4CAF50;
    --public-scope-randi: #2196F3;
    --public-error: #d32f2f;
    --public-error-bg: #fdecea;
    --public-radius: 8px;
}

/* Visible to screen readers only — used for labels on inputs that carry a
   visible placeholder instead (a placeholder is not an accessible name). */
.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;
}

/* Layout */
.public-layout {
    font-family: var(--public-font);
    color: var(--public-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--public-bg);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--public-surface);
    border-bottom: 1px solid var(--public-border-soft);
}

.public-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Section links. Hidden on phones — they stay reachable in the footer, which
   carries the same set in its Product column. */
.public-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.public-nav a,
.public-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--public-text);
    text-decoration: none;
    white-space: nowrap;
}

.public-nav-links a {
    color: var(--public-text-muted);
    transition: color 0.15s;
}

.public-nav a:hover,
.public-nav-links a:hover {
    color: var(--public-primary);
}

.public-nav a.btn-primary,
.public-nav a.btn-primary:hover {
    color: #fff;
    width: auto;
}

.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--public-text);
    flex: 0 0 auto;
}

.public-logo-icon {
    height: 100%;
    max-height: 40px;
    width: auto;
}

.public-logo-word {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .public-nav-links {
        display: none;
    }

    .public-header-inner {
        min-height: 64px;
        padding: 0 1rem;
    }
}

.public-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Minimal customer-facing layout for /s/{token} share landing pages.
   Slim "Powered by PDR Mobile" attribution bar at top, then shop-branded
   page content (Stripe-checkout pattern). */
.share-layout {
    font-family: var(--public-font);
    color: var(--public-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--public-bg);
}

.share-layout-attribution {
    background: var(--public-surface);
    border-bottom: 1px solid var(--public-border);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
}

.share-layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Dark 3-column footer. Shared by every public page including the auth
   pages, which suppress the header but not this. */
.public-footer {
    background: var(--public-ink);
    color: var(--public-ink-text);
    /* Bottom clearance for the two viewport-fixed overlays (HubSpot chat launcher
       bottom-left, reCAPTCHA badge bottom-right): at full scroll they'd otherwise sit
       on the footer-base row's corners (copyright / social links) on every width. */
    padding: 3.5rem 0 7rem;
    font-size: 0.9rem;
}

.public-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

/* Explicit box — .public-logo-icon's height:100% has no resolvable parent
   height inside this flex row. */
.footer-brand-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.footer-brand-word {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-style: italic;
    color: var(--public-ink-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Not a heading element — these sit on every public page including /login,
   where a real <h2> would pollute the document outline. */
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--public-ink-muted);
    margin: 0 0 0.9rem;
}

.footer-col a {
    display: block;
    color: var(--public-ink-text);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--public-primary);
}

.footer-base {
    border-top: 1px solid var(--public-ink-rule);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--public-ink-muted);
}

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

.footer-social a {
    color: var(--public-ink-muted);
    transition: color 0.15s;
}

.footer-social a:hover {
    color: var(--public-primary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .public-footer-inner {
        padding: 0 1rem;
    }
}

/* Auth brand */
.brand-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 0.5rem;
}

.brand-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--public-text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Auth card */
.auth-card {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Form elements */
.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.label-optional {
    font-weight: 400;
    color: var(--public-text-muted);
    font-size: 0.8rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--public-text-muted);
    margin-top: 0.25rem;
}

.auth-terms {
    font-size: 0.8rem;
    color: var(--public-text-muted);
    text-align: center;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.auth-terms a {
    color: var(--public-primary);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: var(--public-font);
    border: 1px solid var(--public-border);
    border-radius: 4px;
    background: var(--public-surface);
    color: var(--public-text);
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--public-primary);
    box-shadow: 0 0 0 2px rgba(248,158,31,0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--public-font);
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s;
}

.btn-primary {
    background: var(--public-primary);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--public-primary-hover);
    color: #fff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: var(--public-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--public-font);
    padding: 0;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

.btn-link:hover {
    color: var(--public-primary-hover);
}

/* Error display */
.auth-error {
    background: var(--public-error-bg);
    color: var(--public-error);
    border: 1px solid var(--public-error);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-error ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Validation messages */
.validation-message {
    color: var(--public-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Inline form link — right-aligned under an input */
.form-group-end {
    text-align: right;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.form-group-end a {
    color: var(--public-primary);
    text-decoration: none;
}

.form-group-end a:hover {
    text-decoration: underline;
}

/* Auth footer links */
.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--public-text-muted);
}

.auth-footer a {
    color: var(--public-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Legacy-app re-onboard hint (GH #813): shown in the forgot-password flow so
   returning v2 users learn logins don't carry over instead of waiting for a
   reset code that can never arrive. */
.auth-hint {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--public-primary-soft);
    border: 1px solid var(--public-border-soft);
    border-radius: var(--public-radius);
    font-size: 0.9rem;
    color: var(--public-text);
}

.auth-hint a {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--public-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-hint a:hover {
    text-decoration: underline;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--public-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--public-border);
}

.auth-divider span {
    padding: 0 0.75rem;
}

/* Google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--public-font);
    font-weight: 500;
    background: var(--public-surface);
    color: var(--public-text);
    border: 1px solid var(--public-border);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #bbb;
}

/* Apple button — lock color across all link states; Fluent UI's auto-injected
   stylesheet defines a:hover/:visited that would otherwise turn the text orange. */
.btn-apple,
.btn-apple:link,
.btn-apple:visited,
.btn-apple:hover,
.btn-apple:active,
.btn-apple:focus {
    color: #fff;
}

.btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-family: var(--public-font);
    font-weight: 500;
    background: #000;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-apple:hover {
    background: #333;
    border-color: #333;
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: var(--public-primary);
    border: 2px solid var(--public-primary);
    width: 100%;
}

.btn-outline:hover {
    background: var(--public-primary);
    color: #fff;
}

/* Ghost button — transparent with a hairline rule. Used on the landing page's
   dark CTA band, where .btn-outline's 2px brand border is too loud. */
.btn-ghost {
    background: transparent;
    color: var(--public-text);
    border: 1px solid var(--public-border);
}

.btn-ghost:hover {
    border-color: var(--public-primary);
    color: var(--public-primary-hover);
}

/* ==========================================================================
   Landing page (/)
   --------------------------------------------------------------------------
   Marketing surface, English-only, light-only. Everything here is namespaced
   .landing-* on purpose: .faq-grid / .faq-item are already shared by
   /pricing and /support, so the FAQ accordion below must NOT reuse them.
   The billing toggle DOES reuse .billing-toggle / .toggle-pill* from the
   pricing block — same markup shape (anchors), no collision.
   ========================================================================== */

/* .public-main centres its child and adds padding, which suits an auth card
   but stops the proof strip and CTA band from running edge to edge. Neutralise
   both here; each section supplies its own .landing-wrap gutter instead. */
.public-main:has(.landing-page) {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.landing-page {
    width: 100%;
}

.landing-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* .btn-primary and .btn-outline carry width:100% from the auth card. Every
   button on this page sits in a horizontal row, so undo it once here rather
   than per-row (the old .landing-hero-actions .btn-cta rule did this for the
   hero only, and vanished with that block). */
.landing-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
}

.landing-btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* The header is sticky, so anchored sections must reserve room or they land
   underneath it. */
.landing-page [id] {
    scroll-margin-top: 88px;
}

.landing-section {
    padding: 4.5rem 0;
}

.landing-section-tint {
    background: var(--public-surface);
}

.landing-sec-head {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 3rem;
}

.landing-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--public-primary-hover);
    margin: 0 0 0.75rem;
}

.landing-sec-head h2,
.landing-split h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem;
}

.landing-sec-head p {
    color: var(--public-text-muted);
    margin: 0;
}

/* ---------- Hero ---------- */
.landing-hero {
    padding: 4.5rem 0 4rem;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--public-primary-hover);
    background: var(--public-primary-soft);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    margin: 0 0 1.4rem;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.landing-hero h1 .landing-accent {
    color: var(--public-primary);
}

.landing-hero-sub {
    font-size: 1rem;
    color: var(--public-text-muted);
    max-width: 52ch;
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.landing-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.65rem;
}

.landing-checks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.landing-checks svg {
    color: var(--public-primary);
    flex: 0 0 auto;
}

.landing-hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}

.landing-hero-note {
    font-size: 0.85rem;
    color: var(--public-text-muted);
    margin: 0.9rem 0 0;
}

.landing-hero-note strong {
    color: var(--public-text);
    font-weight: 600;
}

.landing-hero-note a {
    color: var(--public-primary-hover);
    font-weight: 600;
}

/* Device frame around the app screenshots */
.landing-phone-stage {
    display: flex;
    justify-content: center;
}

.landing-phone {
    width: 300px;
    max-width: 100%;
    border-radius: 40px;
    background: var(--public-ink);
    padding: 12px;
    box-shadow: 0 24px 60px rgba(35, 31, 32, 0.18);
}

.landing-phone img {
    display: block;
    width: 100%;
    /* The markup carries width/height attributes for CLS. Those are presentational
       hints, so without an explicit height the attribute makes height definite and
       the intrinsic ratio is discarded — the shot renders at natural height inside a
       scaled-down width and squashes. Any CSS width on these needs height: auto. */
    height: auto;
    border-radius: 30px;
}

.landing-phone-sm {
    width: 270px;
}

/* ---------- Proof strip ---------- */
.landing-proof {
    background: var(--public-surface);
    border-top: 1px solid var(--public-border-soft);
    border-bottom: 1px solid var(--public-border-soft);
    padding: 1.4rem 0;
}

.landing-proof-inner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--public-text-muted);
}

.landing-proof-inner strong {
    display: block;
    color: var(--public-text);
    font-size: 1.25rem;
}

/* ---------- Split (panel scoping) ---------- */
.landing-split-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.landing-split-media {
    display: flex;
    justify-content: center;
}

.landing-split p {
    color: var(--public-text-muted);
    max-width: 52ch;
    margin: 0 0 1.4rem;
    line-height: 1.6;
}

.landing-dots {
    display: flex;
    gap: 1.15rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.landing-dot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.landing-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.landing-dot-progress { background: var(--public-primary); }
.landing-dot-scoped   { background: var(--public-scope-scoped); }
.landing-dot-randi    { background: var(--public-scope-randi); }

/* ---------- Feature cards ---------- */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.landing-feature {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.landing-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(35, 31, 32, 0.07);
}

/* 16:10, anchored top so each screen's header row survives a short card */
.landing-feature-shot {
    display: block;
    width: 100%;
    /* Required, or the height attribute in the markup wins and aspect-ratio below is
       ignored (see .landing-phone img). The shots are pre-cropped to 16:10, so with a
       correct ratio object-fit: cover is a no-op and nothing is actually cropped. */
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: var(--public-bg);
    border-bottom: 1px solid var(--public-border-soft);
}

.landing-feature-body {
    padding: 1.6rem 1.75rem 1.9rem;
}

.landing-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.35rem;
}

.landing-feature-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--public-primary-hover);
    margin: 0 0 0.75rem;
}

.landing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.landing-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--public-text-muted);
    line-height: 1.5;
}

.landing-list svg {
    color: var(--public-primary);
    flex: 0 0 auto;
    margin-top: 3px;
}

/* ---------- Roadmap ---------- */
.landing-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.75rem;
}

.landing-roadmap-card {
    background: var(--public-surface);
    border: 1px dashed var(--public-border);
    border-radius: 16px;
    padding: 1.75rem 1.6rem;
}

.landing-roadmap-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* The opaque black plate is stripped out of the source marks, so the tile is
   drawn here in --public-ink instead. */
.landing-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--public-ink);
    border-radius: 14px;
    height: 64px;
    padding: 0 1.1rem;
}

.landing-mark img {
    display: block;
    width: auto;
    height: 36px;
}

.landing-mark-autowrite img {
    height: 40px;
}

.landing-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--public-bg);
    color: var(--public-text-muted);
    border: 1px solid var(--public-border);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.landing-roadmap-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.35rem;
}

.landing-roadmap-card .landing-feature-tag {
    color: var(--public-text-muted);
}

.landing-roadmap-card .landing-list svg {
    color: var(--public-border);
}

/* ---------- Waitlist ---------- */
.landing-waitlist {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: 16px;
    padding: 1.9rem 1.75rem;
}

.landing-waitlist h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.landing-waitlist > p {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.landing-waitlist-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.landing-waitlist-form .form-input {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
}

.landing-waitlist-form .btn {
    flex: 0 0 auto;
}

.landing-waitlist-note {
    font-size: 0.75rem;
    color: var(--public-text-muted);
    margin: 0.75rem 0 0;
}

.landing-waitlist-ok {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--public-primary-hover);
    margin: 0.5rem 0 0;
}

/* Honeypot — off-screen, never focusable. Mirrors .support-hp. */
.landing-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- CTA band ---------- */
.landing-band {
    background: var(--public-ink);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.landing-band h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
}

.landing-band h2 .landing-accent {
    color: var(--public-primary);
}

.landing-band p {
    color: var(--public-ink-text);
    max-width: 52ch;
    margin: 0 auto 1.9rem;
}

.landing-band-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-band .btn-ghost {
    color: #fff;
    border-color: var(--public-ink-rule);
}

.landing-band .btn-ghost:hover {
    border-color: var(--public-primary);
    color: var(--public-primary);
}

/* ---------- Pricing ---------- */
.landing-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 1.5rem;
    justify-content: center;
}

.landing-plan {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    position: relative;
}

.landing-plan-featured {
    border-color: var(--public-primary);
    box-shadow: 0 10px 34px rgba(248, 158, 30, 0.14);
}

.landing-plan-soon {
    border-style: dashed;
    background: var(--public-bg);
}

.landing-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--public-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.landing-plan-soon .landing-plan-badge {
    background: var(--public-ink);
}

.landing-plan h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.landing-plan-sub {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.landing-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.landing-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-plan-per {
    font-size: 0.9rem;
    color: var(--public-text-muted);
}

.landing-plan-soon .landing-plan-price,
.landing-plan-soon .landing-plan-per {
    color: var(--public-text-muted);
}

.landing-plan-savings {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--public-primary-hover);
    margin: 0 0 1rem;
}

.landing-plan-note-muted {
    font-size: 0.85rem;
    color: var(--public-text-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.landing-plan-addon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--public-text-muted);
    background: var(--public-primary-soft);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.landing-plan-addon strong {
    color: var(--public-text);
    font-weight: 600;
}

.landing-plan .btn {
    width: 100%;
}

.landing-plan-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--public-text-muted);
    margin: 0.6rem 0 0;
}

.landing-plan .landing-list {
    padding-top: 1.1rem;
    margin-top: 1.1rem;
    border-top: 1px solid var(--public-border-soft);
    gap: 0.55rem;
}

.landing-plan .landing-list li {
    color: var(--public-text);
}

.landing-plan-soon .landing-list li {
    color: var(--public-text-muted);
}

.landing-plan-soon .landing-list svg {
    color: var(--public-border);
}

.landing-plan-fineprint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--public-text-muted);
    border-top: 1px solid var(--public-border-soft);
    padding-top: 0.9rem;
    margin: 1rem 0 0;
}

/* ---------- FAQ ----------
   Deliberately NOT .faq-grid / .faq-item — those are shared by /pricing and
   /support and use a static markup shape. This one is a <details> accordion. */
.landing-faq {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.landing-faq-item {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: 12px;
    padding: 0 1.25rem;
}

.landing-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary svg {
    color: var(--public-text-muted);
    flex: 0 0 auto;
    transition: transform 0.2s;
}

.landing-faq-item[open] summary svg {
    transform: rotate(180deg);
    color: var(--public-primary);
}

.landing-faq-item p {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    margin: 0;
    padding: 0 0 1.1rem;
    max-width: 62ch;
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .landing-section,
    .landing-hero,
    .landing-band {
        padding: 3rem 0;
    }

    .landing-hero-grid,
    .landing-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .landing-sec-head h2,
    .landing-split h2,
    .landing-band h2 {
        font-size: 2rem;
    }

    .landing-features-grid,
    .landing-roadmap-grid,
    .landing-plans {
        grid-template-columns: 1fr;
    }

    .landing-proof-inner {
        gap: 1.5rem;
    }
}

/* Pricing page */
.public-main:has(.pricing-page) {
    align-items: flex-start;
    justify-content: flex-start;
}

.pricing-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--public-text-muted);
    margin: 0 0 1.5rem;
}

/* Billing toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: 6px;
    padding: 4px;
    gap: 0;
}

.toggle-pill {
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--public-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.toggle-pill:hover {
    color: var(--public-text);
}

.toggle-pill-active {
    background: var(--public-primary);
    color: #fff;
    font-weight: 600;
}

.toggle-pill-active:hover {
    color: #fff;
}

.toggle-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 0.2rem;
}

.toggle-pill:not(.toggle-pill-active) .toggle-badge {
    background: var(--public-primary);
    color: #fff;
}

/* Pricing cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pricing-card-featured {
    border-color: var(--public-primary);
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(248,158,31,0.15);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--public-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
}

.pricing-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    margin: 0 0 1.25rem;
    min-height: 2.5em;
}

.card-price {
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 0.9rem;
    color: var(--public-text-muted);
}

.price-savings {
    font-size: 0.8rem;
    color: #2e7d32;
    margin: 0 0 1rem;
    font-weight: 500;
}

.btn-cta {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trial-note {
    font-size: 0.8rem;
    color: var(--public-text-muted);
    text-align: center;
    margin: 0 0 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--public-border);
    padding-top: 1.25rem;
}

.feature-list li {
    font-size: 0.9rem;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

/* FAQ */
.pricing-faq {
    margin-bottom: 3rem;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.faq-item {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    padding: 1.25rem 1.5rem;
}

.faq-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Bottom CTA */
.pricing-cta-bottom {
    text-align: center;
    padding: 2.5rem;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    margin-bottom: 2rem;
}

.pricing-cta-bottom h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.pricing-cta-bottom .btn-cta {
    display: inline-block;
    width: auto;
    padding: 0.75rem 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero h1 {
        font-size: 1.5rem;
    }
}

/* Public marketing pages are light-only by design (Phase 53). No dark-mode
   CSS here — Fluent UI's lib.module.js Theme.initializeThemeSettings() in
   the back office REMOVES `data-theme` from <body> when light (only sets it
   for dark), which made the previous `body:not([data-theme="light"])`
   media-query selector match for any dark-OS user once WASM hydrated and
   flashed the public site dark. Light-only forever — flash gone. */

/* ============================================================
   Legal pages (/privacy, /terms)
   ============================================================ */
.public-main:has(.legal-page) {
    align-items: flex-start;
    justify-content: flex-start;
}

.legal-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.legal-hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--public-border);
    margin-bottom: 2.5rem;
}

.legal-effective {
    font-size: 0.85rem;
    color: var(--public-text-muted);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1.05rem;
    color: var(--public-text-muted);
    margin: 0;
    line-height: 1.5;
}

.legal-body {
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-body h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem;
    line-height: 1.3;
    scroll-margin-top: 1rem;
}

.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.legal-body p {
    margin: 0 0 1rem;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.5rem;
}

.legal-body a {
    color: var(--public-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    text-decoration: none;
}

.legal-body strong {
    font-weight: 600;
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 1.5rem 0 1.5rem;
    }

    .legal-hero h1 {
        font-size: 1.75rem;
    }

    .legal-subtitle {
        font-size: 0.95rem;
    }

    .legal-body h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }
}

/* ==========================================================================
   Support page (/support)
   Chat + contact-form + FAQ. Reuses .form-*, .btn, .faq-* from above.
   ========================================================================== */

.public-main:has(.support-page) {
    align-items: flex-start;
    justify-content: flex-start;
}

.support-page {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 0;
}

.support-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.support-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.support-hero p {
    font-size: 1.1rem;
    color: var(--public-text-muted);
    margin: 0;
}

/* Launch callout banner — links /support to the Switch-Day Guide until the
   Aug 30 cutover settles. */
.support-callout {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--public-surface);
    border: 1px solid var(--public-primary);
    border-radius: var(--public-radius);
    padding: 0.9rem 1.25rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--public-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.support-callout:hover {
    border-color: var(--public-primary-hover);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.support-callout-badge {
    flex-shrink: 0;
    background: var(--public-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.support-callout-text {
    font-size: 0.9rem;
    line-height: 1.45;
}

.support-callout-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--public-primary);
    font-size: 1.1rem;
}

.support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.support-card {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.support-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.support-card > p {
    font-size: 0.9rem;
    color: var(--public-text-muted);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.support-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Topic selector — routes the send server-side (support vs sales). */
.support-topic-options {
    display: flex;
    gap: 1.5rem;
}

.support-topic-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 400;
    cursor: pointer;
}

/* Honeypot — off-screen; humans never see or fill it, bots do → dropped server-side. */
.support-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.support-success p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--public-text);
}

.support-faq {
    margin-bottom: 2rem;
}

.support-faq > h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem;
}

@media (max-width: 768px) {
    .support-options {
        grid-template-columns: 1fr;
    }

    .support-hero h1 {
        font-size: 1.75rem;
    }

    .support-callout {
        flex-wrap: wrap;
    }

    .support-callout-arrow {
        display: none;
    }
}

/* ==========================================================================
   Share landing page (Phase 52B)
   Public-facing tokenized estimate/invoice viewer at /s/{token}.
   Mobile-first; iframe replaced by "View PDF" button below 768px.
   ========================================================================== */

.share-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
}

.share-state {
    text-align: center;
    padding-top: 4rem;
}

.share-loading {
    color: #555;
    font-size: 1rem;
}

.share-error-headline {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.share-error-help {
    color: #666;
}

.share-branding {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

/* Let the text column shrink past its content width inside the row layout
   above 768px — without min-width:0, flex children won't shrink below
   their intrinsic content size and the page-level overflow-x:hidden clips
   them. */
.share-branding-text {
    min-width: 0;
    word-break: break-word;
}

.share-logo {
    max-width: 180px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.share-branding-text {
    width: 100%;
}

.share-company {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.share-address {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.share-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.share-contact-link {
    color: #d97706;
    text-decoration: none;
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.share-contact-link:hover {
    text-decoration: underline;
}

.share-vehicle {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 1rem;
}

.share-pdf-iframe {
    display: none;
    width: 100%;
    /* Cap width so aspect-ratio produces a portrait shape (US Letter) that
       matches what the PDF viewer renders. Without this cap, on wide
       viewports the iframe stretches to landscape and shows large dark
       padding around the page. */
    max-width: 620px;
    aspect-ratio: 8.5 / 11;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fafafa;
    margin: 0 auto 1rem;
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.share-btn-primary {
    background: #d97706;
    color: #fff;
}

.share-btn-primary:hover {
    background: #b45309;
}

.share-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #d4d4d4;
}

.share-btn-secondary:hover {
    border-color: #999;
}

.share-btn-mobile { display: inline; }
.share-btn-desktop { display: none; }

.share-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.share-footer a {
    color: inherit;
    text-decoration: none;
}

.share-footer a:hover {
    text-decoration: underline;
}

.share-poweredby {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.share-poweredby-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.share-poweredby-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.share-poweredby-line {
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
}

.share-poweredby-tagline {
    font-size: 0.65rem;
    color: #999;
    font-style: italic;
}

@media (min-width: 768px) {
    .share-branding {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .share-pdf-iframe {
        display: block;
    }

    .share-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .share-btn {
        min-width: 180px;
    }

    .share-btn-mobile { display: none; }
    .share-btn-desktop { display: inline; }
}
