/* ============================================================
   TAZO FINANCE — design system
   Change the tokens below and the whole site re-skins.
   ============================================================ */
:root {
  /* structure */
  --navy:        #0A1D38;
  --navy-800:    #0F2A4D;
  --navy-700:    #16375F;
  --blue:        #12457E;
  --blue-600:    #1B62B0;
  --blue-100:    #E8F0FA;
  --blue-050:    #F2F7FD;

  /* action */
  --ember:       #F26B21;
  --ember-600:   #D95811;
  --ember-700:   #B8460A;
  --amber:       #FFA836;
  --ember-100:   #FFF1E7;

  /* surface */
  --paper:       #F4F7FB;
  --white:       #FFFFFF;
  --line:        #E4EAF2;
  --line-2:      #CBD8E6;

  /* text */
  --ink:         #0A1D38;
  --slate:       #51637A;
  --light:       #8395AA;
  --dim:         #A7B6C7;

  --ok:          #11805C;
  --err:         #C0392B;
  --warn:        #9A6B00;

  /* type */
  --display: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body:    'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* rhythm */
  --section:  clamp(4.25rem, 8vw, 7.5rem);
  --shell:    1220px;
  --radius:   14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* RGB channel lists, so glows/shadows can use rgba() and still follow
     the admin theme. Keep these in sync with --ember / --navy above. */
  --ember-rgb:   242,107,33;
  --navy-rgb:    10,29,56;

  --shadow-xs: 0 1px 2px rgba(var(--navy-rgb),.05);
  --shadow-sm: 0 1px 3px rgba(var(--navy-rgb),.06), 0 4px 12px rgba(var(--navy-rgb),.05);
  --shadow-md: 0 4px 14px rgba(var(--navy-rgb),.08), 0 14px 36px rgba(var(--navy-rgb),.09);
  --shadow-lg: 0 24px 64px rgba(var(--navy-rgb),.22);

  --ease: cubic-bezier(.2,.75,.25,1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--ember); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }

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

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); letter-spacing: -.033em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
h4 { font-size: 1.08rem; }

p  { text-wrap: pretty; }
p + p { margin-top: 1em; }

/* Every money figure uses tabular mono so columns line up. */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -.035em;
}

.eyebrow {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--amber); }
.eyebrow--center { justify-content: center; }

.lede { font-size: 1.12rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 2.5rem, 780px); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--paper { background: var(--paper); }
.section--blue  { background: var(--blue-050); }
.section--navy  { background: var(--navy); color: var(--dim); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 3.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; font-size: 1.08rem; }
.section--navy .section-head p { color: var(--dim); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.75rem;
  border: 0; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(102deg, var(--ember) 0%, var(--amber) 135%);
  color: #fff; box-shadow: 0 6px 20px rgba(var(--ember-rgb),.32);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(var(--ember-rgb),.44); }

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

.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--ember-600); }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { color: var(--ember); box-shadow: inset 0 0 0 1.5px var(--ember); }

.btn--outline-light {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.34);
}
.btn--outline-light:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.01rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }

.link-arrow {
  font-family: var(--display); font-weight: 600; font-size: .94rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--navy); color: var(--dim);
  font-size: .84rem; padding: .6rem 0;
}
.topbar .shell {
  display: flex; flex-wrap: nowrap; justify-content: space-between;
  align-items: center; gap: .75rem;
}
.topbar__note { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar__note svg { color: var(--amber); flex: none; }
.topbar__notetext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; flex: none; }
.topbar__link { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__link svg { flex: none; }
.topbar a { color: #C3D2E4; }
.topbar a:hover { color: var(--amber); }

/* Phones: one tidy row — the note keeps the left (truncating if it is long)
   and the contact links collapse to round, tappable icon buttons. */
@media (max-width: 759px) {
  .topbar { font-size: .8rem; padding: .5rem 0; }
  .topbar__notetext { font-size: .78rem; }
  .topbar__linktext { display: none; }
  .topbar__links { gap: .5rem; }
  .topbar__link {
    width: 32px; height: 32px; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.10);
    transition: background .18s var(--ease);
  }
  .topbar__link:active { background: rgba(255,255,255,.2); }
}

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s ease;
}
.header.is-stuck { box-shadow: 0 2px 14px rgba(var(--navy-rgb),.09); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ember), var(--amber));
  display: grid; place-items: center; flex: none;
  box-shadow: 0 4px 12px rgba(var(--ember-rgb),.3);
}
.brand__mark svg { display: block; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  color: var(--ink); letter-spacing: -.035em; line-height: 1.1;
}
.brand__name span {
  display: block; font-size: .6rem; letter-spacing: .18em;
  color: var(--light); font-weight: 600; margin-top: 2px;
}
.footer .brand__name { color: #fff; }

.nav { display: none; }
@media (min-width: 1100px) { .nav { display: flex; align-items: center; gap: .1rem; } }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .32rem;
  padding: .6rem .8rem; border-radius: 9px;
  font-family: var(--display); font-weight: 500; font-size: .94rem; color: var(--ink);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--ember); background: var(--ember-100); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__link svg { transition: transform .2s ease; }

.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 280px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s var(--ease), visibility .18s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__drop::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__drop a {
  display: block; padding: .62rem .8rem; border-radius: 8px;
  font-size: .93rem; color: var(--ink); font-weight: 500;
}
.nav__drop a:hover { background: var(--blue-100); color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__cta { display: none; }
@media (min-width: 1100px) { .header__cta { display: inline-flex; } }

.burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer;
}
@media (min-width: 1100px) { .burger { display: none; } }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger i::before, .burger i::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger i::before { top: -6px; }
.burger i::after  { top: 6px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(var(--navy-rgb),.6);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(90vw, 400px); height: 100%; background: #fff;
  padding: 1.35rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.drawer__close {
  width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 11px; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink);
}
.drawer nav a {
  display: block; padding: .85rem .25rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer nav a.sub { font-weight: 400; font-size: .94rem; padding-left: 1.1rem; color: var(--slate); }
.drawer__foot { margin-top: auto; padding-top: 1.75rem; }
.drawer__foot .btn { margin-bottom: .9rem; }
.drawer__foot p { font-size: .88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 560px at 80% -14%, rgba(var(--ember-rgb),.19), transparent 62%),
    radial-gradient(880px 500px at 2% 4%, rgba(27,98,176,.26), transparent 60%),
    var(--navy);
  color: var(--dim);
  padding-block: clamp(3.25rem, 6.5vw, 5.75rem);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(72% 62% at 46% 18%, #000, transparent);
  mask-image: radial-gradient(72% 62% at 46% 18%, #000, transparent);
}
.hero > .shell { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__intro { margin-top: 1.4rem; font-size: 1.13rem; max-width: 54ch; color: #B6C6D9; }
.hero__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__points { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem 1.75rem; }
.hero__points li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: #A9BCD3; }
.hero__points svg { flex: none; color: var(--amber); }

.hero__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1060px) { .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 4rem; } }

/* compact page header */
.phead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 88% -30%, rgba(var(--ember-rgb),.17), transparent 60%),
    var(--navy);
  color: var(--dim);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.phead h1 { color: #fff; }
.phead__intro { margin-top: 1.1rem; font-size: 1.08rem; max-width: 62ch; color: #B6C6D9; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; margin-bottom: 1.35rem; color: #7F94AE; }
.crumbs a { color: #A9BCD3; }
.crumbs a:hover { color: var(--amber); }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.calc__head {
  padding: 1.35rem 1.65rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.calc__head h3 { font-size: 1.1rem; }
.badge {
  font-family: var(--display); font-size: .66rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-100);
  padding: .35rem .7rem; border-radius: 999px; white-space: nowrap;
}
.calc__body { padding: 1.65rem; }

.calc--wide { max-width: 1060px; margin-inline: auto; }
.calc--wide .calc__split { display: grid; }
@media (min-width: 940px) { .calc--wide .calc__split { grid-template-columns: 1.15fr .85fr; } }

/* Two short inputs (amount + rate) share a row to keep the calc shorter. */
.field-row { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.field-row .field { margin-bottom: 0; }
@media (min-width: 420px) { .field-row { grid-template-columns: 1fr 1fr; gap: .9rem; } }

/* The hero calculator runs more compact than the standalone one so it sits
   neatly beside the copy. Phones (≤560px) are handled further down. */
@media (min-width: 561px) {
  .hero .calc__head   { padding: 1.1rem 1.4rem; }
  .hero .calc__body   { padding: 1.35rem 1.4rem; }
  .hero .calc__result { padding: 1.35rem 1.4rem; }
  .hero .calc .field-row { margin-bottom: 1rem; }
  .hero .calc .field { margin-bottom: .85rem; }
  .hero .calc .field__hint { margin-top: .35rem; font-size: .76rem; }
  .hero .calc .chips { gap: .4rem; }
  .hero .calc .chip { padding: .5rem .1rem; }
  .hero .calc .chip b { font-size: .92rem; }
  .hero .calc .chip small { font-size: .57rem; }
  .hero .calc__headline { padding-bottom: 1rem; margin-bottom: 1rem; }
  .hero .calc__result .btn { margin-top: 1.1rem; }
  .hero .calc__note { margin-top: .85rem; }
}

.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-weight: 600; font-size: .87rem;
  color: var(--ink); margin-bottom: .5rem;
}
.field__hint { font-size: .8rem; color: var(--light); margin-top: .45rem; }
.field__err { font-size: .8rem; color: var(--err); margin-top: .45rem; display: none; }
.field.has-error .field__err { display: block; }
.field.has-error .input-wrap { border-color: var(--err); }

.input-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease; overflow: hidden;
}
.input-wrap:focus-within { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-100); }
.input-wrap__affix {
  padding: 0 .9rem; display: grid; place-items: center;
  font-family: var(--mono); font-size: .98rem; font-weight: 600; color: var(--light);
  background: var(--paper); border-right: 1px solid var(--line);
}
.input-wrap__affix--right { border-right: 0; border-left: 1px solid var(--line); }
.input-wrap input, .input-wrap select, .input-wrap textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: .85rem .9rem; font-size: 1rem; color: var(--ink);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.input-wrap textarea { resize: vertical; min-height: 110px; }
.is-text { font-family: var(--body) !important; }

/* range slider */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 99px; background: var(--line); outline: none; margin-top: .9rem; cursor: pointer; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ember); cursor: grab;
  box-shadow: 0 2px 8px rgba(var(--ember-rgb),.4); transition: transform .12s ease;
}
.slider::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--ember); cursor: grab; box-shadow: 0 2px 8px rgba(var(--ember-rgb),.4);
}
.slider-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--light); margin-top: .5rem; }

/* term chips */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 520px) { .chips { grid-template-columns: repeat(6, 1fr); } }
.chip {
  border: 1.5px solid var(--line-2); background: #fff; border-radius: 11px;
  padding: .6rem .2rem; cursor: pointer; text-align: center; transition: all .15s ease;
}
.chip b { display: block; font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--ink); }
.chip small { font-size: .63rem; color: var(--light); letter-spacing: .05em; }
.chip:hover { border-color: var(--ember); }
.chip.is-active { border-color: var(--ember); background: var(--ember-100); }
.chip.is-active b { color: var(--ember-600); }

/* result panel */
.calc__result { background: var(--navy); color: var(--dim); padding: 1.65rem; }
.calc__result h4 {
  color: #fff; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.15rem;
}
.calc__headline {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem;
  padding-bottom: 1.15rem; margin-bottom: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.calc__headline .num {
  font-size: clamp(2.05rem, 5vw, 2.7rem); font-weight: 700; color: var(--amber); line-height: 1;
}
.calc__headline span { font-size: .88rem; }
.calc__rows { display: grid; gap: .65rem; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9rem; }
.calc__row .num { color: #fff; font-size: 1rem; }
.calc__result .btn { margin-top: 1.4rem; }
.calc__note { font-size: .74rem; color: #7E93AC; margin-top: 1.1rem; line-height: 1.55; }
.is-updating { opacity: .5; transition: opacity .12s; }

/* capital vs interest bar */
.split-bar { margin-top: 1.2rem; }
.split-bar__track { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); }
.split-bar__cap { background: var(--blue-600); transition: width .4s var(--ease); }
.split-bar__int { background: var(--amber); transition: width .4s var(--ease); }
.split-bar__key { display: flex; gap: 1.25rem; margin-top: .7rem; font-size: .78rem; }
.split-bar__key i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: .4rem; }

/* schedule table */
.schedule { margin-top: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.schedule__head { padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.schedule__head h3 { font-size: 1.05rem; }
.schedule__scroll { overflow-x: auto; }
.schedule table { width: 100%; font-size: .9rem; min-width: 520px; }
.schedule th {
  text-align: right; padding: .8rem 1.5rem; background: var(--paper);
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--light); white-space: nowrap;
}
.schedule th:first-child, .schedule td:first-child { text-align: left; }
.schedule td { padding: .8rem 1.5rem; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.schedule tbody tr:nth-child(even) { background: #FBFCFE; }
.schedule__foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--light); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.85rem; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s ease, border-color .24s ease;
}
.pcard::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard:hover::before { transform: scaleX(1); }

.pcard__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--blue-100); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.15rem;
}
.pcard__eyebrow {
  font-family: var(--display); font-size: .66rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--light);
}
.pcard h3 { margin: .4rem 0 .65rem; }
.pcard__summary { font-size: .95rem; flex: 1; }
.pcard__range {
  font-family: var(--mono); font-weight: 700; font-size: 1.12rem;
  color: var(--ember-600); margin: 1.15rem 0 0; letter-spacing: -.04em;
}
.pcard__specs { border-top: 1px solid var(--line); margin-top: 1.15rem; padding-top: 1.1rem; display: grid; gap: .6rem; }
.pcard__spec { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.pcard__spec span { color: var(--light); }
.pcard__spec b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.pcard .link-arrow { margin-top: 1.3rem; }

/* ============================================================
   FEATURES / STEPS / STATS
   ============================================================ */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ember-100); color: var(--ember-600); display: grid; place-items: center;
}
.section--navy .feature__icon { background: rgba(255,168,54,.14); color: var(--amber); }
.feature h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature p { font-size: .94rem; }

.steps { counter-reset: step; display: grid; gap: 2.25rem; }
@media (min-width: 940px) { .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; } }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--line-2); line-height: 1;
}
.step::after {
  content: ''; position: absolute; top: 1.2rem; left: 3.6rem; right: -1.25rem; height: 1px; background: var(--line);
}
@media (max-width: 939px) { .step::after { display: none; } }
.steps .step:last-child::after { display: none; }
.step h3 { margin-bottom: .55rem; }
.step p { font-size: .95rem; }

.stats { display: grid; gap: 2rem; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid rgba(255,255,255,.16); padding-left: 1.3rem; }
.stat b {
  display: block; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--amber);
  line-height: 1.05; letter-spacing: -.045em;
}
.stat span { display: block; margin-top: .55rem; font-size: .9rem; color: #92A8C1; }

/* trust strip */
.trust { padding-block: 2.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.trust p {
  text-align: center; font-family: var(--display); font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--light); margin-bottom: 1.4rem;
}
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; }
.trust li {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  color: var(--line-2); letter-spacing: -.02em;
}

/* checklist */
.checklist { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .checklist { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.checklist__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.85rem; }
.checklist__col h3 { font-size: 1.12rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.checklist__col li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; font-size: .95rem; }
.checklist__col li + li { border-top: 1px solid var(--line); }
.checklist__col svg { flex: none; margin-top: .28rem; }
.checklist--yes svg { color: var(--ok); }
.checklist--no  svg { color: var(--warn); }

/* ============================================================
   CARDS / TESTIMONIALS
   ============================================================ */
.ccard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s ease;
}
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ccard__media { aspect-ratio: 16/10; background: linear-gradient(140deg, var(--blue-100), var(--ember-100)); overflow: hidden; position: relative; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.ccard:hover .ccard__media img { transform: scale(1.05); }
.ccard__media--empty { display: grid; place-items: center; color: var(--line-2); }
.ccard__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; gap: .65rem; }
.ccard__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.ccard h3 { font-size: 1.16rem; }
.ccard p { font-size: .93rem; flex: 1; }

.tag {
  font-size: .72rem; background: var(--blue-100); color: var(--blue);
  padding: .3rem .68rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; letter-spacing: .03em;
}
.tag--ember { background: var(--ember-100); color: var(--ember-600); }
.tag--plain { background: var(--paper); color: var(--slate); }

.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.85rem; display: flex; flex-direction: column; }
.tcard__stars { color: var(--amber); letter-spacing: .14em; margin-bottom: 1rem; font-size: .95rem; }
.tcard blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.62; flex: 1; }
.tcard footer { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .88rem; }
.tcard footer b { display: block; font-family: var(--display); color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 880px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq__q:hover { color: var(--ember); }
.faq__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
  position: relative; transition: all .22s ease;
}
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--ink); transition: all .22s ease; }
.faq__icon::before { width: 11px; height: 1.7px; }
.faq__icon::after  { width: 1.7px; height: 11px; }
.faq__item.is-open .faq__icon { background: var(--ember); border-color: var(--ember); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq__a > div { padding-bottom: 1.5rem; font-size: .98rem; max-width: 74ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(114deg, var(--ember) 0%, var(--amber) 105%);
  border-radius: var(--radius-xl); padding: clamp(2.25rem, 5vw, 3.5rem);
  color: #fff; display: grid; gap: 1.75rem; align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 940px) { .cta-band { grid-template-columns: 1.5fr auto; gap: 3rem; } }
.cta-band::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.11);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: .8rem; color: rgba(255,255,255,.93); max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.form-grid .span-2 { grid-column: 1 / -1; }
.required { color: var(--ember); }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .contact-split { grid-template-columns: 1.55fr 1fr; gap: 3rem; } }
.contact-card { background: var(--navy); color: var(--dim); border-radius: var(--radius-lg); padding: 1.85rem; }
.contact-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.4rem; }
.contact-card dl { display: grid; gap: 1.25rem; }
.contact-card dt {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: #7E93AC; margin-bottom: .3rem;
}
.contact-card dd { margin: 0; color: #fff; font-size: 1rem; }
.contact-card dd a { color: #fff; }
.contact-card dd a:hover { color: var(--amber); }

.flash {
  padding: .95rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem;
  font-size: .93rem; border: 1px solid;
}
.flash--success { background: #E9F7F1; border-color: #B7E3D2; color: var(--ok); }
.flash--error   { background: #FDECEA; border-color: #F5C6C2; color: var(--err); }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2.25rem 0 .85rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.35rem; margin-bottom: .6rem; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: .6rem; padding-left: .35rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--ember); padding-left: 1.35rem;
  margin: 1.75rem 0; font-size: 1.12rem; color: var(--ink);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.75rem 0; }
.prose table { width: 100%; margin: 1.75rem 0; font-size: .94rem; }
.prose th, .prose td { padding: .75rem 1rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--paper); font-family: var(--display); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #92A8C1; padding-top: var(--section); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 3rem; } }
.footer h5 { color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer a { color: #92A8C1; font-size: .93rem; }
.footer a:hover { color: var(--amber); }
.footer li + li { margin-top: .65rem; }
.footer__about { font-size: .93rem; max-width: 44ch; margin-top: 1.15rem; }

.socials { display: flex; gap: .55rem; margin-top: 1.6rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07);
  display: grid; place-items: center; color: #C3D2E4;
}
.socials a:hover { background: var(--ember); color: #fff; }

.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15); border-radius: 11px;
  padding: .8rem .9rem; color: #fff; font-size: .9rem;
}
.newsletter input::placeholder { color: #7E93AC; }
.newsletter input:focus { outline: 0; border-color: var(--amber); }

.footer__phone { margin-top: 1.6rem; font-size: .9rem; }
.footer__phone a { display: block; color: #fff; font-size: 1.2rem; margin-top: .2rem; }

.legal-note {
  font-size: .78rem; color: #6F86A2; line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.6rem 0;
}
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; font-size: .84rem;
}
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bar li { margin: 0 !important; }
.footer__credit { margin-left: .4rem; opacity: .85; }
.footer__credit a { color: var(--amber); font-size: inherit; font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; background: var(--ember); color: #fff;
  padding: .85rem 1.25rem; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.empty-state {
  text-align: center; padding: 4rem 1.5rem; color: var(--light);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
}

/* ============================================================
   MOBILE REFINEMENTS  (phones ≤ 560px)
   The base styles above are mobile-first; these just trim the
   generous default spacing so the hero and its calculator don't
   run so tall on a phone, and keep the two hero buttons on one
   line instead of stacking.
   ============================================================ */
@media (max-width: 560px) {

  /* --- hero --- */
  .hero { padding-block: 2.5rem 2.75rem; }
  .hero__grid { gap: 2.1rem; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.5rem); }
  .hero__intro { margin-top: 1rem; font-size: 1.02rem; line-height: 1.6; }
  .hero__points { margin-top: 1.7rem; gap: .7rem 1.4rem; }
  .hero__points li { font-size: .88rem; }

  /* two hero buttons share one row */
  .hero__actions { margin-top: 1.6rem; flex-wrap: nowrap; gap: .6rem; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: .95rem .7rem; font-size: .9rem; }

  /* --- calculator: shorten it --- */
  .calc__head   { padding: 1.05rem 1.15rem; }
  .calc__head h3 { font-size: 1.02rem; }
  .calc__body   { padding: 1.2rem 1.15rem; }
  .calc__result { padding: 1.3rem 1.15rem; }
  .field { margin-bottom: 1rem; }
  .field > label { font-size: .84rem; }
  .input-wrap input, .input-wrap select { padding: .78rem .8rem; }
  .chips { gap: .4rem; }
  .chip  { padding: .5rem .15rem; border-radius: 9px; }
  .chip b { font-size: .92rem; }
  .chip small { font-size: .58rem; }
  .calc__headline { padding-bottom: .95rem; margin-bottom: .95rem; }
  .calc__result .btn { margin-top: 1.1rem; }
  .calc__note { margin-top: .85rem; }

  /* --- general phone polish --- */
  .pcard { padding: 1.5rem; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}

/* ============================================================
   TEAM  (Our team page, team_grid block, member profile)
   ============================================================ */
/* Column count comes from --tcols, set inline by the view from the admin
   setting. var() substitution inside repeat() is textual, so this is a
   real integer by the time the grid is parsed. */
.team-grid {
  display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
}
@media (min-width: 560px) {
  .team-grid { grid-template-columns: repeat(var(--tcols-sm, 2), minmax(0, 1fr)); }
}
@media (min-width: 940px) {
  .team-grid { grid-template-columns: repeat(var(--tcols, 3), minmax(0, 1fr)); }
}
.team-grid--left { margin-inline: 0; }

.mcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s ease;
}
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mcard__photo {
  aspect-ratio: 1/1; overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--blue-100), var(--ember-100));
}
.mcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .45s var(--ease); }
.mcard:hover .mcard__photo img { transform: scale(1.04); }
.mcard__photo--empty { display: grid; place-items: center; color: var(--line-2); }

.mcard__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mcard__body h3 { font-size: 1.1rem; line-height: 1.25; }
.mcard__body h3 a { color: inherit; }
.mcard__body h3 a:hover { color: var(--blue); }
.mcard__role {
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ember-600); margin-top: .3rem;
}
.mcard__bio { font-size: .9rem; color: var(--slate); margin-top: .7rem; flex: 1; }

.mcard__links { display: flex; gap: .5rem; margin-top: 1.1rem; }
.mcard__links a {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--navy); border: 1px solid var(--line);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.mcard__links a:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.mcard__more { margin-top: 1rem; font-size: .88rem; }

/* Plain variant: no panel, photo rounded on its own. */
.team-grid--plain .mcard { background: none; border: 0; border-radius: 0; }
.team-grid--plain .mcard:hover { transform: none; box-shadow: none; }
.team-grid--plain .mcard__photo { border-radius: var(--radius-lg); }
.team-grid--plain .mcard__body { padding: 1.05rem 0 0; }

/* member profile page */
.profile { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 900px) { .profile { grid-template-columns: 320px 1fr; gap: 3.25rem; } }
.profile__aside { position: relative; }
@media (min-width: 900px) { .profile__aside { position: sticky; top: 100px; } }
.profile__photo {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(140deg, var(--blue-100), var(--ember-100));
  border: 1px solid var(--line);
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile__photo--empty { display: grid; place-items: center; color: var(--line-2); }

.profile__contact { list-style: none; margin: 1.4rem 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.profile__contact li { display: flex; align-items: center; gap: .65rem; font-size: .93rem; margin: 0 !important; }
.profile__contact li svg { color: var(--ember); flex: none; }
.profile__contact a { color: var(--navy); word-break: break-word; }
.profile__contact a:hover { color: var(--blue); }
