/* ============================================================
   home.css — Marketing landing page styles for MapOutcomes
   ============================================================ */

/* ---- Reset section defaults (global section styles in header.css interfere) ----
   Use section.home-X specificity (0,1,1) to beat the global `section` rule (0,0,1).
   We explicitly set every background here rather than resetting to transparent,
   so each section's colour is authoritative. ---- */
section.home-hero,
section.home-section {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    animation: none;
    /* Top: consistent title offset from section edge. Bottom: compact so the scroll-hint arrow sits close to last content. */
    padding: clamp(60px, 8vh, 100px) 0 clamp(48px, 6vh, 72px);
}

/* Repurpose the global section::before (compass SVG) into a full-cover subtle grid overlay */
section.home-hero::before,
section.home-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px);
    background-size: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* Light sections — use dark grid lines instead */
section.home-problem::before,
section.home-features::before {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px);
}

/* Dark sections — use light grid lines (home-how joined this group when it moved to a
   dark photo-background treatment, see "Photo backgrounds" block below) */
section.home-solution::before,
section.home-how::before,
section.home-cta::before {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255,255,255,0.03) 44px, rgba(255,255,255,0.03) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(255,255,255,0.03) 44px, rgba(255,255,255,0.03) 45px);
}

/* Section backgrounds — explicit at (0,1,1) specificity */
/* Hero manages its own spacing via .home-hero-content padding — reset section-level padding */
/* Position relative kept for ::before pseudo-elements; background values moved to dedicated blocks below to avoid duplication. */
/* padding-top reserves space for the fixed, transparent navbar (--navbar-height, header.css) so
   the flex-centered hero content below can never rise above it on short viewports — this rule's
   (0,1,1) specificity beats the plain .home-hero class rule, so the override has to live here. */
section.home-hero        { position: relative; padding: var(--navbar-height) 0 0; }
section.home-problem     { position: relative; }
section.home-solution    { position: relative; }
section.home-features    { position: relative; }
section.home-how         { position: relative; }
section.home-cta         { position: relative; }

/* ---- Photo backgrounds (Our Approach / Getting Started / Get Started Today) ----
   Agent-picked, vertical-agnostic Unsplash photos (vertical_code = shared, see
   website-image.php) sit behind a dark tint so the section's existing light-on-dark
   text/graphics keep reading clearly no matter how bright the source photo is.
   .home-container gets its own stacking context (z-index above both layers) so its
   normal-flow content — which would otherwise paint UNDER the absolutely-positioned
   image/overlay despite their z-index:0 — is guaranteed to stay on top. ---- */
.section-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-solution .home-container,
.home-how .home-container,
.home-cta .home-container {
    position: relative;
    z-index: 1;
}

.home-solution .section-bg-overlay { background: rgba(26, 31, 34, 0.86); }
.home-how .section-bg-overlay      { background: rgba(20, 26, 28, 0.80); }
.home-cta .section-bg-overlay      {
    background: linear-gradient(135deg, rgba(10, 122, 140, 0.88) 0%, rgba(26, 74, 48, 0.88) 100%);
}

/* Override global h2 top margin inside landing sections */
.home-section h2,
.home-hero h2 {
    margin-top: 0;
}

/* ============================================================
   S1 — HERO
   ============================================================ */

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--topographic-teal) 0%, var(--contour-green) 100%);
}

#tensor-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Photo hero variant — engineering only for now (heroImage present). Same
   positioning as #tensor-canvas above; the <img> takes its place behind
   the same .hero-overlay gradient. */
.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(5, 15, 20, 0.20) 0%,
        rgba(5, 15, 20, 0.00) 45%,
        rgba(5, 15, 20, 0.40) 100%
    );
    pointer-events: none;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Flat, always-dark tint (not a gradient) so the white H1/subhead stay
       readable regardless of how bright the underlying photo is — same
       pattern and value as .pricing-hero-scrim (pricing.css). */
    background: rgba(5, 15, 20, 0.5);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: clamp(20px, 2vh, 40px) 24px 80px;
    max-width: 860px;
    width: 100%;
}

.hero-compass-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-compass-mark svg {
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.30));
    opacity: 0.90;
}

.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.5px;
    margin: 0 0 26px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.65);
    text-align: center;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 21px);
    font-weight: 400;
    opacity: 0.92;
    line-height: 1.7;
    margin: 0 auto 48px;
    max-width: 640px;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn-hero-primary {
    background: var(--compass-gold);
    color: var(--charcoal);
    padding: 16px 44px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(201, 166, 97, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-hero-primary:hover {
    background: var(--gold-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(201, 166, 97, 0.55);
    color: var(--charcoal);
    text-decoration: none;
}

.btn-hero-ghost {
    background: transparent;
    color: var(--white);
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.60);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
    text-decoration: none;
}

.hero-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.4s ease-in-out infinite;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-hint:hover {
    color: var(--white);
    text-decoration: none;
}

/* Variant for light-background sections */
.scroll-hint--on-light {
    color: rgba(7, 107, 128, 0.92);
}
.scroll-hint--on-light .scroll-arrow {
    border-right-color: rgba(7, 107, 128, 0.92);
    border-bottom-color: rgba(7, 107, 128, 0.92);
}
.scroll-hint--on-light:hover {
    color: rgba(7, 107, 128, 1);
    text-decoration: none;
}
.scroll-hint--on-light:hover .scroll-arrow {
    border-right-color: rgba(7, 107, 128, 1);
    border-bottom-color: rgba(7, 107, 128, 1);
}

.scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
    50%       { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.home-section {
    /* Use the *visible* viewport height after the fixed navbar so that when an
       anchor link scrolls here (scroll-margin-top: 71px), the section fills
       exactly what the user sees — and the bottom arrow stays in view. */
    min-height: calc(100vh - 71px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-margin-top: 71px;
}

/* CTA has very little content — center it vertically */
.home-cta {
    justify-content: center;
}

.home-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 2vw, 70px);  /* Extra space below section header to visually separate from content and give room for scroll hint arrow at bottom */
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--topographic-teal-hover);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -0.3px;
    color: var(--charcoal);
    margin: 0 0 18px;
}

.section-sub {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 400;
    color: var(--slate-gray);
    line-height: 1.72;
    max-width: 620px;
    margin: 0 auto;
}

/* Dark section overrides */
.home-solution .section-eyebrow  { color: var(--compass-gold); }
.home-solution .section-title    { color: var(--white); }
.home-solution .section-sub      { color: rgba(255,255,255,0.92); }

.home-cta .section-eyebrow       { color: var(--compass-gold); }
.home-cta .section-title         { color: var(--white); }
.home-cta .section-sub           { color: rgba(255,255,255,0.92); }

.home-how .section-eyebrow       { color: var(--compass-gold); }
.home-how .section-title         { color: var(--white); }
.home-how .section-sub           { color: rgba(255,255,255,0.92); }

/* ============================================================
   S2 — PROBLEM
   ============================================================ */

.home-problem {
    background: var(--parchment-cream);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.pain-card {
    background: var(--white);
    border-radius: 14px;
    border-left: 4px solid var(--topographic-teal);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(44, 53, 57, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(44, 53, 57, 0.12);
}

.pain-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--parchment-cream);
}

.pain-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pain-card:hover .pain-card-img {
    transform: scale(1.04);
}

.pain-card-body {
    padding: 28px 36px 40px;
}

.pain-title {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 10px;
}

.pain-desc {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--slate-gray);
    line-height: 1.70;
    margin: 0;
}

.pain-fragment {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--topographic-teal);
    margin: 0 0 10px;
}

/* ============================================================
   S4 — SOLUTION
   ============================================================ */

.home-solution {
    background: var(--charcoal);
    text-align: center;
}

.axis-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 52px;
}

.axis-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 5px;
    gap: 4px;
}

.axis-tab {
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    transition: background 0.22s ease, color 0.22s ease;
    font-family: inherit;
    white-space: nowrap;
}

.axis-tab.active {
    background: var(--topographic-teal);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(10,122,140,0.4);
}

.axis-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
}

.hub-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.hub-diagram-wrap {
    flex-shrink: 0;
    position: relative;
}

.hub-view {
    display: none;
}

.hub-view.active {
    display: block;
    animation: hubFadeIn 0.4s ease forwards;
}

@keyframes hubFadeIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* Pulse ring animation on active hub center */
.hub-view.active .hub-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: hubPulse 2.4s ease-out infinite;
}

@keyframes hubPulse {
    0%   { transform: scale(1);   opacity: 0.40; }
    100% { transform: scale(1.7); opacity: 0; }
}

.hub-desc-panel {
    text-align: left;
    max-width: 340px;
    flex-shrink: 0;
}

.hub-view-desc {
    display: none;
}

.hub-view-desc.active {
    display: block;
    animation: hubFadeIn 0.4s ease forwards;
}

.hub-desc-panel h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 14px;
}

.hub-desc-panel p {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.74;
    margin: 0 0 24px;
}

.hub-entity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-entity-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.entity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   S3 — THE FIX
   ============================================================ */

.home-fix {
    background: var(--white);
}

/* ------------------------------------------------------------
   THE FIX — auto-advancing single-slide carousel. Replaces the
   former 12-card static grid AND the separate INTERFACE PREVIEW
   scroll-snap carousel (merged 2026-08-21). No swipe/scroll-snap —
   timer-driven crossfade + dot/arrow controls only (see home.js
   initFixCarousel).
   ------------------------------------------------------------ */

.fix-carousel {
    position: relative;
}

.fix-carousel-track {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 20 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(140deg, var(--topographic-teal) 0%, #1a4a30 60%, var(--contour-green) 100%);
    box-shadow: 0 16px 52px rgba(44, 53, 57, 0.22);
}

.fix-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.fix-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.fix-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.fix-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(15, 20, 22, 0.88) 0%, rgba(15, 20, 22, 0.65) 60%, transparent 100%);
}

.fix-slide-caption .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fix-slide-caption .feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fix-slide-caption .feature-title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px;
}

.fix-slide-caption .feature-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   S5 — HOW IT WORKS
   ============================================================ */

.home-how {
    background: var(--charcoal);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps-connector {
    position: absolute;
    top: 36px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--topographic-teal) 0, var(--topographic-teal) 8px,
        transparent 8px, transparent 18px
    );
    z-index: 0;
    pointer-events: none;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--topographic-teal), var(--contour-green));
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 6px 22px rgba(10, 122, 140, 0.32);
    border: 3px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(10, 122, 140, 0.42);
}

.step-title {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
}

.step-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.68;
    margin: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 20, 22, 0.45);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }

.carousel-arrow:hover {
    background: rgba(15, 20, 22, 0.68);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--mist);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: var(--topographic-teal);
}

/* ============================================================
   S7 — CTA
   ============================================================ */

.home-cta {
    background: linear-gradient(135deg, var(--topographic-teal) 0%, var(--contour-green) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.cta-compass-bg {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.06;
    pointer-events: none;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-trust {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
    CREDIBILITY BAR (nursing vertical — showCredibilityBar=true)
    ============================================================ */

.credibility-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 48px auto 0;
    padding: 32px 40px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(44, 53, 57, 0.07);
}

.credibility-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.credibility-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--topographic-teal);
    margin-bottom: 6px;
}

.credibility-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-gray);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.credibility-divider {
    width: 1px;
    height: 56px;
    background: var(--mist);
    flex-shrink: 0;
}

/* ============================================================
    RESPONSIVE
    ============================================================ */

@media (max-width: 960px) {
    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-connector {
        display: none;
    }
    .hub-stage {
        flex-direction: column;
        gap: 40px;
    }
    .hub-desc-panel {
        text-align: center;
        max-width: 100%;
    }
    .hub-entity-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hub-entity-list li {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    /* Credibility bar — tighter padding on tablet */
    .credibility-bar {
        padding: 24px 28px;
        margin: 36px auto 0;
    }
    /* Shorter than desktop's 20/9, taller than phone's 4/5 below */
    .fix-carousel-track {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 640px) {
    .steps-row {
        grid-template-columns: 1fr;
    }
    .hero-cta-row {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-primary,
    .btn-hero-ghost {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .axis-tabs {
        flex-direction: column;
        width: 100%;
    }
    .axis-tab {
        text-align: center;
    }
    .hub-diagram-wrap svg {
        width: 280px !important;
        height: 280px !important;
    }
    .cta-compass-bg {
        display: none;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-primary,
    .btn-hero-ghost {
        max-width: 320px;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow--prev { left: 8px; }
    .carousel-arrow--next { right: 8px; }
    /* 20/9 (desktop) leaves the viewer too short on narrow phone widths —
       give it a taller ratio so THE FIX section fills more of the screen. */
    .fix-carousel-track {
        aspect-ratio: 4 / 5;
    }
    /* Credibility bar — stack vertically on mobile */
    .credibility-bar {
        flex-direction: column;
        gap: 24px;
        padding: 28px 24px;
        margin: 32px auto 0;
    }
    .credibility-divider {
        width: 48px;
        height: 1px;
    }
}

/* ============================================================
   LARGE SCREENS — same fix as blog.css's post page: the clamp()
   sizes above stop growing around an ~1980px viewport, and the
   container is a flat px value with no scaling at all, so the hero
   and the card grids (pain/feature/step) shrink into a narrow
   island on very wide monitors. The grids already use
   auto-fit/minmax, so widening the container just gives them more
   room to lay out — no per-card changes needed. Threshold raised
   from 1140px to 1980px 2026-08-06 — 1140px was catching ordinary
   maximized laptop/desktop browser widths (1280-1536px range),
   making the hero title and section titles look oversized/zoomed on
   completely typical screens, not just genuinely wide monitors.
   ============================================================ */
@media (min-width: 1980px) {
    .home-container {
        max-width: 1320px;
    }

    .home-hero-content {
        max-width: 980px;
    }

    .hero-h1 {
        font-size: 60px;
    }

    .hero-sub {
        max-width: 720px;
        font-size: 23px;
    }

    .section-title {
        font-size: 44px;
    }

    .section-sub {
        max-width: 700px;
        font-size: 20px;
    }

    .credibility-bar {
        max-width: 820px;
    }
}

/* ============================================================
   VERY LARGE SCREENS — 4K / ultrawide
   The 1980px tier above was tuned for ~2560px viewports and stops
   growing at that point, which leaves a disproportionately large
   empty margin on true 4K (3840px) displays — the hero content ends
   up looking like a small floating island. This picks growth back
   up for genuinely huge viewports.
   ============================================================ */
@media (min-width: 2560px) {
    .home-container {
        max-width: 1680px;
    }

    .home-hero-content {
        max-width: 1200px;
    }

    .hero-h1 {
        font-size: 74px;
    }

    .hero-sub {
        max-width: 860px;
        font-size: 26px;
    }

    .section-title {
        font-size: 50px;
    }

    .section-sub {
        max-width: 820px;
        font-size: 22px;
    }

    .credibility-bar {
        max-width: 960px;
    }
}

/* ============================================================
   ACCESSIBILITY — Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    /* Disable scroll-triggered fade-up transitions */
    .fade-up {
        transition: none;
        opacity: 1;
        transform: none;
    }

    /* Disable scroll-bounce arrow animation */
    .scroll-hint {
        animation: none;
    }

    /* Disable hub pulse ring animation */
    .hub-view .hub-pulse {
        animation: none;
        opacity: 0.30;
        transform: none;
    }

    /* Disable hub fade-in animations */
    .hub-view.active,
    .hub-view-desc.active {
        animation: none;
    }

    /* Disable card hover transforms */
    .pain-card,
    .step-number,
    .step-item {
        transition: none;
    }

    /* Disable carousel crossfade transition (autoplay itself is disabled
       in home.js via the same prefers-reduced-motion check) */
    .fix-slide {
        transition: none;
    }

    .steps-connector {
        background: var(--topographic-teal);
        animation: none;
    }
}
