/* ==========================================================================
   HRaaS public site - Design System v2
   Editorial-Engineered: paper, ink, hairline rules, product-first frames.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; }

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
    margin: 0;
}

[hidden], .d-none { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    --ink: #111827;
    --ink-2: #4b5563;
    --ink-3: #6b7280;
    --paper: #f9fafb;
    --paper-2: #ffffff;
    --paper-3: #f3f4f6;
    --paper-blue: #f3f7ff;
    --rule: #e5e7eb;
    --rule-2: #d1d5db;
    --rule-strong: #9ca3af;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --info: #0f766e;
    --info-soft: rgba(15, 118, 110, 0.08);
    --ok: #16a34a;
    --warn: #ca8a04;
    --danger: #a93a2b;
    --display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
    --shell: min(1200px, calc(100% - 3rem));
    --shell-narrow: min(720px, calc(100% - 2rem));
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --shadow-soft: none;
    --shadow-card: none;
    --shadow-frame: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 48px -30px rgba(15, 23, 42, 0.30);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-bs-theme="dark"] {
    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --paper: #0b1220;
    --paper-2: #0f172a;
    --paper-3: #1e293b;
    --paper-blue: #15233a;
    --rule: rgba(248, 250, 252, 0.10);
    --rule-2: rgba(248, 250, 252, 0.16);
    --rule-strong: rgba(248, 250, 252, 0.30);
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --info: #5eead4;
    --info-soft: rgba(94, 234, 212, 0.12);
    --ok: #86efac;
    --warn: #e0a73a;
    --danger: #ff8b78;
    --shadow-frame: 0 2px 4px rgba(0, 0, 0, 0.5), 0 30px 90px -28px rgba(0, 0, 0, 0.85);
}

body.body-marketing {
    background-color: var(--paper);
    background-image: none;
    color: var(--ink);
    color-scheme: light;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html[data-bs-theme="dark"] body.body-marketing {
    color-scheme: dark;
}

body.is-drawer-open { overflow: hidden; }

.pub-env-ribbon {
    position: fixed;
    top: 1.05rem;
    right: -2.65rem;
    z-index: 200;
    width: 10rem;
    transform: rotate(35deg);
    background: var(--danger);
    color: #ffffff;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.45rem 0;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

::selection {
    background: var(--accent);
    color: var(--paper-2);
}

.public-shell,
.pub-shell,
.container,
.container-xl {
    width: var(--shell);
    margin-inline: auto;
}

.container-narrow,
.pub-shell--narrow,
.container-tight {
    width: var(--shell-narrow);
    margin-inline: auto;
}

.site-main { min-height: 60vh; }

h1, h2, .pub-display {
    font-family: var(--display);
    font-feature-settings: "ss01";
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: 0;
    color: var(--ink);
}

h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--ink);
}

p { color: var(--ink-2); }

.site-main :where(p, li, .home-faq-answer, .legal-note, .policy-preview, .pub-message-text) a:not([class]),
.site-main :where(.home-faq-answer, .legal-note, .policy-preview, .cookie-consent-text) a {
    color: var(--accent);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.site-main :where(p, li, .home-faq-answer, .legal-note, .policy-preview, .pub-message-text) a:not([class]):hover,
.site-main :where(.home-faq-answer, .legal-note, .policy-preview, .cookie-consent-text) a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

.site-main :where(p, li, .home-faq-answer, .legal-note, .policy-preview, .pub-message-text) a:not([class]):focus-visible,
.site-main :where(.home-faq-answer, .legal-note, .policy-preview, .cookie-consent-text) a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.cookie-consent-text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.cookie-consent-text a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

em {
    font-family: var(--sans);
    font-style: normal;
    font-variation-settings: "opsz" 144;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

.pub-eyebrow-mono,
.pub-eyebrow,
.home-cell-num,
.pub-list-index {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ink-3);
}

.pub-rule {
    height: 1px;
    border: 0;
    background: var(--rule);
    margin: 0;
}

.pub-section,
.section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    border-top: 1px solid var(--rule);
}

.section-light { background: transparent; }

.pub-section--tight,
.pt-0 { padding-top: 0 !important; }

.home-section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    border-top: 1px solid var(--rule);
}

.home-section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.home-section--white { background: var(--paper-2); }
.home-section--tint { background: var(--paper-blue); }
.home-section--newsletter {
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.home-section-head {
    display: grid;
    gap: 1rem;
    max-width: 780px;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.home-section-head--compact {
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.home-section-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.7fr);
    align-items: end;
}

.home-section-head--wide {
    max-width: none;
}

.home-section-head--wide .home-section-title {
    max-width: 28ch;
}

.home-section-head--wide .home-section-description {
    max-width: 78ch;
}

.home-section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    max-width: 16ch;
}

.home-section-description {
    max-width: 64ch;
    font-size: 1rem;
}

.btn-signal,
.btn-ghost,
.btn-quiet,
.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-signal,
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper-2);
}

.btn-signal:hover,
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--paper-2);
    transform: none;
}

.btn-ghost,
.btn-outline-primary,
.btn-outline-secondary {
    background: transparent;
    border-color: var(--rule-2);
    color: var(--ink);
}

.btn-ghost:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-quiet {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
}

.btn-quiet:hover {
    color: var(--accent);
    transform: none;
}

.btn-quiet-arrow {
    display: inline-block;
    width: 1.1rem;
    height: 0.6rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M0 4h13M10 0l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M0 4h13M10 0l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    transition: transform 180ms ease;
}

.btn-quiet:hover .btn-quiet-arrow { transform: translateX(3px); }

.btn-lg {
    min-height: 52px;
    padding-inline: 1.4rem;
}

.btn-icon {
    width: 2.5rem;
    min-width: 2.5rem;
    padding-inline: 0;
}

.w-100 { width: 100%; }

.pub-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.pub-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .pub-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Header */
.pub-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.pub-header-bar {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pub-header-brand,
.pub-footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.pub-header-brand img { height: 1.8rem; width: auto; }
.pub-footer-brand img { height: 2rem; width: auto; }

.pub-header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.pub-header-item { position: relative; }

.pub-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.pub-header-link svg {
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0.7;
}

.pub-header-link:hover,
.pub-header-link.is-active,
.pub-header-link[aria-expanded="true"] {
    color: var(--accent);
}

.pub-header-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.pub-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pub-header .btn-signal,
.pub-header .btn-ghost {
    min-height: 36px;
    padding: 0.52rem 0.82rem;
    font-size: 0.78rem;
}

.pub-icon-btn,
.pub-burger {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-2);
}

.pub-icon-btn:hover,
.pub-burger:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pub-icon-btn svg { width: 1rem; height: 1rem; }

.pub-burger {
    display: none;
    gap: 0;
}

.pub-burger span {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    margin: 2px 0;
}

.pub-dropdown,
.pub-lang-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    min-width: 240px;
    padding: 0;
    background: var(--paper-2);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 60;
}

.pub-dropdown {
    left: 50%;
    transform: translate(-50%, -6px);
}

.pub-lang-menu { right: 0; min-width: 200px; }

.pub-header-item.is-open .pub-dropdown,
.pub-lang.is-open .pub-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pub-header-item.is-open .pub-dropdown { transform: translate(-50%, 0); }

.pub-dropdown li + li,
.pub-lang-menu li + li {
    border-top: 1px solid var(--rule);
}

.pub-dropdown a,
.pub-lang-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 0.9rem;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.pub-dropdown a:hover,
.pub-lang-option:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.pub-lang { position: relative; }

.pub-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-lang-toggle img,
.pub-lang-option img {
    width: 1.1rem;
    height: 0.78rem;
    object-fit: cover;
    border-radius: 1px;
}

.pub-lang-toggle svg { width: 0.75rem; height: 0.75rem; }
.pub-lang-option-check { margin-left: auto; color: var(--accent); }

.pub-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
}

.pub-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.pub-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 240ms ease;
}

.pub-drawer.is-open .pub-drawer-backdrop { opacity: 1; }

.pub-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: var(--paper);
    border-left: 1px solid var(--rule-2);
    transform: translateX(100%);
    transition: transform 240ms ease;
    display: flex;
    flex-direction: column;
}

.pub-drawer.is-open .pub-drawer-panel { transform: translateX(0); }

.pub-drawer-head,
.pub-drawer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
}

.pub-drawer-foot {
    margin-top: auto;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
    align-items: stretch;
    flex-direction: column;
}

.pub-drawer-nav {
    overflow-y: auto;
    border-top: 1px solid var(--rule);
}

.pub-drawer-link,
.pub-drawer-group summary,
.pub-drawer-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pub-drawer-group summary { cursor: pointer; }
.pub-drawer-group summary::-webkit-details-marker { display: none; }
.pub-drawer-group summary::after { content: "+"; color: var(--ink-3); }
.pub-drawer-group[open] summary::after { content: "-"; color: var(--accent); }
.pub-drawer-group li a { padding-left: 1.75rem; color: var(--ink-2); }
.pub-drawer-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* Product placeholders */
.pub-frame {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper-2);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
}

.pub-frame--xl {
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-frame);
    border-color: var(--rule-2);
}

.pub-frame--md { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.pub-frame--sm { aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
.pub-frame--dashed { border-style: dashed; }

.pub-frame-chrome {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-3);
}

.pub-frame-dot {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
}

.pub-frame-url {
    margin-left: 0.45rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.7rem;
    line-height: 1;
}

.pub-frame-body {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    text-align: center;
    background-image:
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 32px 32px;
}

.pub-frame-body::before {
    content: "PLACEHOLDER";
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    line-height: 1.1;
}

.pub-frame--image .pub-frame-body {
    display: block;
    min-height: 0;
    padding: 0;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(38, 56, 84, 0.92)),
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    overflow: hidden;
}

.pub-frame--image .pub-frame-body::before {
    content: none;
}

.pub-frame-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    background: #111827;
}

.pub-frame-title {
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(1rem, 2vw, 1.45rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
}

.pub-frame-caption {
    margin-top: 0.65rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.45;
    text-transform: uppercase;
}

/* Public inner-page hero (about, contact, faq, pricing, hubs) */
.pub-page-hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.pub-page-hero .pub-eyebrow-mono {
    display: block;
    margin-bottom: 1rem;
}

.pub-page-hero-title {
    max-width: 22ch;
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: 0;
    text-wrap: balance;
}

.pub-page-hero-description {
    max-width: 64ch;
    margin-top: 1.1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.pub-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Maintenance mode */
.maintenance-page .site-main {
    min-height: 100vh;
}

.maintenance-page {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 42%, transparent) 0%, transparent 42%),
        var(--paper);
}

.maintenance-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 7vw, 5rem) 1rem;
}

.maintenance-shell {
    width: min(720px, 100%);
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.maintenance-mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--rule-2);
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--accent);
    box-shadow: var(--shadow-frame);
}

.maintenance-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--rule-2);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.maintenance-shell h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    line-height: 1.02;
    text-wrap: balance;
}

.maintenance-lead {
    max-width: 60ch;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
    text-wrap: pretty;
}

.maintenance-message {
    width: min(560px, 100%);
    margin-top: 0.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
    background: var(--paper-2);
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.65;
    box-shadow: var(--shadow-frame);
}

.maintenance-footnote {
    max-width: 54ch;
    margin-top: 0.35rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.maintenance-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.35rem;
}

.maintenance-actions .btn-signal {
    min-width: 132px;
}

/* About page */
.about-profile {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.about-profile-portrait {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    border: 1px solid var(--rule);
    background: var(--paper-3);
}

.about-profile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-profile-body {
    display: grid;
    gap: 0.85rem;
}

.about-profile-body h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 650;
}

.about-profile-body p {
    max-width: 64ch;
    font-size: 0.96rem;
    line-height: 1.7;
}

.about-profile-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.about-mission-section .home-section-head {
    justify-items: center;
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.about-mission-section .home-section-title,
.about-mission-section .home-section-copy {
    max-width: 68ch;
    margin-inline: auto;
}

.about-mission-section .home-proof-grid {
    max-width: 960px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
}

.about-mission-section .home-proof-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    text-align: center;
}

.about-mission-section .home-proof-card p {
    max-width: 54ch;
}

@media (max-width: 700px) {
    .about-profile {
        grid-template-columns: 1fr;
    }
    .about-profile-portrait {
        max-width: 18rem;
    }

    .about-mission-section .home-proof-grid {
        grid-template-columns: 1fr;
    }
}

.pub-frame--sm .pub-frame-body { min-height: 0; padding: 1rem; }
.pub-frame--sm .pub-frame-title { font-size: 1rem; }
.pub-frame--sm .pub-frame-caption { font-size: 0.62rem; }

/* Public hub pages */
.pub-hub-hero {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.pub-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.55fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
}

.pub-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pub-signal-row span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.pub-hub-panel {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.pub-hub-panel-row {
    display: grid;
    grid-template-columns: minmax(5rem, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.pub-hub-panel-row + .pub-hub-panel-row { border-top: 1px solid var(--rule); }

.pub-hub-panel-row span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-hub-panel-row strong {
    font-size: 0.95rem;
}

.pub-hub-section {
    padding-block: clamp(2.75rem, 6vw, 4.75rem);
    background: var(--paper-blue);
}

.pub-hub-section-head {
    display: grid;
    gap: 0.65rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.pub-hub-section-head h2 {
    max-width: 20ch;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.pub-hub-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
}

.pub-hub-card {
    position: relative;
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    padding: clamp(1.1rem, 2.5vw, 1.45rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    transition: border-color 180ms ease, transform 180ms ease;
}

.pub-hub-card:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--rule-2));
    transform: translateY(-2px);
}

.pub-hub-card-index,
.pub-hub-card-label {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.pub-hub-card-index {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    color: var(--accent);
}

.pub-hub-card h3 {
    margin-top: 1.5rem;
    font-size: 1.12rem;
}

.pub-hub-card p {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.6;
}

.pub-hub-cta {
    border-block: 1px solid color-mix(in srgb, var(--accent) 24%, var(--rule-2));
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    background: var(--paper-3);
}

.pub-hub-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.pub-hub-cta h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.65rem, 3.4vw, 2.75rem);
    line-height: 1.08;
}

/* Public detail marketing pages */
.pub-detail-hero {
    padding-block: clamp(3rem, 7vw, 5.25rem);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.pub-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 58rem);
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: start;
}

.pub-detail-panel {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.pub-detail-panel-title {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-detail-panel-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.pub-detail-panel-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-2);
    font-size: 0.94rem;
}

.pub-detail-panel-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent);
}

.pub-detail-body {
    padding-block: clamp(2.75rem, 6vw, 4.75rem);
    background: var(--paper-blue);
}

.pub-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 58rem);
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: start;
}

.pub-detail-article {
    padding: 0;
}

.pub-detail-article h2 {
    margin-top: 2rem;
    font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

.pub-detail-article h2:first-child { margin-top: 0; }

.pub-detail-article h3 {
    margin-top: 1.5rem;
    font-size: 1.12rem;
}

.pub-detail-article h3:first-child { margin-top: 0; }

.pub-detail-article p,
.pub-detail-article li {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.72;
}

.pub-detail-article p { margin-top: 0.85rem; }

.pub-detail-inline-visual {
    margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pub-detail-inline-visual .pub-frame-body {
    min-height: clamp(220px, 34vw, 340px);
}

.pub-section-index {
    margin-block: clamp(1.25rem, 3vw, 2rem);
    border-block: 1px solid var(--rule);
    padding-block: 0.9rem;
}

.pub-section-index-title {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-section-index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pub-section-index-list a {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    padding: 0.34rem 0.55rem;
    font-size: 0.86rem;
    line-height: 1.2;
    text-decoration: none;
}

.pub-section-index-list a:hover {
    border-color: color-mix(in srgb, var(--accent) 44%, var(--rule-2));
    color: var(--accent);
}

.pub-detail-article ul {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.pub-detail-article ol {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.pub-detail-article table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
    background: var(--paper-2);
}

.pub-detail-article th,
.pub-detail-article td {
    border-bottom: 1px solid var(--rule);
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.pub-detail-article th {
    color: var(--ink);
    background: var(--paper-blue);
    font-size: 0.9rem;
}

.pub-detail-article tr:last-child td { border-bottom: 0; }

.pub-detail-article blockquote,
.pub-detail-article .alert {
    margin-top: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--rule-2));
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    padding: 1rem;
}

.pub-detail-article .alert {
    display: block;
}

.pub-detail-aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
}

.pub-detail-aside-card {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: 0.9rem 1rem;
    transition: border-color 180ms ease, transform 180ms ease;
}

.pub-detail-aside-card:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--rule-2));
    transform: translateY(-1px);
}

.pub-detail-aside-card span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-detail-aside-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.96rem;
    line-height: 1.35;
}

/* Public app download page */
.download-page {
    min-height: 720px;
    background: var(--paper);
}

.download-hero {
    padding-block: clamp(1.7rem, 4vw, 3rem);
}

.download-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
}

.download-hero-copy {
    display: grid;
    gap: 0.75rem;
}

.download-platform-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.download-platform-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.36rem 0.68rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.download-platform-nav a:hover,
.download-platform-nav a:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--rule-2));
    color: var(--accent);
}

.download-title {
    margin-top: 0.2rem;
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.download-description {
    margin-top: 0;
    max-width: 48rem;
}

.download-qr-panel,
.download-actions-panel,
.download-meta-card {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.download-qr-panel,
.download-actions-panel,
.download-meta-card {
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.download-qr-panel {
    min-height: 27rem;
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

.download-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.download-panel-head h2,
.download-section-head h2,
.download-meta-card h2 {
    margin-top: 0.45rem;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.download-panel-badge {
    flex: 0 0 auto;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.28rem 0.48rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.download-qr-box {
    min-height: 15.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper);
    padding: 1rem;
}

#download-qr {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

#download-qr img,
#download-qr canvas {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-sm);
}

.download-qr-unavailable {
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.download-qr-panel p,
.download-meta-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.download-state-box {
    display: grid;
    gap: 0.35rem;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
}

.download-state-box strong {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-state-box span {
    min-height: 1.5rem;
    color: var(--ink-3);
    font-size: 0.88rem;
    line-height: 1.5;
}

.download-body {
    min-height: 32rem;
}

.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
}

.download-actions-panel,
.download-meta-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.download-section-head {
    display: grid;
    gap: 0.35rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
}

.download-store-grid,
.download-fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.download-fallback-grid {
    justify-items: center;
}

.download-store-badge {
    min-height: 6.25rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: #0b1220;
    color: transparent;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

html[data-bs-theme="dark"] .download-store-badge {
    background: #111827;
    border-color: rgb(255 255 255 / 0.14);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.download-store-badge svg {
    width: min(100%, 190px);
    height: auto;
}

.download-store-badge:hover,
.download-action-card:hover {
    border-color: color-mix(in srgb, var(--accent) 44%, var(--rule-2));
    transform: translateY(-1px);
}

.download-action-card {
    min-height: 9rem;
    display: grid;
    align-content: start;
    gap: 0.55rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper);
    padding: 1rem;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.download-action-card span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-action-card strong {
    font-size: 1.05rem;
    line-height: 1.35;
}

.download-action-card small {
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.55;
}

.download-action-card .download-action-button {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 2.35rem;
    margin-top: 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--paper-2);
    padding: 0.65rem 0.95rem;
    font-family: var(--body-font);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.download-action-card--apk {
    width: min(100%, 28rem);
    grid-column: 1 / -1;
    justify-self: center;
    border-color: color-mix(in srgb, var(--accent) 24%, var(--rule-2));
    background: var(--accent-soft);
}

.download-action-card--regional {
    width: min(100%, 28rem);
    grid-column: 1 / -1;
    justify-self: center;
}

.download-action-card--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper-2);
}

.download-action-card--primary span,
.download-action-card--primary strong,
.download-action-card--primary small {
    color: var(--paper-2);
}

.download-action-card--primary .download-action-button {
    background: var(--paper-2);
    color: var(--accent);
}

.download-store-badge.is-disabled,
.download-action-card.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.download-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.download-meta-grid div {
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 0.78rem;
}

.download-meta-grid dt {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.download-meta-grid dd {
    margin: 0.35rem 0 0;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.download-checksum {
    display: grid;
    gap: 0.55rem;
}

.download-checksum label {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.download-checksum-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.download-checksum input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-2);
    padding: 0.72rem 0.78rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.4;
}

.download-checksum [data-role="copy-status"] {
    min-height: 1.35rem;
    color: var(--ink-3);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .download-hero-grid,
    .download-layout {
        grid-template-columns: 1fr;
    }

    .download-qr-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .download-store-grid,
    .download-meta-grid,
    .download-checksum-row {
        grid-template-columns: 1fr;
    }

    .download-store-badge {
        min-height: 5.25rem;
    }

    .download-panel-head {
        display: grid;
    }
}

/* Demo page */
.demo-credentials {
    display: grid;
    gap: 1.25rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--rule-2));
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.demo-credentials h2 {
    margin-top: 0.45rem;
}

.demo-credentials > .btn-signal {
    justify-self: center;
    width: fit-content;
}

.demo-credential-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    margin: 0;
}

.demo-credential-list div {
    position: relative;
    padding: 0.9rem 1rem;
    padding-right: 3.3rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.demo-credential-list dt {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-credential-list dd {
    margin: 0.45rem 0 0;
}

.demo-credential-list code {
    color: var(--ink);
    font-size: 1rem;
}

.demo-credential-value {
    min-width: 0;
}

.demo-copy-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.demo-credential-list .demo-copy-button {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.demo-copy-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.demo-copy-button [data-part="indicator"] {
    display: grid;
    place-items: center;
}

.demo-copy-check {
    position: absolute;
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 140ms ease, transform 140ms ease;
}

.demo-copy-button:hover,
.demo-copy-button:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--rule-2));
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 8%, var(--paper-2));
}

.demo-copy-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
}

.demo-copy-button:active {
    transform: translateY(1px);
}

.demo-copy-button.is-copied,
.demo-copy-button[data-state="copied"] {
    border-color: color-mix(in srgb, var(--success) 48%, var(--rule-2));
    color: color-mix(in srgb, var(--success) 78%, var(--ink));
}

.demo-copy-button.is-copied [data-part="indicator"],
.demo-copy-button[data-state="copied"] [data-part="indicator"] {
    opacity: 0;
}

.demo-copy-button.is-copied .demo-copy-check,
.demo-copy-button[data-state="copied"] .demo-copy-check {
    opacity: 1;
    transform: scale(1);
}

.prompt-embed {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.prompt-embed-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.prompt-embed-head h2 {
    margin-top: 0.2rem;
}

.prompt-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    flex: 0 0 auto;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.prompt-copy-button:hover,
.prompt-copy-button:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--rule-2));
    background: color-mix(in srgb, var(--accent) 24%, var(--ink));
}

.prompt-copy-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
}

.prompt-copy-button:active {
    transform: translateY(1px);
}

.prompt-copy-button.is-copied,
.prompt-copy-button[data-state="copied"] {
    border-color: color-mix(in srgb, var(--success) 48%, var(--rule-2));
    background: color-mix(in srgb, var(--success) 24%, var(--ink));
}

.prompt-frame {
    display: block;
    width: 100%;
    min-height: min(68vh, 46rem);
    margin-top: 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

/* Public reliability status */
.status-shell {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}

.status-card {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.status-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0.85rem;
}

.status-main-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--ink-3);
}

.status-dot.is-ok { background: var(--ok); }
.status-dot.is-down { background: var(--danger); }

.status-title {
    font-size: 1.05rem;
    margin: 0;
}

.status-meta,
.monitor-uptime {
    color: var(--ink-3);
    font-size: 0.85rem;
    margin: 0;
}

.status-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.status-kpi {
    background: var(--paper-blue);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.7rem;
}

.status-kpi-label {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
}

.status-kpi-value {
    font-size: 1.06rem;
    font-weight: 700;
}

.monitor-row {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: var(--paper-2);
}

.monitor-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.monitor-name {
    font-weight: 600;
    margin: 0;
}

.uptime-blocks {
    display: grid;
    grid-template-columns: repeat(30, minmax(8px, 1fr));
    gap: 3px;
    margin-bottom: 0.5rem;
}

.uptime-block {
    height: 22px;
    border-radius: 2px;
    background: var(--ink-3);
}

.uptime-block.is-green { background: var(--ok); }
.uptime-block.is-blue { background: var(--accent); }
.uptime-block.is-yellow { background: #f59f00; }
.uptime-block.is-red { background: var(--danger); }

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.legend-dot--excellent { background: var(--ok); }
.legend-dot--good { background: var(--accent); }
.legend-dot--partial { background: #f59f00; }
.legend-dot--outage { background: var(--danger); }

/* Public auth, legal, cookie, and pricing surfaces */
body[data-shell="auth"] {
    background: var(--paper-blue);
}

body[data-shell="auth"] .page-center {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-block: clamp(1.25rem, 4vw, 2.5rem);
}

body[data-shell="auth"] .container-tight {
    width: min(100% - 2rem, 430px);
}

body[data-shell="auth"] .card-md {
    max-width: 430px;
}

body[data-shell="auth"] .card-body {
    padding: clamp(1.15rem, 3vw, 1.55rem);
}

body[data-shell="auth"] .navbar-brand img,
body[data-shell="auth"] .img-fluid {
    max-height: 2.3rem;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
}

body[data-shell="auth"] h1,
body[data-shell="auth"] .h1 {
    font-size: clamp(1.45rem, 4vw, 1.9rem);
}

body[data-shell="auth"] h2,
body[data-shell="auth"] .h2,
body[data-shell="auth"] .card-title {
    font-size: clamp(1.18rem, 3vw, 1.45rem);
}

body[data-shell="auth"] .my-5 {
    margin-block: 1.5rem !important;
}

body[data-shell="auth"] .py-4 {
    padding-block: 0 !important;
}

.page-center .text-center.mb-4 {
    margin-bottom: 1rem !important;
}

.form-label-description {
    float: right;
    color: var(--ink-3);
    font-size: 0.86rem;
    font-weight: 400;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    border: 1px solid var(--rule-2);
    border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--paper-3);
    color: var(--ink-3);
}

.input-group-text .icon {
    width: 1rem;
    height: 1rem;
}

.form-footer {
    margin-top: 1rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.25rem;
    accent-color: var(--accent);
}

.form-check-label,
.form-hint {
    color: var(--ink-2);
    font-size: 0.92rem;
}

.invalid-feedback {
    display: block;
    margin-top: 0.35rem;
    color: var(--danger);
    font-size: 0.86rem;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.btn-link,
.nav-link,
.link-secondary {
    color: var(--ink-3);
    background: transparent;
    border-color: transparent;
}

.position-absolute { position: absolute !important; }
.card-header,
.card-footer {
    padding: 1rem clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid var(--rule);
}
.card-footer {
    border-top: 1px solid var(--rule);
    border-bottom: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid var(--rule);
    padding: 0.85rem;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--ink);
    background: var(--paper-blue);
    font-size: 0.9rem;
}

.policy-section,
.policy-preview {
    color: var(--ink-2);
}

.policy-section + .policy-section,
.policy-preview .policy-section + .policy-section {
    margin-top: 1.25rem;
}

.policy-section h1,
.policy-section h2,
.policy-preview h1,
.policy-preview h2 {
    margin-top: 1.5rem;
    font-size: clamp(1.18rem, 2.2vw, 1.6rem);
}

.policy-section p,
.policy-section li,
.policy-preview p,
.policy-preview li {
    color: var(--ink-2);
    line-height: 1.72;
}

.legal-page {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--paper-blue);
}

.legal-shell {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.legal-card {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.legal-header {
    padding: clamp(1.25rem, 4vw, 2rem);
    border-bottom: 1px solid var(--rule);
}

.legal-kicker {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-title {
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    line-height: 1.05;
}

.legal-title .badge {
    vertical-align: middle;
}

.legal-body {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.legal-reader {
    max-width: 1040px;
    margin-inline: auto;
}

.legal-reader .policy-preview {
    overflow: visible;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.legal-reader .policy-section,
.legal-reader .markdown {
    max-width: 100%;
}

.legal-reader h1 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.legal-footer {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
    border-top: 1px solid var(--rule);
    background: var(--paper-3);
}

.legal-note {
    max-width: 72rem;
    margin-inline: auto;
    color: var(--ink-3);
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal-actions {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-inline: auto;
}

.legal-version-table {
    margin-top: 1rem;
}

#cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    display: none;
    color: var(--ink);
}

.cookie-consent-banner {
    max-width: 920px;
    margin-inline: auto;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    box-shadow: var(--shadow-frame);
    padding: 1rem;
}

.cookie-consent-text {
    color: var(--ink-2);
    font-size: 0.94rem;
}

.cookie-consent-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-consent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rule);
}

.cookie-categories {
    display: grid;
    gap: 0.45rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.pub-hub-hero--resource .pub-hub-hero-grid {
    grid-template-columns: minmax(0, 58rem);
    justify-content: center;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 18rem));
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    gap: 0.9rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.pricing .pricing-card {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.pricing-card:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--accent) 46%, var(--rule-2));
    box-shadow: var(--shadow-frame);
    transform: translateY(-5px) scale(1.025);
}

.pricing-card--popular {
    border-color: color-mix(in srgb, var(--accent) 58%, var(--rule-2));
}

.pricing-ribbon {
    position: absolute;
    top: 0.85rem;
    right: -2.35rem;
    width: 8rem;
    transform: rotate(35deg);
    background: var(--accent);
    color: var(--paper-2);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.38rem 0;
    text-align: center;
    text-transform: uppercase;
}

.pricing-title {
    padding-right: 1.5rem;
    font-size: 1.18rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-top: 1rem;
    color: var(--ink);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-price-currency {
    color: var(--ink-3);
    font-size: 1rem;
    font-weight: 600;
}

.pricing-features {
    display: grid;
    gap: 0.5rem;
    margin-block: 0.5rem 0.75rem !important;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.45;
}

.pricing-features .icon {
    flex: 0 0 auto;
}

.pricing-btn {
    margin-top: auto;
}

.pricing-card .pricing-btn .btn:not(.btn-primary) {
    border-color: var(--rule-2);
    background: var(--paper-2);
    color: var(--ink);
}

.pricing-card .pricing-btn .btn:not(.btn-primary):hover {
    border-color: color-mix(in srgb, var(--accent) 46%, var(--rule-2));
    color: var(--accent);
}

.pricing-card--unavailable {
    background: color-mix(in srgb, var(--paper-2) 62%, var(--paper-3));
    color: var(--ink-3);
}

.pricing-card--unavailable * {
    color: var(--ink-3) !important;
}

.pricing-card--unavailable:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.pricing-unavailable-label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.btn-secondary {
    border-color: var(--rule-2);
    background: var(--paper-3);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--rule-2));
    color: var(--accent);
}

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.56;
    pointer-events: none;
}

.pub-bottom-cta {
    border-top: 1px solid var(--rule);
    background: var(--paper-blue);
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.pub-bottom-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
}

.pub-bottom-cta h2 {
    margin-top: 0.4rem;
    max-width: 18ch;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.1;
}

.pub-bottom-cta p {
    max-width: 58ch;
    margin-top: 0.75rem;
    color: var(--ink-2);
    line-height: 1.65;
}

.pub-bottom-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

body[data-shell="legal"] .pub-bottom-cta {
    border-top-color: var(--rule);
    background: var(--paper);
}

.public-form-shell {
    display: grid;
    grid-template-columns: minmax(15rem, 0.45fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.public-contact-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.public-contact-item {
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
}

.public-contact-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.public-contact-item dt {
    color: var(--ink);
    font-weight: 600;
}

.public-contact-item dd {
    margin: 0.3rem 0 0;
    color: var(--ink-2);
    line-height: 1.55;
}

.public-form-panel {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: clamp(1.1rem, 3vw, 1.6rem);
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.public-form-field {
    display: grid;
    gap: 0.4rem;
}

.public-form-field--full {
    grid-column: 1 / -1;
}

.public-form-field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.public-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.public-turnstile {
    display: flex;
    justify-content: center;
    min-height: 80px;
    margin-top: 1rem;
}

.journey-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.journey-summary-card {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    padding: 1rem;
}

.journey-summary-card > span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-summary-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1;
}

.journey-summary-card .journey-line-change {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.1;
}

.journey-summary-card .journey-line-added,
.journey-line-added {
    color: var(--ok);
}

.journey-summary-card .journey-line-deleted,
.journey-line-deleted {
    color: var(--danger);
}

.journey-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.journey-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.journey-filter-control {
    position: relative;
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.journey-filter-control > span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-multiselect {
    position: relative;
    min-width: 0;
}

.journey-multiselect-toggle {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-family: var(--font);
    font-size: 0.92rem;
    height: 2.7rem;
    justify-content: space-between;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 0.45rem 0.75rem;
    text-align: left;
    text-transform: none;
    width: 100%;
}

.journey-multiselect-toggle::after {
    border-color: var(--ink-3) transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0;
    content: "";
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.journey-multiselect-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journey-multiselect-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    display: none;
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.14);
    padding: 0.35rem;
}

.journey-multiselect.is-open .journey-multiselect-menu {
    display: grid;
    gap: 0.15rem;
}

.journey-multiselect-option {
    align-items: center;
    border-radius: 0.35rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-family: var(--font);
    font-size: 0.9rem;
    gap: 0.45rem;
    min-height: 2.1rem;
    padding: 0.35rem 0.45rem;
    text-transform: none;
}

.journey-multiselect-option:hover {
    background: var(--paper-2);
}

.journey-multiselect-option input {
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.journey-filter-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.journey-filter-stats div {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper);
    padding: 0.75rem;
}

.journey-filter-stats span {
    display: block;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-filter-stats strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
}

.journey-chart-panel {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    min-height: 290px;
    padding: 1rem;
}

.journey-chart-panel-wide {
    grid-column: 1 / -1;
    min-height: 150px;
    margin-top: 1rem;
}

.journey-chart-panel h3 {
    margin-top: 0;
    color: var(--ink-2);
    font-size: 1rem;
}

.journey-chart-canvas {
    position: relative;
    height: 220px;
    min-height: 220px;
}

.journey-chart-panel-wide .journey-chart-canvas {
    height: 260px;
}

.journey-chart-panel canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 220px;
}

.journey-chart-panel-wide canvas {
    max-height: 260px;
}

.journey-heatmap {
    overflow-x: auto;
    padding: 0.25rem 0 0.35rem;
}

.journey-heatmap-matrix {
    display: grid;
    grid-template-columns: 3.1rem max-content;
    grid-template-rows: 1rem auto;
    column-gap: 0.55rem;
    row-gap: 0.25rem;
    width: max-content;
}

.journey-heatmap-corner {
    grid-column: 1;
    grid-row: 1;
}

.journey-heatmap-months {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: 1rem;
    gap: 3px;
    min-height: 1rem;
    color: var(--ink-3);
    font-size: 0.72rem;
    white-space: nowrap;
}

.journey-heatmap-months span {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
}

.journey-heatmap-weekdays {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 3px;
    color: var(--ink-3);
    font-size: 0.64rem;
    line-height: 12px;
    text-align: right;
}

.journey-heatmap-grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 3px;
}

.journey-heatmap-cell {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: var(--paper);
    border: 1px solid var(--rule);
}

.journey-heatmap-cell.heat-1 {
    background: color-mix(in srgb, var(--ok) 22%, var(--paper-2));
}

.journey-heatmap-cell.heat-2 {
    background: color-mix(in srgb, var(--ok) 40%, var(--paper-2));
}

.journey-heatmap-cell.heat-3 {
    background: color-mix(in srgb, var(--ok) 64%, var(--paper-2));
}

.journey-heatmap-cell.heat-4 {
    background: var(--ok);
}

.journey-heatmap-tooltip {
    position: fixed;
    z-index: 1100;
    max-width: min(16rem, calc(100vw - 1rem));
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.18);
    font-size: 0.72rem;
    line-height: 1.25;
    pointer-events: none;
    white-space: nowrap;
}

.journey-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
    margin-top: 0.55rem;
    color: var(--ink-3);
    font-size: 0.72rem;
}

.journey-stream-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-right: 0.45rem;
    padding: 0.2rem 0.35rem;
    text-transform: uppercase;
}

.journey-stream-tag-web {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--rule-2));
    background: color-mix(in srgb, var(--accent) 11%, var(--paper-2));
    color: var(--accent);
}

.journey-stream-tag-app {
    border-color: color-mix(in srgb, var(--ok) 38%, var(--rule-2));
    background: color-mix(in srgb, var(--ok) 12%, var(--paper-2));
    color: var(--ok);
}

.journey-timeline {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.journey-month {
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.journey-month summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--ink);
    font-weight: 650;
}

.journey-month-meta,
.journey-muted {
    color: var(--ink-3);
    font-size: 0.88rem;
    font-weight: 500;
}

.journey-month summary::marker,
.journey-type summary::marker {
    content: "";
}

.journey-month summary::-webkit-details-marker,
.journey-type summary::-webkit-details-marker {
    display: none;
}

.journey-month summary::before,
.journey-type summary::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
}

.journey-month[open] > summary::before,
.journey-type[open] > summary::before {
    transform: rotate(45deg);
}

.journey-month-body {
    border-top: 1px solid var(--rule);
    padding: 0 1rem 1rem;
}

.journey-type {
    margin-top: 1rem;
}

.journey-stream h3 {
    margin: 1.25rem 0 0;
    color: var(--ink);
    font-size: 1.05rem;
}

.journey-type summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-type-meta {
    color: var(--ink-2);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.journey-milestone-list {
    display: grid;
    gap: 0.6rem;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.journey-milestone-list li {
    border-top: 1px solid var(--rule);
    padding-top: 0.6rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.journey-milestone-list p {
    margin: 0.35rem 0 0;
}

.journey-milestone-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.journey-commit-details {
    margin-top: 0.45rem;
}

.journey-commit-details summary {
    cursor: pointer;
    color: var(--ink-3);
    font-size: 0.88rem;
}

.journey-commit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.journey-commit-list code {
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 0.1rem 0.3rem;
}

.badge.bg-green-lt {
    border-color: color-mix(in srgb, var(--ok) 32%, var(--rule-2));
    background: color-mix(in srgb, var(--ok) 10%, var(--paper-2));
    color: var(--ok);
}

.badge.bg-red-lt {
    border-color: color-mix(in srgb, var(--danger) 32%, var(--rule-2));
    background: color-mix(in srgb, var(--danger) 8%, var(--paper-2));
    color: var(--danger);
}

.badge.bg-warning {
    border-color: color-mix(in srgb, var(--warn) 38%, var(--rule-2));
    background: color-mix(in srgb, var(--warn) 16%, var(--paper-2));
    color: var(--ink);
}

/* Home */
.home-hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-hero-copy {
    display: grid;
    gap: 1.1rem;
}

.home-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-hero-title {
    max-width: 18ch;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-hero-title em {
    display: inline-block;
    min-height: 0.95em;
    min-width: 12ch;
    color: var(--accent);
    white-space: nowrap;
    vertical-align: bottom;
}

.home-hero-title em > #typed,
.home-hero-title em > .typed-cursor {
    white-space: nowrap;
}

.typed-cursor {
    color: var(--accent);
    font-weight: 400;
    opacity: 0.9;
}

.home-hero-description {
    max-width: 50ch;
    font-size: 1rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.home-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-hero-trust span + span::before {
    content: "/";
    margin-right: 1rem;
    color: var(--rule-strong);
}

.home-product-stage {
    position: relative;
    padding: 0;
    display: block;
}

.home-product-signals span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.home-product-signals span:nth-child(1),
.home-product-signals span:nth-child(2),
.home-product-signals span:nth-child(3) {
    border-color: color-mix(in srgb, var(--ok) 35%, var(--rule-2));
    color: var(--ok);
}

.home-product-signals span:nth-child(4) {
    border-color: color-mix(in srgb, var(--warn) 45%, var(--rule-2));
    color: var(--warn);
}

.home-product-float {
    display: block;
    position: absolute;
    z-index: 2;
    width: min(12.5rem, 32%);
}

.home-product-float--map {
    left: 0;
    bottom: 2rem;
    transform: translate(-12%, 18%);
}

.home-product-float--mobile {
    right: 0;
    bottom: 0.75rem;
    transform: translate(10%, 22%);
}

.home-product-float .pub-frame {
    background: var(--paper-2);
}

.home-product-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.home-product-signals span:nth-child(4) {
    margin-left: auto;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
    gap: 0.875rem;
    border: 0;
}

.home-feature-cell {
    position: relative;
    display: block;
    min-height: 19rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-feature-cell--large {
    grid-row: span 2;
    min-height: 32rem;
    background: var(--paper-2);
}

.home-feature-cell--link:hover {
    border-color: var(--accent);
}

.home-feature-cell--link:hover h3 {
    color: var(--accent);
}

.home-feature-cell--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-cell-num {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: var(--accent);
}

.home-feature-cell h3 {
    max-width: 16ch;
    margin-top: 1.2rem;
    font-size: 1.1rem;
    transition: color 180ms ease;
}

.home-feature-cell p {
    margin-top: 1rem;
    max-width: 58ch;
    font-size: 0.94rem;
}

.home-feature-cell-arrow {
    position: absolute;
    bottom: clamp(1.1rem, 2.5vw, 1.5rem);
    right: clamp(1.1rem, 2.5vw, 1.5rem);
    width: 1.4rem;
    height: 0.7rem;
    background-color: var(--ink-3);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M0 4h13M10 0l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M0 4h13M10 0l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    transition: transform 180ms ease, background-color 180ms ease;
}

.home-feature-cell--link:hover .home-feature-cell-arrow {
    background-color: var(--accent);
    transform: translateX(4px);
}

.home-geo-diagram,
.home-line-icon {
    color: var(--ink);
    opacity: 0.72;
}

.home-geo-diagram {
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.home-line-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-top: 1.3rem;
}

.pub-list {
    display: grid;
    gap: 0.875rem;
    border-top: 0;
}

.pub-list-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) minmax(14rem, 18rem);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.pub-list-row h3 {
    font-family: var(--sans);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 620;
    letter-spacing: 0;
}

.pub-list-row p {
    max-width: 64ch;
    margin-top: 0.75rem;
    font-size: 0.94rem;
}

.pub-list-index { color: var(--accent); align-self: start; padding-top: 0.65rem; }

.home-sector-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    border: 0;
}

.home-sector-table article {
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.home-sector-table h3 {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.home-sector-table p {
    margin-top: 0.75rem;
    font-size: 0.94rem;
}

.home-rule-cta {
    border-block: 1px solid var(--rule);
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    background: var(--paper-blue);
}

.home-rule-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--rule-2));
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent 58%),
        var(--paper-2);
}

.home-rule-cta-inner::before {
    content: "";
    position: absolute;
    inset-block: clamp(1rem, 3vw, 1.35rem);
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--accent);
}

.home-rule-cta h2 {
    font-style: normal;
    font-size: clamp(1.65rem, 3.4vw, 2.75rem);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: 0;
}

.home-rule-cta p { margin-top: 0.4rem; }

.home-rule-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-pullquote {
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.pub-pullquote blockquote {
    max-width: 58rem;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--ink-2);
}

.pub-pullquote figcaption,
.home-marginalia figcaption {
    margin-top: 1rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-marginalia {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 0;
}

.home-marginalia figure {
    padding: 0.95rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--paper-2) 80%, transparent);
}

.home-marginalia blockquote {
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
}

.home-proof-grid figure {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.home-testimonial-head {
    display: flex;
    min-height: 3rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.9rem;
}

.home-testimonial-head strong {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: 0;
}

.home-testimonial-head span,
.home-testimonial-head small {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-testimonial-head--logo {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.home-testimonial-head--logo img {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
    background: var(--paper-2);
    object-fit: contain;
}

.home-testimonial-head--logo span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.home-testimonial-rating {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    align-self: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--rule));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-soft) 74%, var(--paper-2));
    color: var(--accent);
    line-height: 1;
}

.home-testimonial-rating span {
    display: inline-block;
    color: var(--accent);
    font-size: 1.08rem;
    letter-spacing: 0.1em;
}

.home-testimonial-rating strong {
    color: currentColor;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.home-proof-grid blockquote {
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.58;
}

.home-proof-grid figcaption {
    margin-top: 1rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
    border: 0;
}

.pub-stat {
    min-height: 7.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.pub-stat--link {
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pub-stat--link:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 50%, var(--paper-2));
    transform: translateY(-1px);
}

.pub-stat--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.pub-stat strong {
    font-family: var(--sans);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 680;
    color: var(--ink);
    line-height: 1;
    letter-spacing: 0;
}

.pub-stat span {
    margin-top: 0.8rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.home-faq-grid {
    display: grid;
    grid-template-columns: minmax(15rem, 0.48fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.home-faq-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.home-faq-list {
    border-top: 1px solid var(--rule-2);
    background: var(--paper-2);
    border-inline: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-section + .faq-section {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.faq-section h2 {
    margin-bottom: 1rem;
}

.faq-page .faq-section + .faq-section {
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
    border-top: 1px solid var(--rule-2);
}

.faq-page .faq-section h2 {
    max-width: 42rem;
}

.home-faq-item {
    border-bottom: 1px solid var(--rule-2);
}

.home-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 1.1rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

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

.home-faq-summary::after {
    content: "+";
    margin-left: auto;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 1.1rem;
    line-height: 1;
}

.home-faq-item[open] .home-faq-summary {
    color: var(--accent);
}

.home-faq-item[open] .home-faq-summary::after {
    content: "−";
    color: var(--accent);
}

.home-faq-answer {
    margin: 0 1.1rem 1.1rem;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid var(--accent);
    color: var(--ink-2);
}

.home-closing {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: var(--paper-blue);
    border-top: 1px solid var(--rule-2);
    border-bottom: 0;
}

.home-closing-inner {
    position: relative;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.home-closing h2 {
    display: grid;
    gap: 0.2rem;
    max-width: 18ch;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.14;
    font-weight: 650;
}

.home-closing h2 em {
    color: var(--ink);
    font-weight: 600;
}

.home-closing-body {
    display: grid;
    gap: 1.25rem;
}

.home-closing p {
    max-width: 56ch;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
}

.home-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(18rem, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.home-newsletter h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.home-newsletter p {
    max-width: 56ch;
    margin-top: 0.75rem;
}

.home-newsletter-form {
    display: grid;
    gap: 0.75rem;
}

.home-newsletter-row {
    display: flex;
    gap: 0.75rem;
}

.home-newsletter-input,
.form-control,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--ink);
    outline: none;
}

.home-newsletter-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
}

.form-control::placeholder {
    color: var(--ink-3);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background: var(--paper-3);
    color: var(--ink-2);
    opacity: 1;
}

.form-select option {
    background: var(--paper-2);
    color: var(--ink);
}

.home-newsletter-turnstile {
    display: flex;
    justify-content: center;
    min-height: 80px;
}

/* Footer */
.pub-footer {
    border-top: 1px solid var(--rule-2);
    padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.56fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
}

.pub-footer-brand-block {
    display: grid;
    justify-items: start;
    gap: 1.25rem;
}

.pub-footer-tagline {
    max-width: 32ch;
    font-family: var(--sans);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-style: normal;
    line-height: 1.45;
    letter-spacing: 0;
}

.pub-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.pub-footer-col-title {
    margin-bottom: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-footer-col-list {
    display: grid;
    gap: 0.65rem;
}

.pub-footer-col-list a {
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
}

.pub-footer-col-list a:hover { color: var(--accent); }

.pub-footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: clamp(2rem, 5vw, 4rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    text-align: center;
}

.pub-footer-meta {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pub-footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pub-footer-social {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink-3);
    background: transparent;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.pub-footer-social svg {
    width: 1.08rem;
    height: 1.08rem;
}

.pub-footer-social:hover,
.pub-footer-social:focus-visible {
    border-color: color-mix(in srgb, var(--social-color) 34%, var(--rule-2));
    background: color-mix(in srgb, var(--social-color) 11%, var(--paper-2));
    color: var(--social-color);
    transform: translateY(-1px);
}

.pub-footer-social:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--social-color) 44%, transparent);
    outline-offset: 3px;
}

.pub-footer-social--facebook { --social-color: #1877f2; }
.pub-footer-social--instagram { --social-color: #e4405f; }
.pub-footer-social--x { --social-color: #111827; }
.pub-footer-social--linkedin { --social-color: #0a66c2; }
.pub-footer-social--reddit { --social-color: #ff4500; }
.pub-footer-social--youtube { --social-color: #ff0000; }
.pub-footer-social--discord { --social-color: #5865f2; }
.pub-footer-social--github { --social-color: #24292f; }

html[data-bs-theme="dark"] .pub-footer-social--x,
html[data-bs-theme="dark"] .pub-footer-social--github {
    --social-color: #f8fafc;
}

/* Messages */
.pub-messages {
    display: grid;
    gap: 0.75rem;
    margin-block: 1rem;
}

.pub-message,
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--rule-2);
    border-left-color: var(--accent);
    background: var(--paper-2);
    color: var(--ink-2);
}

.pub-message-close,
.btn-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--rule-2);
    background: transparent;
    color: var(--ink-2);
}

/* Compatibility for existing public pages */
.hero {
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--rule);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
}

.hero-description {
    max-width: 56ch;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.hero-description-wide { max-width: 70ch; }

.hero-subheader,
.text-uppercase,
.small {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -0.75rem;
}

.row > * {
    width: 100%;
    padding-inline: 0.75rem;
}

.g-0 { margin-inline: 0; }
.g-0 > * { padding-inline: 0; }
.g-4 { row-gap: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1.5rem; }

.col-12 { flex: 0 0 100%; max-width: 100%; }

.card,
.pricing-card,
.status-card,
.monitor-row {
    background: var(--paper-2);
    border: 1px solid var(--rule-2);
    border-radius: var(--radius-md);
}

.card-body,
.pricing-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card-lg .card-body { padding: clamp(1.5rem, 4vw, 3rem); }
.card-md { max-width: 42rem; margin-inline: auto; }

.markdown {
    color: var(--ink-2);
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote {
    margin-bottom: 1rem;
}

.markdown ul,
.markdown ol {
    padding-left: 1.35rem;
    list-style: disc;
}

.markdown ol { list-style: decimal; }

.markdown h2,
.markdown h3,
.markdown h4 {
    margin: 2rem 0 0.75rem;
}

.markdown a,
.text-primary {
    color: var(--accent);
}

.text-muted,
.text-secondary {
    color: var(--ink-3) !important;
}

.text-reset { color: inherit; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.fw-bold { font-weight: 600; color: var(--ink); }
.lead { font-size: 1.15rem; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.p-3 { padding: 1rem !important; }
.py-2 { padding-block: 0.5rem !important; }
.py-4 { padding-block: 1.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.position-relative { position: relative !important; }
.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-green { color: var(--ok) !important; }
.bg-primary { background: var(--accent) !important; }
.text-primary-fg { color: var(--paper-2) !important; }
.icon-inline { display: inline-block; vertical-align: -0.15em; }
.icon-3 { width: 1rem; height: 1rem; }
.me-1 { margin-right: 0.25rem !important; }

.pricing-card.featured {
    border-color: var(--accent);
}

.pricing-price-description {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

textarea.form-control {
    min-height: 8rem;
    resize: vertical;
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

@media (min-width: 992px) {
    .col-lg { flex: 1 0 0; max-width: 100%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
}

@media (min-width: 1200px) {
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333%; max-width: 83.333%; }
}

@media (max-width: 1120px) {
    .pricing {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 18rem));
    }

    .pub-header-nav,
    .pub-header-login,
    .pub-header-cta {
        display: none;
    }

    .pub-header-bar { justify-content: space-between; }
    .pub-burger { display: inline-grid; }
}

@media (max-width: 900px) {
    :root { --shell: min(100% - 2rem, 1200px); }

    .home-hero-grid,
    .pub-hub-hero-grid,
    .pub-detail-hero-grid,
    .pub-detail-layout,
    .pub-bottom-cta-inner,
    .public-form-shell,
    .home-section-head--split,
    .home-faq-grid,
    .home-newsletter,
    .home-closing-inner,
    .pub-footer-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-title { max-width: 16ch; }
    .home-product-stage { padding: 0; }
    .home-product-float {
        position: static;
        width: auto;
        transform: none;
        margin-top: 0.75rem;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-cell,
    .home-feature-cell--large {
        min-height: auto;
        grid-row: auto;
    }

    .pub-list-row {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .pub-list-row .pub-frame {
        grid-column: 2;
        max-width: 20rem;
    }

    .home-sector-table,
    .pub-stat-row,
    .home-marginalia,
    .home-proof-grid,
    .journey-summary-grid,
    .journey-filter-bar,
    .journey-filter-stats,
    .journey-analytics-grid,
    .demo-credential-list,
    .pub-detail-aside,
    .pub-hub-card-grid,
    .pub-footer-links {
        grid-template-columns: 1fr;
    }

    .home-rule-cta-inner,
    .pub-footer-bottom {
        align-items: center;
    }

    .home-rule-cta-inner { grid-template-columns: 1fr; }
    .pub-hub-cta-inner { grid-template-columns: 1fr; }
    .pub-bottom-cta-actions { justify-content: flex-start; }
    .pub-footer-bottom { flex-direction: column; }
    .pub-footer-socials { position: static; }
}

@media (max-width: 640px) {
    :root { --shell: min(100% - 1.25rem, 1200px); }

    .pub-header-bar { min-height: 58px; }
    .pub-lang { display: none; }
    .pub-drawer .pub-lang { display: block; }

    .home-hero {
        padding-block: 2rem 2.5rem;
    }

    .pub-hub-hero {
        padding-block: 2.5rem;
    }

    .pub-detail-hero {
        padding-block: 2.5rem;
    }

    .pub-hub-card {
        min-height: auto;
    }

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

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

    .cookie-consent-grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 100%;
    }

    .pub-detail-panel-list {
        grid-template-columns: 1fr;
    }

    .prompt-embed-head {
        align-items: stretch;
        flex-direction: column;
    }

    .prompt-copy-button {
        width: 100%;
    }

    .home-hero-actions,
    .home-newsletter-row,
    .home-rule-cta-actions,
    .pub-bottom-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .public-form-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-trust {
        display: grid;
        gap: 0.35rem;
    }

    .home-hero-trust span + span::before { content: none; }

    .home-section {
        padding-block: 2.5rem;
    }

    .pub-list-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pub-list-row .pub-frame {
        grid-column: auto;
        max-width: none;
    }

    .pub-stat {
        min-height: 6.75rem;
    }

}
/* Blog */
.blog-index-hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--paper);
}

.blog-hero-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.blog-hero-copy--left {
  margin-inline: 0;
  text-align: left;
}

.blog-category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, .7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.blog-category-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.blog-category-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-index-hero h1 {
  margin-top: .8rem;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.blog-index-hero p {
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.blog-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.blog-text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
  text-underline-offset: .2em;
}

.blog-topics {
  padding-top: .25rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

.blog-layout {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.blog-category-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.35rem;
  padding: .5rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  background: var(--paper-2);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.blog-category-link:hover,
.blog-category-link.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-category-link span:last-child {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .78rem;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.blog-post-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  transition: border-color 180ms ease, transform 180ms ease;
}

.blog-card:hover {
  border-color: var(--rule-2);
  transform: translateY(-2px);
}

.blog-card--featured {
  grid-column: auto;
  display: flex;
  min-height: 100%;
  background: var(--paper-2);
}

.blog-card-image-link {
  display: block;
  order: -1;
  height: clamp(7rem, 11vw, 9rem);
  background: var(--paper-3);
}

.blog-card--featured .blog-card-image-link {
  order: -1;
  height: clamp(7rem, 11vw, 9rem);
}

.blog-card img,
.blog-detail-image {
  display: block;
  width: 100%;
  height: auto;
}

.blog-card-image-link img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card-body {
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: 1rem;
}

.blog-card--featured .blog-card-body {
  padding: 1rem;
  align-content: start;
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.blog-card--featured h2 {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.3;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.blog-card p,
.blog-card-meta {
  margin: 0;
  color: var(--ink-2);
}

.blog-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

.blog-card-meta,
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .78rem;
}

.blog-card-tags,
.blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.blog-card-tags {
  margin-top: .05rem;
}

.blog-card-tags li,
.blog-tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .22rem .45rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 1.8rem;
  padding: .25rem .55rem .28rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-soft);
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-bottom: 4rem;
}

.blog-article-header {
  padding-block: clamp(3rem, 7vw, 5.25rem);
}

.blog-article-title {
  max-width: 58rem;
  margin-inline: auto;
  text-align: left;
}

.blog-article-title .hero-title {
  max-width: 18ch;
  margin-top: .85rem;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
}

.blog-article-title .hero-description {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.68;
}

.blog-date {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 600;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-back-link::before {
  content: "<";
}

.blog-detail-media {
  max-width: 58rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.blog-detail-image {
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.blog-article-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 0;
  background: var(--paper);
}

.blog-detail-image--hero {
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.blog-article-meta {
  justify-content: space-between;
  max-width: 58rem;
  margin-top: 1.35rem;
  margin-inline: auto;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.blog-article-meta + .blog-tag-list {
  max-width: 58rem;
  margin: -0.55rem auto 1.5rem;
}

.blog-article-meta > div {
  display: grid;
  gap: .25rem;
}

.blog-content {
  max-width: 58rem;
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 2rem;
  font-size: 1.04rem;
  line-height: 1.74;
}

.blog-lead {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.7;
}

.blog-content p,
.blog-content li,
.blog-content blockquote {
  color: var(--ink-2);
}

.blog-content p + p,
.blog-content p + ul,
.blog-content p + ol {
  margin-top: 1rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2.2rem;
  margin-bottom: .75rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
  text-underline-offset: .18em;
}

.blog-content ul,
.blog-content ol {
  display: grid;
  gap: .55rem;
  margin: 1rem 0 0 1.2rem;
  padding: 0;
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-share,
.blog-related {
  padding-top: 1.25rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.blog-share {
  max-width: 58rem;
}

.blog-share-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.blog-share h2 {
  margin-top: .25rem;
  font-size: 1.05rem;
}

.blog-related h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.blog-share-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.blog-share-links a,
.blog-copy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.15rem;
  overflow: hidden;
  padding: .45rem .65rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--paper-2);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.blog-share-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.blog-share-links a:hover,
.blog-copy-link:hover,
.blog-copy-link.is-copied {
  border-color: var(--rule-2);
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-copy-link.is-copied {
  animation: blog-copy-pop 520ms ease;
}

.blog-copy-link.is-copied .blog-share-icon {
  animation: blog-copy-icon 520ms ease;
}

.blog-copy-link.is-copied::after {
  content: "";
  position: absolute;
  inset: -45%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0 28%, transparent 48%);
  opacity: 0;
  animation: blog-copy-ripple 700ms ease;
}

@keyframes blog-copy-pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes blog-copy-icon {
  0% { transform: rotate(0deg) scale(1); }
  36% { transform: rotate(-8deg) scale(1.18); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes blog-copy-ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-copy-link.is-copied,
  .blog-copy-link.is-copied .blog-share-icon,
  .blog-copy-link.is-copied::after {
    animation: none;
  }
}

@media (max-width: 960px) {
  .blog-category-hero-grid,
  .blog-card--featured,
  .blog-post-grid,
  .blog-post-grid--related {
    grid-template-columns: 1fr;
  }

  .blog-share-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-share-links {
    justify-content: flex-start;
  }

  .blog-card-image-link,
  .blog-card--featured .blog-card-image-link {
    height: 10rem;
  }
}

@media (max-width: 640px) {
  .blog-index-hero h1,
  .blog-article-header h1,
  .blog-article-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

  .blog-topic-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .25rem;
  }

  .blog-category-link {
    white-space: nowrap;
  }
}
