/* ─── AM-OS PRODUCTS & PRICING (products.html) ───
   Grid · Split · Grid · Grid · objections (services.css) · CTA band.
   Light-first; the only accent moments are the price lines and the featured ownership card. */

/* ─── PRODUCT CARDS ─── */
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pr-card {
  background: var(--warm); border: 1px solid var(--faint); border-radius: var(--radius);
  padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.pr-status {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--faint); background: var(--paper); color: var(--mid);
}
.pr-status.is-live { background: var(--inkblue, #111E2B); color: var(--on-inkblue, #EAF0F2); border-color: transparent; }
.pr-card h3 { font-size: 24px; margin: 4px 0 0; }
.pr-replaces { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pr-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pr-list li { font-size: 14.5px; color: var(--mid); font-weight: 300; line-height: 1.6; padding-left: 20px; position: relative; }
.pr-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-600); }
.pr-price {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--faint); width: 100%;
  font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.pr-price small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--mid); letter-spacing: 0; margin-top: 8px; line-height: 1.4; }
.pr-link { font-size: 14px; font-weight: 500; color: var(--accent-600); text-decoration: none; }
.pr-link:hover { color: var(--accent-700); text-decoration: underline; }

/* ─── PRICING SPLIT ─── */
.pr-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pr-split h2 { margin-bottom: 20px; }
.pr-split .sub { font-size: 17px; color: var(--mid); line-height: 1.65; max-width: 520px; margin-bottom: 16px; }
.pr-fine { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; max-width: 520px; }

.pr-table-wrap { overflow-x: auto; }
.pr-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--paper); border: 1px solid var(--faint); border-radius: var(--radius); overflow: hidden;
}
.pr-table th, .pr-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--faint); }
.pr-table th {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid);
  background: var(--warm);
}
.pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table td:first-child { color: var(--ink); font-weight: 500; }
.pr-table td { color: var(--mid); font-variant-numeric: tabular-nums; }
.pr-table td:nth-child(2) { color: var(--ink); font-family: var(--font-head); font-weight: 700; }

/* ─── HOW IT LANDS (three numbered tiles) ─── */
.pr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pr-step { background: var(--warm); border: 1px solid var(--faint); border-radius: var(--radius); padding: 28px; }
.pr-step h3 { font-size: 20px; margin-bottom: 10px; }
.pr-step p { font-size: 14.5px; color: var(--mid); font-weight: 300; line-height: 1.65; }
.pr-tile {
  position: relative; width: 54px; height: 54px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #fff, var(--warm)); border: 1px solid var(--faint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.pr-tile svg { width: 27px; height: 27px; stroke: var(--accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pr-tile .n {
  position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--warm);
}

/* ─── OWNERSHIP ─── */
.pr-own { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.pr-own-card { background: var(--paper); border: 1px solid var(--faint); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.pr-own-card.is-featured { border-color: var(--accent); }
.pr-own-card h3 { font-size: 22px; }
.pr-own-price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.pr-own-card.is-featured .pr-own-price { color: var(--accent); }
.pr-own-price small { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--mid); letter-spacing: 0; margin-left: 6px; }
.pr-own-card .pr-fine { padding-top: 14px; border-top: 1px solid var(--faint); margin-top: auto; }

.pr-callout { margin-top: 24px; background: var(--inkblue, #111E2B); border-radius: var(--radius); padding: 34px; }
.pr-callout p { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--on-inkblue, #EAF0F2); line-height: 1.5; max-width: 760px; }
.pr-callout p em { font-style: normal; color: var(--accent-300); }

/* ─── COMPARE CALCULATOR (#compare) ───
   Split: controls left, result panel right. Accent moments: the "stays in the business" figure
   and the AM-OS line on the chart. Pills reuse the tagpill selected state (accent-50 tint). */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 8px; }
.calc-controls { display: flex; flex-direction: column; gap: 24px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
/* A <legend> is never a flex item, so the fieldset's gap doesn't reach it: space it explicitly,
   matching the 10px the slider headings get. */
.calc-field > legend.calc-q { margin-bottom: 10px; padding: 0; width: 100%; }
.calc-q {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3;
}
.calc-q output { color: var(--accent-600); font-variant-numeric: tabular-nums; font-size: 18px; white-space: nowrap; }
.calc-hint { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.5; }

.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--faint); outline: none; margin: 10px 0 6px; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: var(--shadow); cursor: pointer; }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: var(--shadow); cursor: pointer; }
.calc-range:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 8px; }

.calc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-pill { position: relative; }
.calc-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calc-pill span {
  display: inline-block; font-size: 13.5px; font-weight: 500; padding: 8px 16px; line-height: 1.3;
  border-radius: var(--radius-pill); border: 1px solid var(--faint); background: var(--warm); color: var(--mid);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.calc-pill span:hover { border-color: var(--ink); color: var(--ink); }
.calc-pill input:checked + span { background: var(--inkblue, #111E2B); color: var(--on-inkblue, #EAF0F2); border-color: transparent; }
.calc-pill input:focus-visible + span { outline: 3px solid var(--accent-300); outline-offset: 2px; }
.calc-pill input:disabled + span { opacity: .45; cursor: default; border-color: var(--faint); color: var(--mid); }

.calc-custom { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.calc-money { display: grid; grid-template-columns: 1fr auto minmax(0, 120px) auto; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.calc-money i { font-style: normal; color: var(--mid); }
.calc-money b { font-weight: 400; font-size: 13px; color: var(--mid); }
.calc-money input {
  width: 100%; border: 1px solid var(--faint); border-radius: var(--radius-sm); padding: 8px 10px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff; font-variant-numeric: tabular-nums;
}
.calc-money input:focus { outline: none; border-color: var(--accent); }
.calc-money[hidden], .calc-custom[hidden], .calc-part[hidden], .calc-sub[hidden], .calc-hint[hidden] { display: none; }

/* One block per part picked: its own "how many people" slider and a live rented-vs-AM-OS line. */
.calc-parts { display: flex; flex-direction: column; gap: 12px; }
.calc-part { border: 1px solid var(--faint); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.calc-part-h { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); padding: 0 6px; margin-left: -6px; }
.calc-sub { display: flex; flex-direction: column; gap: 6px; }
.calc-sub .calc-q { font-size: 14px; font-weight: 500; }
.calc-sub .calc-q output { font-size: 16px; }
.calc-part-line { font-size: 13.5px; color: var(--mid); line-height: 1.55; }
.calc-part-line b { color: var(--ink); font-weight: 600; }
.calc-part-line .saas, .calc-part-line .am { display: block; }
.calc-part-line .am { color: var(--accent-600); font-weight: 500; }
.calc-part-line .saas + .am { margin-top: 4px; }

.calc-result { background: var(--warm); border: 1px solid var(--faint); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-stat .v { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-stat.is-win .v { color: var(--accent); }
.calc-stat .k { font-size: 12.5px; color: var(--mid); margin-top: 6px; line-height: 1.4; }
.calc-verdict { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.45; }

.calc-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.calc-chart .grid line { stroke: var(--faint); stroke-width: 1; }
.calc-chart .lbl { font-family: var(--font-body); font-size: 11px; fill: var(--mid); }
.calc-chart .rent { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.calc-chart .own { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.calc-chart .be { fill: var(--accent); stroke: var(--warm); stroke-width: 3; }
.calc-chart .be-lbl { font-family: var(--font-head); font-size: 12px; font-weight: 600; fill: var(--accent-700); }
.calc-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--mid); }
.calc-legend i { display: inline-block; width: 18px; height: 3px; border-radius: var(--radius-pill); vertical-align: middle; margin-right: 8px; }
.calc-legend .rent i { background: var(--ink); }
.calc-legend .own i { background: var(--accent); }

.calc-working summary { font-size: 14px; font-weight: 500; color: var(--accent-600); cursor: pointer; list-style: none; }
.calc-working summary::-webkit-details-marker { display: none; }
.calc-working summary::before { content: '→ '; }
.calc-working[open] summary::before { content: '↓ '; }
.calc-working summary:hover { color: var(--accent-700); text-decoration: underline; }
.calc-working .calc-fine { margin: 12px 0 14px; }
.calc-table td { white-space: nowrap; }
.calc-table td:nth-child(2) { font-family: var(--font-body); font-weight: 400; color: var(--mid); }
.calc-table td.own { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.calc-table td.gain { color: var(--accent-700); font-weight: 500; }
.calc-fine { font-size: 12.5px; color: var(--mid); font-weight: 300; line-height: 1.55; }
.calc-foot { margin-top: 28px; max-width: 920px; font-size: 13px; }
.calc-foot + .calc-foot { margin-top: 12px; }
.calc-foot strong { color: var(--ink); font-weight: 500; }
/* The results follow the controls down the page, on screens tall enough to show the whole panel. */
@media (min-width: 1001px) and (min-height: 940px) {
  .calc-result { position: sticky; top: 84px; }
}

/* ─── WHY IT COSTS LESS + WHAT YOU GET (#difference) — three cards, a lead-in, the comparison table ─── */
.bg-warm .pr-step { background: var(--paper); }
.bg-warm .pr-tile .n { border-color: var(--paper); }
.cmp-lead { margin: 44px 0 0; font-size: 17px; color: var(--mid); line-height: 1.6; max-width: 720px; }
.cmp-wrap { margin-top: 18px; border: 1px solid var(--faint); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--faint); line-height: 1.55; }
.cmp th { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); background: var(--warm); }
.cmp th.own { color: var(--accent-700); }
.cmp td.k { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 22%; }
.cmp td.rent { color: var(--mid); font-weight: 300; width: 34%; }
.cmp td.own { color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .calc-result { padding: 22px 18px; }
  .calc-stats { grid-template-columns: 1fr; gap: 14px; }
  /* The SVG scales down ~40% on a phone, so the type scales up to land at a readable size. */
  .calc-chart .lbl { font-size: 17px; }
  .calc-chart .be-lbl { font-size: 18px; }
  .calc-table th, .calc-table td { white-space: nowrap; padding: 10px 12px; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto; }
  .cmp td.k, .cmp td.rent { width: auto; }
  .cmp tr { border-bottom: 1px solid var(--faint); padding: 10px 0; }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp td { border-bottom: 0; padding: 6px 18px; }
  .cmp td.k { padding-top: 8px; }
  .cmp td.rent::before, .cmp td.own::before {
    content: attr(data-th); display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 500; color: var(--mid); margin-bottom: 3px;
  }
  .cmp td.own::before { color: var(--accent-700); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .pr-grid, .pr-steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pr-split, .pr-own { grid-template-columns: 1fr; }
  .pr-table th, .pr-table td { padding: 12px 10px; font-size: 14px; }
}

/* Section grounds re-alternate after the story film went in under the hero (2026-10-07):
   products warm → pricing paper → compare warm → difference paper → how warm → ownership paper. */
#products .pr-card { background: var(--paper); }
#pricing .pr-table { background: var(--warm); }
#pricing .pr-table th { background: var(--paper); }
#compare .calc-pill input:not(:checked) + span { background: var(--paper); }   /* unselected only: the id must not outrank the checked state */
#compare .calc-result { background: var(--paper); }
#compare .calc-table { background: var(--warm); }
#compare .calc-table th { background: var(--paper); }
#difference .pr-step { background: var(--warm); }
#difference .cmp-wrap { background: var(--warm); }
#difference .cmp th { background: var(--paper); }
#how .pr-step { background: var(--paper); }
#ownership .pr-own-card { background: var(--warm); }
#faq .sv-obj { background: var(--paper); }


/* Pricing section CTA box (Peter, 2026-10-07): its own card under the table.
   Ready → call (or the call-request drawer); not ready → the comparison. */
.pr-cta {
  margin-top: 36px; background: var(--warm); border: 1px solid var(--faint); border-radius: var(--radius-lg);
  padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center;
}
.pr-cta-lead { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.015em; }
.pr-cta .btns { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pr-cta-note { font-size: 14.5px; color: var(--mid); line-height: 1.6; max-width: 56ch; }
.pr-cta-note a { color: var(--accent-600); font-weight: 500; }
@media (max-width: 860px) {
  .pr-cta { grid-template-columns: 1fr; padding: 24px 22px; }
  .pr-cta .btns { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
}

/* ─── WHY IT COSTS LESS as a Split (2026-10-07): copy left, three reasons stacked right ─── */
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-copy { margin-bottom: 0; max-width: none; }
.why-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
.why-cards .pr-step { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; align-items: start; padding: 24px 26px; }
.why-cards .pr-tile { margin-bottom: 0; grid-row: 1 / span 2; }
.why-cards .pr-step h3 { font-size: 18px; margin-bottom: 6px; }
/* slide in from the right, one after another */
.why-cards .pr-step.reveal { transform: translateX(48px); transition-duration: .7s; }
.why-cards .pr-step.reveal.visible { transform: none; }
.why-cards .pr-step:nth-child(2) { transition-delay: .14s; }
.why-cards .pr-step:nth-child(3) { transition-delay: .28s; }
@media (max-width: 860px) {
  .why-split { grid-template-columns: 1fr; }
  .why-copy { margin-bottom: 8px; }
  .why-cards .pr-step.reveal { transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  .why-cards .pr-step.reveal { transform: none; opacity: 1; transition: none; }
}
