.clearAheadPage{
  background:
    radial-gradient(circle at 84% 9%,rgba(228,242,223,.82),transparent 28%),
    linear-gradient(180deg,var(--foreseenly-cream) 0%,var(--foreseenly-cream-soft) 60%,var(--foreseenly-sage) 100%);
}

.clearAheadMain{
  padding:22px 0 10px;
}

.clearAheadHero{
  padding-top:44px;
  padding-bottom:34px;
}

.clearAheadIntro{
  max-width:800px;
  margin:0 auto 30px;
  text-align:center;
}

.clearAheadIntro h1{
  max-width:720px;
  margin:0 auto 16px;
  color:var(--foreseenly-forest-dark);
  font-size:clamp(38px,6vw,64px);
  line-height:1.02;
  letter-spacing:0;
}

.clearAheadIntro .eyebrow{
  margin-bottom:14px;
}

.clearAheadLead{
  max-width:700px;
  margin:0 auto;
  color:var(--foreseenly-muted);
  font-size:20px;
  line-height:1.5;
}

.clearAheadPromise{
  max-width:660px;
  margin:16px auto 0;
  color:var(--foreseenly-forest-dark);
  font-size:17px;
  font-weight:800;
  line-height:1.4;
}

.clearAheadTrust{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:20px;
  color:var(--foreseenly-forest);
  font-size:13px;
  font-weight:800;
}

.clearAheadTrust span{
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.62);
}

.clearAheadTool{
  display:grid;
  grid-template-columns:minmax(300px,.82fr) minmax(440px,1.18fr);
  gap:16px;
  align-items:stretch;
}

.clearAheadMobileSummary{
  display:none;
}

.clearAheadControls,
.clearAheadResult{
  min-width:0;
  margin:0;
  padding:24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  box-shadow:0 16px 40px rgba(14,74,39,.09);
}

.clearAheadPanelHead,
.clearAheadResultHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}

.clearAheadPanelHead h2,
.clearAheadResultHead h2{
  margin:2px 0 0;
  color:var(--foreseenly-forest-dark);
  font-size:24px;
  line-height:1.2;
}

.clearAheadKicker{
  margin:0;
  color:var(--foreseenly-green);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}

.clearAheadReset{
  min-height:38px;
  padding:8px 12px;
  border:1px solid var(--lineStrong);
  border-radius:999px;
  background:var(--foreseenly-cream-soft);
  color:var(--foreseenly-forest);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.clearAheadReset:hover{
  background:var(--foreseenly-sage);
}

.clearAheadReset:focus-visible,
.clearAheadControl input:focus-visible{
  outline:3px solid rgba(19,138,61,.24);
  outline-offset:4px;
}

.clearAheadControlGrid{
  display:grid;
  gap:21px;
}

.clearAheadAssumption{
  margin:-8px 0 20px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--foreseenly-cream-soft);
  color:var(--foreseenly-muted);
  font-size:13px;
  line-height:1.45;
}

.clearAheadLabelRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}

.clearAheadLabelRow label{
  color:var(--foreseenly-ink);
  font-size:15px;
  font-weight:750;
}

.clearAheadLabelRow output{
  color:var(--foreseenly-forest);
  font-variant-numeric:tabular-nums;
  font-weight:850;
}

.clearAheadControl input[type="range"]{
  width:100%;
  height:24px;
  margin:0;
  accent-color:var(--foreseenly-forest);
  cursor:pointer;
}

.clearAheadResult{
  --clear-state:var(--foreseenly-red);
  display:flex;
  flex-direction:column;
}

.clearAheadResult[data-state="warning"]{
  --clear-state:#B55B00;
}

.clearAheadResult[data-state="clear"]{
  --clear-state:var(--foreseenly-green);
}

.clearAheadStatus{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid color-mix(in srgb,var(--clear-state) 24%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--clear-state) 9%,white);
  color:var(--clear-state);
  font-size:13px;
  font-weight:850;
}

.clearAheadInsight{
  margin-bottom:16px;
  padding:14px 16px;
  border-left:4px solid var(--clear-state);
  border-radius:0 12px 12px 0;
  background:color-mix(in srgb,var(--clear-state) 7%,white);
}

.clearAheadInsight strong{
  display:block;
  color:var(--clear-state);
  font-size:19px;
  font-variant-numeric:tabular-nums;
}

.clearAheadInsight p{
  margin:4px 0 0;
  color:var(--foreseenly-muted);
  line-height:1.45;
}

.clearAheadSummary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}

.clearAheadSummary div{
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--foreseenly-cream-soft);
}

.clearAheadSummary span,
.clearAheadSummary strong{
  display:block;
}

.clearAheadSummary span{
  color:var(--foreseenly-muted);
  font-size:12px;
}

.clearAheadSummary strong{
  margin-top:3px;
  color:var(--foreseenly-forest-dark);
  font-size:20px;
  font-variant-numeric:tabular-nums;
}

.clearAheadChartWrap{
  min-height:0;
  margin-top:auto;
  padding:3px 0 0;
}

.clearAheadChart{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}

.clearAheadGrid line{
  stroke:rgba(66,83,72,.14);
  stroke-width:1;
}

.clearAheadZero{
  stroke:rgba(66,83,72,.5);
  stroke-width:1.5;
  stroke-dasharray:6 7;
}

.clearAheadArea{
  fill:rgba(19,138,61,.1);
}

.clearAheadLine{
  fill:none;
  stroke:var(--foreseenly-forest);
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.clearAheadStateSegment{
  fill:none;
  stroke:var(--clear-state);
  stroke-width:7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.clearAheadMarker{
  stroke:var(--clear-state);
  stroke-width:1.5;
  stroke-dasharray:5 6;
  opacity:.66;
}

.clearAheadPoint{
  fill:var(--clear-state);
  stroke:#fff;
  stroke-width:4;
}

.clearAheadAxis text{
  fill:var(--foreseenly-muted);
  font-family:var(--font);
  font-size:15px;
}

.clearAheadModelNote{
  margin:0;
  color:var(--foreseenly-muted);
  font-size:12px;
  line-height:1.45;
}

.clearAheadNoScript{
  margin:16px 0 0;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

.clearAheadNext{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  margin-top:14px;
  margin-bottom:26px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(135deg,var(--foreseenly-sage) 0%,rgba(255,255,255,.74) 100%);
}

.clearAheadNext h2{
  margin:0 0 8px;
  color:var(--foreseenly-forest-dark);
  font-size:30px;
  line-height:1.15;
}

.clearAheadNext p:not(.eyebrow){
  max-width:720px;
  margin:0;
  color:var(--foreseenly-muted);
  line-height:1.55;
}

.clearAheadActions{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:230px;
}

@media (max-width:920px){
  .clearAheadPage{
    padding-bottom:0;
  }

  .clearAheadHero{
    padding-top:28px;
  }

  .clearAheadTool{
    grid-template-columns:1fr;
  }

  .clearAheadMobileSummary{
    --mobile-state:var(--foreseenly-red);
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:1fr auto;
    gap:4px 12px;
    align-items:center;
    padding:12px 14px;
    border:1px solid color-mix(in srgb,var(--mobile-state) 25%,var(--line));
    border-left:4px solid var(--mobile-state);
    border-radius:14px;
    background:color-mix(in srgb,var(--mobile-state) 6%,white);
    color:var(--foreseenly-forest-dark);
    text-decoration:none;
  }

  .clearAheadMobileSummary[data-state="warning"]{
    --mobile-state:#B55B00;
  }

  .clearAheadMobileSummary[data-state="clear"]{
    --mobile-state:var(--foreseenly-green);
  }

  .clearAheadMobileSummaryLabel{
    color:var(--mobile-state);
    font-size:11px;
    font-weight:850;
    text-transform:uppercase;
  }

  .clearAheadMobileSummary strong{
    grid-column:1 / -1;
    font-size:14px;
    font-variant-numeric:tabular-nums;
  }

  .clearAheadMobileSummaryAction{
    grid-column:2;
    grid-row:1;
    color:var(--foreseenly-forest);
    font-size:12px;
    font-weight:800;
  }

  .clearAheadMobileSummary:focus-visible{
    outline:3px solid rgba(19,138,61,.24);
    outline-offset:4px;
  }

  .clearAheadNext{
    grid-template-columns:1fr;
  }

  .clearAheadActions{
    min-width:0;
  }
}

@media (max-width:600px){
  .clearAheadMain{
    padding-top:6px;
  }

  .clearAheadHero{
    padding:26px 16px 24px;
  }

  .clearAheadIntro{
    margin-bottom:22px;
    text-align:left;
  }

  .clearAheadIntro h1{
    font-size:36px;
  }

  .clearAheadLead{
    font-size:17px;
  }

  .clearAheadPromise{
    margin-top:14px;
    font-size:16px;
  }

  .clearAheadTrust{
    justify-content:flex-start;
  }

  .clearAheadControls,
  .clearAheadResult{
    padding:18px;
    border-radius:16px;
  }

  .clearAheadPanelHead,
  .clearAheadResultHead{
    display:grid;
    gap:10px;
  }

  .clearAheadReset{
    justify-self:start;
  }

  .clearAheadStatus{
    justify-self:start;
  }

  .clearAheadSummary{
    grid-template-columns:1fr 1fr;
  }

  .clearAheadSummary div:first-child{
    grid-column:1 / -1;
  }

  .clearAheadChartWrap{
    margin-left:-8px;
    margin-right:-8px;
  }

  .clearAheadNext{
    width:calc(100vw - 32px);
    margin-left:16px;
    margin-right:16px;
    padding:22px;
  }

  .clearAheadNext h2{
    font-size:26px;
  }

  .clearAheadActions .btn{
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  .clearAheadPage *,
  .clearAheadPage *::before,
  .clearAheadPage *::after{
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
