/*
Theme Name:  Waymark
Theme URI:   https://github.com/taylorgrantfordham/directorygen
Author:      Waymark
Description: Marketing theme for Waymark. Designed for Simply Static export to a CDN.
Version:     2.0.0
License:     Private
Text Domain: directorygen
*/

/* ═══════════════════════════════════════════════════════════════════
   0. WEBFONTS — self-hosted
   Served from our own origin, not fonts.gstatic.com. Loading webfonts
   from Google discloses every visitor's IP address to a third country
   on page load, with no consent and no legitimate-interest case that
   survives contact with a site that could just host the files. See
   fonts/README.md for sources and licences.

   Variable files: one face covers a weight range, so DM Sans 400–700
   and Syne 700–800 are a single download each.
   ═══════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin-ext-400-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin-400-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibm-plex-mono-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ibm-plex-mono-latin-ext-500.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('fonts/syne-latin-ext-700-800.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('fonts/syne-latin-700-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════════════════
   1. TOKENS
   Neutrals are cool-tinted so they sit under the navy without going
   muddy. Every value in the "text" band meets WCAG AA on its intended
   background — see the comments, they are the reason the values are
   not rounder numbers.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Brand */
    --brand:       #2d4470;
    --brand-mid:   #4a6fa5;
    --brand-deep:  #1e2f52;
    --brand-dark:  #101a30;
    --brand-light: #eaf0f8;
    --brand-tint:  #f6f9fc;
    /* --brand-mid is a background colour; on dark surfaces it only reaches
       3.4:1 as text, so accents there use this instead. */
    --brand-on-dark: #8ab0e8;

    /* Accent — used sparingly, for signals only (steps, live dots, rules) */
    --accent:      #b45309;
    --accent-soft: #fdf3e3;

    /* Neutrals */
    --n0:   #ffffff;
    --n25:  #fbfcfd;
    --n50:  #f6f8fa;
    --n100: #eef1f5;
    --n200: #e0e5ec;
    --n300: #c8d0da;
    --n400: #8a95a3;  /* 3.0:1 on white — large text & non-text only */
    --n500: #64707f;  /* 5.0:1 on white — smallest safe body/meta colour */
    --n600: #4b5563;
    --n700: #374151;
    --n800: #212933;
    --n900: #12171d;

    /* Text on dark surfaces. .5 is the floor: below that it fails AA
       even against --brand-dark. */
    --on-dark-1: #ffffff;
    --on-dark-2: rgba(255, 255, 255, .72);
    --on-dark-3: rgba(255, 255, 255, .52);
    --on-dark-line: rgba(255, 255, 255, .12);

    /* Status */
    --ok:      #15803d;
    --ok-dark: #4ade80;
    --warn:    #b45309;
    --warn-dark: #fbbf24;

    /* Type */
    --fd: 'Syne', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fb: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --fm: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Layout */
    --max-w:   1180px;
    --max-txt: 68ch;
    --gutter:  clamp(20px, 5vw, 64px);
    --radius:  14px;
    --radius-sm: 9px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(16, 26, 48, .05);
    --shadow-md: 0 8px 28px rgba(30, 47, 82, .08);
    --shadow-lg: 0 28px 80px rgba(16, 26, 48, .28);

    --header-h: 60px;
}

/* ═══════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    /* Anchor targets clear the fixed header instead of hiding under it. */
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}
/* Pages with the sticky jump nav need to clear that too. */
html:has(.jumpnav) {
    scroll-padding-top: calc(var(--header-h) + 62px);
}

body {
    font-family: var(--fb);
    background: var(--n0);
    color: var(--n800);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--brand); color: #fff; }

/* Visible, consistent focus. Never remove without replacing. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}
.cta-section :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
    left: 1rem; top: 1rem; z-index: 999;
    background: var(--brand); color: #fff;
    padding: .55rem 1.1rem; border-radius: 6px;
    text-decoration: none; font-weight: 600;
}

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

/* ═══════════════════════════════════════════════════════════════════
   3. HEADER / NAV
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--header-h);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border-bottom: 1px solid var(--n200);
}
@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: #fff; }
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    gap: 8px;
}

.site-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.site-logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.site-logo-name {
    font-family: var(--fd); font-weight: 800; font-size: 17px;
    color: var(--n900); letter-spacing: -.02em;
}

.nav-links { display: flex; gap: 2px; margin-left: 28px; }
.nav-links a {
    display: block;
    font-size: 14px; font-weight: 500; color: var(--n600);
    text-decoration: none; padding: 7px 13px;
    border-radius: 7px; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--n900); background: var(--n100); }
.nav-links .current-menu-item > a { color: var(--n900); font-weight: 600; }

.nav-ctas { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    border-radius: 8px; margin-left: auto;
}
.nav-toggle-bar {
    display: block; width: 20px; height: 2px;
    background: var(--n800); border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 199;
    background: #fff;
    border-bottom: 1px solid var(--n200);
    padding: .5rem var(--gutter) 1.25rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { margin-bottom: 1rem; }
.nav-mobile ul li { border-bottom: 1px solid var(--n100); }
.nav-mobile ul a {
    display: block; padding: .75rem 0;
    font-size: .9375rem; color: var(--n700);
    text-decoration: none; font-weight: 500;
}
.nav-mobile ul a:hover { color: var(--brand); }
.nav-mobile-ctas { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   4. BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: 8px;
    font-family: var(--fb);
    font-size: 14px; font-weight: 600;
    letter-spacing: -.01em; line-height: 1.2;
    cursor: pointer; border: 1px solid transparent;
    text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary { background: var(--n0); color: var(--n800); border-color: var(--n300); }
.btn-secondary:hover { background: var(--n50); border-color: var(--n400); }

.btn-ghost { background: transparent; color: var(--n700); }
.btn-ghost:hover { background: var(--n100); color: var(--n900); }

/* On dark surfaces */
.btn-invert { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-invert:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-invert:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 9px; }
.btn-xl { padding: 15px 32px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   5. SECTION SCAFFOLDING
   ═══════════════════════════════════════════════════════════════════ */
.section { padding: clamp(60px, 8vw, 104px) var(--gutter); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section--alt  { background: var(--n50); border-block: 1px solid var(--n200); }
.section--tint { background: var(--brand-tint); border-block: 1px solid var(--n200); }
.section--dark { background: var(--brand-dark); color: var(--on-dark-2); }

/* One reusable heading block, replacing six copies of inline styles. */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 14px;
}
.section-label::before {
    content: ''; width: 18px; height: 2px;
    background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.section-head--center .section-label::before { display: none; }

.section-title {
    font-family: var(--fd); font-weight: 800;
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -.035em; line-height: 1.08;
    color: var(--n900); text-wrap: balance;
}
.section-sub {
    font-size: 17px; color: var(--n600);
    line-height: 1.65; margin-top: 16px;
    text-wrap: pretty;
}
.section--dark .section-title { color: #fff; }
.section--dark .section-label { color: var(--on-dark-2); }
.section--dark .section-sub  { color: var(--on-dark-2); }

/* ═══════════════════════════════════════════════════════════════════
   6. HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero-wrap {
    background: var(--n0);
    border-bottom: 1px solid var(--n200);
    overflow: hidden;
    position: relative;
    padding-top: var(--header-h);
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--n200) 1px, transparent 1px),
        linear-gradient(90deg, var(--n200) 1px, transparent 1px);
    background-size: 38px 38px;
    /* Fades out rather than stopping at a hard edge. */
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 15%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 30% 15%, #000 20%, transparent 75%);
    opacity: .7;
}
.hero-glow {
    position: absolute; top: -120px; left: 0; right: 0; height: 620px;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 0%, rgba(45, 68, 112, .14) 0%, transparent 62%);
}
.hero {
    max-width: var(--max-w); margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(56px, 7vw, 88px);
    display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: clamp(36px, 4vw, 56px);
    align-items: center;
    position: relative; z-index: 1;
}

/* Single-column hero, used by the features template */
.hero--single {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: clamp(44px, 5vw, 64px);
}
.hero--single .hero-content { max-width: 760px; margin: 0 auto; }
.hero--single .hero-sub { max-width: 60ch; margin-inline: auto; }
.hero--single .hero-ctas { justify-content: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 10px; border-radius: 20px;
    background: var(--brand-light);
    border: 1px solid #d4e0f0;
    margin-bottom: 22px;
}
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok); flex-shrink: 0;
}
.hero-badge-text { font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: -.005em; }

.hero-title {
    font-family: var(--fd); font-weight: 800;
    font-size: clamp(36px, 4.4vw, 52px);
    /* Was -.045em/0.95 — too tight to read at size. */
    letter-spacing: -.035em; line-height: 1.06;
    color: var(--n900); margin-bottom: 20px;
    text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--brand); }

.hero-sub {
    font-size: 18px; color: var(--n600);
    line-height: 1.6; max-width: 46ch; margin-bottom: 28px;
    text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
    margin-top: 18px; font-size: 13px; color: var(--n500);
    display: flex; align-items: center; gap: 7px;
}

/* ── Hero visual: an example of what one build produces ────────────
   Replaces the old fake admin dashboard. This is illustrative and is
   labelled as such in the markup. */
.pagetree {
    background: var(--brand-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .07);
    overflow: hidden;
    font-family: var(--fm);
}
.pagetree-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, .25);
    border-bottom: 1px solid var(--on-dark-line);
}
.pagetree-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pagetree-host {
    margin-left: 6px; font-size: 11px; color: var(--on-dark-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pagetree-tag {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--fb); font-size: 10px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--ok-dark);
}
.pagetree-tag::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok-dark);
}
.pagetree-body { padding: 16px 18px 18px; }
.pagetree-row {
    display: flex; align-items: baseline; gap: 12px;
    padding: 6px 0; font-size: 12px; line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.pagetree-row:last-child { border-bottom: none; }
.pagetree-path { color: var(--on-dark-2); white-space: nowrap; }
.pagetree-path b { color: #fff; font-weight: 500; }
.pagetree-what {
    margin-left: auto; text-align: right;
    font-family: var(--fb); font-size: 11px; color: var(--on-dark-3);
    white-space: nowrap;
}
.pagetree-n { color: var(--brand-on-dark); font-family: var(--fm); font-weight: 500; }
.pagetree-foot {
    margin-top: 14px; padding-top: 13px;
    border-top: 1px solid var(--on-dark-line);
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; flex-wrap: wrap;
    font-family: var(--fb); font-size: 11px; color: var(--on-dark-3);
}
.pagetree-foot b { color: #fff; font-family: var(--fd); font-size: 15px; font-weight: 800; letter-spacing: -.02em; }

/* ═══════════════════════════════════════════════════════════════════
   7. CAPABILITY BAR
   ═══════════════════════════════════════════════════════════════════ */
.stats-bar {
    border-bottom: 1px solid var(--n200);
    background: var(--brand-tint);
    padding: 30px var(--gutter);
}
.stats-bar-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item { text-align: center; }
.stat-value {
    font-family: var(--fd); font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800; color: var(--brand);
    letter-spacing: -.03em; line-height: 1.1; margin-bottom: 5px;
    text-wrap: balance;
}
.stat-label { font-size: 13px; color: var(--n500); font-weight: 500; line-height: 1.45; }

/* ═══════════════════════════════════════════════════════════════════
   8. THE LOOP — the product's actual shape, as a strip
   ═══════════════════════════════════════════════════════════════════ */
.loop {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0; counter-reset: loop;
    border: 1px solid var(--n200); border-radius: var(--radius);
    background: var(--n0); overflow: hidden;
}
.loop-step {
    padding: 26px 22px;
    border-right: 1px solid var(--n200);
    position: relative;
}
.loop-step:last-child { border-right: none; }
.loop-step-n {
    counter-increment: loop;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 7px;
    background: var(--accent-soft); color: var(--accent);
    /* Body face, not display: Syne's figures are stylised enough that a
       small "2" reads as an equals sign. */
    font-family: var(--fb); font-weight: 700; font-size: 13px;
    margin-bottom: 14px;
}
.loop-step-n::before { content: counter(loop); }
.loop-step h3 {
    font-family: var(--fd); font-size: .95rem; font-weight: 700;
    letter-spacing: -.02em; color: var(--n900); margin-bottom: 7px;
}
.loop-step p { font-size: .85rem; color: var(--n600); line-height: 1.55; }
.loop-step--last { background: var(--brand-light); }

/* ═══════════════════════════════════════════════════════════════════
   8b. JUMP NAV (features template)
   Sticks under the fixed header and scrolls horizontally on narrow
   screens rather than wrapping into a wall of links.
   ═══════════════════════════════════════════════════════════════════ */
.jumpnav {
    position: sticky; top: var(--header-h); z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--n200);
}
@supports not (backdrop-filter: blur(1px)) {
    .jumpnav { background: #fff; }
}
.jumpnav-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.jumpnav-inner::-webkit-scrollbar { display: none; }
.jumpnav a {
    flex-shrink: 0;
    padding: 13px 14px;
    font-size: 13px; font-weight: 500;
    color: var(--n500); text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.jumpnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════
   9. FEATURE GRID
   ═══════════════════════════════════════════════════════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--n0);
    border: 1px solid var(--n200);
    border-radius: var(--radius);
    padding: 26px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c3d1e6;
    transform: translateY(-2px);
}
.feature-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-title {
    font-family: var(--fd); font-size: 1rem; font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 8px; color: var(--n900);
}
.feature-desc { font-size: .9rem; color: var(--n600); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   10. SPOTLIGHTS
   ═══════════════════════════════════════════════════════════════════ */
.spotlight {
    background: var(--n50);
    border-block: 1px solid var(--n200);
    padding: clamp(56px, 7vw, 88px) var(--gutter);
}
.spotlight--plain { background: var(--n0); }
.spotlight-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 64px); align-items: center;
}
/* Reverses column order without the RTL trick, which broke text
   selection and inherited direction into children. */
.spotlight-inner.rev > .spot-copy { order: 2; }
.spotlight-inner.rev > .spot-vis  { order: 1; }

.spot-eye {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: var(--brand);
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.spot-eye::before {
    content: ''; width: 18px; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.spot-h2 {
    font-family: var(--fd); font-size: clamp(24px, 3vw, 34px);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
    color: var(--n900); margin-bottom: 14px; text-wrap: balance;
}
.spot-p { font-size: 16px; color: var(--n600); line-height: 1.7; margin-bottom: 22px; text-wrap: pretty; }

.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 14.5px; color: var(--n700); line-height: 1.55;
}
.chk {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.chk::after {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--brand);
}

.spot-vis {
    background: var(--brand-light);
    border: 1px solid #cddaeb;
    border-radius: var(--radius);
    overflow: hidden;
}
.spot-vis--dark { background: var(--brand-dark); border-color: rgba(255, 255, 255, .1); }

/* Terminal-style log block inside a spotlight */
.log { padding: 22px; font-family: var(--fm); font-size: 11.5px; line-height: 1.9; }
.log-title {
    font-family: var(--fb); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--on-dark-3); margin-bottom: 14px;
}
.log-line { color: var(--on-dark-2); display: flex; gap: 9px; }
.log-line .ok   { color: var(--ok-dark); flex-shrink: 0; }
.log-line .run  { color: var(--warn-dark); flex-shrink: 0; }
.log-dim { color: var(--on-dark-3); }
.log-note {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--on-dark-line);
    font-family: var(--fb); font-size: 11px; color: var(--on-dark-3);
}

/* Brand-list visual */
.bc-pad { padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.bc-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    background: #fff; border: 1px solid var(--n200);
}
.bc-row.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.bc-dot { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.bc-body { flex: 1; min-width: 0; }
/* Spans, so they need to be told to stack. */
.bc-name { display: block; font-weight: 600; font-size: 13px; color: var(--n900); }
.bc-domain { display: block; font-size: 11px; color: var(--n500); font-family: var(--fm); }
.bc-count {
    font-size: 11px; font-weight: 600;
    background: var(--brand-light); color: var(--brand);
    padding: 3px 9px; border-radius: 10px; white-space: nowrap;
}
.bc-row.on .bc-count { background: var(--brand); color: #fff; }

/* Leaderboard visual */
.lb { padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.lb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 13px; border-radius: 9px;
    background: #fff; border: 1px solid var(--n200);
    font-size: 13px;
}
.lb-rank {
    font-family: var(--fb); font-weight: 700; font-size: 13px;
    color: var(--n500); width: 20px; flex-shrink: 0;
}
.lb-row:first-child .lb-rank { color: var(--accent); }
.lb-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--n800); }
/* Not mono: at this size Plex Mono's "lb" reads as "1b", which is a poor
   look on a board about weights. Tabular figures keep it aligned. */
.lb-metric {
    font-family: var(--fb); font-weight: 600; font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    color: var(--n900); white-space: nowrap;
}
.lb-badge {
    font-size: 10px; font-weight: 600; padding: 2px 7px;
    border-radius: 10px; white-space: nowrap;
    background: #dcfce7; color: var(--ok);
}
.lb-badge--self { background: var(--n100); color: var(--n600); }

/* ═══════════════════════════════════════════════════════════════════
   11. CHIPS (verticals)
   ═══════════════════════════════════════════════════════════════════ */
.chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; max-width: 800px; margin: 0 auto;
}
.chip {
    display: inline-block; padding: 8px 16px;
    background: var(--n0); border: 1px solid var(--n300);
    border-radius: 24px; font-size: .875rem;
    font-weight: 500; color: var(--n700);
}
.chip--muted {
    background: transparent; border-style: dashed;
    color: var(--n500);
}

/* ═══════════════════════════════════════════════════════════════════
   12. PLANS — the listing tiers that ship with every directory
   ═══════════════════════════════════════════════════════════════════ */
.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; align-items: stretch;
}
.pricing-card {
    background: var(--n0);
    border: 1px solid var(--n200);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex; flex-direction: column;
    /* Every card is a positioning context — any card may carry a badge,
       and an unpositioned one lets the badge escape to the section. */
    position: relative;
}
.pricing-card--featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}
.pricing-featured-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 11px; border-radius: 20px;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.pricing-name {
    font-family: var(--fd); font-size: .8rem; font-weight: 700;
    letter-spacing: .04em; color: var(--n500);
    text-transform: uppercase; margin-bottom: 10px;
}
.pricing-price {
    font-family: var(--fd); font-size: clamp(28px, 3vw, 38px);
    font-weight: 800; letter-spacing: -.04em;
    color: var(--n900); line-height: 1;
}
.pricing-period { font-size: 12.5px; color: var(--n500); margin-top: 5px; margin-bottom: 8px; }
.pricing-desc {
    font-size: .8125rem; color: var(--n600); line-height: 1.5;
    padding-bottom: 16px; margin-bottom: 4px;
    border-bottom: 1px solid var(--n100);
    min-height: 3.6em;
}
.pricing-features { margin-bottom: 20px; flex: 1; }
.pricing-features li {
    font-size: .8125rem; color: var(--n700);
    padding: .4rem 0;
    display: flex; gap: .5rem; align-items: flex-start; line-height: 1.45;
}
.pricing-check { color: var(--ok); flex-shrink: 0; font-weight: 700; }
/* Excluded rows still have to be readable — "greyed out" is not a licence
   to drop below AA. The tier difference is carried by the ✓/× and the
   weight, not by making the text hard to see. */
.pricing-x { color: var(--n500); flex-shrink: 0; font-weight: 700; }
.pricing-features li.off { color: var(--n500); }

.plan-note {
    margin-top: 28px; padding: 20px 24px;
    background: var(--brand-light); border: 1px solid #cddaeb;
    border-radius: var(--radius);
    font-size: .9375rem; color: var(--n700); line-height: 1.65;
}
.plan-note strong { color: var(--n900); }

/* ═══════════════════════════════════════════════════════════════════
   13. SPEC INDEX — the dense "everything it does" list
   ═══════════════════════════════════════════════════════════════════ */
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 40px;
}
.spec-group h3 {
    font-family: var(--fd); font-size: .8rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--n200);
}
.spec-list li {
    font-size: .875rem; color: var(--n600);
    line-height: 1.5; padding: 5px 0 5px 16px;
    position: relative;
}
.spec-list li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--n300);
}
.spec-list b { color: var(--n800); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   14. FAQ
   ═══════════════════════════════════════════════════════════════════ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--n200);
}
.faq-item summary {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; cursor: pointer; list-style: none;
    padding: 20px 0;
    font-family: var(--fd); font-size: 1.0625rem; font-weight: 700;
    letter-spacing: -.02em; color: var(--n900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; flex-shrink: 0; margin-top: 7px;
    width: 11px; height: 11px;
    border-right: 2px solid var(--n400);
    border-bottom: 2px solid var(--n400);
    transform: rotate(45deg);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-answer {
    padding: 0 0 22px; font-size: .9375rem;
    color: var(--n600); line-height: 1.7; max-width: 65ch;
}
.faq-answer p + p { margin-top: .9rem; }
.faq-answer a { color: var(--brand); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   15. CTA
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
    background: var(--brand-dark);
    padding: clamp(60px, 8vw, 100px) var(--gutter);
    text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
}
.cta-section-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title {
    font-family: var(--fd); font-size: clamp(28px, 4vw, 42px);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.1;
    color: #fff; margin-bottom: 16px; text-wrap: balance;
}
.cta-sub { font-size: 17px; color: var(--on-dark-2); margin-bottom: 32px; text-wrap: pretty; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-foot { margin-top: 22px; font-size: 13px; color: var(--on-dark-3); }
.cta-foot a { color: var(--on-dark-2); }

/* ═══════════════════════════════════════════════════════════════════
   16. FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--brand-dark);
    border-top: 1px solid var(--on-dark-line);
    padding: 56px var(--gutter) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid var(--on-dark-line);
    margin-bottom: 28px;
}
.footer-brand-name {
    font-family: var(--fd); font-size: 17px; font-weight: 800;
    color: #fff; letter-spacing: -.02em; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.footer-brand-mark {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-brand-desc { font-size: .875rem; color: var(--on-dark-3); line-height: 1.6; max-width: 260px; }
.footer-col-title {
    font-size: .75rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col a {
    font-size: .875rem; color: var(--on-dark-2);
    text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
/* Statutory trading disclosures — small, but must stay legible. */
.footer-legal {
    font-size: .8125rem; line-height: 1.6;
    color: var(--on-dark-3);
    max-width: 80ch; margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--on-dark-line);
}
.footer-legal a { color: var(--on-dark-2); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
    font-size: .8125rem; color: var(--on-dark-3);
}
.footer-bottom a { color: var(--on-dark-3); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   17. PAGE / POST TEMPLATES
   ═══════════════════════════════════════════════════════════════════ */
.page-hero {
    background: var(--brand-dark);
    padding: calc(var(--header-h) + 48px) var(--gutter) 56px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 70% 50%, rgba(74, 111, 165, .3) 0%, transparent 65%);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-hero-meta {
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--on-dark-3);
    margin-bottom: 14px; display: flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
}
.page-hero-meta a { color: var(--on-dark-2); text-decoration: none; }
.page-hero-meta a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 {
    font-family: var(--fd); font-size: clamp(28px, 4vw, 50px);
    font-weight: 800; letter-spacing: -.035em; color: #fff;
    line-height: 1.1; max-width: 20ch; text-wrap: balance;
}
.page-hero .hero-sub { color: var(--on-dark-2); margin-bottom: 0; }

/* 404 */
.page-hero--tall { min-height: 68vh; display: flex; align-items: center; }
.page-hero-inner--center { text-align: center; width: 100%; }
.page-hero-inner--center h1 { max-width: none; }
.error-code {
    font-family: var(--fd); font-size: clamp(60px, 10vw, 112px);
    font-weight: 800; letter-spacing: -.05em; line-height: 1;
    color: rgba(255, 255, 255, .11); user-select: none; margin-bottom: 10px;
}
.error-text {
    color: var(--on-dark-2); font-size: 1.0625rem;
    max-width: 46ch; margin: 16px auto 32px;
}

.post-featured-image {
    max-width: 800px; margin: -48px auto 0;
    padding: 0 var(--gutter);
    position: relative; z-index: 2;
}
.post-featured-image img {
    width: 100%; border-radius: var(--radius);
    max-height: 460px; object-fit: cover;
    border: 1px solid var(--n200);
}

.entry-content {
    max-width: var(--max-txt);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gutter);
    font-size: 1.0625rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--fd); letter-spacing: -.025em;
    color: var(--n900); margin-top: 2.25rem; margin-bottom: .75rem;
    line-height: 1.2; text-wrap: balance;
}
.entry-content h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; }
.entry-content p { margin-bottom: 1.25rem; color: var(--n700); line-height: 1.75; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--brand-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin-bottom: 1.25rem; color: var(--n700); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .45rem; line-height: 1.7; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.75rem 0; }
.entry-content blockquote {
    border-left: 3px solid var(--brand);
    padding: .25rem 0 .25rem 1.25rem;
    margin: 1.75rem 0; color: var(--n600); font-style: italic;
}
.entry-content code {
    font-family: var(--fm); font-size: .875em;
    background: var(--n100); padding: .15em .4em;
    border-radius: 4px; color: var(--n800);
}
.entry-content pre {
    background: var(--brand-dark); color: var(--on-dark-2);
    padding: 1.25rem; border-radius: var(--radius-sm);
    overflow-x: auto; margin: 1.5rem 0; font-size: .875rem;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.entry-content th, .entry-content td { padding: .6rem .75rem; border: 1px solid var(--n200); text-align: left; }
.entry-content th { background: var(--n50); font-weight: 600; }
.entry-content hr { border: none; border-top: 1px solid var(--n200); margin: 2.5rem 0; }

.content-wrap {
    max-width: var(--max-w); margin: 0 auto;
    padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
}

/* Blog cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.post-card {
    background: #fff; border: 1px solid var(--n200);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: #c3d1e6; transform: translateY(-2px); }
.post-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--n100); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-card-meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--n500); }
.post-card-title {
    font-family: var(--fd); font-size: 1.1rem; font-weight: 700;
    color: var(--n900); line-height: 1.35;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt { font-size: .9375rem; color: var(--n600); line-height: 1.6; flex: 1; }
.post-card-more { align-self: flex-start; font-size: .875rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.post-card-more:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 80px 0; color: var(--n500); }
.empty-state p { font-size: 1.125rem; margin-bottom: 20px; }

/* Search */
.search-head { margin-bottom: 36px; }
.search-head h1 {
    font-family: var(--fd); font-size: clamp(24px, 3vw, 34px);
    font-weight: 800; letter-spacing: -.03em; color: var(--n900);
}
.search-head h1 em { font-style: normal; color: var(--brand); }
.search-count { font-size: .9375rem; color: var(--n500); margin-top: 8px; }
.search-results { display: flex; flex-direction: column; gap: 16px; }
.search-result {
    background: var(--n0); border: 1px solid var(--n200);
    border-radius: var(--radius); padding: 22px 24px;
    transition: border-color .2s, box-shadow .2s;
}
.search-result:hover { border-color: #c3d1e6; box-shadow: var(--shadow-md); }
.search-result-title {
    font-family: var(--fd); font-size: 1.125rem; font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 6px;
}
.search-result-title a { color: var(--n900); text-decoration: none; }
.search-result-title a:hover { color: var(--brand); }
.search-result-meta { font-size: .8125rem; color: var(--n500); margin-bottom: 8px; }
.search-result-excerpt { font-size: .9375rem; color: var(--n600); line-height: 1.65; }

/* Pagination — scoped so it cannot collide with the header's .nav-links */
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; margin-left: 0; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 8px; font-size: .875rem; font-weight: 600;
    color: var(--n600); text-decoration: none;
    border: 1px solid var(--n200); background: var(--n0);
    transition: border-color .15s, color .15s, background-color .15s;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); background: var(--n0); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

/* Comments */
.comments-area { max-width: var(--max-txt); margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.comments-area h2, .comments-area h3 {
    font-family: var(--fd); font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 1.25rem; color: var(--n900);
}
.comment-list li { margin-bottom: 1.5rem; }
.comment-body {
    background: var(--n50); border: 1px solid var(--n200);
    border-radius: var(--radius-sm); padding: 1.25rem;
}
.comment-meta { font-size: .8125rem; color: var(--n500); margin-bottom: .5rem; }
.comment-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; color: var(--n700); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
    width: 100%; padding: .65rem .85rem;
    border: 1px solid var(--n300); border-radius: var(--radius-sm);
    font-family: var(--fb); font-size: .9375rem; color: var(--n900);
    background: var(--n0); margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus, .search-field:focus {
    border-color: var(--brand);
}
.comment-form input[type="submit"], .search-submit {
    background: var(--brand); color: #fff; border: none;
    padding: .7rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.comment-form input[type="submit"]:hover, .search-submit:hover { background: var(--brand-deep); }

.page-links { display: flex; gap: .5rem; align-items: center; margin-top: 2rem; font-size: .9375rem; }

/* ═══════════════════════════════════════════════════════════════════
   18. MOTION
   Content must never depend on JavaScript to become visible. The hidden
   state is applied only once .js is on <html>, and is skipped entirely
   for anyone who asks for reduced motion.
   ═══════════════════════════════════════════════════════════════════ */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
    will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   19. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .loop { grid-template-columns: repeat(2, 1fr); }
    .loop-step { border-bottom: 1px solid var(--n200); }
    .loop-step:nth-child(2n) { border-right: none; }
}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 44px; }
    /* The visual now stays — it scales instead of disappearing. */
    .hero-visual { max-width: 560px; }
    .hero-sub { max-width: 54ch; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .spotlight-inner, .spotlight-inner.rev { grid-template-columns: 1fr; }
    .spotlight-inner.rev > .spot-copy,
    .spotlight-inner.rev > .spot-vis { order: 0; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
    .nav-links, .nav-ctas { display: none; }
    .nav-toggle { display: flex; }
    .loop { grid-template-columns: 1fr; }
    .loop-step { border-right: none; }
    .loop-step:last-child { border-bottom: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-desc { min-height: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 340px; }
    .pagetree-what { display: none; }
    .page-hero h1 { max-width: none; }
}

@media (max-width: 420px) {
    .stats-bar-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   20. PRINT
   ═══════════════════════════════════════════════════════════════════ */
@media print {
    .site-header, .nav-mobile, .cta-section, .site-footer, .hero-visual { display: none !important; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
    body { color: #000; background: #fff; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
