/* Pricing page, plus the home and platform additions that belong to the same pass.
   Owner of this file: the pricing/home/platform area. Selectors are prefixed (pr-, gran-, price-, qbul)
   so they cannot collide with the other areas' parts. */

/* ── /pricing/ ─────────────────────────────────────────────────────── */
.pr-sec { max-width: 1180px; margin: 0 auto; padding: 90px 24px 0; scroll-margin-top: 70px; }
.page-pricing .page-hero { padding-bottom: 0; }
.page-pricing #plans { padding-top: 56px; }

.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pr-card {
  display: flex; flex-direction: column; gap: 22px; padding: 28px 24px 24px; border-radius: 20px;
  background: hsl(var(--card)); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .07);
}

.pr-card h3 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.pr-card h3 span { margin-left: 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: hsl(var(--muted)); }
.pr-mods { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: hsl(var(--muted)); }

.pr-price { padding-top: 20px; border-top: 1px solid hsl(0 0% 100% / .07); }
.pr-price p { margin: 0; }
.pr-usd { font-size: 15px; color: hsl(var(--muted)); }
.pr-usd b, .pr-usd span { display: block; }
.pr-usd b { font-size: 38px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; color: hsl(var(--fg)); font-variant-numeric: tabular-nums; }
.pr-zar { margin-top: 6px !important; font-size: 14px; color: hsl(var(--muted)); font-variant-numeric: tabular-nums; }
.pr-year { margin-top: 16px !important; padding-top: 14px; border-top: 1px dashed hsl(0 0% 100% / .1); font-size: 14px; line-height: 1.55; color: hsl(var(--muted)); font-variant-numeric: tabular-nums; }
.pr-year b { color: hsl(var(--fg)); font-weight: 600; }
.pr-year span { display: block; font-size: 13.5px; }

.pr-spec { margin: 0; display: grid; gap: 0; align-content: start; }
.pr-spec > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid hsl(0 0% 100% / .06); }
.pr-spec dt { font: 500 11.5px/1.3 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted)); }
.pr-spec dd { margin: 0; font-size: 15.5px; line-height: 1.4; font-weight: 500; color: hsl(var(--fg)); }
.pr-card .btn { margin-top: auto; justify-content: center; }
.pr-custom { background: linear-gradient(180deg, hsl(var(--primary) / .07), transparent 60%), hsl(var(--card)); box-shadow: inset 0 0 0 1px hsl(var(--primary) / .28); }
.pr-custom .pr-usd b { font-size: 30px; }

.pr-note { max-width: 78ch; margin: 28px 0 0; font-size: 14.5px; line-height: 1.65; color: hsl(var(--muted)); }

.pr-facts { margin-left: 0; margin-right: 0; max-width: none; margin-top: 36px; }
.pr-sec .sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.faq-item { padding: 24px 26px 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .07); }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.faq-item p { margin: 0; color: hsl(var(--muted)); font-size: 15px; line-height: 1.65; }
.faq-item a { color: hsl(var(--fg)); text-decoration: underline; text-decoration-color: hsl(var(--fg) / .3); text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-card header { min-height: 0; }
}
@media (max-width: 680px) {
  .pr-sec { padding-top: 70px; padding-left: 16px; padding-right: 16px; }
  .page-pricing #plans { padding-top: 40px; }
  .pr-grid, .faq { grid-template-columns: 1fr; }
  .pr-usd b { font-size: 34px; }
  .pr-facts { grid-template-columns: 1fr; }
}

.pr-card .pr-year b { display: block; }
@supports (grid-template-rows: subgrid) {
  .pr-grid { grid-template-rows: repeat(4, auto); }
  .pr-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 22px; gap: 22px; }
  .pr-card .btn { margin-top: 0; align-self: end; }
}
@media (max-width: 1100px) { @supports (grid-template-rows: subgrid) {
  .pr-grid { grid-template-rows: none; }
  .pr-card { display: flex; grid-row: auto; gap: 22px; }
  .pr-card .btn { margin-top: auto; align-self: auto; }
} }

/* ── home ──────────────────────────────────────────────────────────── */
/* hero buttons: Talk to us first, the two lighter ones share the next row on a phone */
.page-home .ctas .btn { white-space: nowrap; }
#walkthrough { scroll-margin-top: 84px; }
@media (max-width: 680px) {
  .page-home .ctas { gap: 10px; }
  .page-home .ctas .btn-ghost, .page-home .ctas .btn-quiet { flex: 1 1 calc(50% - 5px); padding-left: 14px; padding-right: 14px; }
}

/* the path card's plain bullets */
.qbul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qbul li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; color: hsl(var(--muted)); }
.qbul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: hsl(198 93% 60%); }

/* the granularity illustration (a drawing, not a FishEye screen: no app chrome, a dashed paper-like frame) */
.gran-home { padding: 130px 24px 0; }
.gran-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.gran-copy h2 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.gran-copy h2 span { display: block; color: hsl(var(--muted)); }
.gran-copy p:not(.kicker) { margin: 22px 0 0; color: hsl(var(--muted)); font-size: 17px; line-height: 1.65; }
.gran { margin: 0; padding: 20px 22px 18px; border-radius: 18px; border: 1.5px dashed hsl(0 0% 100% / .18); background: hsl(240 6% 6% / .6); }
.gran-panel + .gran-panel { margin-top: 12px; padding-top: 14px; border-top: 1px solid hsl(0 0% 100% / .07); }
.gran-head { margin: 0 0 6px; font-size: 14.5px; color: hsl(var(--muted)); }
.gran-head b { color: hsl(var(--fg)); font-weight: 600; margin-right: 8px; }
.gran-svg { display: block; width: 100%; height: auto; }
.gran-svg .band { fill: hsl(var(--degraded) / .10); stroke: hsl(var(--degraded) / .55); stroke-width: 1.2; stroke-dasharray: 4 4; }
.gran-svg .bandlab { fill: hsl(var(--degraded)); font: 500 15px 'JetBrains Mono', ui-monospace, monospace; }
.gran-svg .axis { stroke: hsl(0 0% 100% / .22); stroke-width: 1.2; }
.gran-svg .tick { fill: hsl(var(--muted)); font: 400 14px 'JetBrains Mono', ui-monospace, monospace; }
.gran-svg .join { fill: none; stroke: hsl(0 0% 100% / .16); stroke-width: 1.4; stroke-linejoin: round; }
.gran-svg .join.flat { stroke: hsl(0 0% 100% / .3); stroke-dasharray: 5 5; }
.gran-svg .dot { fill: hsl(var(--muted)); }
.gran-svg .dot.hit { fill: hsl(var(--degraded)); }
.gran-svg .dot.big { fill: hsl(var(--fg) / .85); }
.gran-res { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; }
.gran-yes { color: hsl(var(--healthy)); }
.gran-no { color: hsl(var(--down)); }
.gran figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid hsl(0 0% 100% / .07); font-size: 13.5px; line-height: 1.6; color: hsl(var(--muted)); }

/* pricing teaser */
.price-home { padding: 130px 24px 0; }
.price-teaser { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 38px 40px; border-radius: 22px; background: hsl(var(--card) / .6); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .07); }
.price-teaser h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.04em; }
.price-teaser h2 span { display: block; color: hsl(var(--muted)); }
.price-teaser p:not(.kicker) { max-width: 60ch; margin: 18px 0 0; color: hsl(var(--muted)); font-size: 17px; line-height: 1.65; }

@media (max-width: 1000px) {
  .gran-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .gran-home, .price-home { padding: 90px 16px 0; }
  .gran { padding: 16px 14px 14px; }
  .gran-svg .bandlab { font-size: 21px; }
  .gran-svg .tick { font-size: 20px; }
  .price-teaser { padding: 28px 22px; }
}

/* ── platform ──────────────────────────────────────────────────────── */
.arch-hint { display: none; }
/* the architecture diagram is too small to read at phone width: let it scroll inside its own frame */
@media (max-width: 680px) {
  .arch { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .arch svg { min-width: 680px; }
  .arch-hint { display: block; position: sticky; left: 0; margin: 10px 0 0; font-size: 12.5px; color: hsl(var(--muted)); }
  .arch figcaption { position: sticky; left: 0; max-width: calc(100vw - 64px); }
}
