/* =========================================================
   Fresh Start Home Sales — freshstarthomesales.com
   Palette anchored on the All Action Marketing LOGO artwork
   (navy #0d305e, cyan #0a90b6), not the AAM website's mint.
   ========================================================= */

:root {
  --navy:       #0d305e;
  --navy-deep:  #08213f;
  --navy-soft:  #16437d;
  --bar:        #1a5d94;   /* header bar — lighter than navy, still holds white text */
  --blue:       #0a90b6;
  --blue-deep:  #087a9c;
  --blue-wash:  #e8f4f8;

  --ink:        #1a1d21;
  --grey:       #5b6570;
  --grey-soft:  #7c8792;
  --grey-line:  #d9dde2;
  --grey-bg:    #f2f4f6;
  --paper:      #ffffff;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(13,48,94,.06), 0 8px 24px rgba(13,48,94,.08);
  --shadow-lg:  0 2px 4px rgba(13,48,94,.06), 0 18px 48px rgba(13,48,94,.14);

  --wrap:       1180px;
  --gap:        clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.3; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

strong { font-weight: 700; color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 14px rgba(8,33,63,.16);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: #fff;
}
.brand svg { flex: none; }
.brand b {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; line-height: 1.05;
  color: #fff;
}
.brand b span { color: var(--blue); display: block; font-size: .78em; letter-spacing: .01em; }

.site-nav { display: none; gap: 1.5rem; margin-left: auto; margin-right: 1.5rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .97rem;
  color: #fff;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
@media (min-width: 860px) { .site-nav { display: flex; } }

/* mobile: nav becomes a row under the brand */
.nav-mobile {
  display: flex; gap: 1.35rem;
  border-top: 1px solid rgba(255,255,255,.16);
  padding: .6rem 0;
  overflow-x: auto;
}
.nav-mobile a {
  text-decoration: none; font-weight: 700; font-size: .95rem;
  color: #fff; white-space: nowrap;
}
@media (min-width: 860px) { .nav-mobile { display: none; } }

.head-actions { display: flex; align-items: center; gap: .85rem; }

.tel {
  font-weight: 700; color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.tel:hover { color: var(--blue-deep); }
.tel small { display: block; font-weight: 500; font-size: .68rem; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }

/* phone sits on the navy bar */
.site-head .tel { color: #fff; }
.site-head .tel:hover { color: var(--blue); }
.site-head .tel small { color: rgba(255,255,255,.66); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--grey-line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--grey-bg); color: var(--navy); }

.btn-sm { padding: .6rem 1.05rem; font-size: .94rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(10,144,182,.13), transparent 62%),
    radial-gradient(760px 420px at 2% 105%, rgba(13,48,94,.07), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--grey-line);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grey-line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 55%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr); align-items: start; }
}

/* Mobile: the form sits directly under the headline, above the fold.
   display:contents promotes the copy block's children into the flex
   container so the form card can be ordered between them. */
@media (max-width: 979px) {
  .hero .wrap { display: flex; flex-direction: column; }
  .hero .wrap > div:first-child { display: contents; }
  .hero .eyebrow  { order: 1; }
  .hero h1        { order: 2; }
  .hero .subhead  { order: 3; }
  .form-card      { order: 4; margin-bottom: 1.6rem; }
  .hero-body      { order: 5; }
  .hero-cta       { order: 6; }
  .hero-trust     { order: 7; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-wash);
  border: 1px solid rgba(10,144,182,.22);
  padding: .4rem .8rem; border-radius: 100px;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}

.subhead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--navy-soft);
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.hero-body { color: var(--grey); max-width: 60ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.hero-trust {
  margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px solid var(--grey-line);
  display: flex; flex-wrap: wrap; gap: 1.1rem 2rem;
}
.hero-trust div { font-size: .93rem; color: var(--grey); }
.hero-trust b { display: block; color: var(--navy); font-size: 1.02rem; }

/* form card — top-right on desktop, under the headline on mobile */

.form-card {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-card header {
  background: var(--navy);
  color: #fff;
  padding: 1.15rem 1.35rem;
}
.form-card header h2 {
  color: #fff; font-size: 1.22rem; margin: 0 0 .2rem;
}
.form-card header p {
  margin: 0; font-size: .92rem; color: rgba(255,255,255,.82);
}
.form-card .embed { padding: .4rem; }
.form-card iframe {
  display: block; width: 100%; min-height: 600px; border: 0;
}
.form-card footer {
  border-top: 1px solid var(--grey-line);
  background: var(--grey-bg);
  padding: .85rem 1.35rem;
  font-size: .9rem; color: var(--grey);
  text-align: center;
}
.form-card footer a { font-weight: 700; }

/* ---------- section furniture ---------- */

section { padding: clamp(3rem, 6vw, 5rem) 0; }
section.tint { background: var(--grey-bg); border-block: 1px solid var(--grey-line); }
section.navy {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255,255,255,.86);
}
section.navy h2, section.navy h3 { color: #fff; }
section.navy strong { color: #fff; }

.sec-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.sec-head p { color: var(--grey); font-size: 1.08rem; margin: 0; }
section.navy .sec-head p { color: rgba(255,255,255,.72); }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--blue);
  margin: 0 0 .7rem;
}

/* A short explanatory line under a block of tiles: carries the reasoning the
   tiles are too terse to hold. Reads as a note, not a heading. */
.sec-note {
  max-width: 68ch;
  margin: 1.6rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
  color: var(--grey);
  font-size: 1.02rem;
  line-height: 1.6;
}
section.navy .sec-note { color: rgba(255,255,255,.78); border-left-color: var(--blue); }

/* ---------- two-door cards ---------- */

.doors { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .doors { grid-template-columns: 1fr 1fr; } }

.door {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.door:nth-child(2) { border-top-color: var(--navy); }
.door p { color: var(--grey); }
.door .btn { margin-top: auto; align-self: flex-start; }
.door-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--blue-wash); color: var(--blue-deep);
}
.door:nth-child(2) .door-icon { background: #e9eef6; color: var(--navy); }

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

.faq { max-width: 860px; }

.faq details {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: .7rem;
  overflow: hidden;
}
.faq details[open] {
  border-color: rgba(10,144,182,.4);
  box-shadow: var(--shadow);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  position: relative;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--grey-bg); }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--grey); }
.faq .answer p:first-child { margin-top: 0; }

.callout {
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-deep);
  font-size: .97rem;
}

/* ---------- benefit grids ---------- */

.benefits { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.benefit {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.benefit h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.benefit p { color: var(--grey); font-size: .98rem; margin: 0; }

section.navy .benefit {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
section.navy .benefit p { color: rgba(255,255,255,.76); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

.step-col {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
}
.step-col h3 { color: var(--navy); }
.step-col p { color: var(--grey); margin: 0; }
.step-col .tag {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-wash);
  padding: .3rem .65rem; border-radius: 100px; margin-bottom: .9rem;
}

/* ---------- areas ---------- */

.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.area-chip {
  border: 1px solid var(--grey-line);
  background: var(--paper);
  border-radius: 100px;
  padding: .5rem 1.05rem;
  font-weight: 600; font-size: .96rem; color: var(--navy);
}

/* ---------- straight talk ---------- */

.plain { max-width: 70ch; }
.plain p { color: rgba(255,255,255,.8); }

/* ---------- about ---------- */

.about {
  display: grid; gap: var(--gap); grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .about { grid-template-columns: 1.3fr .7fr; } }

.nap {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.notice {
  background: var(--blue-wash);
  border: 1px solid rgba(10,144,182,.3);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: .95rem;
  color: var(--navy-deep);
}
.notice strong { display: block; margin-bottom: .15rem; }

.nap h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.nap p { font-size: .98rem; color: var(--grey); }
.nap .btn { width: 100%; margin-top: .4rem; }

.map {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0 .6rem;
  background: var(--grey-bg);
}
.map iframe {
  display: block; width: 100%; height: 230px; border: 0;
}
.map-link { font-size: .92rem; margin-bottom: 1rem; }

/* footer NAP + appointment notice + map */
.foot-notice {
  background: rgba(10,144,182,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--blue);
  color: #fff;
  padding: .55rem .85rem;
  margin: 0 0 1rem;
  font-size: .9rem;
}
.foot-notice strong { display: inline; margin: 0; letter-spacing: .02em; color: #fff; }
.foot-map .map { margin: 0; border-color: rgba(255,255,255,.18); }
.foot-map .map iframe { height: 165px; filter: saturate(.9); }

/* ---------- closing ---------- */

.close-cta { text-align: center; max-width: 720px; margin-inline: auto; }
.close-cta h2 { color: #fff; }
.close-cta p { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.close-cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--navy-deep);
  color: rgba(255,255,255,.62);
  padding: 2.75rem 0 2rem;
  font-size: .93rem;
}
.site-foot a { color: rgba(255,255,255,.86); }
.site-foot a:hover { color: #fff; }
.foot-grid {
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
  padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h4 {
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 .85rem; font-weight: 700;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-bottom {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .87rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- sticky mobile call bar ----------
   Sellers in this niche call rather than fill forms, and the header phone
   scrolls away on a phone. Hidden on desktop, where the header stays visible. */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 0;
  background: var(--navy);
  border-top: 2px solid var(--blue);
  box-shadow: 0 -4px 18px rgba(13,48,94,.22);
}
.sticky-call a {
  flex: 1 1 50%;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .6rem;
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  color: #fff; white-space: nowrap;
}
.sticky-call a.call { background: var(--blue-deep); }
.sticky-call a + a { border-left: 1px solid rgba(255,255,255,.2); }
.sticky-call svg { flex: none; }
@media (min-width: 860px) { .sticky-call { display: none; } }
/* keep the footer clear of the fixed bar on mobile */
@media (max-width: 859px) { .site-foot { padding-bottom: 5.2rem; } }

/* second line inside an H1: the keyword stands alone, the qualifier sits under it
   at a smaller weight. One H1 element, two visual lines. */
.h1-sub {
  display: block;
  margin-top: .45rem;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--navy-soft);
}

/* =========================================================
   Calculator + cost page (rent-to-own-costs.html)
   Appended 2026-09-27. Uses the existing palette variables
   only, so the page matches the rest of the site.
   ========================================================= */

.hero-slim .wrap { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 980px) { .hero-slim .wrap { grid-template-columns: minmax(0,1fr); } }

.calc { display: grid; gap: 1.25rem; }

.calc-panel {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow);
}
.calc-h {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem; color: var(--navy);
  margin: 0 0 .5rem;
}
.calc-lead { color: var(--grey); margin: 0 0 1.1rem; max-width: 68ch; }

.calc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-span { grid-column: 1 / -1; }

.calc-field label {
  display: block; font-weight: 600; font-size: .95rem;
  color: var(--navy); margin-bottom: .4rem;
}
.calc-hint { color: var(--grey-soft); font-size: .88rem; margin: .45rem 0 0; }
.calc-hint-flag {
  background: var(--blue-wash);
  border-left: 3px solid var(--blue);
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  color: var(--grey); margin: 0;
}

/* money inputs */
.money {
  display: flex; align-items: center; gap: .1rem;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0 .7rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.money:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,144,182,.15);
}
.money > span { color: var(--grey-soft); font-weight: 600; flex: none; }
.money input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-weight: 600; color: var(--ink);
  padding: .7rem .35rem;
}
.money .per { font-size: .85rem; font-weight: 500; white-space: nowrap; }

/* running total */
.calc-total {
  margin-top: 1.2rem; padding-top: 1.1rem;
  border-top: 1px dashed var(--grey-line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem;
}
.calc-total-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--grey-soft);
  flex: 1 1 100%;
}
.calc-total-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 600; color: var(--navy);
}
.calc-total-sub { color: var(--grey); font-weight: 600; }

/* price slider */
.calc-slider-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .6rem;
}
.calc-slider-head label { font-weight: 600; color: var(--navy); }
.calc-slider-head output {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem); color: var(--blue-deep);
  font-weight: 600;
}
.calc-slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 100px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--grey-line) 100%);
  outline: none; margin: .3rem 0 0;
}
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(13,48,94,.3); cursor: pointer;
}
.calc-slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(13,48,94,.3); cursor: pointer;
}
.calc-slider input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(10,144,182,.25); }

/* result panel */
.calc-result {
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: var(--grey-bg);
  border: 1px solid var(--grey-line);
  border-left: 5px solid var(--grey-soft);
  transition: background-color .2s ease, border-color .2s ease;
}
.calc-result.good { background: #eaf6ef; border-color: #b7dcc6; border-left-color: #1c8a52; }
.calc-result.close { background: #fdf4e3; border-color: #ecd6a4; border-left-color: #a8750f; }

.calc-result-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey);
  margin: 0 0 .5rem;
}
.calc-result.good .calc-result-label { color: #1c8a52; }
.calc-result.close .calc-result-label { color: #a8750f; }
.calc-result-headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.25;
  color: var(--navy); margin: 0 0 .7rem;
}
.calc-result-body { color: var(--grey); margin: 0; max-width: 70ch; }

.calc-figures {
  display: grid; gap: .9rem; grid-template-columns: 1fr 1fr;
  margin: 1.4rem 0 0; padding: 1.2rem 0 0;
  border-top: 1px solid rgba(13,48,94,.12);
}
@media (min-width: 760px) { .calc-figures { grid-template-columns: repeat(4, 1fr); } }
.calc-figures dt {
  font-size: .82rem; font-weight: 600; color: var(--grey);
  margin-bottom: .2rem;
}
.calc-figures dd {
  margin: 0; font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem; font-weight: 600; color: var(--navy);
}
.calc-result .hero-cta { margin-top: 1.5rem; }

.calc-assumptions {
  font-size: .89rem; color: var(--grey-soft);
  border-top: 1px solid var(--grey-line);
  padding-top: 1.1rem; margin: .5rem 0 0; max-width: 78ch;
}
.calc-assumptions strong { color: var(--navy); }

/* data table — scrolls rather than squashing on a phone */
.table-wrap { overflow-x: auto; margin: 1.4rem 0 .6rem; -webkit-overflow-scrolling: touch; }
.data-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .96rem; }
.data-table caption {
  text-align: left; color: var(--grey-soft); font-size: .88rem;
  padding-bottom: .6rem;
}
.data-table th, .data-table td {
  text-align: left; padding: .72rem .9rem;
  border-bottom: 1px solid var(--grey-line);
}
.data-table thead th {
  background: var(--navy); color: #fff;
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 0;
}
.data-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.data-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.data-table tbody tr:nth-child(even) { background: var(--grey-bg); }
.data-table td:first-child { font-weight: 700; color: var(--navy); }
