/* Clearbill */

:root {
  --green: #1d4d40;
  --green-2: #2a6a58;
  --mint: #e7f1ed;
  --mint-2: #d5e8e0;
  --bg: #ffffff;
  --text: #13201c;
  --grey: #5f6b67;
  --line: #e3e8e6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 4.5vw, 48px);
  --space: clamp(80px, 10vw, 136px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.muted { color: var(--grey); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--green);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-ghost { background: transparent; color: var(--green); border-color: #c7d6d0; }
.btn-ghost:hover { background: var(--mint); border-color: var(--mint); }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--green); }
.brand-mark { width: 26px; height: 26px; color: var(--green); }
.brand-sub { font-weight: 400; opacity: 0.7; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 15px; color: var(--grey); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-size: 15px; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */

/* hero band: the misty mountain photo across the full hero, washed out behind the copy */
.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eef3f1 url("images/mountains.jpg") 62% 70% / cover no-repeat;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 249, 0.97) 0%, rgba(248, 250, 249, 0.9) 34%, rgba(248, 250, 249, 0.35) 62%, rgba(248, 250, 249, 0.05) 100%),
    linear-gradient(180deg, rgba(248, 250, 249, 0.55) 0%, rgba(248, 250, 249, 0) 30%, rgba(248, 250, 249, 0) 78%, #fcfdfc 100%);
}
.hero-panel { display: none; }

@media (max-width: 960px) {
  .hero-band::before {
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.96) 0%, rgba(248, 250, 249, 0.85) 45%, rgba(248, 250, 249, 0.25) 75%, #fcfdfc 100%);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: var(--space);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.pill-muted { margin-bottom: 16px; font-size: 13px; padding: 6px 12px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fa37f; animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 163, 127, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 163, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 163, 127, 0); }
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero-sub { margin-top: 24px; max-width: 32em; font-size: clamp(17px, 1.4vw, 19px); color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* device showcase: panel + two phones + floating callouts */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-height: 660px;
}
.hero-panel {
  position: absolute;
  inset: 6% 4% 6% 8%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--mint);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

.phone {
  position: absolute;
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 46px;
  background: #101916;
  box-shadow:
    0 50px 90px -20px rgba(9, 30, 24, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px #2b3532;
}
.phone-front { width: 46%; left: 40%; top: 0; z-index: 3; }
.phone-back { width: 40%; left: 12%; top: 13%; z-index: 2; transform: rotate(-6deg); opacity: 0.97; }
.phone-screen {
  height: 100%;
  border-radius: 38px;
  background: #f7faf9;
  padding: 10px 14px 14px;
  overflow: hidden;
  font-size: 12.5px;
}
.status-bar { display: flex; align-items: center; justify-content: space-between; height: 26px; margin-bottom: 14px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.island { width: 34%; height: 20px; border-radius: 12px; background: #101916; }
.sig { width: 26px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #13201c 70%, #c9d3cf 70%); }

.app-hello { margin-top: 2px; }
.app-title { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin: 2px 0 12px; }
.mini-total { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--green); color: #fff; margin-bottom: 12px; }
.mini-total .muted { color: rgba(255, 255, 255, 0.7); }
.mini-total strong { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.claim-rows { list-style: none; display: grid; gap: 8px; }
.claim-rows li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.claim-rows li > span:first-child { display: flex; flex-direction: column; line-height: 1.3; }
.claim-rows strong { font-weight: 500; font-size: 11.5px; white-space: nowrap; }
.claim-rows em { font-style: normal; color: var(--grey); font-size: 11px; }
.claim-rows .badge { font-size: 10.5px; padding: 3px 8px; }

/* floating callout cards */
.callout {
  position: absolute;
  z-index: 4;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(9, 30, 24, 0.16);
  line-height: 1.35;
  animation: drift 6s ease-in-out infinite;
}
.callout-label { font-size: 12px; font-weight: 600; color: var(--green-2); margin-bottom: 4px; padding-left: 10px; border-left: 2px solid var(--green-2); }
.callout-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.callout-text { font-size: 13px; color: var(--grey); margin-top: 2px; }
.c1 { left: 0; top: 4%; animation-delay: -1s; }
.c3 { left: 4%; bottom: 8%; animation-delay: -3s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.app-bar { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; margin-bottom: 14px; }
.app-mark { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.claim-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.claim-amount { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }

.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 30px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li div { display: flex; flex-direction: column; line-height: 1.35; }
.timeline strong { font-weight: 500; color: #8a9692; transition: color 0.4s; }
.timeline li span:not(.tick) { color: #a3ada9; font-size: 12px; transition: color 0.4s; }
.timeline li.done strong { color: var(--text); }
.timeline li.done span:not(.tick) { color: var(--grey); }

.tick {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: #fff;
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s var(--ease); }
.timeline li.done .tick, .tick.on { background: var(--green); border-color: var(--green); }
.timeline li.done .tick svg, .tick.on svg { opacity: 1; transform: none; }
.timeline li.done .tick { animation: pop 0.45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }

.toast {
  right: -12%;
  top: 76%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  animation-delay: -2s;
}
.toast.show { opacity: 1; transform: none; }
.toast div { display: flex; flex-direction: column; }
.toast strong { font-weight: 500; font-size: 14px; }
.toast span:not(.toast-icon) { color: var(--grey); }
.toast-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--green); }
.toast-icon svg { width: 15px; height: 15px; }

/* ---------- Problem ---------- */

.problem {
  position: relative;
  overflow: hidden;
  padding: var(--space) 0;
  background: radial-gradient(ellipse 60% 90% at 50% 120%, #2c6b59 0%, transparent 70%), #13362d;
  color: #fff;
}
.problem-inner { max-width: 880px; text-align: center; }
.problem p { margin: 22px auto 0; max-width: 38em; font-size: 19px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Patients ---------- */

.patients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding-bottom: var(--space);
}
.patients img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge.paid { background: var(--mint); color: var(--green); }

/* ---------- Waitlist ---------- */

.waitlist { padding-top: var(--space); padding-bottom: var(--space); }
.waitlist-box {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(126, 196, 168, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(10, 35, 28, 0.6) 0%, transparent 60%),
    var(--green);
  color: #fff;
  text-align: center;
}
.waitlist-box > * { position: relative; }
.waitlist-box .watermark {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  bottom: -140px;
  color: #fff;
  opacity: 0.06;
  pointer-events: none;
}
.waitlist-box > p { margin: 16px auto 0; max-width: 32em; font-size: 18px; color: rgba(255, 255, 255, 0.78); }
.waitlist-form { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 36px auto 0; max-width: 640px; }
.waitlist-form input,
.waitlist-form select {
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.waitlist-form input { flex: 1 1 240px; }
.waitlist-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.waitlist-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.waitlist-form select option { color: var(--text); }
.waitlist-form input:focus, .waitlist-form select:focus { outline: none; border-color: #fff; }
.waitlist-form .is-invalid { border-color: #ffb4a8; }
.form-note { min-height: 1.6em; margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Footer ---------- */

body { background: #fcfdfc; }

/* ---------- Motion ---------- */

.rise { animation: rise 1s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 0.1s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease-out, transform 0.9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero, .patients { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 16px var(--pad) 24px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { font-size: 18px; color: var(--text); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .disclaimer { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .pill-dot, .spinner, .timeline li.done .tick { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 680px) {
  .toast { right: 0; top: auto; bottom: 2%; }
  .c1 { top: 0; }
}


/* ---------- How it works: step 1 scan ---------- */

.file.scanning::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(63, 163, 127, 0.25), transparent);
  animation: scan 1.1s ease-in-out infinite;
}
@keyframes scan { from { left: -40%; } to { left: 100%; } }
.fields div.loading {
  background: linear-gradient(90deg, #f1f5f3 0%, #e6eeea 50%, #f1f5f3 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }


/* ---------- Patients ---------- */

.patients { padding-top: var(--space); }
.patients-media { position: relative; }
.patients-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }
.photo-card {
  position: absolute;
  left: -24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(9, 30, 24, 0.18);
  font-size: 13px;
  line-height: 1.35;
}
.photo-card div { display: flex; flex-direction: column; }
.photo-card strong { font-weight: 500; font-size: 15px; }
.photo-card span:not(.toast-icon) { color: var(--grey); }
.benefits { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.benefits > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.benefits h3 { font-size: 19px; margin-bottom: 4px; }
.benefits p { color: var(--grey); font-size: 16px; }

/* ---------- Care types: scrolling ribbon ---------- */

.care {
  padding: clamp(64px, 8vw, 104px) 0;
  background: #fff;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.care-head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.care-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.care-head p { margin-top: 10px; color: var(--grey); }
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { list-style: none; display: flex; align-items: center; flex-shrink: 0; }
.marquee-group li {
  padding: 0 clamp(20px, 2.4vw, 36px);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--green);
  white-space: nowrap;
}
.marquee-group li:nth-child(4n + 3) { color: #9bbcae; }
.marquee-group li.sep { padding: 0; display: flex; }
.marquee-group li.sep svg { width: clamp(16px, 1.6vw, 22px); height: clamp(16px, 1.6vw, 22px); color: #b7d2c6; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding-top: var(--space); }
.faq-head p { margin-top: 12px; color: var(--grey); }
.faq-head a { color: var(--green); border-bottom: 1px solid currentColor; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--green);
  transition: transform 0.3s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--grey); max-width: 38em; }

/* ---------- Footer ---------- */

.footer { background: #0f2b24; color: #fff; padding: clamp(56px, 7vw, 80px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.brand-light, .brand-light .brand-mark { color: #fff; }
.footer-brand p { margin-top: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 32px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.disclaimer { max-width: 40em; text-align: right; }

/* ---------- Responsive for new sections ---------- */

@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .photo-card { left: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .footer-bottom { flex-direction: column; }
}
.patients { padding-top: calc(var(--space) + 16px); }

/* menu links stop just below the sticky menu bar instead of underneath it */
section[id] { scroll-margin-top: 74px; }

/* ---------- People photography ---------- */

.patients-media img { object-position: 60% center; }

/* ---------- Reimbursement estimator ---------- */

.estimate { padding: var(--space) 0 calc(var(--space) * 0.6); background: #fcfdfc; }
.estimate-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.estimate-head p { margin-top: 12px; color: var(--grey); font-size: 18px; }

.estimator {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(19, 60, 48, 0.35);
}
.est-inputs { display: grid; gap: 30px; padding: clamp(28px, 4vw, 52px); }
.est-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 500; }
.est-label output { font-size: 20px; letter-spacing: -0.01em; color: var(--green); font-variant-numeric: tabular-nums; }

.est-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green) 0 var(--fill, 50%), #e2ebe7 var(--fill, 50%) 100%);
  outline: none;
  cursor: pointer;
}
.est-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 4px 12px rgba(19, 60, 48, 0.2);
  transition: transform 0.2s;
}
.est-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.est-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green);
  box-shadow: 0 4px 12px rgba(19, 60, 48, 0.2);
}
.est-field input[type="range"]:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 46px; height: 44px;
  border: 0; background: #f4f8f6;
  font: inherit; font-size: 20px; color: var(--green);
  cursor: pointer; transition: background-color 0.2s;
}
.stepper button:hover { background: var(--mint); }
.stepper output { min-width: 56px; text-align: center; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: #f1f6f3; }
.segmented button {
  height: 42px; border: 0; border-radius: 10px;
  background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--grey);
  cursor: pointer; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 10px rgba(19, 60, 48, 0.12); }

.est-result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(126, 196, 168, 0.3) 0%, transparent 65%),
    var(--green);
  color: #fff;
}
.est-kicker { color: rgba(255, 255, 255, 0.75); font-size: 17px; }
.est-amount { font-size: clamp(52px, 6vw, 76px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.est-sub { color: rgba(255, 255, 255, 0.7); }
.est-bar { height: 10px; margin: 28px 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.est-bar span { display: block; height: 100%; width: 70%; border-radius: 10px; background: #8fe0bd; transition: width 0.45s var(--ease); }
.est-legend { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.est-legend strong { color: #fff; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.back { background: #8fe0bd; }
.dot.you { background: rgba(255, 255, 255, 0.35); }
.est-result .btn { align-self: flex-start; margin-top: 30px; }
.est-note { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 860px) {
  .estimator { grid-template-columns: 1fr; }
}
