/* ===================== Fonts ===================== */
@font-face {
  font-family: "CircularStd";
  src: url("../fonts/CircularStd-Book.woff2") format("woff2"),
       url("../fonts/CircularStd-Book.woff") format("woff"),
       url("../fonts/CircularStd-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CircularStd";
  src: url("../fonts/CircularStd-Medium.woff2") format("woff2"),
       url("../fonts/CircularStd-Medium.woff") format("woff"),
       url("../fonts/CircularStd-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basis Grotesque Pro";
  src: local("Basis Grotesque Pro"),
       url("../fonts/BasisGrotesquePro-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Basis Grotesque Pro";
  src: local("Basis Grotesque Pro Bold"),
       url("../fonts/BasisGrotesquePro-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Basis Grotesque Pro";
  src: local("Basis Grotesque Pro Light"),
       url("../fonts/BasisGrotesquePro-Light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

/* Optional typographic defaults */
b, strong, h1 { font-family: "Basis Grotesque Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; }
p, ul        { font-family: "Basis Grotesque Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 300; }

/* ===================== Design Tokens ===================== */
:root{
  --page-max: 100%;
  --content-max: 100%;

  --bg: #ffffff;
  --ink: #0f1115;
  --muted: #66717e;
  --border: #e6edf2;

  --accent: #20c5da;
  --accent-ink: #08313a;
  --dark: #3b3f45;

  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --radius: 12px;

  --font: "Basis Grotesque Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout knobs */
  --header-x: 130px;
  --section-pad: clamp(56px, 6vw, 84px);

  /* Timeline knobs */
  --spine-x: 135px;
  --spine-top: 185px;
  --content-offset: 0px;

  /* Badge / Dot knobs */
  --badge-gap: 25px;
  --dot-size: 18px;

  /* Type scales for bands */
  --h2-scale: clamp(42px, 3.4vw, 130px);
  --p-scale:  clamp(24px, 1.4vw, 100px);
  --p2-scale: clamp(22px, 1.2vw, 100px);
}

/* ===================== Base ===================== */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

/* ===================== Layout ===================== */
.page{ width: min(100%, var(--page-max)); margin-inline: auto; }
.container{ width: min(100%, var(--content-max)); margin-inline: auto; }
.section{ padding: var(--section-pad) 0; text-align: center; }

.container h2{
  margin: 6px 0 8px;
  font-weight: 100;
  font-size: var(--h2-scale);
}

/* ===================== Header ===================== */
.header{
  position: sticky; top: 0; z-index: 101;
  background: #fff;
  padding: 0 var(--header-x);
 /* border-bottom: 1px solid #e6e6e6; */
}
.header .inner{
  min-height: 72px;
  height: 110px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
.brand-logo { width: 240px; height: auto; display: block; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 20px; }
.nav a{
  text-decoration: none; color: #0f1115;
  padding: 8px 6px;
  font-size: clamp(18px, 1.3vw, 24px);
}
.nav a:hover{ opacity:1; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border-radius:5px; text-decoration:none; font-weight:100; }
.btn-accent{ background:var(--accent); color:#fff; }
.btn.btn-accent{ border-radius:5px; font-weight:400; } /* 5px radius, not bold */

.btn-white{ background:#fff; color:#000;  }
.btn.btn-white{ border-radius:5px; font-weight:400; padding: 8px 30px; font-size: 18px;} /* 5px radius, not bold */


nav .btn.btn-accent{ border-radius:5px; font-weight:400; color:#fff !important;  padding: 8px 12px; white-space: nowrap;} 


/* Hamburger button (hidden on desktop) */
.hamburger { display: none; border: 0; background: none; padding: 10px; margin: -10px; cursor: pointer; }
.hamburger-box { width: 24px; height: 18px; display: inline-block; position: relative; }
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after{
  width: 24px; height: 2px; background: #0f1115; display: block; position: absolute; left: 0; transition: transform .25s, opacity .2s;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; }
.hamburger-inner::after  { content: ""; top: 8px; }

/* Same type size/weight as other header links */
.nav .nav-toggle{
  appearance:none; border:0; background:transparent; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 6px;
  font-size: clamp(18px, 1.3vw, 24px);          /* match .nav a */
  font-weight: inherit;        /* match .nav a */
  color:#0f1115;
}

/* Dropdown container */
.nav .has-sub{ position:relative; }

/* Little blue caret */
.nav .caret{
  width:0; height:0; display:inline-block; vertical-align:middle;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid var(--accent);
  translate:0 2px;
}

/* Panel */
.nav .submenu{
  position:absolute; left:0; top:calc(100% - 4px);  /* moved up a bit */
  min-width:240px;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  z-index:1000;

  /* reset list styling (no bullets) */
  list-style:none;
  margin:0;
  padding:8px 0;

  display:none; /* hidden by default (desktop) */
}

/* Keep it open while hovering submenu too (no flicker) */
.nav .has-sub:hover .submenu,
.nav .has-sub:focus-within .submenu,
.nav .submenu:hover{
  display:block;
}

/* Items */
.nav .submenu li{ list-style:none; margin:0; padding:0; }
.nav .submenu a{
  display:block;
  padding:10px 14px;
  color:#0f1115;
  text-decoration:none;
  white-space:nowrap;
}
.nav .submenu a:hover{ background:#f6f8fb; }

/* ===== Mobile: show as indented vertical list, no bullets ===== */
@media (max-width: 900px){
  .nav .nav-toggle{
    width:100%;
    text-align:left;
    padding:14px 4px;
    border-top:1px solid #f0f0f0;
  }
  .nav .submenu{
    position:static;
    display:block;           /* always visible inside vertical menu */
    border:0; box-shadow:none; border-radius:0;
    padding:0 0 8px 16px;    /* indent under "Comparison" */
    margin:0;
  }
  .nav .submenu a{
    padding:10px 0;
  }
}


/* Brand misc (kept from your file) */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; font-weight:800; }
.brand .mark{ width:28px; height:28px; border-radius:7px; background:var(--accent); }

/* ===================== Hero ===================== */
.hero h1{ font-size: clamp(32px, 3.8vw, 58px); line-height:1.12; margin:0 0 10px; }
.hero p.sub { color:#000; max-width:66ch; margin:0 auto; font-size: clamp(18px, 2.1vw, 24px); }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-actions .btn{ padding:12px 18px; }
.media-band {
  margin: 0;
  width: 100vw;
  overflow: hidden;
  margin-top: 45px;
}

.media-band img {
  width: 100vw;   /* always full width */
  height: auto;   /* keeps aspect ratio */
  display: block; /* removes inline spacing */
}
/* ===================== Trusted Logos ===================== */
.trusted h3{
  text-align:center; margin:0 0 18px;
  font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
.logo-row{ display:flex; gap:30px; flex-wrap:wrap; align-items:center; justify-content:center; opacity:.9; }
.logo{ width:120px; height:32px; background:#edf2f6; border-radius:6px; }

/* ===================== Testimonial ===================== */
.quote .card{ background:#fff; padding:24px; max-width:900px; margin: 0 auto; }
.quote .mark{ font-size:350px; color:var(--accent); line-height:0.7; float: left; }
.quote p{ margin:8px 0 0 140px; font-size: var(--p-scale); text-align: left; }
.quote .cite{ font-size:20px; font-weight: bold; text-align: left; margin-left:140px; margin-top: 10px; }
.quote .cite span{ font-size:20px; font-weight: normal; text-align: left; display: block; }

/* ===================== Timeline / Bands ===================== */
.timeline{ position:relative; }
.timeline .spine{
  position:absolute; top: var(--spine-top); bottom: 340px;
  left: var(--spine-x); width:2px; background:#000;
}

.band{ padding: clamp(60px, 8vw, 110px) 0; background:#f7f7f7; }
.band.teal{ background: var(--accent); color: var(--accent-ink); }
.band.dark{ background: var(--dark); color:#fff; }

/* Step layout: badge on its own row, content below */
.step{
  display:grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 18px;
  align-items: start;
}
.step > .badge{
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--badge-gap);
  margin: 0;
  padding-left: calc(var(--spine-x) - 8px);
}
.step > :not(.badge){
  text-align: left;
  margin-inline: auto;
  width: min(100%, 900px);
  padding-left: var(--content-offset);
  margin-left: 175px;
}

/* Badge parts */
.badge{ color: var(--accent); font-weight: 800; }
.badge .dot{
  display: inline-block;
  width: var(--dot-size);
  height: var(--dot-size);
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  line-height: 0;
  z-index: 100;
}
.badge .num{
  font-size: 150px; line-height: 0.5; letter-spacing:.02em; font-weight: 100;
}

/* Band-specific badge dot color overrides */
.band.teal .badge{ color:#fff; }
.band.teal .badge .dot{ background:#08313a; }
.band.dark .badge{ color:#fff; }
.band.dark .badge .dot { background:var(--accent); }
.band.dark .step .num { color:var(--accent); }

/* Step typography inside bands */
.step h2{ margin:6px 0 8px; font-weight:100; font-size: var(--h2-scale); }
.step p { margin:0 0 10px; color:#000; font-size: var(--p-scale); }
.band.teal .step p{ color:#08313a; opacity:.92; }
.band.dark .step p{ color:#eaf6f8; opacity:.95; }

.band.teal .step h2{ color: #fff !important; }
.band.teal .badge .dot { background:#fff; }

/* Bullets */
.bullets{ padding-left: 18px; margin: 10px 0 0 20px; font-size: var(--p-scale); }
.bullets li + li{ margin-top: 6px; }
.bullets li::marker{ font-size: 50%; line-height: 1; }

/* ===================== FAQ ===================== */
.faq{ background:#fff; border-top:1px solid var(--border); width: 80%; margin: 0 auto; }
.faq h2{ text-align:center; margin:0 0 18px; font-size: clamp(24px, 2.6vw, 34px); }
.accordion{ max-width: 100%; margin: 0 auto; background:#fff; }
details + details{ border-top:1px solid var(--border); }
summary{
  list-style:none; cursor:pointer; padding:18px 22px; position:relative; font-weight:400;
  text-align: left; font-size: var(--p-scale);
}
summary::marker, summary::-webkit-details-marker{ display:none; }
summary:after{
  content:"+"; position:absolute; right:18px; top:50%; translate:0 -50%;
  color:var(--accent); font-weight:400; font-size: 44px;
}
details[open] summary:after{ content:"–"; }
.details-body{ padding:0 22px 18px; text-align: left; font-weight:100; font-size: var(--p2-scale); }

/* ===================== Trusted Logos grid ===================== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-items: center;
  align-items: center;
}
.logo-grid img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.trusted { display: flex; justify-content: center; }
.trusted .container { width: 80%; margin: 0 auto; }
.trusted .container h2 { text-align: center; margin-bottom:20px; }

/* ===================== Footer ===================== */
.footer{
  background:#fff;
  margin: 0 auto;
  padding-top: 0px;
}
.footer .top{
  display:grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap:60px;
  align-items:start;
  padding:48px 0;
  text-align:left;
  width: 92%;
  margin: 0 auto;
}
/* Brand column */
.footer .brandline{ display:flex; align-items:center; gap:14px; }
.footer .brandcol img{ max-width:250px; height:auto; }

/* Link columns */
.footer h4{
  margin:0 0 20px;
  font-size:20px; font-weight:700; letter-spacing:0; text-transform:none; color:#0f1115;
}
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:18px; }
.footer a{ text-decoration:none; color:#0f1115; font-size:18px; line-height:1.6; }
.footer a:hover{ text-decoration:underline; }

/* Divider + bottom bar */
.footer .bottom{
  border-top:1px solid #e6e6e6;
  padding:18px 0 0 50px;
  display:flex; align-items:center; justify-content:space-between;
}
.footer .copy{ margin:0; color:#6b7280; font-size:14px; }
.footer .social{ display:flex; gap:24px; }
.footer .social .icon{ width:26px; height:26px; background:transparent; border-radius:0; }

/* ===================== Pricing Section ===================== */
.pricing {
  text-align: center;
  padding: 0 0 60px 0;
  margin-top:-35px;
  background: #fff;
}
.pricing h2 {
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 700;
  margin-bottom:5px;
  color: #000;
}
.pricing p.sub { color:#000; max-width:66ch; margin:0 auto; font-size: clamp(18px, 2.1vw, 24px); margin-bottom:120px; }


.pricing-band {
  background: #14d3e2;
  padding: 140px 0 380px 0;
  display: flex; justify-content: center; position: relative;
}
.pricing-card {
  background: #fff; border: 1px solid #20c5da; border-radius: 8px;
  padding: 32px 36px; max-width: 360px; width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  position: absolute; top: -100px; text-align: center;
}
.pricing-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; color: #000; }
.pricing-card .price { font-size: 40px; font-weight: 700; margin: 0; color: #000; }
.pricing-card .intro { font-size: 32px; font-weight: 400; color: #000; margin: 0; }
.pricing-card ul{
  list-style: disc; padding-left: 20px; margin: 0 0 20px; text-align: left;
  font-size: 15px; line-height: 1.6; color: #333;
}
.pricing-card ul li{ margin-bottom: 6px; }
.pricing-card .btn{
  display:inline-block; padding: 12px 20px; background:#20c5da; color:#fff;
  font-weight: 400; border-radius: 5px; text-decoration:none; transition: background .2s;
}
.pricing-card .btn:hover{ background:#18a7b8; }

/* ===================== Forms ===================== */
/*
.ftTextBox{
  outline:none; border:none; border-bottom:1px solid #232323 !important;
  color:#000 !important; font-size:22px !important; padding-left:0 !important;
  background:transparent !important; width:100%; text-align:left;
}
.label{ width:100%; text-align:left; }
.ftTextRow{ height:70px; }
*/
/* ===================== Responsive ===================== */

/* Footer responsive */
@media (max-width: 900px){
  .footer .top{ grid-template-columns: 1fr 1fr; gap:32px; }
  .footer .bottom{ flex-direction:column; gap:12px; align-items:flex-start; }
}
@media (max-width: 640px){
  .footer .top{ grid-template-columns: 1fr; }
}

/* Pricing responsive */
@media (max-width: 768px){
  .pricing-band{ padding: 120px 16px 60px; }
  .pricing-card{ top:-80px; padding:24px 28px; max-width:90%; }
  .pricing-card .price{ font-size:32px; }
}

/* Form responsive */
@media (max-width: 768px){
  
  .header {
    padding: 0 30px;
  }
  
  /*
  .ftForm{
    float:none !important; width:100% !important; margin-left:0 !important; margin-bottom:20px;
  }
  .ftTextRow, .ftForm input, .ftForm label{ width:100%; display:block; }
  .ftForm label{ margin-top:6px; }
  */
  #trialForm button{
    width:100%; max-width:300px; margin:30px auto 0; display:block;
  }
}

/* ======= FINAL MOBILE NAV OVERRIDES (always last so they win) ======= */
@media (max-width: 900px){
  .brand-logo{ width:180px; margin:0; }

  .hamburger{ display:inline-block; margin-left:auto; }

  /* Vertical mobile nav (stacked list) */
  .nav{
    position:absolute; left:0; right:0; top:72px;
    display:grid; grid-auto-rows:min-content; gap:0;
    background:#fff; border-bottom:1px solid #e6e6e6;
    opacity:0; pointer-events:none; max-height:0; overflow:hidden;
    transition: opacity .2s, max-height .25s ease;
    padding:0 16px; text-align:left;
  }
  .nav a{
    display:block; padding:14px 4px; border-top:1px solid #f0f0f0;
  }
  .nav a:first-child{ border-top:0; }

  /* Open state (toggled by .header.is-open) */
  .header.is-open .nav{
    opacity:1; pointer-events:auto; max-height:320px;
  }

  /* Animate hamburger into an X */
  .header.is-open .hamburger-inner{ transform: translateY(-50%) rotate(45deg); }
  .header.is-open .hamburger-inner::before{ transform: rotate(90deg); top:0; }
  .header.is-open .hamburger-inner::after{ opacity:0; transform: none; }
}

/* Comparison screen */

.compareGridContainer {
  background: #FFFFFF;
  border-radius: 0px;
  padding:0px 0px 45px 0px;
  margin: 50px auto 0 auto;
  width: 80%;
}

.compareGridHeader {
  width: 100%;
  display: flex;
}

.compareGridHeader div {
  width: 30%;
  text-align: center;
}

.compareGridHeader div:first-child {
  width: 40%;
  text-align: left;
  margin: 0px 0 0 30px;
  color:#000;
  font-size: 15px;
  font-weight: bold;    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 15px;
}

.compareGridHeader div img {
  width: auto;
  margin-top: 0px;
}


.compareGridBlockRow {
  width: 100%;
  height: 70px;
  display: flex;
  color: #000;
}

.compareGridBlockRow span { font-size: 13px; display: block;}

.compareGridBlockRow:nth-child(odd) {
  background: #F7F7F7;
}


.compareGridBlock {
  border-top: 1px solid #033F57;
}

.compareGridBlock div div
  {
  width: 30%;
  margin: auto;
}

.compareGridBlock div div:first-child {
  padding: 0 0 0 30px !important;

}

.compareGridBlock div div:nth-child(2)
{
  width: 30%;
  border-right: 1px solid #FFF;
  text-align:center;
}
.compareGridBlock div div:nth-child(3)
{
  text-align:center;
}

.compareGridBlock div div:first-child
{
  width: 40%;
  border-right: 1px solid #FFF;
  padding: 13px 0 0 30px;
  text-align: left;
  padding-left: 30px;  
  font-weight: bold;
}

.compareGridLabel {
  text-align: left;
  margin: 30px 0 10px 30px;
  padding: 0;
  font-weight: bold !important;
  color: #000;
  font-size:15px;
}

/* Free Trial Band */

.trial-band {
  background: #14d3e2;
  padding: 100px 0 100px 0;
  color: #fff;
  width: 100%;
  text-align: center;
}

.trial-band h1{ font-size: clamp(32px, 3.8vw, 58px); line-height:1.12; margin:0 0 10px; }


@media screen and (max-width: 550px) {
  
  .compareGridContainer {
  padding: 10px 25px 45px 25px !important;
  }
  
  .compareGridHeader img {
  
  }
}  

/* Responsive */
@media screen and (max-width: 1200px) {

  .compareGridHeader div {
  width: 20%;
  }

  .compareGridHeader div:first-child {
  width: 60%;
  }

  .compareGridHeader div img {
  max-height: 40px !important;
  height:auto;
  max-width:140px !important;
  padding: 5px;
  }


  .compareGridBlockRow {
  height: auto;
  }

  .compareGridBlock div div {
  padding-bottom: 15px !important;
  }

  .compareGridBlock div div:first-child {
  padding-right: 15px !important;
  }

  .compareGridBlock div div

  /* 3rd Column */
  {
  width: 20% !important;
  }

  .compareGridBlock div div:nth-child(2)

  /* 2nd Column */
  {
  width: 20% !important;
  }

  .compareGridBlock div div:first-child

  /* First Column - Text */
  {
  width: 60% !important;
  }



}


@media screen and (max-width: 720px) {

  .compareGridHeader div img {
  height: 40px !important;
  width: auto !important;
  margin-top: 25px !important;
  margin-bottom: 10px;
  }

  .compareGridHeader div:first-child {
  font-size: 14px;
  }

  .compareGridBlock div div {}

}

@media screen and (max-width: 720px) {

  .compareGridHeader div img {

  }

  .compareGridHeader div:first-child {
  font-size: 14px;
  }

  .compareGridBlock div div {}

}

/* Hide spine and dots on mobile */
@media (max-width: 768px) {
  
  .section.hero { width: 80% !important; margin: 0 auto;}
  
  /* Let the image row break out of the 80% container */
  .section.hero .media-band{
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;   /* pull to left edge */
    margin-right: -50vw;  /* pull to right edge */
    width: 100vw;         /* full viewport width */
    max-width: 100vw;
    overflow: hidden;     /* hide side overflow just in case */
    background: none;     /* if you had a background previously */
  }
  
  .section.hero .media-band img{
    width: 100%;
    height: auto;         /* keeps aspect ratio */
    display: block;
  }
  
  /* Optional: remove extra padding so the image truly spans edge to edge */
  .section.hero .container { padding-left: 0; padding-right: 0; }
  
  .section.hero.interior { width: 100% !important; margin: 0 auto;}
  
  .timeline .spine {
    display: none !important;
  }
  .badge .dot {
    display: none !important;
  }
  .faq { width: 90%;}

  summary { font-size: 18px;}
  
  .band {width: 100%;}
  
  .band .step p, .band .step h2, .band .step ul { width: 80%; }

  .top, .footer h4, .footer ul li { text-align: center; }
  .footer.brandline {margin: 0 !important; text-align: center !important;}
  
  .step > .badge { padding-left: 40px; width: 90%; }
  .step > :not(.badge) { margin-left: 50px; }
  
  .brandline {
    display: block;
    width: 100%;
  }
  
  .brandline img {margin: 0 auto;}

  .pricing {
    width: 100%;
  }

  .pricing h2 {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }
  
  .compareGridContainer {width: 100%;}
  
}


/* Logo grid: responsive columns */
@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .logo-grid img {
    max-height: 48px;   /* optional: slightly smaller on mobile */
  }
}

/* (Optional) very small phones: 2 columns */
@media (max-width: 420px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .logo-grid img {
    max-height: 42px;
  }
}

/* ---- Mobile overflow fixes ---- */
@media (max-width: 768px) {
  /* 1) Kill accidental horizontal overflow globally */
  html, body { overflow-x: hidden; }

  /* 2) Timeline/layout: remove fixed left offsets that push content wider than 100% */
  .timeline .spine { display: none !important; }
  .badge .dot     { display: none !important; }

  .step > .badge {
    padding-left: 40px;   /* was calc(...) */
    width: auto;          /* don't force a width that can exceed the viewport */
  }
  .step > :not(.badge) {
    margin-left: 0;       /* fixed margin-left causes overflow on small screens */
    padding-left: 40px;   /* keep some indent without widening */
    width: 100%;          /* avoid min(100%, 900px) + margin stacking */
  }

  /* 3) Tame huge numerals/marks that can overflow */
  .badge .num   { font-size: 120px; line-height: 0.9; }
  .quote .mark  { font-size: 270px; }

  /* 4) Make hero/FAQ/bands fully fluid on small screens */
  .section .hero { width: 100%; }
  .faq           { width: 90%;  }
  .band          { width: 100%; }
  .band .step p,
  .band .step h2,
  .band .step ul { width: 100%; } /* prevent inner 80% + outer padding from overhanging */

  /* 5) Header/nav safety */
  .header { padding: 0 16px; }       /* ensure total width never exceeds 100% */
  .nav    { padding: 0 12px; }       /* absolute, left/right:0 already, keep inner padding small */

  /* 6) Images never exceed container */
  img, svg, video { max-width: 100%; height: auto; display: block; }
}

/* Optional: super-small screens tightening */
@media (max-width: 420px) {
  .badge .num { font-size: 56px; }
}


/* ===== Band two-column layout (content left 50% with 10% right pad, image right 50%) */
.band .step{
  display: grid;
  grid-template-columns: 1fr 1fr;        /* 50 / 50 */
  grid-template-areas:
    "badge  badge"
    "content media";
  column-gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

/* Keep your badge full-width row */
.band .step .badge{ grid-area: badge; }

/* Nuke the global left indent/margin just for bands so the grid can breathe */
.band .step > :not(.badge){
  margin-left: 0;
  width: 100%;
  padding-left: 0;
}

/* Left column: content with 10% padding on the right */
.band .step .band-content{
  grid-area: content;
  padding-right: 10%;
}

/* Right column: image aligned to top */
.band .step .band-media{
  grid-area: media;
  align-self: start;          /* top align */
}
.band .step .band-media img{
  width: 90%;
  height: auto;
  display: block;
}

/* Align band-content with the left edge of the big .num */
.band .step .band-content {
  /* left of num = badge padding-left + dot width + gap */
  padding-left: calc(var(--spine-x) - 8px + var(--dot-size) + var(--badge-gap));
}

/* When stacked on mobile, remove extra left padding */
@media (max-width: 900px){
  .band .step .band-content { padding-left: 0; }
}

/* Mobile: stack, image wraps under content */
@media (max-width: 900px){
  .band .step{
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "content"
      "media";
  }
  .band .step .band-content{
    padding-right: 0;         /* drop the 10% on mobile */
  }
}
@media (max-width: 900px) {
  /* Hide spine + dots */
  .timeline .spine,
  .badge .dot {
    display: none !important;
  }

  /* Stack band content + image */
  .band .step {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start; /* left align */
  }

  /* Align text and media flush with the num */
  .band .step .band-content,
  .band .step .band-media {
    width: 100%;
    margin: 0;
    padding-left: calc(var(--spine-x) - 8px); /* match num left edge */
    text-align: left;
  }

  .band .step .band-media img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}