/* KECHVEST responsive refinements
   Breakpoints (device-size based):
   - Desktop: max-width 1199.98px
   - Tablet:  max-width 991.98px
   - Large mobile: max-width 767.98px
   - Small mobile: max-width 575.98px
*/

/* Desktop */
@media (max-width: 1199.98px) {

}

/* Tablet */
@media (max-width: 991.98px) {
  /* Ensure the parent is a flex container */
  .wrap.prob2-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Keep display: contents so children are direct flex items */
  .prob2-left.reveal {
    display: contents !important;
  }
  /* Move the cards div to come first */
  .prob2-cards.reveal {
    order: 1 !important;
  }
  /* Move the result text to come after the cards */
  p.result-text {
    order: 2 !important;
    margin-top: 10px;
  }

  #toastMsg {
    line-height: 1;
  }

  .hero h1 {
    font-size: clamp(43px, 4.6vw, 56px);
  }
  /* Place the specific changes-card at the very bottom */
  .changes-card {
    order: 3 !important;
  }




  /* 1. Make the shared parent a vertical flex container */
  #hiw-wrap {
    display: flex !important;
    flex-direction: column !important;
  }
  /* 2. 'Unwrap' the containers so their children can be reordered relative to each other */
  .sol-cards, 
  .hiw-row {
    display: contents !important;
  }
  /* 3. Assign the specific interleaved sequence */
  
  /* Heading */
  .sec-head.reveal { order: 1; }
  /* Option 1 Card */
  .sol-card.reveal:nth-child(1) { order: 2 !important;
    margin-bottom: 25px; }
  /* HIW Column 1 */
  .hiw-col.reveal:nth-child(1) { order: 3 !important; }
  /* Option 2 Card (Target: placed BEFORE HIW 2) */
  .sol-card.reveal:nth-child(2) { 
    order: 4 !important;
    margin-bottom: 25px; 
  }

  /* HIW Column 2 (Now follows Option 2) */
  .hiw-col.reveal:nth-child(2) { order: 5 !important; }
  /* Any subsequent content */
  .mid-cta { order: 6; }


  .mock {
    margin: 0 0 35px;
  }





}

/* Tablet-specific large mobile */
@media (max-width: 768px) {

  /* Option 2 Card (Target: placed BEFORE HIW 2) */
  .sol-card.reveal:nth-child(2) { 
    order: 4 !important;
    margin-bottom: 25px; 
  }


}


/* Large mobile */
@media (max-width: 767.98px) {
  /* 1. Make the shared parent a vertical flex container */
  #hiw-wrap {
    display: flex !important;
    flex-direction: column !important;
  }
  /* 2. 'Unwrap' the containers so their children can be reordered relative to each other */
  .sol-cards, 
  .hiw-row {
    display: contents !important;
  }
  /* 3. Assign the specific interleaved sequence */
  
  /* Heading */
  .sec-head.reveal { order: 1; }
  /* Option 1 Card */
  .sol-card.reveal:nth-child(1) { order: 2 !important;
    margin-bottom: 25px; }
  /* HIW Column 1 */
  .hiw-col.reveal:nth-child(1) { order: 3 !important; }
  /* Option 2 Card (Target: placed BEFORE HIW 2) */
  .sol-card.reveal:nth-child(2) { 
    order: 4 !important;
    margin-bottom: 25px; 
  }

  /* HIW Column 2 (Now follows Option 2) */
  .hiw-col.reveal:nth-child(2) { order: 5 !important; }
  /* Any subsequent content */
  .mid-cta { order: 6; }


  .mock {
    margin: 0 0 35px;
  }

  .mid-cta {
    margin: 0;
  }

  .trust-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }  .trust-head .reveal,  .trust-head p.sub.reveal {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .form-card {
    padding: 30px;
  }






}


/* Mobile-specific (up to 767px) */
@media (max-width: 767px) {
  .wrap.prob2-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Unwraps the left section so its children can be reordered */
  .prob2-left.reveal {
    display: contents !important;
  }
  /* Keep the introductory text at the top */
  .prob2-left.reveal > *:not(.changes-card) {
    order: 1;
  }
  /* Place the main cards section in the middle */
  .prob2-cards.reveal {
    order: 2;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
}   





/* responsive */
@media(max-width:980px){
  .nav-links,.nav-cta .btn{display:none;}
  .burger{display:flex;}
  .hero{min-height:auto;padding:110px 0 64px;}
  .hero-in{grid-template-columns:1fr;gap:46px;text-align:center;}
  .hero-cta{justify-content:center;} .hero-badge{margin-inline:auto;}
  .hero p.lead{margin-inline:auto;}
  .stroke-img{left:50%;transform:translateX(-50%);width:78%;}
  .prob-grid{grid-template-columns:repeat(2,1fr);}
  .sol-cards{grid-template-columns:1fr;}
  .trust-head{grid-template-columns:1fr;gap:18px;}
  .feat-grid{grid-template-columns:repeat(2,1fr);}
  .early-grid{grid-template-columns:1fr;gap:32px;}
  .counter-wrap{grid-template-columns:1fr;gap:28px;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .foot-brand{grid-column:1/-1;}
}
@media(max-width:600px){
    .nav-in{ 
        gap: 0;
    }
  .wrap{padding:0 18px;}
  .prob-grid,.feat-grid{grid-template-columns:1fr;}
  .cta-band{padding:36px 22px;}
  .foot-grid{grid-template-columns:1fr;}
  .foot-bottom{flex-direction:column;align-items:flex-start;}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
  .is-animated .reveal{opacity:1!important;}
  .stroke-img{clip-path:none!important;}
}

/* ===== problem (scattered) ===== */
.eyebrow-red{background:rgba(190,52,52,.15);border-color:rgba(214,72,72,.45);color:#E58A88;}
.eyebrow-red .qm{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;border:1.5px solid currentColor;font-size:9px;font-weight:800;}
.prob2-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:42px;align-items:start;}
.prob2-left .h-sec{margin:16px 0 12px;}
.result-text{color:var(--tx-soft);font-size:14px;margin-top:34px;max-width:32ch;}
.changes-card{margin-top:18px;background:#fff;color:var(--ink);border-radius:var(--r-md);padding:18px 22px;max-width:440px;box-shadow:0 14px 32px rgba(0,0,0,.28);}
.changes-card b{display:block;color:var(--pine);font-size:15px;font-weight:700;}
.changes-card span{font-size:13.5px;color:#3a4a51;}
.prob2-cards{display:flex;flex-direction:column;gap:18px;padding-top:4px;}
.prob2-row{display:flex;gap:18px;}
.pcard{background:rgba(7,138,133,.08);border:1px solid var(--teal-line);border-radius:var(--r-lg);padding:24px 26px;display:flex;align-items:center;gap:18px;transition:transform .3s var(--ease),background .3s;}
.pcard:hover{transform:translateY(-3px);background:rgba(7,138,133,.14);}
.pcard .emoji{font-size:29px;line-height:1;flex:0 0 auto;}
.pcard h3{font-size:16.5px;font-weight:700;color:var(--teal-br);line-height:1.3;}
.pcard.c1{align-self:center;width:74%;}
.pcard.c4{align-self:center;width:64%;}
.prob2-row .pcard{flex:1;}

/* ===== solutions / how it works ===== */
.checklist li .rd{flex:0 0 18px;width:18px;height:18px;border-radius:50%;border:2px solid var(--teal);display:flex;align-items:center;justify-content:center;margin-top:1px;}
.checklist li .rd::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--teal-br);}
.opt-btn{margin-top:auto;width:100%;justify-content:center;background:transparent;border:1.5px solid var(--teal);color:var(--teal-br);border-radius:var(--pill);padding:14px;font-weight:700;font-size:15px;transition:.2s;cursor:pointer;font-family:inherit;}
.opt-btn:hover{background:var(--teal-soft);}
.hiw-row{display:grid;grid-template-columns:1fr 1fr;gap:42px;margin-top:50px;}
.hiw-title{color:var(--teal-br);font-weight:700;font-size:18px;padding-bottom:12px;border-bottom:1px solid var(--teal-line);margin-bottom:18px;}
.hiw-steps{padding-left:4px;}
.hiw-steps li{position:relative;padding:0 0 14px 22px;font-size:13.5px;color:var(--tx-soft);}
.hiw-steps li::before{content:"";position:absolute;left:0;top:5px;width:9px;height:9px;border-radius:50%;background:var(--teal-br);z-index:1;}
.hiw-steps li:not(:last-child)::after{content:"";position:absolute;left:4px;top:11px;width:1px;height:calc(100% - 5px);background:var(--teal-line);}
.hiw-steps li b{color:var(--tx);}
.mock .mlabel{font-size:10px;color:var(--tx-mut);margin-bottom:2px;}
.mock .mfoot{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:11px;color:var(--tx-soft);border-top:1px solid var(--bd);padding-top:10px;}
.mock .mfoot svg{width:14px;height:14px;color:var(--teal-br);flex:0 0 14px;}

/* ===== features box ===== */
.feats-box{border:1px solid var(--bd);border-radius:var(--r-xl);background:linear-gradient(165deg,#142a3d,#0f1f2e);overflow:hidden;display:grid;grid-template-columns:repeat(3,1fr);}
.feat2{padding:32px 30px;}
.feat2:not(:nth-child(3n)){border-right:1px solid var(--bd);}
.feat2:nth-child(n+4){border-top:1px solid var(--bd);}
.fmark{width:30px;height:30px;border-radius:50%;border:2px solid var(--teal);display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
.fmark::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--teal);}
.fmark.on{background:var(--teal-br);border-color:var(--teal-br);}
.fmark.on::after{background:var(--ink);}
.feat2 h3{font-size:18px;font-weight:800;line-height:1.22;margin-bottom:12px;}
.feat2 h3.tealh{color:var(--teal-br);}
.feat2 p{font-size:13.5px;color:var(--tx-mut);line-height:1.55;}

/* ===== sectors ===== */
.sectors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,235px));gap:16px;justify-content:center;}
.sector{background:rgba(7,138,133,.07);border:1px solid var(--teal-line);border-radius:var(--r-md);padding:13px 18px;justify-content:flex-start;gap:11px;}
.sector .emoji{font-size:18px;line-height:1;}
.sector .nm{color:var(--teal-br);}
.sector .badge.primary{background:rgba(150,170,70,.22);color:#CBE17A;}

/* ===== early access ===== */
.eyebrow-dark{background:var(--ink);color:#fff;border:1px solid rgba(255,255,255,.12);}
.early h2 .kc{color:var(--pine);}
.echeck{flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:rgba(7,138,133,.18);display:flex;align-items:center;justify-content:center;}
.echeck svg{width:14px;height:14px;color:var(--teal);}
.priority-slots .temoji{font-size:30px;flex:0 0 auto;}
.form-logo{display:flex;justify-content:center;margin-bottom:14px;}
.form-logo svg{width:38px;height:44px;}
.form-logo-img{width:46px;height:46px;object-fit:contain;}
.form-card h3,.form-card .fsub{text-align:center;}
.form-card input{background:rgba(7,138,133,.06);border:1px solid var(--teal-line);}
.interest-lab{font-weight:700;color:var(--tx);font-size:14px;margin-bottom:12px;display:block;}
.choices-row{display:flex;flex-wrap:wrap;gap:14px 22px;}
.choices-row .choice-r{display:inline-flex;align-items:baseline;gap:5px;margin:0;width:auto;font-size:11px;font-weight:500;color:var(--tx-soft);cursor:pointer;}
.choices-row .choice-r input{appearance:none;-webkit-appearance:none;width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;border:2px solid var(--tx-mut);background:transparent;display:grid;place-content:center;margin:0;box-shadow:none;transition:.2s;}
.choices-row .choice-r input:focus{outline:none;box-shadow:0 0 0 3px var(--teal-soft);}
.choices-row .choice-r input::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal-br);transform:scale(0);transition:transform .15s var(--ease);}
.choices-row .choice-r input:checked{border-color:var(--teal-br);}
.choices-row .choice-r input:checked::after{transform:scale(1);}
/*#f-interest.invalid .interest-lab{color:var(--danger);}*/

/* ===== priority box ===== */
.pbox{border:1px solid var(--bd2);border-radius:var(--r-xl);background:linear-gradient(165deg,#13283c,#0c1925);padding:34px 38px;}
.pb-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:24px;}
.pb-head .lab{color:var(--tx-soft);font-weight:600;}
.pb-head .clm{color:var(--teal-br);font-weight:700;}
.pb-body{display:grid;grid-template-columns:1fr auto .62fr;gap:36px;align-items:center;}
.slotgrid{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;}
.slot{height:11px;border-radius:4px;background:rgba(7,138,133,.13);transition:background .45s var(--ease);}
.slot.on{background:linear-gradient(90deg,#0AA39D,#0d6f6a);}
.pvline{width:1px;align-self:stretch;background:var(--bd);}
.pbnum{text-align:center;}
.pbnum .big{font-size:clamp(56px,8vw,84px);font-weight:800;color:var(--teal-br);line-height:1;letter-spacing:-2px;}
.pbnum .rem{font-weight:700;font-size:13px;margin-top:6px;}
.pbnum .of{font-size:12.5px;color:var(--tx-mut);margin-top:3px;}
.plegend{display:flex;gap:24px;margin-top:20px;font-size:12.5px;color:var(--tx-soft);}
.plegend .ld{display:inline-flex;align-items:center;gap:7px;}
.plegend .ld i{width:9px;height:9px;border-radius:50%;}
.ebcard{margin-top:20px;border:1px solid var(--teal-line);border-radius:var(--r-md);padding:14px 18px;background:rgba(7,138,133,.05);max-width:430px;}
.ebcard .t{font-weight:700;font-size:13.5px;}
.ebcard .d{font-size:12.5px;color:var(--tx-mut);margin-top:2px;}
.center-cta{display:flex;justify-content:center;margin-top:34px;}
.free-note{text-align:center;color:var(--tx-mut);font-size:12.5px;margin-top:16px;}

/* ===== footer extras ===== */
footer{position:relative;overflow:hidden;}
.foot-tag{font-size:11.5px;color:var(--tx-mut);letter-spacing:.5px;margin:-10px 0 16px;}
.foot-offers{margin:6px 0 18px;}
.foot-offers li{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--tx-soft);padding:3px 0;}
.foot-offers li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--teal-br);flex:0 0 7px;}
.contact-item{margin-bottom:16px;}
.contact-item .cl{font-size:12px;color:var(--tx-mut);margin-bottom:3px;}
.contact-item a{padding:0;font-size:14.5px;color:var(--tx);}
.foot-watermark{position:absolute;left:0;right:0;bottom:-1%;display:flex;justify-content:center;pointer-events:none;opacity:.045;z-index:0;}
.foot-watermark img{width:min(1080px,94%);max-width:none;}
.foot-grid,.foot-bottom{position:relative;z-index:1;}

@media(max-width:980px){
  .prob2-grid{grid-template-columns:1fr;gap:10px;}
  .prob2-cards{padding-top:0;}
  .prob2-row{flex-direction:column;}
  .pcard.c1,.pcard.c4{width:100%;align-self:stretch;}
  .feats-box{grid-template-columns:1fr 1fr;}
  .feat2:not(:nth-child(3n)){border-right:none;}
  .feat2:nth-child(odd){border-right:1px solid var(--bd);}
  .feat2:nth-child(n+3){border-top:1px solid var(--bd);}
  .hiw-row{grid-template-columns:1fr;gap:30px;}
  .pb-body{grid-template-columns:1fr;gap:26px;}
  .pvline{display:none;}
  .sectors-grid{grid-template-columns:repeat(2,minmax(0,235px));}
}
@media(max-width:600px){
  .feats-box{grid-template-columns:1fr;}
  .feat2{border-right:none!important;}
  .feat2:nth-child(n+2){border-top:1px solid var(--bd);}
  .sectors-grid{grid-template-columns:1fr;}
  .pbox{padding:24px 20px;}
  .slotgrid{gap:5px;}
  .choices-row{flex-direction:column;gap:12px;}
}
/* --- repair pass: spacing & sizing --- */
.sector .nm{white-space:nowrap;}
.sector .badge{margin-left:auto;flex:0 0 auto;white-space:nowrap;}
.sectors-grid{grid-template-columns:repeat(3,minmax(0,260px));}
.choice-r{gap:9px;}
.early-benefits li .echeck svg{width:14px;height:14px;color:var(--teal);}
@media(max-width:980px){.sectors-grid{grid-template-columns:repeat(2,minmax(0,260px));}}
@media(max-width:600px){.sectors-grid{grid-template-columns:1fr;}}
@keyframes kvpulse{0%{box-shadow:0 0 0 0 rgba(10,163,157,.55);}70%{box-shadow:0 0 0 9px rgba(10,163,157,0);}100%{box-shadow:0 0 0 0 rgba(10,163,157,0);}}
.hero-badge .dot{animation:kvpulse 2s var(--ease) infinite;}