/* ============================================================
   STYLE.CSS — The Thumbprint Card · "Midnight" components
   Gallery-quiet luxe: Cormorant Garamond display, gold hairlines, squared
   uppercase buttons, serif-numeral steps, lux pricing panels,
   and the physical-card (.pcard) renderer. Theme-aware through
   the tokens in theme.css (light default / [data-theme=dark]).
   ============================================================ */

body { font-weight: 300; }
h1, h2, h3, h4, h5 { font-weight: 500; }
/* Bootstrap's .lead is a fixed 1.25rem — pin it to body size so ledes
   never drift from the rest of the copy as the scale moves */
.lead { font-size: var(--text-base); }

.eyebrow {
    display: block;
    font-size: var(--text-xs); font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
    color: var(--color-accent);
}
.rule-after::after {
    content: ""; display: block; width: 76px; height: 2px;
    background: var(--gold-decor); margin: 18px 0 0;
}
.text-center .rule-after::after, .rule-after.mx-auto::after { margin-inline: auto; }
.lux-sect { border-top: 1px solid var(--line); }

/* ── Nav ─────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--nav-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: var(--text-md); color: var(--color-text); }
.site-header .brand svg { width: 30px; height: 30px; flex: none; }

/* Brand mark ships in both inks; the active theme shows exactly one.
   The SVG fills are baked (not currentColor), hence swap over recolor. */
:root[data-theme="dark"] .logo-light { display: none; }
:root:not([data-theme="dark"]) .logo-dark { display: none; }
.site-header .nav-list a.link-emph {
    font-size: var(--text-xs); font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
    color: var(--color-text-muted); transition: color .25s;
}
.site-header .nav-list a.link-emph:hover { color: var(--color-accent); }
.site-header .nav-list a.link-emph::after { background: var(--color-accent); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
#mobileToggle::before, #mobileToggle::after { background: var(--color-text); }
#mobileMenu, .offcanvas { background: var(--color-bg); color: var(--color-text); }
#mobileMenu .nav-list a { color: var(--color-text); }

/* ── Buttons: squared, uppercase, letter-spaced ──────────── */
.btn {
    border-radius: 0;
    padding: .85rem 2.2rem;
    font-size: var(--text-xs); font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
    transition: .3s;
}
.btn-sm, .btn.btn-sm { padding: .5rem 1.3rem; font-size: var(--text-xs); }
.btn-primary, .btn-cta {
    background: var(--color-primary); border: 1px solid var(--color-primary); color: var(--color-bg);
}
.btn-primary:hover, .btn-cta:hover {
    background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-bg);
    box-shadow: 0 10px 26px -12px var(--hairline);
}
/* Light: ivory on bronze is only 3.5:1 — too faint for the small header
   CTA. Gunmetal ink at rest (4.8:1), white once the fill darkens on
   hover (5.2:1); both meet AA. Dark mode keeps the shared rules above. */
:root:not([data-theme="dark"]) .site-header .btn-primary { color: #fff; transition: .25s; }
:root:not([data-theme="dark"]) .site-header .btn-primary:hover,
:root:not([data-theme="dark"]) .site-header .btn-primary:focus-visible { color: #fff; }
/* Dark: pure black instead of the near-black bg token on the gold fills —
   9.1:1 at rest, 5.4:1 on the bronze hover (up from 8.4 / 5.0). */
:root[data-theme="dark"] .site-header .btn-primary { color: #000; transition: .25s; }
.btn-outline-primary, .btn-ghost, .btn-outline-light {
    background: none; border: 1px solid var(--color-primary); color: var(--color-primary);
}
.btn-outline-primary:hover, .btn-ghost:hover, .btn-outline-light:hover {
    background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary);
}
.btn-outline-danger { border-radius: 0; }

/* Pressed/focused/disabled buttons stay in the palette — without these,
   Bootstrap's default variant vars flash its blue (disabled matters for
   the .btn-loading pending state, which sets disabled) */
.btn-primary:active, .btn-cta:active,
.btn-primary.active, .btn-cta.active {
    background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-bg);
}
.btn-outline-primary:active, .btn-ghost:active, .btn-outline-light:active {
    background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary);
}
.btn-primary:disabled, .btn-primary.disabled, .btn-cta:disabled, .btn-cta.disabled {
    background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg);
}
.btn-outline-primary:disabled, .btn-ghost:disabled, .btn-outline-light:disabled {
    background: none; border-color: var(--color-primary); color: var(--color-primary);
}
.btn:focus-visible, .btn:active:focus-visible {
    box-shadow: none;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Pending action: btnLoading() in script.js locks the button and spins.
   The spinner sits centered OVER the label — the text goes transparent
   (still occupying layout, so the button never changes size) and the
   ::after overlays it. Text-transparent kills currentColor, so each
   variant names its spinner color explicitly. */
.btn.btn-loading { pointer-events: none; opacity: .8; position: relative; color: transparent !important; }
.btn.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 1.1em; height: 1.1em;
    margin: -0.55em 0 0 -0.55em;
    border: 2px solid var(--color-primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
}
.btn-primary.btn-loading::after, .btn-cta.btn-loading::after {
    border-color: var(--color-bg);
    border-right-color: transparent;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-link { text-transform: none; letter-spacing: normal; }

/* ── Theme toggle ────────────────────────────────────────── */
.theme-toggle {
    width: 38px; height: 38px; padding: 0; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line); border-radius: 50%;
    color: var(--color-text-muted); cursor: pointer; transition: .25s;
}
.theme-toggle:hover { color: var(--color-accent); border-color: var(--hairline); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

/* ── Physical card renderer (.pcard) ─────────────────────── */
.pcard {
    width: min(420px, 100%); aspect-ratio: 1.75; border-radius: 12px;
    position: relative; overflow: hidden;
    container-type: inline-size;
    box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .5);
    font-family: var(--card-font, var(--font-heading));
    background: var(--card-bg, #ffffff); color: var(--card-fg, #1b2523);
}
.pcard .p-logo { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .p-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcard .monogram {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--card-accent, #a8792c);
    background: none; color: var(--card-accent, #a8792c);
    font-family: var(--font-heading); font-weight: 500;
}
.pcard .p-name { font-weight: 500; letter-spacing: .02em; }
.pcard .p-title, .pcard .p-co { opacity: .78; }
.pcard .p-rule { background: var(--card-accent, #a8792c); }

/* template: classic */
.pcard[data-template="classic"] .p-logo { top: 9%; left: 7%; width: 17%; aspect-ratio: 1; }
.pcard[data-template="classic"] .p-rule { position: absolute; left: 7%; bottom: 34%; width: 12%; height: 3px; border-radius: 2px; }
.pcard[data-template="classic"] .p-name { position: absolute; left: 7%; bottom: 19%; font-size: clamp(8px, 5cqw, 22px); }
.pcard[data-template="classic"] .p-title { position: absolute; left: 7%; bottom: 9%; font-size: clamp(6px, 2.7cqw, 12px); letter-spacing: .22em; text-transform: uppercase; }
.pcard[data-template="classic"] .p-co { position: absolute; right: 7%; top: 11%; font-size: clamp(6px, 2.9cqw, 13px); text-align: right; }
/* template: bold — accent full bleed */
.pcard[data-template="bold"] { background: var(--card-accent, #a8792c); color: var(--card-accent-fg, #fff); }
.pcard[data-template="bold"] .p-logo { top: 12%; left: 50%; transform: translateX(-50%); width: 16%; aspect-ratio: 1; }
.pcard[data-template="bold"] .p-name { position: absolute; left: 0; right: 0; top: 47%; text-align: center; font-size: clamp(8px, 5.4cqw, 24px); }
.pcard[data-template="bold"] .p-title { position: absolute; left: 0; right: 0; top: 66%; text-align: center; font-size: clamp(6px, 2.7cqw, 12px); letter-spacing: .22em; text-transform: uppercase; }
.pcard[data-template="bold"] .p-co { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: clamp(5px, 2.5cqw, 12px); letter-spacing: .08em; text-transform: uppercase; }
.pcard[data-template="bold"] .p-rule { display: none; }
.pcard[data-template="bold"] .monogram { border-color: var(--card-accent-fg, #fff); color: var(--card-accent-fg, #fff); }
/* template: band */
.pcard[data-template="band"] .p-band { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--card-accent, #a8792c); }
.pcard[data-template="band"] .p-logo { left: 8%; top: 50%; transform: translateY(-50%); width: 14%; aspect-ratio: 1; }
.pcard[data-template="band"] .monogram { border-color: var(--card-accent-fg, #fff); color: var(--card-accent-fg, #fff); }
.pcard[data-template="band"] .p-name { position: absolute; left: 38%; top: 34%; font-size: clamp(8px, 4.8cqw, 21px); }
.pcard[data-template="band"] .p-title { position: absolute; left: 38%; top: 52%; font-size: clamp(6px, 2.7cqw, 12px); letter-spacing: .22em; text-transform: uppercase; }
.pcard[data-template="band"] .p-co { position: absolute; left: 38%; top: 66%; font-size: clamp(6px, 2.9cqw, 13px); }
.pcard[data-template="band"] .p-rule { position: absolute; left: 38%; top: 28%; width: 10%; height: 3px; border-radius: 2px; }
.pcard:not([data-template="band"]) .p-band { display: none; }

/* lux finish — gunmetal & gold, glowing on any bg */
.pcard.pcard-lux {
    border: 1px solid rgba(212, 162, 78, .4);
    box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .55), 0 0 50px -22px rgba(168, 121, 44, .35);
}
.pcard.pcard-lux::after {
    content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(236, 231, 222, .07) 50%, transparent 60%);
}

/* card back (tap + QR) */
.pcard.back .p-band, .pcard.back .p-logo, .pcard.back .p-name,
.pcard.back .p-title, .pcard.back .p-co, .pcard.back .p-rule { display: none; }
.pcard.back .p-backwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 9%; }
.pcard:not(.back) .p-backwrap { display: none; }
.p-back-tap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-back-tap .taplbl { font-size: clamp(9px, 2.4cqw, 11px); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.p-back-tap .tapname { font-weight: 500; font-size: clamp(13px, 3.6cqw, 16px); }
.pcard canvas.qr, .pcard img.qr { width: 26%; aspect-ratio: 1; border-radius: 6px; }

/* ── 3D hero card ────────────────────────────────────────── */
.hero-card-wrap { display: flex; justify-content: center; perspective: 1000px; touch-action: none; }
.hero-card-wrap .pcard {
    width: min(380px, 100%);
    transform: rotateX(8deg) rotateY(-12deg);
    cursor: pointer;
}
.tap-ping {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
    border-radius: 50%; border: 1.5px solid rgba(212, 162, 78, .55);
    animation: ping 2.6s ease-out infinite; z-index: 2; pointer-events: none;
}
@keyframes ping {
    0% { transform: scale(.5); opacity: .9; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .tap-ping { animation: none; } }
.hero-card-hint {
    text-align: center; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint); margin-top: 18px;
}
.hero-card-note {
    text-align: center; font-size: var(--text-xs); font-style: italic;
    color: var(--faint); margin-top: 6px;
}

/* ── Steps: italic serif numerals ────────────────────────── */
.lux-step .n { display: block; font-family: var(--font-heading); font-size: 3.5rem; color: var(--color-accent); font-style: italic; line-height: 1; }
.lux-step h3, .lux-step h5 { font-size: 1.4375rem; margin: 12px 0 8px; }
.lux-step p { font-size: var(--text-base); color: var(--color-text-muted); }

/* ── Example card gallery ────────────────────────────────── */
.card-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 820px) { .card-gallery { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.card-gallery figure { margin: 0; }
.card-gallery .pcard { width: 100%; }
.card-gallery figcaption {
    font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase;
    color: var(--faint); text-align: center; margin-top: 16px;
}

/* ── Pricing: lux panels ─────────────────────────────────── */
.tp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp-pricing.cols-1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.tp-pricing.cols-2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }
@media (max-width: 820px) { .tp-pricing, .tp-pricing.cols-2 { grid-template-columns: 1fr; } }
.price-card {
    border: 1px solid var(--line); border-radius: 0;
    padding: 34px 30px; background: var(--color-bg-subtle);
    display: flex; flex-direction: column; text-align: left;
    box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .35);
}
.price-card.featured { border-color: var(--hairline); box-shadow: 0 18px 44px -20px var(--hairline); }
/* Cards stretch to the row's tallest; the CTA rides the bottom edge so
   buttons align across tiers regardless of description length (!important
   outweighs Bootstrap's .mt-3) */
.price-card > .btn:last-child { margin-top: auto !important; }
.price-card .plan-desc { margin-bottom: 16px; }
.price-card .tier { font-size: var(--text-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--color-accent); }
.price-card .price { font-family: var(--font-heading); font-size: 3.625rem; font-weight: 500; margin: 2px 0; font-variant-numeric: tabular-nums; }
.price-card .price small { font-size: var(--text-sm); color: var(--color-text-muted); font-family: var(--font-body); font-weight: 300; }
.price-card .price-strike { text-decoration: line-through; color: var(--color-text-muted); opacity: .65; }
/* Discounted: the regular price sits struck-through on its own line ABOVE
   the promo price (block + first child in .price) */
.price-card .price .price-strike { display: block; font-size: 1.75rem; line-height: 1; margin: 6px 0 -14px; font-weight: 400; }
.price-card .price-note .price-strike { margin: 0 4px; }
.price-card .price-once { font-family: var(--font-heading); font-size: 1.4375rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.price-card .price-once small { font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-body); font-weight: 300; }
.price-card .price-once .price-strike { font-size: var(--text-xs); margin-right: 6px; }
.price-card .price-note { font-size: var(--text-xs); color: var(--faint); }
.price-card .charge-label { font-size: var(--text-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 18px; }
.price-card .due-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--hairline); margin: 18px 0 20px; padding-top: 12px; }
.price-card .due-row .due-label { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); }
.price-card .due-row .due-amt { font-family: var(--font-heading); font-size: var(--text-md); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-card .due-row .due-amt small { font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-body); font-weight: 300; white-space: normal; }
.price-card .plan-desc { font-size: var(--text-sm); }
.price-card .plan-desc p { margin-bottom: 0.5em; }
.price-card .plan-desc p:last-child { margin-bottom: 0; }
.price-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: 28px; }
.price-card li::before { content: "— "; color: var(--color-accent); }
.setup-strip {
    display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline;
    border: 1px solid var(--hairline); background: var(--color-bg-subtle);
    padding: 16px 22px; font-size: var(--text-base); text-align: left;
}
.setup-strip strong { font-family: var(--font-heading); font-weight: 500; }

/* ── Footer: quiet hairline band ─────────────────────────── */
.site-footer {
    background: transparent; color: var(--color-text-muted);
    border-top: 1px solid var(--line);
}
.site-footer .brand, .site-footer .footer-heading { color: var(--color-text); font-family: var(--font-heading); }
.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .brand svg { width: 26px; height: 26px; flex: none; }
.site-footer a { color: var(--color-accent); }
.site-footer .footer-nav a, .site-footer .footer-address { color: var(--color-text-muted); }
.site-footer .footer-nav a:hover { color: var(--color-accent); }
/* base.css paints footer hovers in --color-bg (from its old solid-fill
   footer); on the transparent footer that made links vanish on hover */
.site-footer a:hover { color: var(--color-primary-light); }
.site-footer .footer-brand .brand:hover { color: var(--color-text); }
.site-footer a.footer-address:hover { color: var(--color-accent); }

/* ── Forms on theme ──────────────────────────────────────── */
.form-input input, .form-input textarea {
    background: var(--color-bg-subtle); color: var(--color-text);
    border-color: var(--color-border);
    padding: 8px;
}
.modal-content { background: var(--color-bg); color: var(--color-text); }
.list-group-item { background: var(--color-bg-subtle); color: var(--color-text); border-color: var(--line); }

/* ── Dashboard: panel layout (from the thumbprint-demo concept) ──
   Head row with greeting + status pills, then a two-column grid of
   .panel cards — future features (analytics, actions) slot in as
   additional panels in either .dash-col */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.dash-head .dash-title { flex: 1; min-width: 220px; }
.dash-head h1 { font-size: 2rem; margin: 6px 0 0; }
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--text-xs); letter-spacing: .04em; padding: 5px 13px; white-space: nowrap;
    border: 1px solid var(--line); border-radius: 999px; color: var(--color-text-muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-good { color: #4c7a58; border-color: rgba(76, 122, 88, .4); }
:root[data-theme="dark"] .pill-good { color: #7fb98b; border-color: rgba(127, 185, 139, .35); }
.pill-warn { color: var(--color-accent); border-color: var(--hairline); }

/* Subscription state indicator — colored text with a leading dot.
   Green = autorenew on, orange = off, red = the sub has lapsed. */
.state-ind { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.state-ind::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.state-ind-on { color: #4c7a58; }
.state-ind-off { color: #a9631d; }
.state-ind-inactive { color: #9e3b34; }
:root[data-theme="dark"] .state-ind-on { color: #7fb98b; }
:root[data-theme="dark"] .state-ind-off { color: #dd8f45; }
:root[data-theme="dark"] .state-ind-inactive { color: #cf6d64; }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel {
    border: 1px solid var(--line); background: var(--color-bg-subtle);
    border-radius: var(--radius-md, 4px); padding: 22px 24px;
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .35);
}
.panel h2 { font-size: 1.3125rem; margin: 0 0 2px; font-family: var(--font-heading); font-weight: 500; }
.panel .psub { font-size: var(--text-xs); color: var(--faint); margin-bottom: 16px; }
.panel-foot { margin-top: 16px; }

.bill-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm);
}
.bill-row:last-child { border-bottom: 0; }
.bill-row .bl { color: var(--color-text-muted); }
.bill-row .bv { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* Account fingerprint — quiet support line at the dashboard's foot:
   account type + the Directus ids to look up */
.account-meta {
    margin: 28px 0 0; text-align: right;
    font-size: var(--text-xs); color: var(--faint); opacity: .65;
    user-select: all;
}

/* Business dialogs (finalize check on the dashboard, confirm/prompt on
   the team-cards page) — business-dashboard.js drives them */
dialog.biz-dialog { border: 1px solid var(--line); border-radius: var(--radius-md, 12px); padding: 24px; max-width: 440px; background: var(--color-bg, #fff); color: inherit; }
dialog.biz-dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog.biz-dialog h5 { margin-bottom: 10px; }
/* wrap so a wide button set can never run off the dialog's edge */
dialog.biz-dialog .d-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
dialog.biz-dialog .d-actions .btn { white-space: nowrap; }
/* destructive secondary action styled as a quiet link under the buttons —
   fit-content so only the text itself is clickable */
dialog.biz-dialog .d-link-danger {
    display: block; width: fit-content; margin: 12px 0 0 auto; padding: 0;
    background: none; border: 0; cursor: pointer;
    font-size: var(--text-xs); color: var(--bs-danger, #b23);
}
dialog.biz-dialog .d-link-danger:hover { text-decoration: underline; }
dialog.biz-dialog .d-link-danger:disabled { opacity: .6; cursor: default; text-decoration: none; }
dialog.biz-dialog .prompt-note { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0 0 12px; }
dialog.biz-dialog .prompt-note.warn { color: var(--bs-danger, #b23); }
dialog.biz-dialog .prompt-unlock { display: inline-block; font-size: var(--text-xs); margin-top: 4px; }

/* ── Contacts search — an underline field, not a boxed input ──
   Sits on the page like an engraved rule: transparent, hairline
   base, the line and icon igniting to gold when focused. The
   placeholder wears the site's eyebrow voice. */
.contact-search {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; padding: 6px 2px 10px;
    border-bottom: 1px solid var(--hairline);
    color: var(--faint);
    transition: border-color var(--transition), color var(--transition);
}
.contact-search:focus-within { border-color: var(--color-primary); color: var(--color-primary); }
.contact-search .cs-icon { width: 15px; height: 15px; flex: none; }
.contact-search input {
    flex: 1; min-width: 0; padding: 0;
    background: none; border: 0; outline: none;
    color: var(--color-text); font-size: var(--text-base);
}
.contact-search input::placeholder {
    color: var(--faint);
    font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase;
}
.contact-search input::-webkit-search-decoration,
.contact-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Contact preview rows (dashboard Contacts panel) — inverse emphasis of
   .bill-row so the people read apart from the stat row above them:
   name in body ink behind a gold dash (the soon-list idiom), date quiet */
.contact-row .bl { color: var(--color-text); font-weight: 500; }
.contact-row .bl::before { content: "— "; color: var(--color-accent); font-weight: 400; }
.contact-row .contact-company { color: var(--faint); font-weight: 400; }
.contact-row .bv { color: var(--faint); font-weight: 400; font-size: var(--text-xs); }

/* ── Activity chart (dashboard) — weekly bars over a hairline
   baseline: taps in gold, shared-back contacts in stone. Weeks
   are interactive: hover/tap/focus raises the .act-tip readout ── */
.act-chart { position: relative; margin-top: 14px; }
.act-bars {
    display: flex; gap: 8px; align-items: flex-end;
    height: 72px; padding-bottom: 1px;
    border-bottom: 1px solid var(--hairline);
}
.act-week {
    flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%;
    cursor: pointer; transition: opacity var(--transition);
}
.act-week:focus { outline: none; }
.act-week:focus-visible { outline: 1px solid var(--color-primary); outline-offset: 2px; }
/* Spotlight the inspected week, hush the rest */
.act-bars:has(.act-active) .act-week:not(.act-active) { opacity: .45; }
.act-bar { flex: 1; border-radius: 2px 2px 0 0; transition: height var(--transition); }

.act-tip {
    position: absolute; top: -8px; transform: translate(-50%, -100%);
    padding: 6px 11px; white-space: nowrap; text-align: center;
    pointer-events: none; z-index: 5;
    background: var(--color-bg-subtle); border: 1px solid var(--hairline);
    border-radius: var(--radius-md, 4px);
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .5);
    font-size: var(--text-xs); color: var(--color-text-muted);
}
.act-tip strong { color: var(--color-text); font-weight: 500; }
.act-tip::after {
    content: ""; position: absolute; left: calc(50% + var(--arrow-x, 0px)); bottom: -4.5px;
    width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg);
    background: var(--color-bg-subtle);
    border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.act-bar-scan { background: var(--color-primary); }
.act-bar-share { background: var(--faint); }
.act-legend {
    display: flex; align-items: center; gap: 14px; margin-top: 8px;
    font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
    color: var(--color-text-muted);
}
.act-key::before {
    content: ""; display: inline-block; width: 8px; height: 8px;
    border-radius: 2px; margin-right: 5px; vertical-align: -1px;
}
.act-key-scan::before { background: var(--color-primary); }
.act-key-share::before { background: var(--faint); }
.act-range { margin-left: auto; color: var(--faint); letter-spacing: .04em; text-transform: none; }

/* ── Packaging inserts (/card-guide) ─────────────────────────
   Two 1:1 squares designed to double as printed inserts in the
   card's box — @media print below puts each on its own page. */
.insert-square {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 640px;
    margin: var(--space-10) auto 0;
    padding: clamp(24px, 7%, 52px);
    background: var(--color-bg-subtle);
    border: 1px solid var(--hairline);
    box-shadow: 0 26px 60px -45px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Small screens can't hold a square's content — let it grow tall */
@media (max-width: 560px) { .insert-square { aspect-ratio: auto; } }

.ins-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--color-text);
}
.ins-brand svg { width: 24px; height: 24px; flex: none; }

.ins-title {
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    font-size: clamp(1.6875rem, 5.5vw, 2.3125rem);
    margin: 14px 0 0;
}

.ins-steps {
    list-style: none;
    counter-reset: ins;
    padding: 0;
    margin: var(--space-4) 0 0;
}
.ins-steps li {
    counter-increment: ins;
    position: relative;
    padding-left: 46px;
    margin-top: 15px;
}
.ins-steps li::before {
    content: counter(ins, upper-roman) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.6875rem;
    line-height: 1.1;
    color: var(--gold-decor);
}
.ins-steps strong { display: block; font-weight: 500; }
.ins-steps p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 3px 0 0; line-height: 1.55; }
.ins-steps em { font-style: normal; color: var(--color-primary); }

.ins-diagram {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 8%, 56px);
    margin-top: var(--space-4);
    color: var(--faint);
}
.ins-phone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ins-phone > svg:not(.ins-os) { width: 44px; height: auto; }
.ins-phone span { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; }
/* Platform logo glyph between the phone and its label */
.ins-os { width: 18px; height: 18px; flex: none; color: var(--gold-decor, #d4a24e); }

.ins-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* Insert II — the printable-card teaser. Content centers in the square;
   the bottom padding reserves the corner for the card stack so text can
   never run under it. */
.ins-coming {
    text-align: center;
    justify-content: center;
    padding-bottom: clamp(120px, 26%, 190px);
}
.ins-coming .eyebrow { display: block; margin-top: var(--space-4); }
.ins-lede {
    max-width: 30em;
    margin: 10px auto 0;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}
/* Printed cards stacked into the corner, cropped by the square */
.ins-stack {
    position: absolute;
    bottom: -14%;
    right: -16%;
    width: 60%;
    aspect-ratio: 1.75;
    pointer-events: none;
}
.ins-stack .pcard { position: absolute; inset: 0; width: 100%; }
.ins-stack .pcard:first-child { transform: rotate(-11deg) translate(-16%, -30%); }
.ins-stack .pcard:last-child { transform: rotate(7deg); }

/* Insert III — the box-top sticker. Fixed cream-and-bronze (a sticker
   must render the same whatever theme the page is in), one centered
   lockup — logo, rule, tagline, URL — with quiet space all around. */
.ins-sticker {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    background: linear-gradient(150deg, #f7f4ed, #eceae2 60%, #f2efe8);
    border-color: rgba(168, 121, 44, .35);
}
.ins-sticker::before {
    content: "";
    position: absolute;
    inset: 4.5%;
    border: 1px solid rgba(168, 121, 44, .45);
    pointer-events: none;
}
/* Always the dark-ink logo — :root matches the theme switch's specificity */
:root .ins-sticker .logo-dark { display: none; }
:root .ins-sticker .logo-light { display: block; }
.ins-sticker > svg { width: 26%; height: auto; }
.ins-sticker-rule { width: 44px; height: 1px; background: #a8792c; }
.ins-sticker-tagline {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.375rem, 5.8vw, 2.5rem);
    line-height: 1.25;
    color: #24211a;
    margin: 0;
    white-space: nowrap;
}
.ins-sticker-tagline i { color: #a8792c; }
.ins-sticker .ins-foot {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: #a8792c;
}

/* Insert IV — the display-stand sticker, 5.8in × 3.7in. Same pinned
   cream-and-bronze as the box sticker. The dashed card zone is the
   mounting footprint for the demo card — 2.1×3.3in, 0.2in off the left
   edge, centered vertically (the percentages are those inches over
   5.8×3.7) — with the /tap QR underneath for whoever lifts the card. */
.ins-stand {
    aspect-ratio: 5.8 / 3.7;
    max-width: 782px; /* box sticker's 640px scale: ~135px per inch */
    padding: 0;
    background: linear-gradient(150deg, #f7f4ed, #eceae2 60%, #f2efe8);
    border-color: rgba(168, 121, 44, .35);
    color: #24211a;
    --gold-decor: #d4a24e; /* pin — the diagram must not follow the theme */
}
:root .ins-stand .logo-dark { display: none; }
:root .ins-stand .logo-light { display: block; }
.ins-stand .ins-brand { color: #24211a; }
.ins-stand .ins-brand svg { width: 36px; height: 36px; }

.ins-stand-cardzone {
    position: absolute;
    left: 3.448%;   /* 0.2in / 5.8in */
    top: 5.405%;    /* (3.7 − 3.3)/2 / 3.7 */
    width: 36.207%; /* 2.1in / 5.8in */
    height: 89.19%; /* 3.3in / 3.7in */
    border: 1.5px dashed rgba(168, 121, 44, .55);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8%;
    text-align: center;
}
.ins-stand-cardzone img { width: 58%; aspect-ratio: 1; }
.ins-stand-qr-note {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--text-base);
    color: #24211a;
    margin: 0;
}
.ins-stand-qr-sub {
    font-size: var(--text-xs);
    line-height: 1.5;
    color: #6b6353;
    margin: 0;
}

.ins-stand-body {
    flex: 1;
    min-height: 0;
    margin-left: 44%; /* clear the card zone plus a gutter */
    padding: clamp(18px, 4.2%, 32px) clamp(18px, 4.2%, 32px) clamp(18px, 4.2%, 32px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ins-stand-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.25rem, 3.1vw, 1.6875rem);
    line-height: 1.25;
    margin: 12px 0 0;
}
.ins-stand-lede {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: #574f40;
    margin: 8px 0 0;
}
.ins-stand-cta {
    font-size: var(--text-sm);
    color: #574f40;
    margin: 10px 0 0;
}
.ins-stand-cta strong { font-weight: 500; color: #a8792c; }
.ins-stand .ins-diagram { margin-top: 12px; color: #6b6353; }
.ins-stand .ins-phone > svg:not(.ins-os) { width: 36px; }
.ins-stand .ins-foot { border-top-color: rgba(168, 121, 44, .3); color: #a8792c; }

/* Small screens: the fixed footprint can't hold — stack the zone above
   the copy (same caveat as the other inserts: download from a desktop-
   width window for the true proportions) */
@media (max-width: 640px) {
    .ins-stand { aspect-ratio: auto; }
    .ins-stand-cardzone {
        position: static;
        width: auto;
        height: auto;
        margin: clamp(18px, 5%, 32px) clamp(18px, 5%, 32px) 0;
        padding: 20px;
    }
    .ins-stand-cardzone img { width: 46%; }
    .ins-stand-body { margin-left: 0; padding: clamp(18px, 5%, 32px); }
}

/* Insert V — the round logo sticker, a 3in die-cut circle. The pinned
   cream disc is the whole element (border-radius survives html-to-image,
   so the PNG's corners come out transparent — cut-ready). Arc text sits
   inside the bronze ring; the lockup centers in the disc. */
.ins-round {
    aspect-ratio: 1 / 1; /* restated: the ≤560px auto must not apply */
    max-width: 405px;    /* the sticker scale: ~135px per inch */
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 50%;
    background: linear-gradient(150deg, #f7f4ed, #eceae2 60%, #f2efe8);
    border: 1px solid rgba(168, 121, 44, .35);
}
.ins-round::before {
    content: "";
    position: absolute;
    inset: 5.5%;
    border: 1px solid rgba(168, 121, 44, .45);
    border-radius: 50%;
    pointer-events: none;
}
:root .ins-round .logo-dark { display: none; }
:root .ins-round .logo-light { display: block; width: 44%; height: auto; }
.ins-round-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.ins-round-arcs text {
    font-family: var(--font-heading);
    font-size: 17px;
    letter-spacing: .32em;
    fill: #a8792c;
}

/* Insert VI — the two-sided card slip, 3.3in × 2.1in (the stand's card
   footprint turned landscape). Same pinned cream; card-radius corners
   (~1/8in) download transparent so the faces are cut-ready. */
.ins-cardface {
    aspect-ratio: 3.3 / 2.1;
    max-width: 445px; /* the sticker scale: ~135px per inch */
    padding: 18px 24px;
    align-items: center;
    text-align: center;
    border-radius: 17px;
    background: linear-gradient(150deg, #f7f4ed, #eceae2 60%, #f2efe8);
    border-color: rgba(168, 121, 44, .35);
    color: #24211a;
}
:root .ins-cardface .logo-dark { display: none; }
:root .ins-cardface .logo-light { display: block; width: 64px; height: auto; }
.ins-cardface-front { justify-content: center; gap: 12px; }
.ins-cardface-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0;
    max-width: 11em;
}
.ins-cardface-title em { font-style: normal; color: var(--gold-decor, #d4a24e); }
.ins-cardface-back-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--text-base);
    letter-spacing: .06em;
    margin: 0 0 2px;
}
.ins-card-steps {
    list-style: none;
    counter-reset: ics;
    margin: 0;
    padding: 0;
    text-align: left;
}
.ins-card-steps li {
    counter-increment: ics;
    position: relative;
    padding-left: 26px;
    margin-top: 5px;
    font-size: var(--text-xs);
    line-height: 1.45;
    color: #574f40;
}
.ins-card-steps li::before {
    content: counter(ics, upper-roman) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--text-base);
    line-height: 1.2;
    color: #d4a24e;
}
.ins-card-steps em { font-style: normal; color: #a8792c; }
.ins-cardface .ins-foot {
    border-top-color: rgba(168, 121, 44, .3);
    color: #a8792c;
    padding-top: 7px;
}
/* Small screens: same release as the other fixed-aspect inserts */
@media (max-width: 460px) { .ins-cardface { aspect-ratio: auto; } }

/* Per-insert download button, under each square (never in the PNG) */
.ins-dl { text-align: center; margin-top: 14px; }
.ins-dl-size {
    margin-left: 12px;
    font-size: var(--text-xs);
    letter-spacing: .08em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

@media print {
    .site-header, .site-footer, .guide-intro, .theme-toggle, .ins-dl { display: none !important; }
    .insert-square {
        break-after: page;
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #b9b2a2;
        margin: 0 auto;
        width: min(100%, 170mm);
    }
    .insert-square:last-child { break-after: auto; }
    /* The sticker's real size is 4.75in square */
    .ins-sticker { width: 4.75in; }
    /* The stand sticker's real size is 5.8in × 3.7in */
    .ins-stand { width: 5.8in; }
    /* The round sticker's real size is a 3in circle */
    .ins-round { width: 3in; }
    /* The card slip's real size is 3.3in × 2.1in per face */
    .ins-cardface { width: 3.3in; }
}

/* ── Pricing shell ────────────────────────────────────────────
   Sets the whole pricing block apart from the page: hairline
   frame, faint bronze wash, generous padding. Holds the nested
   toggles (audience tabs framing the billing pill) and both
   audience panes ([data-audience-pane], swapped by script.js). */
.pricing-shell {
    border: 1px solid var(--hairline);
    background: var(--color-bg-subtle);
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--color-cta) 8%, transparent), transparent 62%),
        var(--color-bg-subtle);
    padding: clamp(28px, 5vw, 56px);
    margin-top: var(--space-6);
    box-shadow: 0 28px 70px -48px rgba(0, 0, 0, .5);
}
/* Cards share the shell's base color — keep them readable inside it */
.pricing-shell .price-card { background: var(--color-bg); }
.pricing-shell .pane-lede { max-width: 44em; font-size: var(--text-base); margin: 0 0 4px; }

/* Nested toggles, editorial style: the audience choice reads as two
   understated tabs with a bronze underline on the active one, and the
   billing pill sits within their span beneath — no boxes around boxes */
.pricing-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: fit-content;
    margin: var(--space-6) auto;
}
.pricing-controls .billing-toggle { margin-top: 0; }
.audience-toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.at-opt {
    padding: .35rem .9rem .6rem;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: var(--text-xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color .25s, border-color .25s;
    white-space: nowrap;
}
.at-opt:hover { color: var(--color-primary); }
.at-opt.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-cta);
}
/* A thin divider between the two choices, aligned to the text */
.at-opt + .at-opt { position: relative; }
.at-opt + .at-opt::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 20%;
    bottom: 35%;
    width: 1px;
    background: var(--hairline);
}

/* The audience toggle sits BELOW the plan cards but ABOVE the closing
   hairline — clear space on both sides so it reads as "switch views",
   not part of the plan card */
.pricing-controls-bottom {
    margin: var(--space-6) auto;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

/* ── Billing toggle (annual default) ─────────────────────────
   Flips every .tp-pricing on the page between its .bill-annual
   and .bill-monthly faces (script.js) */
.billing-toggle {
    display: inline-flex;
    margin-top: var(--space-6);
    border: 1px solid var(--hairline);
}
.bt-opt {
    padding: .55rem 1.7rem;
    background: none;
    border: 0;
    font-size: var(--text-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: .25s;
}
.bt-opt.active { background: var(--color-primary); color: var(--color-bg); }
.tp-pricing[data-billing='annual'] .bill-monthly { display: none; }
.tp-pricing[data-billing='monthly'] .bill-annual { display: none; }

/* Mobile: three nested gutters (container + shell + card) were starving
   the content column, wrapping the big price lines mid-figure. The shell
   bleeds into the container gutter and hands its width to the card; the
   display figures step down; the letterspaced rows ease their tracking.
   Nothing drops below the 16px floor. */
@media (max-width: 640px) {
    .pricing-shell { margin-inline: -14px; padding: 24px 12px 28px; }
    .price-card { padding: 26px 18px; }
    .price-card .price { font-size: 2.625rem; }
    .price-card .price .price-strike { font-size: 1.375rem; margin-right: 7px; }
    .price-card .price small { font-size: 1rem; }
    .price-card .price-once { font-size: 1.25rem; }
    .price-card .tier { letter-spacing: .2em; }
    .price-card .charge-label { letter-spacing: .12em; }
    .price-card .due-row { flex-wrap: wrap; }
    .price-card .due-row .due-amt { font-size: var(--text-md); white-space: normal; }
    .price-card .due-row .due-label { letter-spacing: .12em; }
    .price-card ul { font-size: 1rem; gap: 8px; }
    .price-card .plan-desc { font-size: 1rem; }
    .pricing-shell .pane-lede { font-size: 1.0625rem; }
    .setup-strip { flex-direction: column; gap: 4px; padding: 14px 16px; }
    .pricing-controls { margin: var(--space-5) auto; }
    .bt-opt { padding: .5rem 1.2rem; }
    .at-opt { font-size: 1rem; letter-spacing: .08em; padding: .35rem .6rem .6rem; }
}

/* ── Phone preview mock (landing "The page a tap opens") ─────
   Mirrors the live card anatomy: accent band, ringed circular
   portrait, ink identity, contact rows, CTA buttons. Sized off
   --pm-w so it scales as one piece. */
.phone-mock {
    --pm-w: min(260px, 62vw);
    position: relative;
    width: var(--pm-w);
    aspect-ratio: 9 / 18.5;
    margin: 0 auto;
    border-radius: calc(var(--pm-w) * .155);
    background: linear-gradient(160deg, #1b2029, #0e1117 55%, #171b23);
    border: 1px solid rgba(236, 231, 222, .14);
    padding: calc(var(--pm-w) * .035);
    box-shadow:
        0 40px 70px -35px rgba(0, 0, 0, .5),
        0 0 70px -30px var(--hairline);
}
.pm-screen {
    position: relative;
    height: 100%;
    border-radius: calc(var(--pm-w) * .12);
    background: var(--color-bg-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pm-cam {
    position: absolute; top: calc(var(--pm-w) * .045); left: 50%;
    width: calc(var(--pm-w) * .2); height: calc(var(--pm-w) * .052);
    transform: translateX(-50%); border-radius: 99px;
    background: rgba(1, 2, 3, .6); z-index: 2;
}
.pm-head {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 0 calc(var(--pm-w) * .06) calc(var(--pm-w) * .04);
}
.pm-band {
    position: absolute; top: 0; left: 0; right: 0;
    height: calc(var(--pm-w) * .22);
    background: var(--gold-decor);
}
.pm-avatar {
    position: relative; z-index: 1;
    /* Straddles the band's bottom edge, clear of the camera pill */
    margin-top: calc(var(--pm-w) * .105);
    width: calc(var(--pm-w) * .24); height: calc(var(--pm-w) * .24);
    border-radius: 50%;
    border: 2px solid var(--gold-decor);
    background: var(--color-bg);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pm-avatar svg { width: 55%; height: auto; margin-top: 14%; color: var(--color-text-muted); opacity: .55; }
.pm-name {
    font-family: var(--font-heading); color: var(--color-text);
    font-size: calc(var(--pm-w) * .07); line-height: 1.2;
    margin-top: calc(var(--pm-w) * .025);
}
.pm-role {
    color: var(--color-primary); font-size: calc(var(--pm-w) * .034);
    letter-spacing: .16em; text-transform: uppercase;
    margin-top: calc(var(--pm-w) * .014);
}
.pm-body {
    flex: 1; display: flex; flex-direction: column;
    padding: calc(var(--pm-w) * .05) calc(var(--pm-w) * .07) calc(var(--pm-w) * .07);
    gap: calc(var(--pm-w) * .035);
}
.pm-row {
    display: flex; align-items: center; gap: calc(var(--pm-w) * .035);
    color: var(--color-text); font-size: calc(var(--pm-w) * .045);
}
.pm-row svg { width: calc(var(--pm-w) * .05); height: calc(var(--pm-w) * .05); color: var(--color-primary); flex-shrink: 0; }
.pm-btn {
    margin-top: auto; text-align: center;
    background: var(--color-cta); color: var(--color-bg);
    font-size: calc(var(--pm-w) * .042); letter-spacing: .14em; text-transform: uppercase;
    padding: calc(var(--pm-w) * .035) 0; border-radius: calc(var(--pm-w) * .018);
}
.pm-btn.ghost { margin-top: 0; background: none; border: 1px solid var(--color-cta); color: var(--color-primary); }

/* Reorder shipping picker (dashboard Replacement Card panel) */
/* Reorder flow (/dashboard/reorder — register-style stepped page) */
.reorder-limit { font-size: var(--text-xs); font-style: italic; color: var(--color-text-muted); margin: -16px 0 22px; }
.reorder-fine { font-size: var(--text-xs); color: var(--color-text-muted); margin: 12px 0 0; }
.reorder-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--hairline); margin-top: 30px; padding-top: 14px;
}
.reorder-total .rt-label { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.reorder-total .rt-figure { font-variant-numeric: tabular-nums; font-weight: 500; }
.reorder-total .rt-figure small { color: var(--color-text-muted); font-weight: 400; font-size: var(--text-xs); }

/* ── Notifications & follow-ups (/dashboard/follow-ups) ─────────
   Settings composer for the second-tier contact feature. Controls lean on
   Bootstrap (form-switch/select/control) restyled to the engraved idiom;
   .fu-dim greys a section whose master toggle is off without hiding it. */
.fu-switch { margin: 6px 0 14px; }
.fu-switch .form-check-input { cursor: pointer; }
.fu-switch .form-check-input:checked { background-color: var(--color-cta); border-color: var(--color-cta); }
.fu-switch .form-check-label { cursor: pointer; }
.fu-dim { opacity: .45; pointer-events: none; }
.fu-field { margin-bottom: 16px; }
.fu-label {
    display: block; font-size: var(--text-xs); letter-spacing: .12em;
    text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px;
}
.fu-field .form-select, .fu-field .form-control {
    background: var(--color-bg-subtle); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: 0; font-size: var(--text-sm);
}
.fu-field .form-select:focus, .fu-field .form-control:focus {
    border-color: var(--color-cta); box-shadow: none;
}
.fu-field textarea.form-control { resize: vertical; line-height: 1.55; }
.fu-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.fu-chips-label { font-size: var(--text-xs); color: var(--faint); margin-right: 2px; }
.fu-chip {
    font-size: var(--text-xs); font-variant-numeric: tabular-nums;
    background: transparent; color: var(--color-text-muted);
    border: 1px solid var(--color-border); border-radius: 999px;
    padding: 2px 10px; cursor: pointer; transition: color .2s, border-color .2s;
}
.fu-chip:hover { color: var(--color-cta); border-color: var(--color-cta); }
.fu-preview {
    background: var(--color-bg-subtle); border: 1px solid var(--hairline);
    padding: 14px 16px; font-size: var(--text-sm);
}
.fu-preview-subject { font-weight: 600; margin-bottom: 10px; }
.fu-preview p { margin: 0 0 10px; }
.fu-preview p:last-child { margin-bottom: 0; }
.fu-note { font-size: var(--text-xs); color: var(--color-text-muted); margin: 4px 0 0; }
/* flashError() (script.js): pulse a just-revealed error so the eye finds
   it even when it appears far from the clicked button */
@keyframes error-flash {
    0%, 45% { background: color-mix(in srgb, #b23 14%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, #b23 10%, transparent); }
    100%    { background: transparent; box-shadow: none; }
}
.error-flash { animation: error-flash 1.6s ease; border-radius: 6px; }

.fu-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.fu-test-note { font-size: var(--text-sm); color: #4c7a58; }
.fu-test-note.fu-test-note-error { color: var(--bs-danger, #b23); }
.fu-status-sent { color: #4c7a58; }
.fu-status-scheduled { color: #a9631d; }
.fu-status-skipped { color: var(--faint); }
:root[data-theme="dark"] .fu-status-sent { color: #7fb98b; }
:root[data-theme="dark"] .fu-status-scheduled { color: #dd8f45; }

/* ── Custom domain (/dashboard/domain) ──────────────────────── */
.dns-record {
    display: grid; grid-template-columns: auto auto 1fr; gap: 18px;
    background: var(--color-bg-subtle); border: 1px solid var(--hairline);
    padding: 14px 16px; margin: 10px 0 4px;
}
@media (max-width: 560px) { .dns-record { grid-template-columns: 1fr; gap: 10px; } }
.dns-record code { font-size: var(--text-sm); word-break: break-all; }
.domain-steps { padding-left: 18px; margin: 0 0 12px; }
.domain-steps li { margin-bottom: 8px; font-size: var(--text-sm); }

/* Sequence steps on /dashboard/follow-ups */
.fu-step { border: 1px solid var(--hairline); padding: 14px 16px; margin-bottom: 14px; }
.fu-step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fu-step-n { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent); }
.fu-step-remove {
    background: none; border: 0; color: var(--faint); font-size: .9rem;
    cursor: pointer; line-height: 1; padding: 4px;
}
.fu-step-remove:hover { color: #b3402f; }

/* Plan-card feature lists — descriptions are Directus rich text; a <ul>
   renders as quiet checked features in the card's engraved idiom */
.plan-desc ul { list-style: none; padding: 0; margin: 0; }
.plan-desc li {
    position: relative; padding-left: 22px; margin-bottom: 7px;
    font-size: var(--text-sm); line-height: 1.5;
}
.plan-desc li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--color-accent); font-size: .85em;
}

/* Sequence info trigger + modal list */
.fu-info {
    background: none; border: 1px solid var(--color-border); border-radius: 50%;
    width: 22px; height: 22px; padding: 0; margin-left: 8px; vertical-align: 2px;
    font-size: .72rem; line-height: 1; color: var(--color-text-muted);
    cursor: pointer; transition: color .2s, border-color .2s;
}
.fu-info:hover { color: var(--color-accent); border-color: var(--color-accent); }
.seq-info-list { padding-left: 18px; margin: 0; }
.seq-info-list li { margin-bottom: 10px; font-size: var(--text-sm); line-height: 1.55; }
.modal-content { background: var(--color-bg); color: var(--color-text); border-radius: 0; border: 1px solid var(--color-border); }

/* ── Support modal (dashboards) ─────────────────────────────── */
.support-lede { font-size: var(--text-sm); margin-bottom: 16px; }
.support-faq .accordion-item {
    background: var(--color-bg-subtle); border: 1px solid var(--color-border);
    border-radius: 0; margin-bottom: -1px;
}
.support-faq .accordion-button {
    background: var(--color-bg-subtle); color: var(--color-text);
    font-size: var(--text-sm); font-weight: 500; border-radius: 0;
    box-shadow: none; padding: 14px 16px;
}
.support-faq .accordion-button:not(.collapsed) { color: var(--color-accent); }
.support-faq .accordion-button:focus { box-shadow: none; border-color: var(--color-accent); }
/* Bootstrap's chevron ships as a baked dark SVG — recolor via filter in dark */
:root[data-theme="dark"] .support-faq .accordion-button::after { filter: invert(1); }
.support-faq .accordion-body { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.support-divider { border-color: var(--hairline); opacity: 1; margin: 22px 0 18px; }
.support-form-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.support-reply-note { font-size: var(--text-xs); margin-bottom: 14px; }
.support-done-mark {
    width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
    border: 1px solid var(--color-accent); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Support modal layout — mobile keeps the FAQ-then-form stack (source
   order); desktop goes side-by-side with the FORM on the left */
.support-grid { display: grid; gap: 24px; grid-template-areas: 'faq' 'form'; }
.support-col-faq { grid-area: faq; min-width: 0; }
.support-col-form { grid-area: form; min-width: 0; }
@media (min-width: 992px) {
    .support-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'form faq'; gap: 34px; }
}

/* Order-flow domain warning — the tier can carry a domain, this order
   won't. Quiet framed note, not an error. */
.domain-warn {
    border: 1px solid var(--hairline); border-left: 3px solid var(--color-accent);
    padding: 12px 16px; margin: 14px 0 18px;
    font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55;
}
.domain-warn strong { color: var(--color-text); }

/* "Show me how" registrar picker (domain page DNS step) */
.reg-list { display: grid; gap: 10px; }
.reg-btn {
    background: var(--color-bg-subtle); border: 1px solid var(--color-border);
    padding: 13px 16px; text-align: left; font-size: var(--text-sm);
    color: var(--color-text); cursor: pointer; transition: border-color .2s, color .2s;
}
.reg-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.reg-btn small { color: var(--faint); margin-left: 6px; }
.reg-back {
    background: none; border: 0; padding: 0; margin-bottom: 14px;
    font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-text-muted); cursor: pointer;
}
.reg-back:hover { color: var(--color-accent); }
