/* ============================================================
   COMPLIABLE.AI — Responsive overrides
   Source: home_page.html is 1440-anchored desktop.
   This stylesheet adds laptop / tablet / phone breakpoints
   without touching the desktop styles.

   Breakpoints
   -----------
   Desktop (default):  ≥ 1280px   (existing styles)
   Laptop:             1024–1279  (modest density tweaks)
   Tablet:             768–1023   (single-column for paired sections)
   Phone:              ≤ 767      (full mobile treatment)

   Approach
   --------
   * Desktop graphics are kept and SCALED only — same DOM, different
     numbers — so the visual story is preserved.
   * For the most positionally complex graphics (hero mockup,
     pillar mockups, problem composition, ecosystem diagram) we
     swap to dedicated mobile-only DOM that lives in the source
     HTML and is hidden by default with `.m-only`.
   * The `.d-only` helper hides desktop-only DOM at the phone breakpoint.
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   GLOBAL HELPERS — visible at all sizes
   ────────────────────────────────────────────────────────── */

.m-only { display: none !important; }     /* mobile-only DOM, hidden on desktop */

/* When .m-only is shown on phone, each component sets its own display in
   its own rule — DO NOT use `display: revert !important` to "show" them,
   because that overrides any display: flex / grid set on the same element.
   The phone media query simply removes the `display: none` instead. */

/* Sticky bottom mobile CTA bar — hidden by default, only shown at phone */
.m-cta-bar { display: none; }


/* ============================================================
   LAPTOP — 1024px → 1279px
   Same layout, slightly compressed.
   ============================================================ */
@media (max-width: 1279px) {

  /* NAV */
  .nav { padding: 0 32px; }
  .nav-links { gap: 28px; }

  /* HERO */
  .hero {
    padding: 56px 56px 48px;
    grid-template-columns: 440px 1fr;
    gap: 48px;
  }
  .headline { font-size: 42px; width: auto; }
  .subhead { font-size: 16.5px; max-width: 100%; }
  .callout { left: -130px; width: 130px; }

  /* PROBLEM */
  .problem { padding: 96px 56px; }
  .problem-inner { grid-template-columns: 400px 1fr; gap: 60px; }
  .problem-inner.flipped { grid-template-columns: 1fr 400px; }
  .problem-headline { font-size: 38px; }

  /* SHIFT (pillars) */
  .shift { padding: 100px 56px 110px; }
  .shift-headline { font-size: 44px; }
  .pillar { gap: 60px; }
  .pillar-headline { font-size: 32px; }

  /* ECO */
  .eco { padding: 110px 0 120px; }
  .eco-inner { padding: 0 56px; }

  /* ROLES / CTA / FOOTER */
  .roles, .cta-band, .footer { padding-left: 56px; padding-right: 56px; }

  /* problem composition fragment positions: nudge inward */
  .frag-1 { width: 340px; height: 230px; }
  .frag-2 { width: 200px; height: 250px; }
  .frag-3 { width: 280px; }
  .frag-4 { width: 280px; height: 200px; }
  .frag-5 { width: 240px; height: 145px; left: 170px; }
}


/* ============================================================
   TABLET — 768px → 1023px
   Paired sections become single-column. Visuals shrink but stay.
   ============================================================ */
@media (max-width: 1023px) {

  /* NAV — keep full nav but tighter */
  .nav { padding: 0 24px; height: 60px; }
  .nav-links { gap: 22px; }
  .nav-link { font-size: 13px; }

  /* HERO — stack: copy first, mockup below */
  .hero {
    padding: 48px 32px 56px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-left { padding-top: 0; max-width: 600px; }
  .headline { font-size: 40px; width: auto; max-width: 560px; }
  .subhead { font-size: 16px; max-width: 540px; margin-bottom: 32px; }
  .cta-row { margin-bottom: 36px; }
  .hero-right { max-width: 720px; margin: 0 auto; width: 100%; }
  .callout { display: none; }       /* removes the left-pointing tag — it expects desktop space */

  /* PROBLEM — stack copy above visual */
  .problem { padding: 88px 32px; }
  .problem-inner,
  .problem-inner.flipped {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .problem-inner.flipped .problem-left { order: 1; }
  .problem-inner.flipped .fragmented { order: 2; }
  .problem-headline { font-size: 36px; max-width: 600px; }
  .problem-sub { max-width: 600px; }
  .fragmented { height: 540px; max-width: 720px; margin: 0 auto; }
  .frag-1 { left: 0; }
  .frag-2 { right: 10px; }
  .frag-3 { left: 40px; }
  .frag-4 { right: 0; }

  /* SHIFT — pillars stack copy above visual */
  .shift { padding: 96px 32px 100px; }
  .shift-header { margin-bottom: 64px; }
  .shift-headline { font-size: 40px; }
  .pillar,
  .pillar.flip {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }
  .pillar.flip .pillar-copy { order: 1; }
  .pillar.flip .pillar-visual { order: 2; }
  .pillar-copy { max-width: 600px; justify-self: start !important; }
  .pillar-headline { font-size: 30px; }
  .pillar-visual { padding-top: 0; max-width: 720px; }

  /* ECO */
  .eco { padding: 96px 0 100px; }
  .eco-inner { padding: 0 32px; }
  .eco-headline { font-size: 44px; }
  .eco-stage { transform: scale(0.85); transform-origin: top center; }
  .eco-tiles { grid-template-columns: 1fr 1fr; gap: 32px; }
  .eco-tiles .eco-tile:last-child { grid-column: 1 / -1; }

  /* ROLES — stack to 1 col */
  .roles, .cta-band, .footer { padding-left: 32px; padding-right: 32px; }
  .role-grid { grid-template-columns: 1fr; gap: 32px; }

  /* CTA band */
  .cta-headline { font-size: 40px; }

  /* FOOTER — 2 columns */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}


/* ============================================================
   PHONE — ≤ 767px
   Full mobile treatment.
   ============================================================ */
@media (max-width: 767px) {

  /* GLOBAL */
  body { font-size: 15px; }

  /* show mobile-only DOM, hide desktop-only.
     We set the correct display per component (block/flex) — `revert` would
     reset to UA default and break flex layouts (e.g. .m-cta-bar). */
  .m-only { display: block !important; }
  .m-cta-bar.m-only,
  .m-eco-stack.m-only,
  .m-eco-firm-row,
  .m-shift-carousel.m-only,
  .m-shift-track { display: flex !important; }
  /* m-shift-track stays flex; m-shift-carousel overall is block (but contains flex inside) */
  .m-shift-carousel.m-only { display: block !important; }
  .d-only { display: none !important; }

  /* hide tweaks panel entirely */
  #tweaks-panel { display: none !important; }


  /* ── NAV ─────────────────────────────────────────────────
     Per spec: sticky bottom CTA bar replaces top nav links.
     Top stays minimal: logo + Sign in.
     ───────────────────────────────────────────────────────── */
  .nav {
    height: 56px;
    padding: 0 16px;
  }
  .nav-inner { position: relative; }
  .nav-links { display: none; }
  .nav-actions { gap: 14px; }
  .nav-actions .btn-nav { display: none; }       /* moves to sticky bottom bar */
  .nav-signin { font-size: 13px; }
  .nav-logo-wordmark { font-size: 13px; letter-spacing: 1.3px; }
  .nav-logo svg { width: 22px; height: 22px; }


  /* ── STICKY BOTTOM CTA BAR ─────────────────────────────── */
  .m-cta-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(48,50,78,0.10);
    box-shadow: 0 -4px 16px rgba(12,40,85,0.08);
  }
  .m-cta-primary {
    flex: 1;
    height: 48px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.01em;
  }
  .m-cta-secondary {
    height: 48px; padding: 0 18px;
    background: transparent;
    color: var(--primary);
    font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
  }

  /* leave room above sticky bar for footer content */
  body { padding-bottom: 76px; }


  /* ── HERO ─────────────────────────────────────────────────
     Copy first, simplified mobile mockup below.
     ───────────────────────────────────────────────────────── */
  .hero {
    padding: 32px 20px 40px;
    gap: 32px;
  }
  .eyebrow {
    margin-bottom: 18px;
    padding: 4px 12px 4px 9px;
  }
  .eyebrow-text { font-size: 10px; }
  .headline {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
  }
  .headline br { display: none; }    /* let it wrap naturally on phone */
  .subhead {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }
  .btn-primary-hero,
  .btn-outline-hero {
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 14.5px;
  }
  .trust-strip { padding-top: 18px; }
  .trust-logos { flex-wrap: wrap; gap: 10px; }

  /* hide the desktop product mockup; mobile version is shown via .m-only */
  .hero-right .mockup-frame,
  .hero-right .callout { display: none; }


  /* ── HERO mobile mockup (.m-hero-mockup) ─────────────────
     Defined via .m-only HTML inserted in source.
     ───────────────────────────────────────────────────────── */
  .m-hero-mockup {
    background: #fff;
    border: 1px solid rgba(48,50,78,.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(12,40,85,.12), 0 4px 12px rgba(12,40,85,.05);
  }
  .m-hero-topbar {
    height: 36px;
    background: var(--primary);
    display: flex; align-items: center;
    padding: 0 12px; gap: 8px;
  }
  .m-hero-topbar-title {
    color: #fff; font-size: 12px; font-weight: 600;
    flex: 1; letter-spacing: 0.01em;
  }
  .m-hero-topbar-badge {
    font-size: 9px; font-weight: 700;
    padding: 2.5px 8px; border-radius: 999px;
    background: #FFEDD5; color: #A04A00;
    letter-spacing: 0.4px; text-transform: uppercase;
  }
  .m-hero-cp {
    background: var(--primary);
    margin: 8px;
    border-radius: 6px;
    padding: 10px 12px;
  }
  .m-hero-cp-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
  .m-hero-cp-sub  { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.65); margin-top: 2px; }
  .m-hero-status-card {
    margin: 0 8px 8px;
    background: var(--page-bg);
    border: 2px solid var(--info);
    border-radius: 8px;
    padding: 12px 12px 11px;
  }
  .m-hero-status-hd {
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
    color: var(--info); text-transform: uppercase;
    font-family: ui-monospace, monospace;
    margin-bottom: 9px;
  }
  .m-hero-status-overall {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--light);
  }
  .m-hero-status-overall-l { font-size: 12px; color: var(--body-text); font-weight: 500; }
  .m-hero-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0;
    font-size: 11.5px; color: var(--body-text);
  }
  .m-hero-row + .m-hero-row { border-top: 1px solid rgba(224,226,231,.6); }
  .m-hero-row .badge { font-size: 9px; padding: 2.5px 8px; }
  .m-hero-ai {
    margin: 8px;
    background: var(--primary);
    border-radius: 6px;
    padding: 10px 11px;
  }
  .m-hero-ai-title { font-size: 10px; font-weight: 600; color: #fff; margin-bottom: 8px; }
  .m-hero-ai-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .m-hero-ai-chip {
    background: #fff; border-radius: 4px;
    padding: 6px 4px;
    text-align: center;
  }
  .m-hero-ai-num { font-size: 14px; font-weight: 700; color: var(--dark); display: block; line-height: 1; }
  .m-hero-ai-num.g { color: #0A5C49; }
  .m-hero-ai-num.a { color: #A04A00; }
  .m-hero-ai-sub { font-size: 8px; color: var(--secondary); display: block; margin-top: 3px; letter-spacing: 0.2px; text-transform: uppercase; }


  /* ── PROBLEM SECTION ─────────────────────────────────────
     Stacks copy then a simplified visual.
     ───────────────────────────────────────────────────────── */
  .problem { padding: 56px 20px; }
  .problem-inner,
  .problem-inner.flipped {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .problem-eyebrow { margin-bottom: 18px; }
  .problem-eyebrow-text { font-size: 10px; }
  .problem-headline {
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
  }
  .problem-sub { font-size: 15px; margin-bottom: 28px; }
  .frictions { gap: 14px; margin-bottom: 28px; }
  .friction-text { font-size: 14.5px; }
  .problem-cost { padding-top: 18px; font-size: 13.5px; }

  /* hide desktop fragmented composition */
  .fragmented { display: none; }


  /* ── PROBLEM mobile composition (.m-problem) ───────────── */
  .m-problem {
    position: relative;
    padding: 12px 0 8px;
  }
  .m-problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .m-problem-card {
    background: #fff;
    border: 1px solid rgba(48,50,78,.12);
    border-radius: 8px;
    padding: 12px 12px 11px;
    box-shadow: 0 6px 18px rgba(12,40,85,.08);
    min-height: 96px;
    display: flex; flex-direction: column; gap: 7px;
    position: relative;
    overflow: hidden;
  }
  .m-problem-card.tilted-l { transform: rotate(-1.5deg); }
  .m-problem-card.tilted-r { transform: rotate(1.5deg); }
  .m-problem-card-tag {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--secondary);
  }
  .m-problem-card-tag.red { color: var(--danger); }
  .m-problem-card-h {
    font-size: 13px; font-weight: 600;
    color: #1F2937; line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .m-problem-card-line {
    height: 4px; background: #D3D1C7;
    border-radius: 1px;
  }
  .m-problem-card-line.s { width: 50%; }
  .m-problem-card-line.m { width: 75%; }
  .m-problem-banner {
    margin-top: 14px;
    background: rgba(204,51,51,.08);
    border: 1px solid rgba(204,51,51,.25);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    position: relative;
  }
  .m-problem-banner-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(204,51,51,.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .m-problem-banner-text {
    font-size: 12.5px; line-height: 1.4;
    color: var(--danger); font-weight: 600;
  }
  .m-problem-banner-text b { font-weight: 700; }


  /* ── SHIFT (pillars) → SWIPE CAROUSEL ───────────────────
     Per spec: each pillar is a card, swipeable, dot nav.
     ───────────────────────────────────────────────────────── */
  .shift { padding: 56px 0 64px; }
  .shift-header {
    padding: 0 20px;
    margin-bottom: 28px;
  }
  .shift-eyebrow-text { font-size: 10px; }
  .shift-headline {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
  }
  .shift-sub { font-size: 15px; }

  /* desktop pillar rows hidden on phone */
  .shift-inner > .pillar { display: none; }

  /* mobile carousel container */
  .m-shift-carousel {
    position: relative;
  }
  .m-shift-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 8px;
    gap: 16px;
  }
  .m-shift-track::-webkit-scrollbar { display: none; }
  .m-shift-card {
    flex: 0 0 calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: #fff;
    border: 1px solid rgba(12,40,85,.10);
    border-radius: 14px;
    padding: 24px 22px 26px;
    box-shadow: 0 12px 32px rgba(12,40,85,.06);
    display: flex; flex-direction: column;
    gap: 14px;
  }
  .m-shift-card .pillar-num {
    margin: 0 0 4px; padding-bottom: 0; border-bottom: 0; width: auto;
    font-size: 12px;
  }
  .m-shift-card .pillar-kicker { margin-bottom: 0; font-size: 10.5px; }
  .m-shift-card .pillar-headline {
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.4px;
    margin-bottom: 0;
  }
  .m-shift-card .pillar-body {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 0;
  }
  .m-shift-card .pillar-bullets { gap: 10px; }
  .m-shift-card .pillar-bullet {
    font-size: 13.5px;
    line-height: 1.45;
  }

  /* mini visual stays inside each card — simplified */
  .m-pillar-visual {
    border-radius: 10px;
    overflow: hidden;
    background: var(--page-bg);
    border: 1px solid rgba(48,50,78,.10);
    padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 4px;
  }

  /* dot nav */
  .m-shift-dots {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; margin-top: 18px;
  }
  .m-shift-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(12,40,85,0.20);
    border: 0; padding: 0;
    cursor: pointer;
    transition: all .2s ease;
  }
  .m-shift-dot.active {
    background: var(--primary);
    width: 22px; border-radius: 999px;
  }


  /* ── ECOSYSTEM — vertical stack ─────────────────────────
     Center "verified counterparty" node up top, firms in 1-col grid below.
     ───────────────────────────────────────────────────────── */
  .eco { padding: 56px 0; }
  .eco-inner { padding: 0 20px; }
  .eco-header { padding-bottom: 0; margin-bottom: 28px; }
  .eco-eyebrow-text { font-size: 10px; }
  .eco-headline {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
  }
  .eco-headline br { display: none; }
  .eco-sub { font-size: 14.5px; }

  /* hide desktop diagram; show mobile vertical stack */
  .eco-stage { display: none; }

  .m-eco-stack {
    margin-top: 16px;
    margin-bottom: 28px;
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
    position: relative;
  }
  .m-eco-cp {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 18px 18px 16px;
    width: 100%; max-width: 320px;
    box-shadow: 0 12px 32px rgba(12,40,85,0.18);
    border: 1px solid rgba(223,163,32,0.4);
    position: relative;
  }
  .m-eco-cp-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--gold);
    background: rgba(223,163,32,0.12);
    border: 1px solid rgba(223,163,32,0.3);
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    margin-bottom: 10px;
  }
  .m-eco-cp-name {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
  }
  .m-eco-cp-meta {
    font-size: 11.5px; color: rgba(255,255,255,.6);
    margin-bottom: 10px;
  }
  .m-eco-cp-docs {
    display: flex; gap: 6px; margin-bottom: 11px;
    flex-wrap: wrap;
  }
  .m-eco-cp-doc {
    font-size: 10px; font-weight: 500;
    background: rgba(255,255,255,0.10);
    padding: 4px 8px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.10);
    display: inline-flex; align-items: center; gap: 5px;
  }
  .m-eco-cp-verify {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 10px; margin-top: 4px;
    font-size: 11px; color: #4ADE80;
    font-weight: 500;
    display: flex; align-items: center; gap: 6px;
  }

  /* connector down to firms */
  .m-eco-connector {
    width: 1.5px; height: 32px;
    background: linear-gradient(to bottom, rgba(223,163,32,0.5), rgba(223,163,32,0.0));
    margin: 4px 0;
    position: relative;
  }
  .m-eco-connector::before {
    content: 'Shared with the network';
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .m-eco-firms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .m-eco-firm {
    background: #fff;
    border: 1px solid rgba(48,50,78,.12);
    border-radius: 8px;
    padding: 10px 10px 9px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .m-eco-firm-row { display: flex; align-items: center; gap: 7px; }
  .m-eco-firm-icon {
    width: 24px; height: 24px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .m-eco-firm-name {
    font-size: 11.5px; font-weight: 600;
    color: var(--body-text); line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .m-eco-firm-role {
    font-size: 9.5px; color: var(--secondary);
    margin-top: 1px;
  }
  .m-eco-firm-status {
    font-size: 9.5px; font-weight: 500;
    color: var(--success);
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 2px;
  }
  .m-eco-firm-status::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor;
    flex-shrink: 0;
  }
  .m-eco-firm-status.requesting { color: var(--gold); }
  .m-eco-firm-status.joining   { color: var(--secondary); }

  .m-eco-stamp {
    margin-top: 14px;
    background: rgba(12,40,85,0.04);
    border: 1px solid rgba(12,40,85,0.10);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px; line-height: 1.4;
    color: var(--body-text);
    text-align: center;
  }
  .m-eco-stamp b { color: var(--gold); font-weight: 700; }

  /* tiles stack vertically on phone */
  .eco-tiles { grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
  .eco-tile { padding: 24px 22px; }
  .eco-tile-h { font-size: 20px; }
  .eco-tile-body { font-size: 14px; }

  .eco-closer { padding: 28px 24px; margin-top: 32px; }
  .eco-closer-h { font-size: 18px; line-height: 1.4; }


  /* ── ROLES — stack 1 col, condense ──────────────────────── */
  .roles { padding: 56px 20px; }
  .roles-header { margin-bottom: 36px; }
  .roles-eyebrow-text { font-size: 10px; }
  .roles-headline {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.6px;
  }
  .roles-sub { font-size: 14.5px; }
  .role-grid { grid-template-columns: 1fr; gap: 24px; }
  .role-card { padding: 28px 24px 32px; }
  .role-headline { font-size: 22px; line-height: 1.2; }
  .role-sub { font-size: 14.5px; }
  .role-points { gap: 10px; }
  .role-point { font-size: 13.5px; line-height: 1.45; }

  /* role visuals – clamp width and let inner content scale via existing rules */
  .role-visual { margin: 0 -8px; }


  /* ── CTA BAND ──────────────────────────────────────────── */
  .cta-band { padding: 64px 20px; }
  .cta-eyebrow-text { font-size: 10px; }
  .cta-headline {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.6px;
  }
  .cta-sub { font-size: 15px; }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-primary,
  .cta-secondary {
    width: 100%;
    height: 50px;
    justify-content: center;
    font-size: 14.5px;
  }
  .cta-fineprint {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
  }


  /* ── FOOTER → ACCORDION ────────────────────────────────── */
  .footer { padding: 48px 20px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 8px;
  }
  .footer-brand .footer-logo { gap: 8px; }
  .footer-tagline { font-size: 13.5px; max-width: 400px; }
  .footer-trust { gap: 8px; }
  .footer-trust-row { font-size: 11.5px; }

  /* desktop columns become accordion */
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 0;
  }
  .footer-col-title {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 16px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
  }
  .footer-col-title::after {
    content: '';
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
    opacity: 0.65;
  }
  .footer-col.open .footer-col-title::after {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .footer-col ul,
  .footer-col .footer-contact-item {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .25s ease, margin .25s ease;
    padding: 0;
  }
  .footer-col.open ul {
    max-height: 800px;
    padding: 0 0 14px 0;
  }
  .footer-col.open .footer-contact-item {
    max-height: 200px;
    padding: 4px 0 12px;
    margin: 0 !important;
  }
  .footer-col ul li { padding: 6px 0; }
  .footer-col ul li a { font-size: 14px; }

  /* footer demo strip */
  .footer-demo-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
    padding: 22px 18px;
  }
  .footer-demo-msg { font-size: 14.5px; }
  .footer-demo-btn { width: 100%; height: 46px; justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 11.5px;
  }
  .footer-legal { flex-wrap: wrap; gap: 14px; }
}


/* ============================================================
   SMALLEST PHONES — ≤ 360px
   Tighter spacing where 360px baseline is at risk of overflow.
   ============================================================ */
@media (max-width: 360px) {
  .hero { padding: 28px 16px 32px; }
  .headline { font-size: 28px; }
  .subhead { font-size: 14.5px; }
  .problem,
  .shift,
  .roles,
  .cta-band { padding-left: 16px; padding-right: 16px; }
  .shift-headline,
  .eco-headline,
  .roles-headline,
  .cta-headline { font-size: 26px; }
  .m-shift-card { padding: 20px 18px; }
  .m-shift-card .pillar-headline { font-size: 20px; }
  .m-eco-firms { grid-template-columns: 1fr; }
  .m-cta-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .m-cta-secondary { padding: 0 14px; font-size: 13px; }
}
