/* Price page, second design (2026-11-14). Same tokens and section rhythm as the home (home.css carries them); class prefix pr- and
   plan / ov are this page. Prices, names and scope come from offers.ts through build.mjs, nothing here changes a word. */

.price-page .x-hero { padding-bottom: clamp(36px, 4vw, 56px); }
.pr-hero h1 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.2; font-weight: 800; max-width: 18em; }
.pr-hero .x-lead { max-width: 720px; }
.pr-hero__guide { margin: 20px 0 0; font-size: 16px; line-height: 1.7; color: var(--mute); max-width: 720px; }
.price-page .ilink { display: inline; color: var(--blue-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 91, 208, .4); }
.price-page .ilink:hover { text-decoration-color: currentColor; }
.price-page .pr-terms__links .link { color: var(--blue-ink); }
.ov__note { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--mute); }
.pr-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pr-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.pr-jump a:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }

/* the sections: content height, anchors clear the nav */
.price-page .x-sec { scroll-margin-top: calc(var(--nav, 68px) + 16px); }
.pr-ov { padding-block: clamp(48px, 6vw, 88px); }
.pr-ov .x-head { margin-bottom: 28px; }

/* overview table */
.ov { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.ov table { width: 100%; border-collapse: collapse; min-width: 880px; table-layout: fixed; }
.ov th, .ov td { padding: 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ov thead th { padding: 16px 24px; border-top: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--blue-ink); background: #fff; }
.ov thead th:first-child, .ov tbody th { width: 22%; }
.ov tbody th { padding: 24px; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.ov tbody th a { color: inherit; text-decoration: none; }
.ov tbody th a:hover { color: var(--blue-ink); }
.ov td + td, .ov th + th, .ov th + td { border-left: 1px solid var(--line); }
.ov__cell { display: grid; gap: 4px; padding: 22px 24px; height: 100%; color: inherit; text-decoration: none; transition: background .15s ease; }
.ov__cell:hover { background: var(--blue-soft); }
.ov__name { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink2); }
.ov__price { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov__meta { font-size: 13px; color: var(--mute); }

/* a service: the name and what it is on one row, three plans under it */
.pr-svc__intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); align-items: start; margin-bottom: clamp(28px, 3.4vw, 44px); }
.pr-svc__intro h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.22; font-weight: 800; }
.pr-svc__intro p { margin: 6px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink2); max-width: 720px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; scroll-margin-top: calc(var(--nav, 68px) + 24px); transition: transform .18s ease, box-shadow .18s ease; }
.plan:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(14, 22, 40, .35); }
.plan:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.plan__tier { align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.plan > h3 { font-size: 21px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.plan__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.plan__price .tier__price { font-size: clamp(34px, 3vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 14px; color: var(--mute); }
.plan__facts { display: grid; grid-template-columns: 1.5fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.plan__facts > div { display: grid; gap: 2px; padding: 12px 14px; }
.plan__facts > div + div { border-left: 1px solid var(--line); }
.plan__facts dt { font-size: 12px; font-weight: 700; color: var(--mute); }
.plan__facts dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.plan__facts dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--mute); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23e8f0ff'/%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%231f5bd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan__needs { padding: 16px; border-radius: 16px; background: var(--soft); border: 0; }
.plan__needs .t-label { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--ink); }
.plan__needs .plan__list li { font-size: 15px; }
.plan__btn { margin-top: auto; align-self: stretch; }
.price-page .plan .btn--secondary.plan__btn { min-height: 48px; border: 1.5px solid var(--blue); border-radius: 14px; font-weight: 700; text-decoration: none; background: #fff; }
.price-page .plan .btn--secondary.plan__btn:hover { background: var(--blue-soft); }

/* process: five steps, then three short notes */
.pr-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.pr-flow li { grid-column: span 2; position: relative; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; counter-increment: step; }
.pr-flow li:nth-child(4), .pr-flow li:nth-child(5) { grid-column: span 3; }
.pr-flow li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; }
.pr-flow b, .pr-notes b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pr-flow p, .pr-notes p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink2); }
.pr-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pr-notes > div { padding: 24px; border-radius: 22px; background: var(--soft); }
.pr-terms__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 16px; }

/* first screen: the words left, the four starting prices right */
.pr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.pr-from { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 24px 50px -34px rgba(14, 22, 40, .35); }
.pr-from__t { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--blue-ink); }
.pr-from ul { list-style: none; margin: 0; padding: 0; }
.pr-from li + li { border-top: 1px solid var(--line); }
.pr-from a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; color: inherit; text-decoration: none; }
.pr-from a:hover span { color: var(--blue-ink); }
.pr-from span { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pr-from b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-from__n { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.price-page .doc-footer { margin-top: 0; }

/* closing band */
.pr-cta { background: #0b1222; padding: clamp(48px, 6vw, 80px) 0; }
.pr-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.pr-cta h2 { color: #fff !important; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; font-weight: 800; }
.price-page .pr-cta .btn--primary { min-height: 56px; padding-inline: 32px; font-size: 18px; }

@media (max-width: 1100px) {
  .pr-hero__grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 640px; }
  .pr-svc__intro { grid-template-columns: 1fr; gap: 12px; }
  .pr-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-flow li, .pr-flow li:nth-child(4), .pr-flow li:nth-child(5) { grid-column: auto; }
  .pr-flow li:last-child { grid-column: 1 / -1; }
  .pr-notes { grid-template-columns: 1fr; }
}
/* the overview table turns into one card a service on phones */
@media (max-width: 899px) {
  .ov { overflow: visible; border: 0; background: transparent; }
  .ov table, .ov tbody, .ov tr, .ov td, .ov th { display: block; min-width: 0; width: auto; }
  .ov thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ov tbody { display: grid; gap: 16px; }
  .ov tr { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
  .ov tbody th { width: auto; padding: 18px 20px 14px; border-top: 0; font-size: 18px; }
  .ov td { border-left: 0 !important; }
  .ov td + td { border-top: 1px solid var(--line); }
  .ov td { position: relative; }
  .ov td::before { content: attr(data-label); position: absolute; left: 20px; top: 16px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--blue-ink); }
  .ov__cell { padding: 36px 20px 16px; }
}
@media (max-width: 639px) {
  .pr-jump a { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .plan { padding: 22px; border-radius: 20px; }
  .pr-flow { grid-template-columns: 1fr; }
  .pr-flow li:last-child { grid-column: auto; }
  .pr-cta__row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .plan, .pr-jump a, .ov__cell { transition: none; } .plan:hover, .pr-jump a:hover { transform: none; } }
