/* The all-in-one price board and the "doing it alone?" bill, on the home page
   and the /compare/ hub. Markup is generated by scripts/build-compare-pages.js
   (between the home-compare and compare-to markers). Shares tokens with flagship.css. */

.hc-section { padding: clamp(70px, 9vw, 124px) 0 clamp(36px, 5vw, 56px); }

.hc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.hc-head h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
}

.hc-head p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 18px; }

.hc-board {
  display: grid;
  gap: 8px;
}

.hc-row {
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.1fr) 2fr 236px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

a.hc-row:hover { border-color: var(--ink); background: #fbfbf8; }

.hc-row.is-scale { border-color: var(--ink); background: var(--ink); color: #fff; }

.hc-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.hc-logo {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.hc-logo img { width: 100%; height: 100%; object-fit: contain; }

.is-scale .hc-logo { border-color: var(--ink); background: var(--ink); }

.hc-name strong { display: block; font-size: 16px; line-height: 1.15; }
.hc-name small { color: var(--muted); font-size: 13px; }
.is-scale .hc-name small { color: rgba(255, 255, 255, 0.66); }

.hc-meter {
  display: block;
  height: 12px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.hc-meter i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: var(--lilac);
  border-radius: inherit;
}

.is-scale .hc-meter { background: rgba(255, 255, 255, 0.12); }
.is-scale .hc-meter i { background: var(--lime); }

.hc-cost { text-align: right; font-variant-numeric: tabular-nums; }
.hc-cost strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.hc-cost small { color: var(--green); font-size: 13px; font-weight: 640; }
.hc-cost small.is-more {
  display: block;
  margin-left: auto;
  color: #a33a24;
  font-weight: 600;
  line-height: 1.35;
}
.is-scale .hc-cost small { color: var(--lime); }

.hc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 24px;
}

.hc-foot p {
  max-width: 82ch;
  flex: 1 1 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- Doing it alone? ---------- */
.hc-alone { padding: clamp(28px, 4vw, 48px) 0 clamp(70px, 9vw, 124px); }

/* On /compare/ the two sections sit right under the tabs, before the platform cards. */
.hc-section--hub { padding-top: 0; }
.hc-section--hub + .hc-alone { padding-bottom: clamp(36px, 5vw, 56px); }

.hc-alone-panel {
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding: clamp(32px, 6vw, 80px);
  background: var(--coral);
  border-radius: var(--radius-lg);
}

.hc-alone-copy .eyebrow::before { background: var(--ink); }

.hc-alone-copy h2 {
  max-width: 13ch;
  margin: 0 0 22px;
  font-size: clamp(38px, 5.4vw, 70px);
}

.hc-alone-copy p { max-width: 50ch; margin: 0; font-size: 18px; line-height: 1.5; }

.hc-receipt {
  max-width: 440px;
  width: 100%;
  justify-self: center;
  padding: 26px 26px 22px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(5, 5, 5, 0.16);
  font-variant-numeric: tabular-nums;
  transform: rotate(1.5deg);
}

.hc-receipt-title {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px dashed #c9c9c2;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hc-receipt ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hc-receipt li,
.hc-receipt-total,
.hc-receipt-scale {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hc-receipt li { font-size: 15px; }
.hc-receipt li b { font-weight: 640; }

.hc-receipt-more {
  margin: 10px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px dashed #c9c9c2;
  color: var(--muted);
  font-size: 14px;
}

.hc-receipt-total { padding-top: 14px; font-weight: 650; }

.hc-receipt-total strong {
  color: #a33a24;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.04em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.hc-receipt-scale {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--ink);
  border-radius: 12px;
  color: #fff;
  font-weight: 620;
}

.hc-receipt-scale strong { color: var(--lime); font-size: 22px; letter-spacing: -0.03em; }

@media (max-width: 1080px) {
  .hc-row { grid-template-columns: minmax(180px, 1fr) 1.4fr 236px; }
}

@media (max-width: 860px) {
  .hc-alone-panel { grid-template-columns: 1fr; }
  .hc-receipt { justify-self: start; transform: none; }
}

/* Phones: name and price on one line, the bar under them, then the savings
   line, so long savings text never squeezes the platform name. */
@media (max-width: 760px) {
  .hc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .hc-cost { display: contents; }
  .hc-cost strong { grid-column: 2; grid-row: 1; text-align: right; }
  .hc-row .hc-meter { grid-column: 1 / -1; grid-row: 2; }
  .hc-cost small,
  .hc-cost small.is-more { grid-column: 1 / -1; grid-row: 3; margin: -2px 0 0; text-align: left; }
}

@media (max-width: 420px) {
  .hc-receipt { padding: 22px 18px 18px; }
  .hc-receipt li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-row { transition: none; }
}
