/* =========================================================
   Prices (prices.html) — Figma 54:4497 (desktop), 54:4760 (mobile)
   ========================================================= */

/* ---------- Hero ---------- */
.p-hero { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 96px var(--pad-x) 72px; text-align: center; color: var(--muted-foreground); }
.p-hero__statement { width: 1040px; max-width: 100%; }
.p-hero__statement b { font-weight: inherit; color: var(--foreground); }
.p-hero__lead { width: 680px; max-width: 100%; }

/* ---------- Configurator ---------- */
.p-config { padding: 112px var(--pad-x); }

/* ---------- Section rhythm (this page uses 112px) ---------- */
.p-block { padding-top: 112px; padding-bottom: 112px; }
.p-block .section-head { gap: 14px; }

/* ---------- Tables (rate card, home size, extras) ---------- */
.p-table { width: 100%; background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.p-table table { width: 100%; border-collapse: collapse; }
.p-table th, .p-table td { padding: 16px 0 16px 16px; text-align: right; font-weight: 400; white-space: nowrap; }
.p-table th:first-child { padding-left: 24px; text-align: left; width: 100%; white-space: normal; }
.p-table th:last-child, .p-table td:last-child { padding-right: 24px; }
.p-table thead th { background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; }
.p-table tbody th, .p-table tbody td { font-size: 14px; line-height: 20px; }
.p-table td { min-width: 186px; } /* 170px column + 16px gap */
.p-table tr { border-bottom: 1px solid var(--border-subtle); }
.p-table tbody tr:last-child { border-bottom: 0; }
.p-table tbody tr { transition: background-color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .p-table tbody tr:hover { background: color-mix(in srgb, var(--muted) 50%, var(--card)); } }

/* ---------- Compared with buying separately (data-claim="savings") ---------- */
.p-compare__note { margin-top: -32px; }
.p-compare__sources { width: 100%; max-width: 760px; margin-top: -24px; }
.p-compare__sources summary { cursor: pointer; font-weight: 500; width: fit-content; }
.p-compare__sources > div { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
@media (max-width: 960px) { .p-compare__note, .p-compare__sources { margin-top: -16px; } }
@media (max-width: 560px) { .p-compare .p-table th, .p-compare .p-table td { white-space: normal; } .p-compare .p-table tbody th { white-space: normal; } }

/* ---------- Monthly or yearly ---------- */
.p-billing__split { display: flex; align-items: center; gap: 80px; width: 100%; }
.p-billing__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.p-bullets { display: flex; flex-direction: column; gap: 12px; }
.p-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
.p-billing__photo { width: 520px; height: 520px; flex-shrink: 0; border-radius: 20px; overflow: hidden; }
.p-billing__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Questions ---------- */
.faq-head { gap: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1360px) {
  .p-billing__split { gap: 56px; }
  .p-billing__photo { width: 44%; height: auto; aspect-ratio: 1; }
  .p-table td { min-width: 140px; }
}

@media (max-width: 960px) {
  .p-hero { align-items: flex-start; text-align: left; gap: 16px; padding: 32px var(--pad-x) 40px; }
  .p-config { padding: 24px var(--pad-x) 64px; }
  .p-block { padding-top: 64px; padding-bottom: 64px; }
  .p-billing__split { flex-direction: column; align-items: stretch; gap: 28px; }
  .p-billing__copy { gap: 12px; }
  .p-billing__photo { width: 100%; height: auto; aspect-ratio: 353 / 420; }
  .p-table td { min-width: 0; }
}

@media (max-width: 560px) {
  .p-table { border-radius: 12px; }
  .p-table th, .p-table td { padding: 14px 0 14px 10px; font-size: 12px !important; line-height: 16px !important; }
  .p-table th:first-child { padding-left: 12px; }
  .p-table th:last-child, .p-table td:last-child { padding-right: 12px; }
  .p-table thead th { font-weight: 500; }
  .p-table tbody th { white-space: nowrap; }
  .p-table--two tbody th { white-space: normal; }
}

/* =========================================================
   Masked icons: black line SVGs painted in the current colour
   ========================================================= */
.mi { display: block; width: var(--mi, 20px); height: var(--mi, 20px); background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* =========================================================
   Rate card: a live matrix. Hover crosses row + column; the picked
   price (configurator above) is outlined; your size column (calculator) is tinted.
   ========================================================= */
.rc { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--ink) 40%, transparent); }
.rc__row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid var(--border-subtle); }
.rc__row--head { border-top: 0; background: var(--muted); }
.rc__corner { display: flex; align-items: flex-end; padding: 20px 28px; }
.rc__col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px 18px; color: var(--muted-foreground); text-align: center; transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.rc__house { color: var(--foreground); margin-bottom: 4px; }
.rc__size { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--foreground); }
.rc__band { font-size: 12px; line-height: 16px; }
.rc__pkg { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 22px 28px; transition: background-color var(--dur-ui) ease; }
.rc__name { font-size: 22px; line-height: 28px; letter-spacing: -0.2px; }
.rc__svcs { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.rc__chips { display: flex; gap: 6px; margin-top: 8px; }
.rc__chip { --sz: 30px; border-radius: 9px; --mi: 16px; }
.rc__cell { position: relative; display: grid; place-items: center; border-left: 1px solid var(--border-subtle); cursor: pointer;
  transition: background-color var(--dur-ui) ease; -webkit-tap-highlight-color: transparent; }
.rc__price { font-weight: 300; font-size: 34px; line-height: 40px; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; transition: transform 250ms var(--ease-out); }
.rc__cell::after { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1.5px solid var(--foreground); opacity: 0; transform: scale(.94); transition: opacity var(--dur-ui) var(--ease-out), transform 250ms var(--ease-out); pointer-events: none; }
.rc__cell.is-picked::after { opacity: 1; transform: none; }
.rc__cell:focus-visible { outline: none; }
.rc__cell:focus-visible::after { opacity: 1; transform: none; border-color: var(--primary); }
/* Crosshair: the hovered price's row and column tint; the price itself lifts a little */
.rc[data-hover-size="small"] .rc__col[data-size="small"], .rc[data-hover-size="small"] .rc__cell[data-size="small"],
.rc[data-hover-size="medium"] .rc__col[data-size="medium"], .rc[data-hover-size="medium"] .rc__cell[data-size="medium"],
.rc[data-hover-size="large"] .rc__col[data-size="large"], .rc[data-hover-size="large"] .rc__cell[data-size="large"] { background: color-mix(in srgb, var(--info-subtle) 55%, transparent); }
.rc[data-hover-pkg="grounds"] .rc__row[data-pkg="grounds"] > *, .rc[data-hover-pkg="inside"] .rc__row[data-pkg="inside"] > *,
.rc[data-hover-pkg="insideout"] .rc__row[data-pkg="insideout"] > *, .rc[data-hover-pkg="whole"] .rc__row[data-pkg="whole"] > * { background: color-mix(in srgb, var(--info-subtle) 55%, transparent); }
.rc[data-hover-size="small"][data-hover-pkg] .rc__cell[data-size="small"]:hover, .rc .rc__cell:hover { background: var(--info-subtle); }
@media (hover: hover) and (pointer: fine) { .rc__cell:hover .rc__price { transform: scale(1.06); } }
/* Your size (from the calculator below) */
.rc[data-yours="small"] .rc__col[data-size="small"], .rc[data-yours="medium"] .rc__col[data-size="medium"], .rc[data-yours="large"] .rc__col[data-size="large"] { color: var(--foreground); box-shadow: inset 0 -3px 0 var(--primary); }

/* =========================================================
   Size calculator
   ========================================================= */
.sz { width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.sz__inputs { display: flex; flex-direction: column; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 8px 32px; }
.sz__field { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 14px; align-items: center; padding: 26px 0; border-top: 1px solid var(--border-subtle); }
.sz__field:first-child { border-top: 0; }
.sz__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sz__val { font-size: 22px; line-height: 28px; font-weight: 300; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.sz__band { grid-column: 2; grid-row: 1; align-self: center; font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: var(--line-subtle); color: var(--muted-foreground); transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.sz__band.is-max { background: var(--info-subtle); color: var(--info); }
.sz__band[data-level="over"] { background: var(--attention-subtle); color: var(--attention); }
.sz__range, .sz__step, .sz__ticks { grid-column: 1 / -1; }
.sz__range { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.sz__range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--primary) var(--fill), var(--line-subtle) var(--fill)); }
.sz__range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-subtle); }
.sz__range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--primary); }
.sz__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 22%, transparent); transition: transform var(--dur-press) var(--ease-out); }
.sz__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 22%, transparent); }
.sz__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.sz__range:focus-visible { outline: none; }
.sz__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent); }
.sz__ticks { position: relative; height: 16px; margin-top: -8px; font-size: 11px; line-height: 16px; color: var(--muted-foreground); }
.sz__ticks span { position: absolute; left: var(--at); transform: translateX(-50%); }
.sz__step { display: flex; align-items: center; gap: 14px; }
.sz__btn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: border-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out); }
.sz__btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .sz__btn:hover { border-color: var(--foreground); } }
.sz__steps { flex: 1; display: flex; gap: 4px; }
.sz__steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--line-subtle); transition: background-color var(--dur-ui) ease; }
.sz__steps i.is-on { background: var(--primary); }

.sz__result { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px 32px; border-radius: 20px; background: var(--brand); color: var(--brand-foreground); }
.sz__result .c-muted { color: var(--brand-muted); }
.sz__size { font-size: 64px; line-height: 64px; font-weight: 400; letter-spacing: -1.6px; }
.sz__price { margin-top: auto; padding-top: 24px; width: 100%; border-top: 1px solid color-mix(in srgb, var(--brand-foreground) 18%, transparent); }
.sz__amount { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.sz__result .btn { margin-top: 12px; background: var(--brand-cta); color: var(--brand-cta-foreground); }
.sz[data-size="over"] .sz__size { font-size: 44px; line-height: 48px; }

/* =========================================================
   Extras: cards grouped by how they're charged
   ========================================================= */
.xg { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.xg + .xg { margin-top: 16px; }
.xg__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-weight: 400; }
.xg__grid { display: grid; gap: 16px; }
.xg__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xg__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xc { display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 236px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.xc__tile { --sz: 48px; --mi: 24px; border-radius: 14px; margin-bottom: 12px; }
.xc__name { font-size: 20px; line-height: 26px; font-weight: 400; letter-spacing: -0.2px; }
.xc__sub { max-width: 30ch; }
.xc__price { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.xc__amount { font-size: 28px; line-height: 32px; font-weight: 300; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .js .xc.lift.is-settled:hover .xc__tile { transform: rotate(-6deg) scale(1.05); } }
.xc__tile { transition: transform 300ms var(--ease-out); }

@media (max-width: 1100px) {
  .sz { grid-template-columns: minmax(0, 1fr); }
  .xg__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .rc { border-radius: 16px; }
  .rc__row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
  .rc__corner { padding: 14px; }
  .rc__corner .t-label { font-size: 11px; }
  .rc__col { padding: 14px 4px 12px; }
  .rc__band { display: none; }
  .rc__pkg { padding: 16px 14px; }
  .rc__name { font-size: 16px; line-height: 22px; }
  .rc__svcs { display: none; }
  .rc__chips { gap: 4px; margin-top: 6px; flex-wrap: wrap; }
  .rc__chip { --sz: 22px; --mi: 12px; border-radius: 7px; }
  .rc__price { font-size: 20px; line-height: 26px; letter-spacing: -0.3px; }
  .rc__cell::after { inset: 6px; border-radius: 10px; }
  .sz__inputs { padding: 4px 20px; }
  .sz__result { padding: 28px 24px; }
  .sz__size { font-size: 48px; line-height: 50px; }
  .xg__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .xc { min-height: 0; }
}
@media (max-width: 560px) { .xg__grid--4 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .rc__price, .xc__tile, .rc__cell::after { transition: none; transform: none !important; }
}
