/* ============================================================
   Tokens
   Palette: one hue (172) + 5 HSB variations, plus black/white.
   Spacing scale: 4 8 12 16 24 32 40 48 64
   Type scale: 16 base, ratio 1.25 -> 14 16 20 25 31 39
   ============================================================ */
:root {
  /* hue 172 */
  --brand:        #197367; /* 172,78,45  interactive fill, links */
  --brand-press:  #0F4D44; /* 172,80,30  pressed / active */
  --stroke:       #688C87; /* 172,26,55  meaningful borders 3.4:1 */
  --stroke-weak:  #C1DBD8; /* 172,12,86  hairlines */
  --fill-weak:    #EBF7F5; /* 172,5,97   tinted surfaces */

  --text-strong:  #14201E;
  --text-weak:    #4A5654; /* 7.1:1 on page */
  --text-invert:  #FFFFFF;
  --page:         #F6F7F7;
  --surface:      #FFFFFF;

  --s4: 4px;  --s8: 8px;   --s12: 12px; --s16: 16px;
  --s24: 24px; --s32: 32px; --s40: 40px; --s48: 48px; --s64: 64px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text-strong);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: 31px; line-height: 36px; letter-spacing: -0.4px; }
h2 { font-size: 25px; line-height: 32px; letter-spacing: -0.3px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.2px; }
h4 { font-size: 16px; line-height: 24px; }
p  { margin: 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-press); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s16); }
.label {
  font-size: 14px; line-height: 20px; font-weight: 700;
  color: var(--text-weak); text-transform: none;
}
.muted { color: var(--text-weak); }
.small { font-size: 14px; line-height: 20px; }
.prose { max-width: 68ch; }

/* ============================================================
   Bar: brand, currency, range index
   ============================================================ */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}
.bar-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s16); padding: var(--s8) 0;
}
.mark {
  display: inline-flex; align-items: center; gap: var(--s8);
  min-height: 48px; color: var(--text-strong); text-decoration: none;
  font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.2px;
}
.mark::before {
  content: ""; width: var(--s8); height: var(--s24);
  background: var(--brand); border-radius: 2px;
}
.mark:hover { color: var(--brand-press); }

.money-switch { display: flex; gap: var(--s4); }
.money-switch button {
  min-height: 48px; min-width: 48px; padding: var(--s12) var(--s16);
  font: inherit; font-weight: 700;
  background: transparent; color: var(--text-weak);
  border: 1px solid var(--stroke); border-radius: 4px; cursor: pointer;
}
.money-switch button:hover { color: var(--brand-press); border-color: var(--brand); }
.money-switch button[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: var(--text-invert);
}

.index { border-top: 1px solid var(--stroke-weak); }
.index ul {
  display: flex; gap: var(--s24); margin: 0; padding: 0;
  list-style: none; overflow-x: auto; scrollbar-width: thin;
}
.index a {
  display: flex; align-items: center; gap: var(--s8);
  min-height: 48px; white-space: nowrap; text-decoration: none;
  color: var(--text-strong); font-size: 14px; line-height: 20px; font-weight: 700;
  border-bottom: 2px solid transparent;
}
.index a:hover { color: var(--brand-press); border-bottom-color: var(--stroke); }
.index a[aria-current="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.index .count { font-weight: 400; color: var(--text-weak); }

/* ============================================================
   Opening: statement + facts ledger
   ============================================================ */
.open {
  display: grid; grid-template-columns: 1fr; gap: var(--s32);
  padding: var(--s40) 0;
}
.open p { color: var(--text-weak); margin-top: var(--s16); }
.ledger { display: grid; gap: var(--s16); align-content: start; }
.ledger div {
  display: flex; justify-content: space-between; gap: var(--s16);
  padding-bottom: var(--s12); border-bottom: 1px solid var(--stroke-weak);
}
.ledger dt, .ledger .k { color: var(--text-weak); font-size: 14px; line-height: 20px; }
.ledger .v { font-weight: 700; text-align: right; }

/* ============================================================
   Range sections and product rows
   ============================================================ */
.range { padding-top: var(--s40); }
.range-head {
  display: grid; gap: var(--s8);
  padding-bottom: var(--s24); border-bottom: 2px solid var(--text-strong);
}
.range-head .lead { color: var(--text-weak); max-width: 68ch; }
.range-head .count { font-size: 14px; line-height: 20px; color: var(--text-weak); }

.row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s16);
  padding: var(--s24) 0;
  border-bottom: 1px solid var(--stroke-weak);
}
.row img {
  width: 88px; height: 88px; object-fit: cover;
  background: var(--fill-weak); border-radius: 4px; display: block;
}
.row-body { display: grid; gap: var(--s8); min-width: 0; }
.row h3 { overflow-wrap: anywhere; }
.row .desc { color: var(--text-weak); max-width: 62ch; }
.spec { font-size: 14px; line-height: 20px; color: var(--text-weak); }

/* signature: heat output measure */
.output { display: grid; gap: var(--s4); max-width: 240px; }
.output .track { height: var(--s4); background: var(--fill-weak); border-radius: 2px; }
.output .fill { height: var(--s4); background: var(--brand); border-radius: 2px; }
.output .cap { font-size: 14px; line-height: 20px; color: var(--text-weak); }

.buy { display: flex; align-items: center; gap: var(--s16); flex-wrap: wrap; }
.price {
  font-size: 20px; line-height: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s12) var(--s24);
  font: inherit; font-weight: 700; text-decoration: none;
  border-radius: 4px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--text-invert); }
.btn-primary:hover { background: var(--brand-press); color: var(--text-invert); }
.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--stroke); }
.btn-secondary:hover { color: var(--brand-press); border-color: var(--brand); }
.btn-tertiary { background: transparent; color: var(--brand); padding: var(--s12) 0; }
.btn-tertiary:hover { color: var(--brand-press); }

/* ============================================================
   Note band, closing block, footer
   ============================================================ */
.note {
  background: var(--fill-weak); border-left: var(--s4) solid var(--brand);
  padding: var(--s24); margin-top: var(--s40); border-radius: 0 4px 4px 0;
}
.note p { color: var(--text-weak); margin-top: var(--s8); max-width: 68ch; }

.closing { padding: var(--s48) 0; display: grid; gap: var(--s16); }
.closing p { color: var(--text-weak); max-width: 62ch; }
.closing .btn { justify-self: start; margin-top: var(--s8); }

.foot {
  border-top: 1px solid var(--stroke);
  background: var(--surface);
  padding: var(--s40) 0 var(--s48);
}
.foot-grid { display: grid; gap: var(--s32); }
.foot h4 { margin-bottom: var(--s12); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s8); }
.foot li, .foot p { color: var(--text-weak); font-size: 14px; line-height: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: var(--s24); }
.legal {
  margin-top: var(--s32); padding-top: var(--s16);
  border-top: 1px solid var(--stroke-weak);
  color: var(--text-weak); font-size: 14px; line-height: 20px;
}

/* ============================================================
   Policy pages
   ============================================================ */
.doc { padding: var(--s40) 0 var(--s48); }
.doc h1 { margin-bottom: var(--s8); }
.doc h2 { margin-top: var(--s40); margin-bottom: var(--s12); }
.doc h3 { margin-top: var(--s24); margin-bottom: var(--s8); }
.doc p, .doc li { color: var(--text-weak); max-width: 68ch; }
.doc p { margin-top: var(--s12); }
.doc ul, .doc ol { margin: var(--s12) 0 0; padding-left: var(--s24); display: grid; gap: var(--s8); }
.doc table {
  margin-top: var(--s16); border-collapse: collapse; width: 100%; max-width: 720px;
  font-size: 14px; line-height: 20px;
}
.doc th, .doc td {
  text-align: left; padding: var(--s12); border: 1px solid var(--stroke);
  color: var(--text-weak); vertical-align: top;
}
.doc th { color: var(--text-strong); background: var(--fill-weak); }

/* ============================================================
   Wider screens
   ============================================================ */
@media (min-width: 720px) {
  .wrap { padding: 0 var(--s32); }
  h1 { font-size: 39px; line-height: 44px; letter-spacing: -0.6px; }
  h2 { font-size: 31px; line-height: 36px; }
  .open {
    grid-template-columns: 7fr 5fr; gap: var(--s64);
    padding: var(--s64) 0 var(--s48);
  }
  .row {
    grid-template-columns: 128px 1fr 200px;
    align-items: start; gap: var(--s24);
  }
  .row img { width: 128px; height: 128px; }
  .buy {
    flex-direction: column; align-items: flex-start; gap: var(--s8);
    text-align: left;
  }
  .price { font-size: 25px; line-height: 32px; }
  .foot-grid { grid-template-columns: 5fr 4fr 3fr; gap: var(--s40); }
}
