/* ==========================================================================
   Marketing site design system — standalone, CSP-strict (no inline styles).
   Logario brand: warm ivory base, deep slate-navy band sections, honey-gold
   reserved for primary actions ("Soft UI Evolution": soft layered shadows,
   generous radii, WCAG AA contrast). Fonts are self-hosted (font-src 'self').
   Light mode only in v1 (matches the product); tokens make dark additive.

   Contrast rules the tokens encode — keep them when changing colors:
   - Gold (#F59E0B) is a BACKGROUND color only, always with navy text
     (gold text on white fails 4.5:1). Text links on light use amber-700.
   - Body text on navy uses --on-navy / --on-navy-muted (≥7:1).
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-var-latin.260c81a4759b.woff2") format('woff2');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fraunces-600-latin.be790b114597.woff2") format('woff2');
}

:root {
    color-scheme: light;

    /* Brand */
    --gold: #f59e0b;          /* backgrounds/CTAs only — navy text on top */
    --gold-strong: #d97706;
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --on-navy: #f8fafc;
    --on-navy-muted: rgba(248, 250, 252, 0.78);
    --gold-tint: rgba(245, 158, 11, 0.14);

    /* Accent for TEXT and small marks on light backgrounds (AA on ivory/white) */
    --accent: #b45309;
    --accent-hover: #92400e;
    --accent-tint: rgba(245, 158, 11, 0.14);

    /* Warm neutrals */
    --gray-50: #f6f3ec;
    --gray-100: #ece8df;
    --gray-200: #ddd7c9;
    --gray-300: #c9c2b2;
    --gray-400: #a9a396;
    --gray-500: #8a8577;
    --gray-600: #5b6473;
    --gray-700: #454d5b;
    --gray-800: #2c3441;
    --gray-900: #1a2233;

    --bg-primary: #fffdf9;
    --bg-secondary: #f6f3ec;
    --text-primary: #1a2233;
    /* ≥4.5:1 on both --bg-primary and --bg-secondary (WCAG 2.2 AA body text). */
    --text-secondary: #5b6473;

    /* Band backgrounds (hero / CTA / footer): navy with a soft gold glow —
       white copy on top stays ≥7:1 everywhere the glow reaches. */
    --brand-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
    --brand-gradient-deep:
        radial-gradient(90% 130% at 85% 0%, rgba(245, 158, 11, 0.22), transparent 55%),
        linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 70%);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Soft-UI layered shadows: softer than flat, clearer than neumorphism. */
    --shadow-sm: 0 1px 2px rgba(26, 34, 51, 0.05), 0 1px 3px rgba(26, 34, 51, 0.07);
    --shadow-md: 0 2px 4px rgba(26, 34, 51, 0.05), 0 6px 16px rgba(26, 34, 51, 0.09);
    --shadow-lg: 0 4px 8px rgba(26, 34, 51, 0.06), 0 16px 40px rgba(26, 34, 51, 0.14);
    --shadow-focus: 0 0 0 4px rgba(245, 158, 11, 0.38);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
        Arial, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    --container: 1120px;
    --container-narrow: 760px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;

    --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset-lite + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-4);
    font-weight: 700;
}

/* Display serif for the two top heading levels; Inter carries the rest. */
h1,
h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--space-10);
}

/* Alternating bands — but CTA bands own their background (navy gradient / ivory),
   so exclude them or the even-row striping (higher specificity) would win and a
   navy CTA would render on ivory with invisible white text. */
.section:nth-of-type(even):not(.cta-band) {
    background: var(--bg-secondary);
}

.grid {
    display: grid;
    gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-5);
    border-radius: 0 0 var(--radius-md) 0;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    left: 0;
}

.anchor-target {
    display: block;
    position: relative;
    top: -72px; /* clear the sticky header */
    visibility: hidden;
}

.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
    max-width: 44rem;
    margin-inline: auto;
}

.section-intro {
    color: var(--text-secondary);
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--space-6);
}

.section-heading + .grid,
.section-heading + .spotlight-list,
.section-heading + .stats-grid,
.section-heading + .faq-list,
.section-heading + .pricing-grid,
.section-heading + .table-scroll {
    margin-top: var(--space-6);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-tint);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.empty-note {
    color: var(--text-secondary);
    text-align: center;
}

/* Reveal-on-scroll: the CLASS IS ASSIGNED BY site.js (progressive enhancement —
   without JS nothing is ever hidden). Reduced-motion zeroes the transition via
   the global preference rule at the bottom of this file. */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 2.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-lg {
    font-size: 1.0625rem;
    min-height: 2.75rem; /* ≥44px touch target for primary CTAs */
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* Gold is a background — always navy text on top (≈9.6:1). */
.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-strong);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--gray-200);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--gray-300);
}

.btn-on-gradient {
    background: #fff;
    color: var(--gray-900);
}

.btn-on-gradient:hover {
    background: var(--gray-50);
}

.text-link {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.announcement {
    background: var(--brand-gradient-deep);
    color: var(--on-navy);
    text-align: center;
    font-size: 0.9rem;
    padding: var(--space-2) var(--space-5);
}

.announcement a {
    color: var(--on-navy);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-primary);
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 28px;
    width: auto;
}

/* Honeycomb mark — gold on both the ivory header and the navy footer (a graphic,
   not text, so it reads on both). Sits left of the typographic wordmark. */
.brand-mark {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--gold-strong);
}

.site-footer .brand-mark {
    color: var(--gold);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: var(--space-5);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.nav-link:hover {
    background: var(--bg-secondary);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    padding: var(--space-3);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-bar + .nav-toggle-bar {
    margin-top: 5px;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero — navy band with a soft gold glow; all child copy switches to on-navy.
   -------------------------------------------------------------------------- */
.hero {
    padding-block: var(--space-12) var(--space-10);
    background: var(--brand-gradient-deep);
    color: var(--on-navy);
}

.hero-inner {
    display: grid;
    gap: var(--space-8);
    align-items: center;
    text-align: center;
}

.hero-copy {
    max-width: 46rem;
    margin-inline: auto;
}

.hero-heading {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    letter-spacing: -0.015em;
    color: var(--on-navy);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--on-navy-muted);
    max-width: 38rem;
    margin-inline: auto;
}

.hero .eyebrow {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.16);
}

.hero .btn-ghost {
    color: var(--on-navy);
    border-color: rgba(248, 250, 252, 0.35);
}

.hero .btn-ghost:hover {
    background: rgba(248, 250, 252, 0.1);
    border-color: rgba(248, 250, 252, 0.55);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.hero-media img {
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(248, 250, 252, 0.16);
    margin-inline: auto;
}

.hero-split .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    text-align: left;
}

.hero-split .hero-copy {
    margin-inline: 0;
}

.hero-split .hero-sub {
    margin-inline: 0;
}

.hero-split .hero-ctas {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Cards / feature grid
   -------------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--gold-tint);
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 18px;
    height: 18px;
    flex: none;
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.feature-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Feature spotlight
   -------------------------------------------------------------------------- */
.spotlight-list {
    display: grid;
    gap: var(--space-10);
}

.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.spotlight-row:nth-child(even) .spotlight-media {
    order: 2;
}

.spotlight-media img,
.media-placeholder {
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
}

.media-placeholder {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(70% 90% at 30% 20%, rgba(245, 158, 11, 0.16), transparent 70%),
        radial-gradient(70% 90% at 80% 80%, rgba(30, 41, 59, 0.10), transparent 70%),
        var(--bg-secondary);
}

.spotlight-heading {
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    margin: 0;
}

.stat {
    text-align: center;
    padding: var(--space-5);
}

/* Large display figures: amber-700 range keeps ≥3:1 (large-text AA) on ivory. */
.stat-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(135deg, var(--gold-strong), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-weight: 600;
    margin-top: var(--space-1);
}

.stat-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: var(--space-1) 0 0;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.testimonial-quote {
    margin: 0;
    font-size: 1.05rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
}

.testimonial-author strong {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Logo cloud
   -------------------------------------------------------------------------- */
.logo-cloud-heading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.logo-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo-item img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity var(--transition), filter var(--transition);
}

.logo-item img:hover {
    opacity: 1;
    filter: none;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-highlighted {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
}

.pricing-name {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    font-variant-numeric: tabular-nums;
}

.pricing-period {
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    flex: 1;
    display: grid;
    gap: var(--space-2);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.9375rem;
}

.pricing-features .icon-sm {
    color: var(--accent);
    margin-top: 3px;
}

.pricing-footnote {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq-list {
    display: grid;
    gap: var(--space-3);
}

.faq-item {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    list-style: none;
}

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

.faq-q {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
}

.faq-marker {
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.faq-item[open] .faq-marker {
    transform: rotate(225deg);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-4);
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    text-align: center;
}

.cta-gradient {
    background: var(--brand-gradient-deep);
    color: var(--on-navy);
}

.cta-gradient .cta-heading {
    color: var(--on-navy);
}

.cta-plain {
    background: var(--bg-secondary);
}

.cta-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.cta-text {
    max-width: 36rem;
    margin: 0 auto var(--space-5);
}

.cta-gradient .cta-text {
    color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   Prose (rich text)
   -------------------------------------------------------------------------- */
.prose h2 {
    font-size: 1.6rem;
    margin-top: var(--space-6);
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: var(--space-5);
}

.prose h4 {
    font-size: 1.05rem;
    margin-top: var(--space-4);
}

.prose ul,
.prose ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.4rem;
}

.prose li {
    margin-bottom: var(--space-1);
}

.prose blockquote {
    margin: var(--space-5) 0;
    padding: var(--space-2) var(--space-5);
    border-left: 3px solid var(--gold);
    color: var(--text-secondary);
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--gray-100);
    margin: var(--space-6) 0;
}

.prose b {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Page headers, blog, tags, pagination
   -------------------------------------------------------------------------- */
.page-header {
    padding-block: var(--space-10) var(--space-6);
    text-align: center;
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(245, 158, 11, 0.08), transparent 70%),
        var(--bg-primary);
}

.page-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

.page-intro {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 40rem;
    margin-inline: auto;
}

.post-grid {
    align-items: stretch;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
}

.post-card-title a {
    color: var(--text-primary);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-3);
}

.post-standfirst {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    flex: 1;
}

.post-lede {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin-inline: auto;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.post-card .post-tags {
    justify-content: flex-start;
    margin-bottom: 0;
}

.tag-chip {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.tag-chip:hover {
    text-decoration: none;
    background: rgba(245, 158, 11, 0.24);
}

.tag-filter-note {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.tag-clear {
    margin-left: var(--space-2);
    font-size: 0.875rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.pagination-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-footer {
    padding-block: var(--space-6);
}

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.contact-form {
    display: grid;
    gap: var(--space-4);
    max-width: 34rem;
    margin-inline: auto;
}

.form-field {
    display: grid;
    gap: var(--space-1);
}

.form-field label {
    font-weight: 600;
    font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    font: inherit;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.8rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold-strong);
    box-shadow: var(--shadow-focus);
}

.field-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.field-error {
    color: #c62828;
    font-size: 0.875rem;
    margin: 0;
}

.form-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Honeypot: visually removed but present for bots (not display:none). */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Tables (comparison)
   -------------------------------------------------------------------------- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

.comparison-table thead th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.mark {
    font-weight: 700;
}

.mark-yes { color: #1e7e34; }
.mark-no { color: var(--gray-400); }
.mark-partial { color: #b45309; }

/* --------------------------------------------------------------------------
   Images / embeds
   -------------------------------------------------------------------------- */
.image-figure {
    margin: 0;
}

.image-figure img {
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    margin-inline: auto;
}

.image-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

.embed-figure {
    margin: 0;
}

.embed-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--navy);
}

.embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Footer — navy band
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: var(--on-navy-muted);
    border-top: 0;
    padding-block: var(--space-10) var(--space-6);
    font-size: 0.9375rem;
}

.site-footer .brand,
.site-footer .brand-name {
    color: var(--on-navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-tagline {
    color: var(--on-navy-muted);
    margin-top: var(--space-3);
    max-width: 20rem;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.6);
    margin-bottom: var(--space-3);
}

.footer-list,
.social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.social-list {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.footer-link {
    color: var(--on-navy-muted);
}

.footer-link:hover {
    color: var(--on-navy);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    border-top: 1px solid rgba(248, 250, 252, 0.14);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    color: var(--on-navy-muted);
    font-size: 0.875rem;
}

.footer-smallprint p {
    margin: 0;
}

.footer-copyright {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-split .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-split .hero-copy,
    .hero-split .hero-sub {
        margin-inline: auto;
    }

    .hero-split .hero-ctas {
        justify-content: center;
    }

    .spotlight-row {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .spotlight-row:nth-child(even) .spotlight-media {
        order: 0;
    }

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

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
        padding: var(--space-4) var(--space-5) var(--space-5);
        gap: var(--space-4);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: var(--space-3);
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding-block: var(--space-8);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

/* ── Screenshot lightbox ──────────────────────────────────────────────────
   .lightbox-link wraps content screenshots (hero, spotlight, image blocks) and
   points at the full-size rendition — a working plain link without JS; site.js
   upgrades the click into a native <dialog> overlay. The hover lift is the
   clickability affordance (cursor + motion; no wrapper shadow, so each image's
   own rounded shadow stays artifact-free). */
.lightbox-link {
    display: block;
    cursor: zoom-in;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.lightbox-link:hover {
    transform: translateY(-3px);
}

.lightbox-link:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

dialog.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 94vw;
    max-height: 94vh;
}

dialog.lightbox::backdrop {
    background: rgba(15, 23, 42, 0.82);
}

.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 94vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

html.lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-link:hover {
        transform: none;
    }
}
