:root{
  --bg:#102538;
  --page:#152b3f;         /* existing dark base background */
  --panel:#102b46;
  --panel-2:#123152;
  --text:#e9f0f6;
  --muted:#a8b3c0;
  --accent:#19a4b8;
  --accent-2:#2bd1d1;
  --border:rgba(255,255,255,.06);
  --radius-lg:18px;
  --radius-sm:12px;
  --shadow:0 10px 30px rgba(0,0,0,.35);

  /* NEW: light page + ink colors */
  --page-light:#f4f7fc;
  --nav-bg:#f9fbff;
  --ink:#102538;
}


body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background: var(--page-light);   /* was dark radial gradient */
  color:var(--ink);                /* dark blue text by default */
  margin:0;
}




*{box-sizing:border-box}
html,body{margin:0;padding:0}

a{color:var(--accent);text-decoration:none}
a:hover{opacity:.9}

/* Header (larger on load, shrinks smoothly) */
.cc-header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(12px);
  background: var(--nav-bg);                          /* light navbar */
  border-bottom: 1px solid rgba(15,36,64,.08);
  box-shadow: 0 2px 10px rgba(15,36,64,.06);
  transition: background .25s ease, box-shadow .25s ease;
}

.cc-header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:0.25rem 1.8rem;        /* taller when page loads */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2.5rem;
  min-height:85px;             /* more height in normal state */
  transition:padding .25s ease, min-height .25s ease;
    position: relative;   /* <-- add this line */

}

.cc-header.shrink .cc-header-inner{
   padding:.35rem 1.8rem;        /* less vertical padding when shrunk */
  min-height:50px;              /* actually shorter navbar */
}




.cc-logo{
  width:100px;                  /* smaller default */
  height:auto;                  /* let aspect ratio control height */
  object-fit:contain;
  border-radius:16px;
  mix-blend-mode:normal;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
  transition: width .25s ease;
  flex:0 0 auto;
}

.cc-header.shrink .cc-logo{
  width:65px;                   /* smaller when navbar shrinks */
}


.cc-title-wrap{
  flex: 2;                 /* give more left-side space */
  min-width: 250px;        /* ensures room for the “Van Value” text */
  text-align: left;
}

.cc-product{
  font-weight:800;
  color:var(--ink);
  font-size:1.6rem;
  letter-spacing:.02em;
  transition:font-size .25s ease;
}

.cc-header.shrink .cc-product{
  font-size:1.25rem;
}

/* Hamburger toggle (hidden on desktop, shown on small screens) */
.nav-toggle{
  display:none;                 /* shown only in mobile media query */
  flex:0 0 auto;
  width:2.1rem;
  height:2.1rem;
  border-radius:999px;
  border:1px solid rgba(15,36,64,.12);
  background:transparent;
  align-items:center;
  justify-content:center;
  padding:0;
  gap:4px;
  flex-direction: column;       /* stack the 3 bars vertically */
}

.nav-toggle span{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:var(--ink);
}


.cc-nav{
  display:flex;
  align-items:center;
  flex: 2;                 /* give more right-side space */
  justify-content: flex-end;
  gap: 3rem;               /* space between the two links */
  min-width: 350px;        /* ensures both links fit on one line */
  white-space: nowrap;     /* prevents wrapping entirely */
}


.cc-nav a,
.cc-nav .linklike{
  background:transparent;
  border:none;
  cursor:pointer;
  font:inherit;
  color:var(--ink);                /* NEW: dark blue links */
  opacity:.95;
  transition: opacity .15s ease, font-size .25s ease;
  font-size:1.4rem;
}
.cc-header.shrink .cc-nav a,
.cc-header.shrink .cc-nav .linklike{
  font-size:1rem;
}
.cc-nav a:hover,
.cc-nav .linklike:hover{
  opacity:1;
}




/* Main layout */
main{max-width:1180px;margin:1.2rem auto 3rem;padding:0 1rem}

/* Ensure main cards stretch to container width */
.calc-card,
.insight-card{
  width:100%;
  box-sizing:border-box;
}



/* Calculator card full-width */
.calc-section{animation:fadeInUp .5s ease both}
.calc-card{
  background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:1.25rem 1.25rem 1.5rem;
  color: var(--text);               /* NEW: text inside card is light */
}

.insight-card{
  background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:1rem 1.1rem;
  color: var(--text);               /* NEW */
}

/* Base collapsible card behavior */
.collapsible-card{
  position:relative;
}

/* Fade at the bottom to hint there is more */
.collapsible-card::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:56px;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(16,43,70,0),
    rgba(16,43,70,0.96)
  );
  opacity:0;
  transition:opacity .2s ease;
}

/* Toggle pill (hidden by default; shown only on mobile) */
/* Small icon-only toggle button */
.card-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;

  width: 26px;
  height: 26px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);

  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  z-index: 5;
}

.card-toggle:not([aria-expanded="true"]) {
  animation: pulse 3s ease infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}


.calc-head h1{margin:.2rem 0 .35rem;font-size:1.6rem}
.calc-sub{color:var(--muted);margin:0 0 .8rem; font-size:1.1rem}

/* Stepper */
.wizard-steps{display:flex;gap:.5rem;margin:.4rem 0}
.wizard-step-indicator{flex:1;height:6px;border-radius:999px;background:rgba(255,255,255,.08);position:relative;overflow:hidden}
.wizard-step-indicator.active{background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.wizard-step-label{font-size:1.2rem;color:var(--muted);margin-bottom:.7rem}

/* Form */
.form-step{display:none}
.form-step.active{display:block;animation:fadeIn .25s ease}
.form-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:.9rem}
.form-row label{flex:1;min-width:210px;font-size:1.1rem;color:var(--text)}
input[type="text"],input[type="number"],select{
  margin-top:.35rem;width:100%;border-radius:12px;border:1px solid var(--border);
  padding:.6rem .7rem;font-size:.95rem;background:#0c1f34;color:var(--text);
  outline:none;transition:border .15s, box-shadow .15s
}
input:focus,select:focus{border-color:rgba(25,164,184,.6);box-shadow:0 0 0 2px rgba(25,164,184,.15)}
.checkbox-label{display:inline-flex;align-items:center;gap:.45rem;font-size:.92rem;color:var(--text)}
.checkbox-label input{width:18px;height:18px}
/* Highlight required fields on validation error */
.field-error{
  border-color:#ff8c8c !important;
  box-shadow:0 0 0 1px rgba(255,140,140,.7);
}

/* Buttons */
.wizard-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.4rem}
button{cursor:pointer;border:none;border-radius:999px;font-size:.9rem;padding:.55rem 1.05rem;font-weight:600;transition:transform .06s ease}
button:active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#0b1520}
.btn-secondary{background:#0b1c2d;color:var(--text);border:1px solid var(--border)}
.btn-tertiary{background:transparent;color:var(--muted)}

/* Results */
/* Results */
/* Results */
.result-card{
  margin-top:0.4rem;
  padding-top:0.35rem;
  border-top:1px dashed var(--border);
}
.result-card h2,
.result-card h3{
  margin-top:0.15rem;
  margin-bottom:0.3rem;
}


.result-main{
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
}

.result-main span{
  color:var(--accent);
}

.result-sub{
  color:var(--muted);
  margin:.25rem 0 .4rem;
}

.result-note{
  color:var(--muted);
  font-size:.84rem;
  margin-bottom:.7rem;
}

/* Layout for result card */
.result-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1.4rem;
  align-items:flex-start;
}

.result-main-col{
  flex:1 1 260px;
  min-width:260px;
}

.result-factors{
  flex:1 1 260px;
  min-width:260px;
}

/* Range / gauge for fair value band */
.result-range-graphic{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin:.2rem 0 .7rem;
  font-size:.85rem;
  color:var(--muted);
}

.range-label{
  width:86px;
  white-space:nowrap;
}

.range-track{
  position:relative;
  flex:1;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  overflow:hidden;
}

.range-fill{
  position:absolute;
  inset:0;
  width:0%; /* set via JS */
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  opacity:.9;
}

.range-marker{
  position:absolute;
  top:50%;
  left:50%; /* overridden via JS */
  transform:translate(-50%,-50%);
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(25,164,184,.35);
}

/* Top features list – structured rows */
.result-factors h4{
  margin:.2rem 0 .4rem;
}

.result-factors ul{
  list-style:none;
  margin:0;
  padding:0;
}

/* Support both new (.result-factor-item) and old (li) items */
.result-factor-item,
.result-factors li{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:.75rem;
  padding:.35rem .6rem;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  font-size:.86rem;
}

.result-factors li + li,
.result-factor-item + .result-factor-item{
  margin-top:.18rem;
}

.result-factor-label,
.factor-label{
  font-weight:500;
  color:var(--text);
}

.result-factor-impact,
.factor-impact{
  font-size:.82rem;
  white-space:nowrap;
  font-weight:600;
}

.result-factor-impact.positive,
.factor-impact.positive{
  color:#4fe4b6;
}

.result-factor-impact.negative,
.factor-impact.negative{
  color:#ff8c8c;
}

/* Error */
.error-message{margin-top:.7rem;color:#ff8c8c}

/* Insights */
.insights-section{margin-top:2rem}
.insights-section h2{
  font-size:1.6rem;
  margin:.2rem 0 1rem;
  color: var(--ink);                /* NEW: dark blue heading on light bg */
}
.insights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}

.insight-card h3{margin:.1rem 0 .5rem; font-size: 1.4rem;}
.insight-list{list-style:none;margin:0;padding:0}
.insight-list li{margin:.35rem 0;color:var(--text)}




/* Footer */
.site-footer{border-top:1px solid var(--border);padding:1rem 1.2rem;text-align:center;color:var(--muted);margin-top:2rem}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index:200;                 /* above the navbar (which is 100) */
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:flex-start;      /* align to top, not center */
  justify-content:center;
  padding:1.5rem 1rem;
}
.modal.hidden{
  display:none;
}

.modal-dialog{
  width:min(760px,95vw);
  max-height:calc(100vh - 120px);   /* viewport height minus navbar + padding */
  margin-top:80px;                  /* pushes dialog fully below navbar */
  background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:1.1rem 1.2rem;
  position:relative;
  color:var(--text);
  overflow-y:auto;                  /* scroll inside the modal when content is tall */
}


.modal-close{
  position:absolute;top:.6rem;right:.7rem;background:transparent;border:none;color:var(--muted);
  font-size:1.5rem;line-height:1;cursor:pointer
}

/* Utility */
.hidden{display:none!important}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:1100px){
  .form-row{
    gap:.7rem;
  }

  /* Slightly tighter page padding on small screens */
  main{
  max-width:100%;
  margin:0.75rem auto 2.5rem;
  padding:0 0.75rem;
}



/* Tighten spacing of internal sections */
.insight-card h2,
.insight-card h3,
.insight-card h4 {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}


/* MOBILE – tighten spacing inside results & insights */
  .result-card{
    margin-top:0.4rem !important;
    margin-bottom:0.6rem !important;
    padding-top:0.6rem !important;
    padding-bottom:0.6rem !important;
  }

   /* Center all content inside the result card */
  #result-card {
    text-align: center;
  }

  /* Center the two internal columns */
  .result-grid {
    align-items: center;   /* centers children in horizontal direction */
  }

  /* Let the columns size to their content but remain centered */
  .result-main-col,
  .result-factors {
    width: 100%;
    max-width: 420px;      /* optional: prevents overly wide blocks */
  }

  /* Center the fair value range bar */
  .fair-range-container,
  .fair-range-bar {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center each "top feature" line */
  .result-factor-item {
    justify-content: center;
    text-align: center;
  }

  .insight-card{
    width:100%;
    box-sizing:border-box;
    border-radius:16px;
    padding:0.9rem 0.75rem 0.9rem !important;
    margin-top:0.6rem !important;
    margin-bottom:0.6rem !important;
    min-height:auto !important;   /* ✨ override the 320px min-height */
  }

  .result-section{
    margin-top:0.6rem !important;
    margin-bottom:0.6rem !important;
  }

/* Reduce vertical whitespace between blocks */
.insight-item,
.result-stat,
.fair-range-container {
  margin: 0.4rem 0 !important;
}

/* Remove unused bottom space in final sections */
.insight-card:last-child {
  padding-bottom: 1rem !important;
}

.result-section {
  margin-top: 0.8rem !important;
  margin-bottom: 0.8rem !important;
}

    /* Cards feel more “full-width” on small screens */
  .calc-card,
  .insight-card{
    width:100%;
    box-sizing:border-box;
    border-radius:16px;
    padding:0.85rem 0.9rem 0.6rem;  /* much less bottom padding */
  }



  /* HEADER: keep Van Value left, logo centered, hamburger right */
  .cc-header-inner{
    padding:0.4rem 0.9rem;
    min-height:64px;
    gap:0.6rem;
  }

  .cc-title-wrap{
    flex:0 0 auto;
    min-width:0;              /* let it shrink so it doesn't force overflow */
  }

  .cc-product{
    font-size:1.25rem;
  }

  /* MEDIA ADJUSTMENT VERSION*/
   .cc-logo{
    width:50px;    /* was 120px */
    height:auto;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
  }


  /* Nav turns into a dropdown, hidden by default */
  .cc-nav{
    position:absolute;
    top:100%;
    right:0.9rem;
    margin-top:0.4rem;
    background:var(--nav-bg);
    box-shadow:0 8px 20px rgba(15,36,64,.16);
    border-radius:14px;
    padding:0.45rem 0.9rem;
    flex-direction:column;
    align-items:flex-start;
    gap:0.35rem;
    min-width:220px;
    white-space:normal;      /* allow wrapping inside dropdown */
    display:none;            /* hidden until toggled */
    min-width: max(220px, 40vw);
  }

  .cc-nav.open{
    display:flex;
    
  }

  .cc-nav a,
  .cc-nav .linklike{
    font-size:0.95rem;
      text-align:left;
      padding: 0;    

  }

  /* Show the hamburger on small screens */
  .nav-toggle{
    display:inline-flex;
  }

  /* Prevent huge link fonts from crowding the header when shrunk */
  .cc-header.shrink .cc-nav a,
  .cc-header.shrink .cc-nav .linklike{
    font-size:0.9rem;
    
  }

  /* Result + insights layout: stack nicer on narrow screens */
  .result-grid{
    flex-direction:column;
  }
.result-main-col,
  .result-factors {
    flex: 1 1 auto !important;
    min-width: 0 !important;     /* THIS is the key fix */
    min-height: 0 !important;    /* secondary safeguard */
  }

  .insights-grid.row-3.two-up{
    grid-template-columns: 1fr;
  }
}

/* Make insights cards equal height and nicer */
.insights-grid { align-items: stretch; }
.insight-card {
  display:flex;
  flex-direction:column;
}

/* Only force a tall min-height on larger screens (desktop/tablet) */
@media (min-width: 1100px){
  .insight-card{
    min-height:280px;
  }
}

/* On smaller screens, let cards shrink to their content */
@media (max-width: 1099.98px){
  .insight-card{
    min-height:auto;
  }
}

.insight-card .insight-list { margin-top: .25rem; }
#global-drivers-bars { margin-top: .25rem; }


/* Hide calculator subheader after step 1 (toggled by JS) */
.calc-head--compact .calc-sub { display: none; }

/* Balanced 2x2 grid for insights */
.insights-grid--balanced {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


/* SPARKLINE */
.sparkline-wrap {
  position: relative;                     /* so tooltip can be absolutely positioned */
  margin-top: .5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem .75rem .5rem;
}



/* ensure canvas fills width nicely */
.sparkline-wrap canvas {
  display: block;
  width: 100%;
  height: 90px;    
  cursor:crosshair;                       /* visual height; attribute is still 110 */
}

/* Hover tooltip */
.sparkline-tooltip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: .75rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}


.sparkline-labels{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.78rem;
  color:var(--muted);
  margin-bottom:.25rem;
}

.sparkline-footnote{
  margin:.25rem 0 0;
  font-size:.75rem;
  color:var(--muted);
}


/* TILES (typical van) */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .4rem;
}
.tile {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .7rem .8rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .6rem;
  align-items: center;
}
.tile .icn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #0b1520; font-weight: 800;
}
.tile .t-label { color: var(--muted); font-size: 1.2rem; }
.tile .t-value { color: var(--text); font-weight: 700;font-size: 1.1rem; }

/* REGIONAL bars */
.region-bars .row {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  align-items: center;
  gap: .6rem; margin: .45rem 0;
}
.region-bars .state { color: var(--muted); text-align: right; font-size: .9rem; }
.region-bars .rbar {
  height: 12px; border-radius: 8px; background: rgba(255,255,255,.12);
  overflow: hidden; position: relative;
}
.region-bars .fill {
  height: 100%; width: 0%;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.region-bars .fill.pos { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.region-bars .fill.neg { background: linear-gradient(90deg, #ff7a7a, #ff9a7a); }
.region-bars .delta { text-align: right; color: var(--text); font-size: .86rem; }

/* Equal heights */
.insight-card { display: flex; flex-direction: column; min-height: 320px; }
/* Insights rows */
.insights-section { margin-top: 1.6rem; }
.insights-grid.row-1 { grid-template-columns: 1fr; }
.insights-grid.row-2 { grid-template-columns: 1fr; }
.insights-grid.row-3.two-up { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Wide card */
.card-wide { min-height: 260px; }

/* Wide tiles */
.tiles-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .7rem;
  margin-top: .5rem;
}
.tile { background: rgba(255,255,255,.04); border:1px solid var(--border); border-radius:14px; padding:.75rem .85rem;
  display: grid; grid-template-columns: 38px 1fr; gap:.6rem; align-items: center; }
.tile .icn{ width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:grid;place-items:center;color:#0b1520;font-weight:800; }
.tile .t-value{ color:var(--text); font-weight:700; }


/* Add vertical rhythm between insight rows and cards */
.insights-section{ margin-top: 1.6rem }
.insights-grid{ row-gap: 1.1rem; margin-bottom: 1.1rem; }
.insight-card{ margin-top:.2rem; }

/* Bathroom tile: force shower/toilet on separate lines */
.tile .t-value .break{ display:block }

/* BARLIST (drivers) – cleaned & aligned */
.barlist {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* 3 strict columns: label | bar | $ impact */
.barlist .bar-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2.1fr)   /* label column */
    minmax(0, 3fr)         /* bar column */
    minmax(180px, 2fr);    /* dollar-impact column */
  align-items: center;
  column-gap: .75rem;
  margin: .35rem 0;
}

.barlist .bar-label {
  color: var(--text);
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* The numeric $ range on the right */
.barlist .bar-value {
  font-size: .84rem;
  color: var(--muted);
  text-align: left;
}

/* Bar track */
.barlist .bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12); /* dark track behind the fill */
  overflow: hidden;
}

/* Filled portion (relative importance) */
.barlist .fill {
  position: absolute;
  inset: 0;          /* top:0; right:0; bottom:0; left:0 */
  width: 0%;         /* JS sets this inline (e.g. 65%) */
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

/* Little “range” pills under the heading */
.badge-range {
  font-size: .78rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .15rem .55rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Up/down arrows for driver direction */
.arrow{
  display:inline-block;
  width:10px;
  height:10px;
  border-right:2px solid #2ee6b4;   /* default to green-ish */
  border-bottom:2px solid #2ee6b4;
  transform:rotate(45deg);          /* points up/right */
  margin-right:4px;
}

/* Positive effect: green up arrow */
.arrow.up{
  border-right-color:#2ee6b4;
  border-bottom-color:#2ee6b4;
    transform:rotate(225deg);         /* points down/right */

}

/* Negative effect: red down arrow */
.arrow.down{
  border-right-color:#ff7a7a;
  border-bottom-color:#ff7a7a;
  transform:rotate(45deg);

}


/* Two-column bar list label */
.barlist-caption{
  color: var(--muted);
  font-size: .85rem;
  margin: .15rem 0 .5rem;
}

/* Explain what driver bars mean (legend chip) */
.legend-chip{
  display:inline-block; font-size:.78rem; color:var(--muted);
  border:1px solid var(--border); border-radius:999px; padding:.15rem .5rem;
}

/* Market trend headline number */
.trend-head{
  font-size:1.8rem; font-weight:800; color:var(--text); margin:.15rem 0 .4rem;
}

.card-header-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.35rem;
}
.card-header-row h3{
  margin:0;
}
.barlist-caption{
  color:var(--muted);
  font-size:.83rem;
  font-style:italic;
  white-space:nowrap;
}
.legend-chip{
  display:inline-block;
  font-size:.78rem;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:999px;
  padding:.15rem .5rem;
}
/* ===========================================
   GLOBAL SCROLLBAR THEME — Minimal + Modern
   =========================================== */

/* Chrome, Safari, Edge */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;       /* no track background */
}

*::-webkit-scrollbar-thumb {
  background: rgba(120, 140, 160, 0.35);   /* subtle grey/blue thumb */
  border-radius: 999px;
  transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 140, 160, 0.55);   /* slightly darker on hover */
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 140, 160, 0.40) transparent;
}

.feedback-cta{
  margin-top: 2rem;
  text-align: center;
}

.feedback-cta .btn-secondary{
  padding: .7rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
}

/* Mobile layout for "Top features that drive prices" card */
@media (max-width: 1100px) {

  /* Make sure the row-2 card uses full width like the others */
  .insights-grid.row-2 .insight-card{
    width: 100%;
  }

  /* Stack the title and caption vertically instead of side-by-side */
  .insights-grid.row-2 .card-header-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* Let the caption wrap instead of being cut off */
  .insights-grid.row-2 .barlist-caption{
    white-space: normal;
    max-width: 100%;
  }

  /* Stack each driver row: label → bar → range text */
  .insights-grid.row-2 .barlist .bar-row{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0.35rem 0;
  }

  /* Bar should fill the card width */
  .insights-grid.row-2 .barlist .bar{
    width: 100%;

  }
  .bar-row .bar {
    margin-bottom: .5rem;
  }

  /* Range text sits below the bar, left-aligned */
  .insights-grid.row-2 .barlist .bar-value{
    text-align: left;
    width: 100%;
  }

  .cc-header.shrink .cc-logo{
  width:40px;                   /* smaller when navbar shrinks */
}

  /* Cap height of collapsible cards on mobile */
  .collapsible-card{
    max-height:70vh;
    overflow:hidden;
  }

  .collapsible-card::after{
    opacity:1;  /* show the fade when collapsed */
  }

  /* Expanded state: remove cap + fade */
  .collapsible-card.expanded{
    max-height:none;
    overflow:visible;
  }

  .collapsible-card.expanded::after{
    opacity:0;
  }

  /* Show and position the toggle pill on mobile */
  .collapsible-card .card-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    top:0.6rem;
    right:0.7rem;
    background:rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.25);
    padding: .55rem .75rem;
}

}
