/* Guardian page (/guardian): the seat calculator, how it works, what each
   side gets, who it's for, questions and the closing band.
   The hg- prefix dates from the Squarespace code block this began as;
   guardian.js and the markup still use it. Colours, type and spacing come
   from the tokens in site.css, and the cards match the home page's. */

.hum-guardian { position: relative; max-width: 1080px; margin: 0 auto; }

.hg-h2 {
  margin: 0; color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
}
.hg-h3 { margin: 0 0 18px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.hg-center { text-align: center; }
.hg-sub { margin: 12px auto 0; max-width: 560px; font-size: 1rem; line-height: 1.6; color: var(--body); }

/* ---------- buttons ---------- */
.hg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border-radius: 14px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.hg-btn--solid { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(5, 108, 181, .4); }
.hg-btn--solid:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.hg-talk { display: block; margin-top: 14px; text-align: center; font-size: .875rem; font-weight: 600; color: var(--sky); text-decoration: none; }
.hg-talk:hover { color: var(--sky-soft); text-decoration: underline; }

/* ---------- calculator ---------- */
.hg-calc { padding: 36px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); }
.hg-calc-head { margin-bottom: 32px; text-align: center; }
.hg-calc-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }

.hg-label {
  display: block; margin-bottom: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hg-seat-row { display: flex; align-items: baseline; gap: 12px; }
.hg-seat-num {
  width: 5.2em; padding: 8px 14px;
  font: inherit; font-size: 2.125rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: #fff;
  background: var(--navy); border: 1px solid var(--line-strong); border-radius: 14px;
  -moz-appearance: textfield; appearance: textfield;
}
.hg-seat-num::-webkit-outer-spin-button,
.hg-seat-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hg-seat-num:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
.hg-seat-unit { font-size: 1rem; font-weight: 600; color: var(--body); }

.hg-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 24px 0 0; background: transparent; cursor: pointer; }
.hg-slider:focus { outline: none; }
.hg-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.hg-slider::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.hg-slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--blue); }
.hg-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -8px;
  width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(5, 108, 181, .6);
}
.hg-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(5, 108, 181, .6);
}
.hg-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(91, 156, 248, .45); }
.hg-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(91, 156, 248, .45); }
.hg-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hg-hint { margin: 16px 0 0; font-size: .875rem; line-height: 1.55; color: var(--body); }

/* toggle: the same mechanism, and look, as the home page's */
.hg-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  margin-top: 24px; padding: 5px; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--line-strong);
}
.hg-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px; background: var(--blue);
  box-shadow: 0 6px 16px rgba(5, 108, 181, .35);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
}
.hg-seg {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; background: transparent;
  font: inherit; font-size: .875rem; font-weight: 700; color: var(--body);
  transition: color .2s ease;
}
.hg-seg[data-cycle="annual"] { padding-right: 16px; }
.hg-seg:hover, .hg-seg.is-active { color: #fff; }
.hg-seg-save {
  padding: 3px 8px; border-radius: 999px;
  background: rgba(95, 211, 122, .16); color: #7FDC95;
  font-size: .6875rem; font-weight: 800;
}

/* the quote: the featured card's look */
.hg-quote {
  padding: 28px 24px; border-radius: 20px; text-align: center;
  background: var(--raised-2); border: 1.5px solid var(--sky);
  box-shadow: 0 24px 60px var(--blue-glow);
}
.hg-quote-band {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sky); background: var(--sky-tint); border: 1px solid var(--sky-line);
}
.hg-quote-total { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hg-quote-amt { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.hg-quote-per { font-size: .9375rem; color: var(--muted); }
.hg-quote-unit { margin-top: 12px; font-size: .875rem; color: var(--body); font-variant-numeric: tabular-nums; }
.hg-quote-save { margin-top: 8px; font-size: .875rem; font-weight: 700; color: var(--go); font-variant-numeric: tabular-nums; }
.hg-cliff {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; text-align: left;
  font-size: .8125rem; line-height: 1.55; color: var(--list);
  background: var(--sky-tint); border: 1px solid var(--sky-line);
}
.hg-cliff b { color: #fff; font-variant-numeric: tabular-nums; }
.hg-cliff button {
  -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--sky); text-decoration: underline; text-underline-offset: 2px;
}
.hg-cliff button:hover { color: var(--sky-soft); }
.hg-quote-btn { display: flex; width: 100%; margin-top: 22px; }
.hg-quote-note { margin: 14px 0 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); }

/* ---------- how it works ---------- */
.hg-steps { margin-top: 96px; }
.hg-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.hg-step { padding: 28px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.hg-step-n {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--sky-tint); border: 1px solid var(--sky-line); color: var(--sky);
  font-size: 1.0625rem; font-weight: 800;
}
.hg-step b { display: block; margin-top: 20px; font-size: 1.125rem; letter-spacing: -.01em; color: #fff; }
.hg-step p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--body); }

/* ---------- what each side gets ---------- */
.hg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 96px; }
.hg-panel { padding: 32px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); }
.hg-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hg-feats li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.55; color: var(--list); }
/* a check mark in the site's accent, drawn so no icon file is needed */
.hg-feats li::before {
  content: ""; position: absolute; left: 5px; top: .3em;
  width: 6px; height: 11px;
  border: solid var(--sky); border-width: 0 2.5px 2.5px 0; border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------- who it's for ---------- */
.hg-who { margin-top: 96px; }
.hg-who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.hg-who-card { padding: 24px 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.hg-who-card b { display: block; margin-bottom: 6px; font-size: 1.0625rem; color: #fff; }
.hg-who-card span { font-size: .875rem; line-height: 1.55; color: var(--body); }

/* ---------- questions ---------- */
.hg-faq { max-width: 780px; margin: 96px auto 0; }
.hg-faq .hg-h2 { margin-bottom: 28px; }
.hg-q { margin-top: 12px; padding: 0 22px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.hg-q[open] { border-color: var(--line-strong); }
.hg-q summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 32px 20px 0;
  font-size: 1rem; font-weight: 700; line-height: 1.4; color: #fff;
}
.hg-q summary::-webkit-details-marker { display: none; }
.hg-q summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
  transform: rotate(45deg); transition: transform .2s ease;
}
.hg-q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hg-q p { margin: 0 0 20px; font-size: .9375rem; line-height: 1.65; color: var(--body); }

/* ---------- closing band ---------- */
.hg-close {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 96px; padding: 64px 28px 56px; border-radius: 28px; text-align: center;
  background: var(--raised-2); border: 1px solid var(--sky-line);
}
.hg-close::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 40px; width: 720px; height: 520px; margin-left: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), rgba(5, 108, 181, 0));
}
.hg-close-p { max-width: 520px; margin: 14px auto 28px; font-size: 1.0625rem; line-height: 1.6; color: var(--body); }
.hg-close .hg-btn--solid { background: #fff; color: var(--navy); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.hg-close .hg-btn--solid:hover { background: var(--sky-soft); color: var(--navy); }

.hg-promise {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 760px; margin: 40px auto 0; text-align: center;
  font-size: .9375rem; line-height: 1.55; color: var(--body);
}
.hg-promise svg { flex: none; width: 16px; height: 16px; color: var(--go); }

/* ---------- responsive & motion ---------- */
@media (max-width: 900px) {
  .hg-calc-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hg-steps-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .hg-split { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .hg-who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hg-calc { padding: 28px 20px 24px; border-radius: 22px; }
  .hg-calc-head { margin-bottom: 24px; }
  .hg-seat-num { font-size: 1.875rem; }
  .hg-quote { padding: 24px 18px; }
  .hg-quote-amt { font-size: 2.625rem; }
  .hg-steps, .hg-split, .hg-who, .hg-faq, .hg-close { margin-top: 72px; }
  .hg-steps-grid, .hg-who-grid { margin-top: 28px; }
  .hg-step, .hg-panel { padding: 24px; }
  .hg-q { padding: 0 18px; }
  .hg-close { padding: 48px 20px 44px; border-radius: 24px; }
  .hg-close .hg-btn { width: 100%; }
  .hg-promise { align-items: flex-start; justify-content: flex-start; text-align: left; font-size: .875rem; }
  .hg-promise svg { margin-top: 2px; }
}
@media (max-width: 520px) {
  .hg-who-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hum-guardian * { transition: none !important; }
}
