/* ==========================================================================
   Pricing page only (pricing.html, v3 contact sales, 25 Nov 2026).
   Copy: docs/pricing-page-v3.md. Layout reference: docs/design/pricing-v3.dc.html.
   Shared patterns (page background, navy waves, the close, the navy split,
   suite cards, ruled FAQ, navy button) are in styles/flow.css.

   The quote form styles here are for the stand-in form. When the HubSpot
   embed arrives (raw HTML option), match its fields to these classes.

   25 Nov 2026 (speed demos rebuild): the page background (.p-page), the
   hero copy (.p-hero, .p-hero-copy, .p-hero-line, .p-hero-cta), the form
   fields (.field, .qerr), .text-more and the close layout (.p-close) moved
   word for word into styles/flow.css, so the Speed demos page can share them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero: copy and logos left, the quote form on the blue pebble right.
   The hero copy itself is in flow.css.
   -------------------------------------------------------------------------- */

/* Customer logos: two rows of four, full colour, sized by eye so they weigh the same */
.p-logos { margin-top: var(--space-11); display: flex; flex-direction: column; gap: var(--space-6); }
.p-logos > p { margin: 0; }
/* 25 Nov 2026 (Tommy): about 10% smaller and a tighter grid (was 540px wide, 30px gaps, heights 27/30/27/21/22/42/24/38),
   so Next and National Gas stay clear of the pebble at desktop widths */
.hlogos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8) 22px; align-items: center; max-width: 490px; }
.hlogos li { display: flex; align-items: center; justify-content: flex-start; min-height: 40px; }
.hlogos img { display: block; width: auto; height: auto; max-width: 100%; }
.hlogos .lg-hays { max-height: 24px; }
.hlogos .lg-serco { max-height: 27px; }
.hlogos .lg-adecco { max-height: 24px; }
.hlogos .lg-next { max-height: 19px; }
.hlogos .lg-roberthalf { max-height: 20px; }
.hlogos .lg-police { max-height: 38px; }
.hlogos .lg-pertemps { max-height: 22px; }
.hlogos .lg-nationalgas { max-height: 34px; }
/* Third row (26 Nov 2026, Tommy): from odro.co.uk, trimmed to the mark; Storm is the homepage's file */
.hlogos .lg-zest { max-height: 26px; }
.hlogos .lg-storm { max-height: 34px; }
.hlogos .lg-castuk { max-height: 18px; }
.hlogos .lg-qxi { max-height: 24px; }
/* Two-column hero (about 1040px and wider): the pebble starts about 55px inside the copy column's right edge,
   so the grid stops 80px short of it. On small laptops this shrinks the logos a little more. */
@media (min-width: 1041px) { .hlogos { max-width: min(490px, calc(100% - 80px)); } }
@media (max-width: 640px) { .hlogos { gap: var(--space-6) var(--space-8); } }

/* The form side and Odro's blue pebble (assets/pebbles/odro-pebble-blue.svg): about 1.9 times the
   card's width (at most 1000px), centred two thirds across and level with the card, turned 12deg
   anticlockwise. Phones: higher and 1.5 times the width, so it shows above the form. */
.p-hero-form { position: relative; isolation: isolate; flex: 1 1 440px; min-width: 0; max-width: 520px; margin-left: auto; }
.p-hero-pebble { position: absolute; z-index: -1; left: 66%; top: 50%; width: min(190%, 1000px); height: auto; max-width: none; transform: translate(-50%, -50%) rotate(-12deg); filter: drop-shadow(0 30px 60px rgba(14, 32, 80, .18)); pointer-events: none; }
/* Phones: extra room above the form, so the pebble shows above it without running behind the logos */
@media (max-width: 640px) { .p-hero-form { margin-top: 150px; } .p-hero-pebble { left: 64%; top: 10%; width: 150%; } }

/* --------------------------------------------------------------------------
   Quote card (stand-in for the HubSpot form)
   -------------------------------------------------------------------------- */
.qcard { background: var(--surface-card); border-radius: var(--radius-card); border: 1px solid var(--border-subtle); box-shadow: 0 24px 60px rgba(14, 32, 80, .28); padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; gap: var(--space-7); scroll-margin-top: 96px; }
.qcard:focus { outline: none; }
.qcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); }
.qcard h2 { font-size: var(--text-h3); letter-spacing: -0.02em; }
.qcard-step { font-size: var(--text-caption); font-weight: var(--weight-bold); white-space: nowrap; }
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.prog span { height: 6px; border-radius: var(--radius-pill); background: var(--surface-soft); transition: background .3s ease; }
.prog span.on { background: var(--odro-blue); }
.qform { display: flex; flex-direction: column; gap: var(--space-7); margin: 0; }
.qstep { display: flex; flex-direction: column; gap: var(--space-8); }
.qstep[hidden] { display: none; }
.qform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.qform legend { padding: 0; margin: 0 0 var(--space-4); font-size: var(--text-ui); font-weight: var(--weight-bold); }
.qform legend .muted { font-weight: var(--weight-semibold); }

/* Product tiles: the tile is the checkbox's label */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; min-height: 92px; padding: var(--space-6) 34px var(--space-5); border: 1.5px solid var(--odro-navy-a18); border-radius: var(--radius-tile); background: var(--surface-card); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.ptile:hover { border-color: var(--odro-mid-blue); }
.ptile:has(input:checked) { border-color: var(--odro-blue); box-shadow: inset 0 0 0 1px var(--odro-blue); background: #F5FAFE; }
.ptile img { height: 29px; width: auto; max-width: 100%; display: block; }
.ptile .kind { font-size: 13px; font-weight: var(--weight-semibold); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.ptile .box { position: absolute; top: var(--space-5); right: var(--space-5); width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(14, 32, 80, .35); background: var(--surface-card); display: flex; align-items: center; justify-content: center; }
.ptile .box svg { opacity: 0; }
.ptile:has(input:checked) .box { background: var(--odro-blue); border-color: var(--odro-blue); }
.ptile:has(input:checked) .box svg { opacity: 1; }
.newpill { background: var(--odro-gold); color: var(--odro-navy); border-radius: var(--radius-pill); padding: 0 7px; font-size: 10px; font-weight: var(--weight-extrabold); letter-spacing: .8px; line-height: 1.7; }
/* Small phones: the logo drops below the tick box, so the two never touch */
@media (max-width: 420px) { .ptile { padding: 34px var(--space-6) var(--space-5); } .ptile img { height: 24px; } .ptile .box { top: var(--space-3); right: var(--space-3); } }

/* Team size: four buttons in a row (two by two on small phones); the label is the radio's */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.chip { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-3); border: 1.5px solid var(--odro-navy-a18); border-radius: var(--radius-md); font-weight: var(--weight-bold); font-size: var(--text-small); cursor: pointer; background: var(--surface-card); transition: background .2s ease, color .2s ease; }
.chip:hover { border-color: var(--odro-mid-blue); }
.chip:has(input:checked) { background: var(--odro-navy); border-color: var(--odro-navy); color: var(--odro-white); }
@media (max-width: 420px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The real inputs sit invisibly inside each tile and chip, so the keyboard and screen readers use
   them; the focus ring shows on the tile */
.vh-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.ptile:has(.vh-input:focus-visible), .chip:has(.vh-input:focus-visible) { outline: 3px solid var(--odro-deep-blue); outline-offset: 2px; }

/* .field and .qerr (fields and the error box) are in flow.css */
/* Empty live regions stay in the page (so screen readers announce them when filled) but take no space */
.qdone:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
.qsummary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); background: var(--surface-soft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); font-size: var(--text-small); font-weight: var(--weight-semibold); }
.qform .btn-gold { justify-content: center; font-size: 18px; min-height: 52px; border: 0; cursor: pointer; font-family: var(--font-body); }
.qnote { margin: -6px 0 0; font-size: var(--text-caption); text-align: center; }
.qfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.qfoot p { margin: 0; font-size: 13px; }
.textbtn { background: none; border: 0; padding: var(--space-2) 2px; font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-small); color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.textbtn:focus-visible { outline: 3px solid var(--odro-deep-blue); outline-offset: 3px; border-radius: var(--radius-sm); }
.qdone { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; padding: var(--space-2) 0 var(--space-1); }
.qdone:focus { outline: none; }   /* focus moves here only so screen readers land on the thank-you; it isn't a control */
.qdone-title { margin: 0; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.qdone p { margin: 0; }
.qdone-actions { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); align-items: center; margin-top: var(--space-2); }
.btn-line { background: var(--surface-card); color: var(--color-ink); border: 2px solid var(--color-ink); padding: 10px 18px; transition: background .2s ease; }
.btn-line:hover { background: var(--surface-soft); color: var(--color-ink); }
.qstep.swap-in, .qdone.swap-in { animation: odro-rise .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { .qstep.swap-in, .qdone.swap-in { animation: none; } .ptile, .chip, .prog span, .btn-line { transition: none; } }

/* --------------------------------------------------------------------------
   2. What it's worth (navy split from flow.css): figure, quote, who.
   Each icon is white on a small blue pebble (.peb-icon, styles/pebbles.css).
   -------------------------------------------------------------------------- */
.p-results .reasons li { gap: var(--space-9); }
.p-results .peb-icon { --peb-w: 56px; }
.p-results .rfig { display: block; margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-ink-on-dark); }
.p-results blockquote { margin: 0; font-size: var(--text-body); color: rgba(255, 255, 255, .9); }
.p-results .rwho { margin: var(--space-3) 0 0; font-size: var(--text-small); color: var(--color-soft-on-dark); }
.p-results .leave-cta .text-more { color: var(--color-soft-on-dark); }
.p-results .leave-cta .text-more:hover { color: var(--color-ink-on-dark); }
.p-results .lead-line { margin: 0; color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   3. What goes into your price: four suite cards (flow.css), logo as the link,
   "Priced on" at the foot on a rule that lines up across a row
   -------------------------------------------------------------------------- */
.p-price .wrap { gap: 36px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 80px); }
.p-intro { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); max-width: 820px; margin: 0 auto; text-align: center; }
.p-intro h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
.p-intro p { margin: 0; font-size: 19px; }
.p-cards { list-style: none; margin: 0 auto; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-9); max-width: none; }
.p-cards .suite-card { position: relative; gap: var(--space-6); padding: 50px 22px 26px; min-height: 320px; box-sizing: border-box; text-align: center; box-shadow: 0 18px 40px var(--odro-navy-a12); }
.p-cards .suite-card:hover { box-shadow: 0 24px 54px rgba(14, 32, 80, .16); }
.p-cards .suite-card img { height: 46px; }
.p-cards .plogo { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); transition: transform .2s ease; }
.p-cards .plogo:hover { transform: translateY(-2px); }
.p-cards .plogo:focus-visible { outline: 3px solid var(--odro-deep-blue); outline-offset: 3px; }
.p-cards .pkind { font-size: var(--text-body); font-weight: var(--weight-semibold); }
.newcorner { position: absolute; top: var(--space-7); left: var(--space-7); background: var(--odro-gold); color: var(--odro-navy); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-6); font-size: var(--text-caption); font-weight: var(--weight-extrabold); letter-spacing: 1.2px; line-height: 1.4; box-shadow: 0 6px 14px rgba(14, 32, 80, .15); }
.trialpill { display: inline-flex; align-items: center; min-height: 34px; padding: 2px var(--space-6); border-radius: var(--radius-pill); background: var(--odro-deep-blue); color: var(--odro-white); font-weight: var(--weight-bold); font-size: var(--text-caption); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.trialpill:hover { color: var(--odro-white); background: var(--odro-navy); transform: translateY(-1px); box-shadow: 0 6px 14px var(--odro-navy-a18); }
.trialpill:focus-visible { outline: 3px solid var(--odro-deep-blue); outline-offset: 3px; }
.basis { margin: auto 0 0; width: 100%; min-height: 96px; box-sizing: border-box; padding-top: var(--space-7); border-top: 1px solid var(--border-subtle); font-size: 18px; line-height: 1.3; font-weight: var(--weight-bold); }
.basis b { display: block; font-size: var(--text-eyebrow); letter-spacing: 1.3px; text-transform: uppercase; color: var(--color-eyebrow); margin-bottom: var(--space-1); }
.p-more { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }
.p-more p { margin: 0; font-size: 19px; white-space: nowrap; }
@media (max-width: 1080px) { .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .p-more p { white-space: normal; max-width: 640px; } }
@media (max-width: 640px) { .p-cards { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .p-cards .plogo, .trialpill { transition: none; } }

/* --------------------------------------------------------------------------
   4. Fair questions: .faq--ruled (flow.css). 5. Close: .book and .p-close
   (both flow.css), two buttons in place of the form
   -------------------------------------------------------------------------- */
.p-faq .wrap { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.p-faq .faq-side p { margin: 0; font-size: clamp(18px, 1.6vw, 20px); }

/* Open columns instead of white cards (27 Nov 2026, site review): the in-house pattern Peter set the same day.
   Thin dividers between the products, no card, border, shadow or hover lift. The NEW badge sits centred above
   Vantage's logo in space every column keeps, so the four logos stay in line. */
.p-cards { column-gap: 0; }
.p-cards .suite-card, .p-cards .suite-card:hover { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; min-height: 0; padding: 44px 26px 4px; }
.p-cards .newcorner { top: 0; left: 50%; transform: translateX(-50%); }
.p-cards .basis { border-top: 0; min-height: 0; padding-top: var(--space-4); }
@media (min-width: 1081px) { .p-cards .suite-card + .suite-card { border-left: 1px solid rgba(14, 32, 80, .12); } }
@media (min-width: 641px) and (max-width: 1080px) {
  .p-cards { row-gap: 0; }
  .p-cards .suite-card:nth-child(2n) { border-left: 1px solid rgba(14, 32, 80, .12); }
  .p-cards .suite-card:nth-child(n+3) { border-top: 1px solid rgba(14, 32, 80, .12); margin-top: 28px; padding-top: 40px; }
}
@media (max-width: 640px) { .p-cards { row-gap: 0; } .p-cards .suite-card + .suite-card { border-top: 1px solid rgba(14, 32, 80, .12); margin-top: 24px; padding-top: 32px; } }
