/* Page CSS: only what sits inside a visual or an interactive block, on the kit's tokens. */

/* hero: the signal inbox on the surface frame */
.hero__ui { background: var(--surface); }

/* plateau: the self-check and the comparison */
.check-card { display: grid; gap: var(--s-5); align-content: start; }
.check-list { display: grid; gap: var(--s-2); }
.check {
  display: flex; align-items: center; gap: var(--s-4); width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-5); text-align: left; font: 400 var(--t-body)/1.5 var(--font-text); color: var(--ink);
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.check:hover { border-color: color-mix(in oklab, var(--ink) 20%, transparent); }
.check__box { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid color-mix(in oklab, var(--ink) 45%, transparent); display: grid; place-items: center; }
.check[aria-pressed="true"] { border-color: var(--action); }
.check[aria-pressed="true"] .check__box { background: var(--action); border-color: var(--action); }
.check[aria-pressed="true"] .check__box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--action-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check-result { font-size: var(--t-body); color: var(--ink); }
.check-result b { font-weight: 500; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap, 24px); align-self: stretch; }
.ramp-chart { grid-column: 1 / -1; margin: 0; display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.ramp-chart svg { width: 100%; height: 56px; display: block; }
.ramp-chart__a { fill: color-mix(in oklab, var(--ink) 28%, transparent); }
.ramp-chart__b { fill: var(--action); }
.ramp-chart__keys { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-small); }
.compare__col { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.compare__col h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.compare__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.compare__col li { padding-top: var(--s-2); border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.compare__col--us { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.compare__col--us li { border-top-color: color-mix(in oklab, var(--p-inv-ink) 18%, transparent); }

/* services: the small pictures inside each card's panel */
#services .panel { --p-h: 220px; height: var(--p-h); background: var(--surface); border-color: transparent; display: grid; place-items: center; padding: var(--s-6); }
.svc-list { list-style: none; margin: 0; padding: 0; width: min(100%, 440px); display: grid; gap: var(--s-2); }
.svc-list li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--bg); border-radius: var(--r-sm); font-size: var(--t-small); }
.svc-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-tag { font-size: var(--t-label); color: var(--action); font-weight: 500; }
.svc-mail, .svc-post { width: min(100%, 440px); background: var(--bg); border-radius: var(--r-md); padding: var(--s-5); display: grid; gap: var(--s-3); }
.svc-mail__to, .svc-post__head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-label); color: var(--muted); }
.svc-mail__body, .svc-post__body { font-size: var(--t-small); line-height: 1.55; }
.svc-post__meta { font-size: var(--t-label); color: var(--muted); }
.svc-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); }
.svc-tools .ic-tile { background: var(--bg); }
.svc-list--deals li { grid-template-columns: 96px 1fr auto; }
.tools-card { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); }
.tools-card .svc-tools { justify-content: flex-start; }
.footer__col li, .footer__col a { overflow-wrap: anywhere; }

/* process: the window each step shows */
.pc-win { width: 100%; height: 100%; min-height: 240px; background: var(--surface); padding: var(--s-7); display: grid; align-content: center; gap: var(--s-5); }
.pc-win__title { font: 500 var(--t-card)/1.3 var(--font-text); }
.pc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pc-rows li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--bg); border-radius: var(--r-sm); }
.pc-rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pc-bars { display: flex; align-items: flex-end; gap: var(--s-3); height: 200px; }
.pc-bars i { flex: 1; height: calc(var(--v) * 100%); background: var(--action); border-radius: 4px 4px 0 0; }

/* estimate */
.calc-inputs { display: grid; gap: var(--s-6); }
.calc-field { display: grid; gap: var(--s-3); }
.calc-field { gap: var(--s-1); }
.calc-field label { font-size: var(--t-body); color: var(--muted); }
.calc-field output { font: 500 var(--t-card)/1.3 var(--font-text); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--action); cursor: pointer; }
.calc-out { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.calc-out__big { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.calc-out__rows { margin-top: var(--s-4); }
.calc-out__rows .rows__value { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: var(--s-5) 0 var(--s-2); }
.calc-bars i { flex: 1; min-height: 2px; background: var(--action); border-radius: 3px 3px 0 0; transition: height 300ms var(--ease); }

/* results */
.quotes { row-gap: var(--card-gap, 24px); }
.quote-card { margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.quote-card__fig { font: 500 var(--t-card)/1.3 var(--font-text); color: var(--ink); }
.quote-card blockquote { margin: 0; font-size: var(--t-body); line-height: 1.55; }
.quote-card .person__name { display: block; font-weight: 500; }
.quote-card .person__role { display: block; color: var(--muted); }

@media (max-width: 1023px) {
  .compare { margin-top: var(--s-7); }
  .calc-out { margin-top: var(--s-7); }
}
@media (max-width: 639px) {
  .compare { grid-template-columns: 1fr; }
  #services .panel { --p-h: 150px; padding: var(--s-3); }
  .svc-mail, .svc-post { padding: var(--s-4); gap: var(--s-2); }
  .svc-list { gap: 4px; } .svc-list li { padding: var(--s-2) var(--s-3); }
  .pc-win__title { display: none; }
  .ramp-chart__keys { flex-direction: column; gap: var(--s-1); }
  .calc-bars { height: 260px; }
  .svc-list li { grid-template-columns: 72px 1fr auto; }
  .pc-win { padding: var(--s-5); min-height: 0; gap: var(--s-3); }
  .pc-rows li { padding: var(--s-2) var(--s-4); }
  .pc-bars { height: 96px; }
  .quotes .quote-card:nth-child(n+5) { display: none; }
}

/* ---------- alignment fixes ---------- */
/* hero: two facts sit side by side instead of leaving an empty third column */
.hero-facts { grid-template-columns: repeat(2, max-content); column-gap: var(--s-8); }
/* hero: the signal window sits in the middle of its frame, not stuck to the top */
@media (min-width: 1024px) {
  .hero__ui .stage > .at-rise { top: 50%; translate: 0 -50%; }
}

/* process: the heading starts on the same line as every other section heading */
html body main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { align-content: start; padding-top: var(--padt); }
/* process at rest (tablet): each step's text starts at the top of its row, beside its card */
@media (min-width: 640px) {
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step { grid-template-rows: auto 1fr; align-items: start; }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step h3 { align-self: start; }
}
/* step cards: a value never breaks across lines */
.pc-rows span { min-width: 0; }
.pc-rows b { white-space: nowrap; }

/* plateau, 1024 to 1279: the checklist and the comparison stack, so the comparison columns keep their width */
@media (min-width: 1024px) and (max-width: 1279px) {
  #plateau { --h: 2; }
  #plateau .grid > .check-card, #plateau .grid > .compare { grid-column: 1 / -1; }
  #plateau .compare { margin-top: var(--s-7); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .pc-win { padding: var(--s-5); gap: var(--s-3); min-height: 0; }
  .pc-rows li { padding: var(--s-3) var(--s-4); }
}

/* ---------- no overlap on short or scaled screens ----------
   The kit fixes every section at exactly one or two screens. When the screen is short (a laptop, or
   Windows display scaling at 125% / 150%) the content is taller than that and runs into the next
   section. Sections keep their screen height as a minimum and grow with their content. */
main > section:not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main > section:not(.hero) > .wrap { height: auto; }
@media (max-width: 639px) { main > section:not(.hero) { min-height: calc(var(--hm, var(--h, 1)) * 100lvh); } }
.hero { min-height: 100svh; height: auto; }
