/* =========================================================
   SEAT PRICING CALCULATOR + COMPETITOR COMPARISON
   Shared by the homepage and /pricing. Dark ground, so it
   sits directly under a dark hero on either page.
   ========================================================= */

.hp-calc {
  background: var(--navy-980);
  padding: clamp(48px, 6.5vw, 88px) 0 clamp(40px, 5vw, 64px);
  /* The section is linkable (#pricing-calculator); clear the fixed nav so the
     heading is not hidden under it when jumped to. */
  scroll-margin-top: calc(var(--nav-height, 72px) + 16px);
}
.hp-calc-header {
  max-width: 720px;
  margin: 0 auto clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}
.hp-calc-title {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hp-calc-sub {
  max-width: 65ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.hp-calc-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg, 18px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-calc-slider-row { margin-bottom: clamp(1.4rem, 2.6vw, 2rem); }
.hp-calc-slider-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hp-calc-seat-count {
  color: var(--cyan-500);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.hp-calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
}
.hp-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-500);
  border: 3px solid var(--navy-980);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.45);
  cursor: grab;
}
.hp-calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-500);
  border: 3px solid var(--navy-980);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.45);
  cursor: grab;
}
.hp-calc-slider:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 6px; }
.hp-calc-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.hp-calc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.hp-calc-plan {
  padding: 16px 18px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-calc-plan-name {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Price and discount badge share a baseline so the badge reads as an
   attribute of the number, not a separate note floating beside it. */
.hp-calc-plan-priceline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.3rem 0 0.2rem;
}
.hp-calc-plan-total {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hp-calc-off {
  padding: 3px 9px;
  border-radius: var(--radius-full, 99px);
  background: rgba(0, 212, 255, 0.16);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan-500);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hp-calc-off[hidden] { display: none; }

.hp-calc-plan-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 0.55rem;
  color: var(--cyan-500);
  font-size: 0.82rem;
  font-weight: 600;
}
/* The anchor: quiet and struck through, so the live total is what the eye
   lands on and this is only what it measures against. */
.hp-calc-was {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hp-calc-was s { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.hp-calc-saved { color: var(--cyan-500); font-variant-numeric: tabular-nums; }
.hp-calc-saved-yr { color: rgba(255, 255, 255, 0.62); font-weight: 500; }
/* Shown only at one seat, where there is no discount yet to report. */
.hp-calc-plan-nudge {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── The discount ladder ───────────────────────────────────────────────────
   Six rungs, because 10% a seat reaches the 50% floor at the sixth. Rungs you
   have reached are lit; the rest stay visible but recede, so the strip reads
   as "here is the whole deal, here is how much of it you're getting". */
.hp-calc-ladder {
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.hp-calc-ladder-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-calc-ladder-rungs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-calc-rung {
  flex: 1 1 auto;
  min-width: 92px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  opacity: 0.5;
}
.hp-calc-rung.is-on {
  opacity: 1;
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.34);
}
.hp-calc-rung-seat {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hp-calc-rung-off {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hp-calc-rung.is-on .hp-calc-rung-seat { color: rgba(255, 255, 255, 0.75); }
.hp-calc-rung.is-on .hp-calc-rung-off { color: var(--cyan-500); }
.hp-calc-plan-blurb {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
}
.hp-calc-compare-head { margin-bottom: 0.9rem; }
.hp-calc-compare-title {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
}
.hp-calc-compare-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.5;
}
.hp-calc-table-wrap { overflow-x: auto; }
.hp-calc-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
}
.hp-calc-table thead th {
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-calc-num { text-align: right; font-variant-numeric: tabular-nums; }
.hp-calc-row th,
.hp-calc-row td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
  vertical-align: top;
}
.hp-calc-row th { font-weight: 600; color: #ffffff; }
.hp-calc-row-note {
  display: block;
  margin-top: 3px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
}
.hp-calc-row--axiom th,
.hp-calc-row--axiom td {
  background: rgba(0, 212, 255, 0.07);
}
.hp-calc-row--axiom th { color: var(--cyan-500); }
.hp-calc-base { color: rgba(255, 255, 255, 0.4); }
.hp-calc-more { color: #ffb4a2; font-weight: 600; }
.hp-calc-less { color: #86efac; font-weight: 600; }
.hp-calc-poa { color: rgba(255, 255, 255, 0.45); font-style: italic; }
.hp-calc-add { margin-top: 14px; }
.hp-calc-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full, 99px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hp-calc-add-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan-500);
  color: #ffffff;
}
.hp-calc-add-btn:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 3px; }
.hp-calc-add-select {
  padding: 8px 12px;
  border-radius: var(--radius-md, 10px);
  background: var(--navy-970, #0b1a2b);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.88rem;
  min-width: 220px;
}
.hp-calc-add-select:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 2px; }
.hp-calc-foot {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.hp-calc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-calc-cta-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
@media (max-width: 560px) {
  .hp-calc-panel { padding: 16px; }
  .hp-calc-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-calc-add-btn,
  .hp-calc-rung { transition: none; }
}

/* ── Light variant ─────────────────────────────────────────────────────────
   For pages whose pricing band is light (the /m funnel). Same structure, same
   behaviour — only the ground and the ink flip, so the module reads as part of
   the page rather than a dark slab dropped into it. */
.hp-calc--light {
  background: transparent;
  padding: 0;
}

.hp-calc--light .hp-calc-header { text-align: left; margin-bottom: 1.1rem; }
.hp-calc--light .hp-calc-title { color: var(--navy-950, #06172a); font-size: clamp(1.4rem, 6vw, 1.8rem); }
.hp-calc--light .hp-calc-sub { color: var(--slate-600, #475569); font-size: 0.92rem; }

.hp-calc--light .hp-calc-panel {
  background: #fff;
  border-color: var(--slate-200, #e2e8f0);
}

.hp-calc--light .hp-calc-slider-label { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-seat-count { color: var(--navy-950, #06172a); }
.hp-calc--light .hp-calc-slider { background: var(--slate-200, #e2e8f0); }
.hp-calc--light .hp-calc-slider::-webkit-slider-thumb { border-color: #fff; }
.hp-calc--light .hp-calc-slider::-moz-range-thumb { border-color: #fff; }
.hp-calc--light .hp-calc-slider-scale { color: var(--slate-400, #94a3b8); }

.hp-calc--light .hp-calc-plan {
  background: var(--slate-50, #f8fafc);
  border-color: var(--slate-200, #e2e8f0);
}
.hp-calc--light .hp-calc-plan-name { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-plan-total { color: var(--navy-950, #06172a); }
.hp-calc--light .hp-calc-plan-meta { color: var(--teal-600, #0f766e); }
.hp-calc--light .hp-calc-plan-blurb { color: var(--slate-500, #64748b); }

/* The discount furniture follows the light variant's teal accent rather than
   the dark variant's cyan — same reason the rest of this block flips. */
.hp-calc--light .hp-calc-off {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--teal-700, #0f766e);
}
.hp-calc--light .hp-calc-was { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-saved { color: var(--teal-700, #0f766e); }
.hp-calc--light .hp-calc-saved-yr { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-plan-nudge { color: var(--slate-500, #64748b); }

.hp-calc--light .hp-calc-ladder {
  background: var(--slate-50, #f8fafc);
  border-color: var(--slate-200, #e2e8f0);
}
.hp-calc--light .hp-calc-ladder-label { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-rung {
  background: #fff;
  border-color: var(--slate-200, #e2e8f0);
}
.hp-calc--light .hp-calc-rung.is-on {
  background: rgba(13, 148, 136, 0.09);
  border-color: rgba(13, 148, 136, 0.34);
}
.hp-calc--light .hp-calc-rung-seat { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-rung-off { color: var(--slate-700, #334155); }
.hp-calc--light .hp-calc-rung.is-on .hp-calc-rung-seat { color: var(--slate-600, #475569); }
.hp-calc--light .hp-calc-rung.is-on .hp-calc-rung-off { color: var(--teal-700, #0f766e); }

.hp-calc--light .hp-calc-compare-title { color: var(--navy-950, #06172a); }
.hp-calc--light .hp-calc-compare-note,
.hp-calc--light .hp-calc-foot { color: var(--slate-500, #64748b); }

.hp-calc--light .hp-calc-table thead th { color: var(--slate-500, #64748b); border-bottom-color: var(--slate-200, #e2e8f0); }
.hp-calc--light .hp-calc-row th,
.hp-calc--light .hp-calc-row td { color: var(--slate-700, #334155); border-bottom-color: var(--slate-100, #f1f5f9); }
.hp-calc--light .hp-calc-row th { color: var(--navy-950, #06172a); }
.hp-calc--light .hp-calc-row-note { color: var(--slate-500, #64748b); }
.hp-calc--light .hp-calc-row--axiom th,
.hp-calc--light .hp-calc-row--axiom td { background: rgba(13, 148, 136, 0.07); }
.hp-calc--light .hp-calc-row--axiom th { color: var(--teal-700, #0f766e); }
.hp-calc--light .hp-calc-base,
.hp-calc--light .hp-calc-poa { color: var(--slate-400, #94a3b8); }
.hp-calc--light .hp-calc-more { color: #b91c1c; }
.hp-calc--light .hp-calc-less { color: #15803d; }

.hp-calc--light .hp-calc-add-btn {
  background: var(--slate-50, #f8fafc);
  border-color: var(--slate-300, #cbd5e1);
  color: var(--slate-700, #334155);
}
.hp-calc--light .hp-calc-add-btn:hover {
  background: #fff;
  border-color: var(--teal-500, #14b8a6);
  color: var(--navy-950, #06172a);
}
.hp-calc--light .hp-calc-add-select {
  background: #fff;
  border-color: var(--slate-300, #cbd5e1);
  color: var(--navy-950, #06172a);
}

.hp-calc--light .hp-calc-cta {
  border-top-color: var(--slate-200, #e2e8f0);
}
.hp-calc--light .hp-calc-cta-note { color: var(--slate-500, #64748b); }

/* ── Narrow viewports: the comparison stacks ───────────────────────────────
   As a table it needs ~540px, so on a phone it panned sideways and clipped the
   provider name — the one column you need to read every row. Below 640px each
   provider becomes its own block instead: name, what it is, then the figures
   as labelled pairs. Nothing scrolls, nothing is cut off. */
@media (max-width: 640px) {
  .hp-calc-table-wrap { overflow: visible; }

  .hp-calc-table {
    min-width: 0;
    display: block;
  }

  .hp-calc-table thead { display: none; }
  .hp-calc-table tbody { display: block; }

  .hp-calc-row {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .hp-calc-row th,
  .hp-calc-row td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .hp-calc-row th {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .hp-calc-row-note { max-width: none; margin-bottom: 8px; }

  /* Figures read as label/value pairs once the column headers are gone. */
  .hp-calc-row td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
  }

  .hp-calc-row td::before {
    content: attr(data-label);
    flex: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
    font-weight: 500;
  }

  /* The highlighted row becomes a filled card rather than a tinted column. */
  .hp-calc-row--axiom {
    padding: 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-md, 10px);
    background: rgba(0, 212, 255, 0.09);
    border-bottom: 0;
  }
  .hp-calc-row--axiom th,
  .hp-calc-row--axiom td { background: transparent; }
}

/* Light variant needs its own ink for the stacked rows. */
@media (max-width: 640px) {
  .hp-calc--light .hp-calc-row { border-bottom-color: var(--slate-200, #e2e8f0); }
  .hp-calc--light .hp-calc-row td::before { color: var(--slate-500, #64748b); }
  .hp-calc--light .hp-calc-row--axiom {
    background: rgba(13, 148, 136, 0.08);
    border-bottom: 0;
  }

  /* The desktop rule tints the CELLS to colour a column; stacked, that paints a
     second box inside the card. Needs the variant prefix to out-specify it. */
  .hp-calc--light .hp-calc-row--axiom th,
  .hp-calc--light .hp-calc-row--axiom td {
    background: transparent;
  }
}
