/* Caliper - main stylesheet
   Aesthetic: sober, precise, engineering-adjacent.
   Type-led. One accent colour. Restrained. */

/* ── System font stack (self-hosted, no third-party requests) ── */
:root {
    --c-bg: #fafaf9;
    --c-surface: #ffffff;
    --c-surface-hover: #f4f4f5;
    --c-text: #0f172a;
    --c-text-secondary: #475569;
    --c-text-tertiary: #94a3b8;
    --c-accent: #1d4ed8;
    --c-accent-hover: #1e40af;
    --c-accent-light: #eff6ff;
    --c-accent-border: #bfdbfe;
    --c-border: #e2e8f0;
    --c-border-strong: #cbd5e1;
    --c-border-subtle: #f1f5f9;

    /* Dark Hardware & Simulator Tokens (inspired by syv.ai & Linear) */
    --c-dark-shell: #090d16;
    --c-dark-surface: #0f172a;
    --c-dark-card: #141e33;
    --c-dark-border: rgba(255, 255, 255, 0.09);
    --c-dark-border-glow: rgba(59, 130, 246, 0.35);
    --c-dark-text: #f8fafc;
    --c-dark-text-muted: #94a3b8;
    --c-dark-accent: #38bdf8;
    --c-emerald: #10b981;
    --c-emerald-glow: rgba(16, 185, 129, 0.25);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", "Consolas", monospace;

    --content-narrow: 44rem;
    --content-width: 56rem;
    --content-wide: 72rem;
    --gutter: 1.5rem;
    --section-gap: 6.5rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
}

::selection {
    background-color: var(--c-accent);
    color: #ffffff;
}

/* ── Reset & base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.125rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    max-width: 26ch;
}

h2 {
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: var(--c-accent-light);
    border: 1px solid var(--c-accent-border);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}

.section-eyebrow .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--c-emerald-glow);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

p {
    max-width: 60ch;
    margin-bottom: 1.25rem;
    color: var(--c-text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--c-accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

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

/* ── Layout ── */
.site-header {
    max-width: var(--content-wide) !important;
    margin: 0 auto !important;
    padding: 1.5rem var(--gutter) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

main.wp-block-group,
main {
    max-width: var(--content-wide) !important;
    margin: 0 auto !important;
    padding: 0 var(--gutter) var(--section-gap) !important;
}

.reading-container {
    max-width: var(--content-narrow) !important;
    margin-left: auto;
    margin-right: auto;
}

/* ── Header ── */
.site-wordmark {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    text-decoration: none;
}

.site-wordmark:hover {
    color: var(--c-text);
}

.site-nav {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--c-text);
}

.site-nav .lang-switch {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--c-border);
    border-radius: 3px;
    color: var(--c-text-tertiary);
    text-decoration: none;
}

.site-nav .lang-switch:hover {
    border-color: var(--c-border-strong);
    color: var(--c-text-secondary);
}

/* Mobile nav */
.nav-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    cursor: pointer;
    color: var(--c-text);
}

.nav-toggle svg {
    display: block;
}

@media (max-width: 640px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block !important;
    }

    .site-nav {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding-top: 1rem !important;
        border-top: 1px solid var(--c-border) !important;
        margin-top: 1rem !important;
    }

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

    .site-nav a,
    .site-nav .lang-switch {
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--c-border);
        width: 100%;
    }

    .site-nav .lang-switch {
        border: none;
        border-bottom: 1px solid var(--c-border);
        border-radius: 0;
        padding-left: 0;
        margin-top: 0.25rem;
    }
}

/* ── Sections & Components ── */
.section {
    margin-bottom: var(--section-gap);
}

/* ── Hero Grid (Two-Column Interactive Agency Layout) ── */
.section--hero {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-copy h1 {
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
    max-width: 52ch;
    margin-bottom: 1rem;
}

.hero-sublead {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--c-text-secondary);
    max-width: 52ch;
}

/* ── Nested CTA & Island Button Architecture (soft-skill 4.B) ── */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 1.75rem;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.2;
}

.btn-pill--primary {
    background-color: var(--c-text);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-pill--primary:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.btn-icon-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-pill--primary:hover .btn-icon-circle {
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.3);
}

.btn-pill--secondary {
    background-color: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border-strong);
}

.btn-pill--secondary:hover {
    background-color: var(--c-surface);
    border-color: var(--c-text);
    color: var(--c-text);
    transform: translateY(-1px);
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--c-text-secondary);
}

.hero-trust svg {
    color: var(--c-emerald);
    flex-shrink: 0;
}

/* ── Right Column: Double-Bezel Interactive Pipeline Simulator ── */
.pipeline-sim {
    background: var(--c-dark-shell);
    border: 1px solid var(--c-dark-border);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.pipeline-inner {
    background: var(--c-dark-surface);
    border: 1px solid var(--c-dark-border);
    border-radius: calc(var(--radius-xl) - 0.375rem);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-dark-border);
}

.pipeline-dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pipeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.pipeline-dot--red { background: #ef4444; }
.pipeline-dot--yellow { background: #f59e0b; }
.pipeline-dot--green { background: #10b981; }

.pipeline-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-dark-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pipeline-status {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--c-emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.pipeline-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.pipeline-tab {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--c-dark-text-muted);
    padding: 0.5rem 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pipeline-tab:hover {
    color: var(--c-dark-text);
}

.pipeline-tab.is-active {
    background: var(--c-dark-card);
    color: #38bdf8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.pipeline-panels {
    min-height: 235px;
    position: relative;
}

.pipeline-panel {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    animation: panelFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-panel.is-active {
    display: flex;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Visualizer sub-elements inside panels */
.waveform-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-dark-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 72px;
}

.waveform-bar {
    width: 3px;
    background: linear-gradient(180deg, #38bdf8 0%, #1d4ed8 100%);
    border-radius: 2px;
    animation: wavePulse 1.6s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-row:last-child {
    border-bottom: none;
}

.telemetry-key {
    color: var(--c-dark-text-muted);
}

.telemetry-val {
    color: var(--c-dark-text);
    font-weight: 500;
}

.telemetry-val--accent {
    color: #38bdf8;
    font-weight: 600;
}

.telemetry-val--success {
    color: #10b981;
    font-weight: 600;
}

.telemetry-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.pipeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.625rem;
    border-top: 1px solid var(--c-dark-border);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: #64748b;
}

/* ── 4-Column Hero Stats Strip (inspired by syv.ai) ── */
.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0 4rem;
    padding: 1.75rem 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item-val {
    font-family: var(--font-sans);
    font-size: clamp(1.625rem, 2.3vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--c-text);
    line-height: 1.1;
    margin-bottom: 0.375rem;
}

.stat-item-label {
    font-size: 0.8125rem;
    color: var(--c-text-secondary);
    line-height: 1.45;
}

/* ── System Integrations Matrix (inspired by lexii.io) ── */
.integrations-matrix {
    text-align: center;
    margin: 3.5rem 0 5rem;
}

.integrations-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-tertiary);
    margin-bottom: 1.25rem;
}

.integrations-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.integration-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 0.4375rem 0.875rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.integration-pill:hover {
    border-color: var(--c-border-strong);
    color: var(--c-text);
    transform: translateY(-1px);
}

.integration-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
}

/* ── Recognition section ── */
.section--recognition {
    margin: 4.5rem 0;
    padding: 2.5rem 2.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--radius-md);
}

.section--recognition p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--c-text);
    font-weight: 500;
    max-width: 50ch;
    margin-bottom: 0;
}

/* ── Section divider ── */
.section-rule {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: var(--section-gap) 0;
}

/* ── Asymmetrical Bento Grid for Cases & Insights ── */
.section--cases {
    margin-bottom: var(--section-gap);
}

.cases-bento {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 1.75rem;
    margin-top: 2rem;
}

.bento-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.bento-card--featured {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #cbd5e1;
}

.bento-card--featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.bento-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.bento-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.875rem;
    color: var(--c-text);
}

.bento-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bento-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
}

.bento-link:hover {
    color: var(--c-accent-hover);
}

.bento-metrics-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.bento-mini-val {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text);
}

.bento-mini-label {
    font-size: 0.6875rem;
    color: var(--c-text-secondary);
}

/* ── Legacy fallback / single-column cases-grid ── */
.cases-grid {
    display: grid;
    gap: 2rem;
}

.case-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
    border-color: var(--c-border-strong);
    transform: translateY(-2px);
}

/* ── Responsive adjustments for Hero & Bento ── */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
    }

    .cases-bento {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .hero-stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-strip {
        grid-template-columns: 1fr;
    }

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

/* ── Lead capture (the gate) ── */
.section--gate {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-accent);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    margin-bottom: var(--section-gap);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.section--gate h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.section--gate > p {
    margin-bottom: 2.5rem;
    color: var(--c-text-secondary);
}

@media (max-width: 640px) {
    .section--gate {
        padding: 2.5rem var(--gutter);
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        border-left: none;
        border-right: none;
    }
}

/* ── Forms ── */
.caliper-form {
    max-width: 100%;
}

.caliper-form .form-group {
    margin-bottom: 1.5rem;
}

.caliper-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--c-text);
}

.caliper-form input[type="text"],
.caliper-form input[type="email"],
.caliper-form input[type="url"],
.caliper-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: 3px;
    background-color: var(--c-bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.caliper-form input:focus,
.caliper-form textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08);
    background-color: var(--c-surface);
}

.caliper-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 3px;
}

.caliper-form .checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--c-accent);
    flex-shrink: 0;
}

.caliper-form .checkbox-group label {
    font-size: 0.8125rem;
    color: var(--c-text-secondary);
    line-height: 1.45;
    margin-bottom: 0;
    font-weight: 400;
}

.caliper-form button[type="submit"] {
    background-color: var(--c-accent);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.15s ease;
    margin-top: 0.5rem;
}

.caliper-form button[type="submit"]:hover {
    background-color: var(--c-accent-hover);
}

.caliper-form button[type="submit"]:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.privacy-note {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.privacy-note a {
    color: var(--c-text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-note a:hover {
    color: var(--c-text-secondary);
}

/* ── CTA link ── */
.section--cta {
    margin-bottom: var(--section-gap);
}

.section--cta a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.section--cta a::after {
    content: "\2192";
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    display: inline-block;
}

.section--cta a:hover::after {
    transform: translateX(4px);
}

/* ── Footer ── */
.site-footer {
    max-width: var(--content-wide) !important;
    margin: 0 auto !important;
    padding: 4rem var(--gutter) 3rem !important;
    border-top: 1px solid var(--c-border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
}

.site-footer p {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--c-text-secondary);
}

/* ── Services page ── */
.caliper-service {
    padding: 2.25rem 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.caliper-service:hover {
    border-color: var(--c-border-strong);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.caliper-service h2 {
    font-size: 1.375rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.caliper-price {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--c-accent);
    margin-top: 1.25rem;
    margin-bottom: 0;
    display: inline-block;
    background: var(--c-accent-light);
    border: 1px solid var(--c-accent-border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

/* ── Governance Accordion (Interactive disclosure) ── */
.caliper-governance-questions {
    margin: 2.5rem 0;
}

.method-accordion {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.method-accordion:hover {
    border-color: var(--c-border-strong);
}

.method-accordion[open] {
    border-color: var(--c-accent-border);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.06);
}

.method-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--c-text);
    user-select: none;
    gap: 1rem;
}

.method-accordion summary::-webkit-details-marker {
    display: none;
}

.method-accordion summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--c-text-tertiary);
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.2s ease;
}

.method-accordion[open] summary::after {
    content: "−";
    color: var(--c-accent);
}

.method-accordion .method-answer {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    color: var(--c-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 62ch;
}

/* ── Case Story & Metrics ── */
.case-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .case-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .case-metrics {
        grid-template-columns: 1fr;
    }
}

.case-metric-val {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--c-text);
}

.case-metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--c-text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* ── Autonomy ladder SVG ── */
.caliper-autonomy-ladder {
    margin: var(--section-gap) 0;
}

.caliper-autonomy-ladder h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.caliper-autonomy-ladder svg {
    max-width: 100%;
    height: auto;
}

/* ── Declined service line ── */
.caliper-declined-service {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}

.caliper-declined-service p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-text);
    max-width: 45ch;
}

/* ── Contact page columns ── */
.caliper-contact-info p {
    font-size: 1rem;
}

/* ── Career page ── */
.caliper-career-intro {
    margin-bottom: 2.5rem;
}

/* ── Case story (full case page) ── */
.caliper-case-story {
    padding: 3rem 2.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 3.5rem;
}

.caliper-case-story:last-child {
    margin-bottom: 0;
}

.caliper-case-story h2 {
    margin-bottom: 1.25rem;
}

/* ── WP Block overrides (keep block theme from overriding our layout) ── */
/* Surgical: only reset non-section groups so .section--gate padding is preserved */
.wp-block-group:not(.section--gate):not(.case-card) {
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.wp-block-heading {
    margin-bottom: 1rem !important;
}

.wp-block-buttons {
    margin-top: 0 !important;
}

.wp-block-list {
    padding-left: 0 !important;
}

.wp-block-button__link {
    background-color: var(--c-accent) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    padding: 0.875rem 2.25rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    font-family: inherit !important;
    transition: background-color 0.15s ease !important;
}

.wp-block-button__link:hover {
    background-color: var(--c-accent-hover) !important;
}

/* WP columns responsive */
@media (max-width: 640px) {
    .wp-block-columns {
        flex-direction: column !important;
    }
}

/* ── Hide WP admin bar for visitors (logged-in only) ── */
body.admin-bar .site-header {
    margin-top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        margin-top: 46px;
    }
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Print Styles ── */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }

    .site-header,
    .site-footer,
    .section--cta,
    .caliper-form {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
        color: #52525b;
    }

    .section--gate {
        border: 1px solid #000000;
        box-shadow: none;
    }
}
