/* ==========================================================================
   pages.css — Pricing, features, and team pages.
   These pages use the homepage system (css/home.css, `main.hp`) and the page
   hero from css/trust.css. This file adds only the parts that those lack.
   ========================================================================== */

/* ----- Hero with a product shot ----- */

.hp .page-hero.split .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.hp .page-hero.split h1 { font-size: clamp(42px, 5.4vw, 80px); }
.hp .page-hero .kicker, .hp .sec-head .kicker { margin: 0 0 20px; font-size: 15px; font-weight: 600; color: var(--blue); }
.hp .page-hero .actions { align-items: center; gap: 12px 24px; }
.hp .hero-vis { min-height: clamp(340px, 36vw, 500px); border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-card); }
.hp .page-hero .stage figcaption { margin-top: 18px; max-width: none; font-size: 13px; color: var(--ink-mute); }
.hp .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; font-size: 15px; color: var(--ink-soft); }
.hp .facts li, .hp .plan li { position: relative; padding-left: 26px; }
.hp .facts li::before, .hp .plan li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) scale(0.8); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .hp .page-hero .wrap > :first-child { animation: hp-rise 900ms var(--ease-out) both; }
  .hp .hero-vis { animation: hp-rise 1100ms var(--ease-out) 150ms both; }
}

/* ----- Ledger: a heading and one statement for each row ----- */

.hp .ledger { border-top: 1px solid var(--line-strong); }
.hp .ledger li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline; padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line-strong); }
.hp .ledger h3 { font: 600 clamp(22px, 2.2vw, 30px)/1.12 var(--display); letter-spacing: -0.025em; }
.hp .ledger p { max-width: 52ch; font-size: 18px; color: var(--ink-soft); }

.hp .controls a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(61, 75, 202, 0.3); text-underline-offset: 4px; }
.hp .controls a:hover { text-decoration-color: currentColor; }
.hp .after-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; }

/* ----- Product panels in a stack (features page) ----- */

.hp .stack { display: grid; gap: 16px; }
.hp .tour-panel.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.hp .tour-panel.flip .tour-text { order: 2; }
.hp .tour-vis.center { align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); }
.hp .tour-vis.center .shot.fit { max-width: 420px; border-radius: 14px; }

/* ----- Plans ----- */

.hp .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp .plan { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.hp .plan h2 { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.hp .plan .price { margin-top: 28px; font: 600 clamp(48px, 5vw, 76px)/0.95 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.hp .plan .price small { margin-left: 8px; font: 500 15px/1.2 var(--text); letter-spacing: 0; color: var(--ink-mute); }
.hp .plan .for { margin-top: 14px; min-height: 3.1em; color: var(--ink-soft); font-size: 16px; }
.hp .plan ul { margin: 24px 0 32px; }
.hp .plan li { padding-block: 12px; border-top: 1px solid var(--line); font-size: 15.5px; }
.hp .plan li::before { top: 18px; }
.hp .plan li.plus { padding-left: 0; color: var(--ink-mute); }
.hp .plan li.plus::before { content: none; }
.hp .plan .btn { margin-top: auto; }
.hp .plan .fine { margin-top: 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-mute); }
.hp .plan .fine a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* The middle plan takes the brand colour, the same as the closing panel. */
.hp .plan.featured { background: var(--blue); color: #fff; box-shadow: var(--shadow-stage); }
.hp .plan.featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 100% 0%, rgba(141, 185, 255, 0.7), transparent 65%), radial-gradient(70% 50% at 0% 100%, rgba(26, 33, 110, 0.85), transparent 70%); }
.hp .plan.featured :is(h2, .price) { color: #fff; }
.hp .plan.featured :is(.for, .price small, li.plus) { color: rgba(255, 255, 255, 0.82); }
.hp .plan.featured li { border-top-color: rgba(255, 255, 255, 0.22); }
.hp .plan.featured li::before { border-color: #fff; }

/* The one-off plan is a different kind of purchase, so it is a row and not a fourth card. */
.hp .plan.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 24px clamp(24px, 4vw, 64px); align-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.hp .plan.wide .price { margin-top: 16px; font-size: clamp(40px, 4vw, 56px); }
.hp .plan.wide ul { margin: 0; }
.hp .plan.wide li:first-child { border-top: 0; }
.hp .plan.wide .btn { margin-top: 0; }
.hp .plans + .note a { color: var(--blue); }

/* ----- FAQ in groups ----- */

.hp .faq.grouped header { position: sticky; top: 112px; }
.hp .faq.grouped header .link { margin-top: 20px; }
.hp .faq .group + .group { margin-top: 56px; }
.hp .faq .group h3 { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.hp .faq .answer a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ----- Responsive ----- */

@media (max-width: 900px) {
  .hp .page-hero.split .wrap, .hp .ledger li, .hp .plans, .hp .plan.wide, .hp .tour-panel.flip { grid-template-columns: minmax(0, 1fr); }
  .hp .tour-panel.flip .tour-text { order: 0; }
  .hp .faq.grouped header { position: static; }
  .hp .plan .for { min-height: 0; }
  .hp .controls { grid-template-columns: minmax(0, 1fr); }
  .hp .hero-vis figcaption { display: none; }
}

/* ----- Four results in a row (team pages) ----- */

.hp .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp .stats.four dt { font-size: clamp(40px, 5vw, 76px); }
@media (max-width: 900px) {
  .hp .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .hp .stats.four > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) { .hp .stats.four { grid-template-columns: minmax(0, 1fr); } }

/* ----- Case study, use case, and compare pages ----- */

.hp .kicker a { color: inherit; text-decoration: underline; text-decoration-color: rgba(61, 75, 202, 0.3); text-underline-offset: 4px; }
.hp .page-hero h1.long { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; max-width: 22ch; }
.hp .mark { display: flex; align-items: center; gap: 14px; font: 600 26px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .mark img { width: 44px; height: 44px; border-radius: 10px; }

/* Company facts beside the hero text. */
.hp .sheet { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-stage); }
.hp .sheet .mark { margin: 0 0 24px; }
.hp .sheet dl { margin: 0; }
.hp .sheet dl > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.hp .sheet dt { font-size: 14px; color: var(--ink-mute); }
.hp .sheet dd { margin: 0; font-weight: 500; color: var(--ink); }

.hp .ledger li > div > * + * { margin-top: 14px; }
.hp .ledger + .note { margin-top: 32px; }

.hp .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.hp .points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp .points > li { padding-block: 28px; border-top: 1px solid var(--line-strong); }
.hp .points h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.hp .points p, .hp .controls p { margin-top: 10px; max-width: 48ch; color: var(--ink-soft); }

.hp .stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp .quotes.one { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.hp .days.solid li:last-child { border-top-style: solid; border-top-color: var(--blue); }
.hp .plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp .plan h3 { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.hp .plan .price + .for { min-height: 0; }
.hp .plan.featured h3 { color: #fff; }
.hp .plan.featured .fine { color: rgba(255, 255, 255, 0.82); }
.hp tbody th small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--ink-mute); }
.hp .close .link.light { color: #fff; }

@media (max-width: 900px) {
  .hp .points, .hp .points.three, .hp .plans.two { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Customer stories ----- */
.hp .prose { max-width: 62ch; margin-bottom: 32px; color: var(--ink-soft); font-size: 18px; }
.hp .sec-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.hp .stats.story dt { font-size: clamp(36px, 4.6vw, 68px); }
.hp .stats.story dd b { color: var(--ink); font-weight: 600; }
.hp .sec-head + .facts { margin-top: 0; }
.hp .video { max-width: 960px; aspect-ratio: 16 / 9; border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-stage); }
.hp .video iframe { width: 100%; height: 100%; border: 0; }
.hp .points + .days, .hp .days + .points, .hp .prose + .days { margin-top: 56px; }

/* ----- Case study index and customers page ----- */
.hp .teams small { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-mute); }
.hp .teams.compact b { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.hp .teams.compact span { font-size: 16px; }
.hp .logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(32px, 5vw, 72px); margin-bottom: clamp(40px, 5vw, 72px); }
.hp .logos img { width: auto; height: 30px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.7; }
.hp .stats.story + .quotes { margin-top: clamp(48px, 6vw, 88px); }

/* ----- Managed services ----- */
.hp .plan.wide > div > h3 + .price { margin-top: 16px; }

/* ----- Customer marks: one tile for each company ----- */
.hp .marks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hp .marks li > * { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.hp .marks a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--blue), 0 18px 32px -18px rgba(43, 54, 163, 0.4); }
.hp .marks img, .hp .marks i { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.hp .marks i { display: grid; place-items: center; background: var(--blue-tint); font: 600 15px/1 var(--display); font-style: normal; color: var(--blue-deep); }
.hp .marks + .note { margin-top: 24px; }

/* ----- Customer story panel: text on the left, results and a quote on the right ----- */
.hp .tour-panel.case { min-height: 0; }
.hp .case .tour-text h3 { max-width: 18ch; }
.hp .case .mark { margin-bottom: 28px; font-size: 20px; }
.hp .case .mark img { width: auto; height: 34px; max-width: 150px; border-radius: 0; object-fit: contain; }
.hp .case-vis { justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 56px); }
.hp .case-vis dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hp .case-vis dl > div, .hp .case-vis blockquote { padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1px #fff, 0 10px 24px -14px rgba(43, 54, 163, 0.4); }
.hp .case-vis dt { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--display); letter-spacing: -0.03em; color: var(--blue); }
.hp .case-vis dd { margin: 10px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); }
.hp .case-vis blockquote { font: 500 clamp(18px, 1.6vw, 22px)/1.35 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.hp .case-vis cite { display: block; margin-top: 16px; font: 400 14.5px/1.4 var(--text); letter-spacing: 0; color: var(--ink-soft); }
.hp .case-vis cite b { color: var(--ink); font-weight: 600; }

/* ----- Wall of quotes ----- */
.hp .wall { columns: 3; column-gap: 16px; }
.hp .wall figure { break-inside: avoid; margin-bottom: 16px; padding: 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.hp .wall blockquote { font: 500 19px/1.4 var(--display); letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.hp .wall figcaption { text-align: left; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.hp .wall figcaption b { display: block; font-weight: 600; color: var(--ink); }
.hp .wall .pill { margin-bottom: 18px; }
.hp .wall figure.lead { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); box-shadow: var(--shadow-stage); }
.hp .wall figure.lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 100% 0%, rgba(141, 185, 255, 0.7), transparent 65%), radial-gradient(70% 50% at 0% 100%, rgba(26, 33, 110, 0.85), transparent 70%); }
.hp .wall figure.lead blockquote { font-size: clamp(22px, 2vw, 27px); line-height: 1.28; color: #fff; }
.hp .wall figure.lead figcaption { border-top-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.82); }
.hp .wall figure.lead figcaption b { color: #fff; }

/* ----- People ----- */
.hp .people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp .people li { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.hp .people img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hp .people b { margin-top: 22px; font: 600 24px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .people .role { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue); }
.hp .people p { margin: 14px 0 20px; font-size: 16px; color: var(--ink-soft); }
.hp .people .link { margin-top: auto; align-self: flex-start; font-size: 15px; }

/* ----- Four cards in a row, and a large figure in a panel ----- */
.hp .badges.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp .badges .status.ours { background: var(--blue); color: #fff; }
.hp .badges .status.num { background: var(--blue-tint); color: var(--blue-deep); }
.hp .foundation .figure { align-self: center; font: 600 clamp(72px, 11vw, 168px)/0.9 var(--display); letter-spacing: -0.05em; color: #fff; }
.hp .foundation .figure small { display: block; margin-top: 18px; font: 400 17px/1.4 var(--text); letter-spacing: 0; color: rgba(255, 255, 255, 0.78); }

/* ----- Price bars (compare hero) ----- */
.hp .bars figcaption { margin: 0 0 12px; text-align: left; font-size: 14px; color: var(--ink-mute); }
.hp .bars li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 7.5em; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.hp .bars b { font-weight: 600; color: var(--ink); }
.hp .bars span { width: var(--w, 100%); min-width: 14px; height: 14px; border-radius: 999px; background: rgba(15, 22, 56, 0.22); transform-origin: left; }
.hp .bars .us span { background: var(--blue); }
.hp .bars .us b, .hp .bars .us em { color: var(--blue); }
.hp .bars .unknown span { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.hp .bars em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.hp .bars .unknown em { font-weight: 400; color: var(--ink-mute); }
.hp .bars small { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-mute); }
@media (prefers-reduced-motion: no-preference) {
  .hp .sheet { animation: hp-rise 1100ms var(--ease-out) 150ms both; }
  .hp .bars span { animation: hp-bar 900ms var(--ease-out) 600ms both; }
}
@keyframes hp-bar { from { transform: scaleX(0); } }

/* ----- Message form ----- */
.hp .ask h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.hp .ask h2 + p { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.hp .ask form { margin: 8px 0 0; }
.hp .ask label, .hp .ask legend { display: block; margin: 20px 0 8px; padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hp .ask legend span { font-weight: 400; color: var(--ink-mute); }
.hp .ask :is(input[type="text"], input[type="email"], textarea) { display: block; width: 100%; margin: 0; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 16px/1.4 var(--text); color: var(--ink); }
.hp .ask textarea { min-height: 132px; resize: vertical; }
.hp .ask :is(input, textarea):focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--blue); }
.hp .ask .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hp .ask fieldset { margin: 0; padding: 0; border: 0; }
.hp .ask .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.hp .ask .checks label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; cursor: pointer; }
.hp .ask .checks label:has(:checked) { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-deep); }
.hp .ask .checks input { accent-color: var(--blue); margin: 0; }
.hp .ask .btn { width: 100%; margin-top: 28px; border: 0; cursor: pointer; }
.hp .ask .fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-mute); }
.hp .ask .fine a, .hp .ask .state a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.hp .ask .state { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #E3F6EC; color: #0B6B34; font-weight: 500; }
.hp .ask .state.w-form-fail { background: #FDE8E8; color: #9B1C1C; }
.hp .agenda-list { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.hp .agenda-list li { padding-block: 18px; border-bottom: 1px solid var(--line-strong); color: var(--ink-soft); }
.hp .agenda-list b { display: block; font-weight: 600; color: var(--ink); }
.hp .page-hero .logos { margin: 40px 0 0; gap: 20px 36px; }
.hp .page-hero .logos img { height: 26px; }
.hp .page-hero.split.top .wrap { align-items: start; }

@media (max-width: 1100px) { .hp .marks { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hp .badges.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hp .marks, .hp .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .wall { columns: 2; }
  .hp .case-vis dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hp .wall { columns: 1; }
  .hp .people, .hp .badges.four, .hp .ask .row { grid-template-columns: minmax(0, 1fr); }
  .hp .marks li > * { padding: 10px 12px; font-size: 14px; }
  .hp .bars li { grid-template-columns: 5.5em minmax(0, 1fr) auto; gap: 10px; }
}
.hp .voices + .close { padding-top: clamp(24px, 4vw, 48px); }
.hp .ask fieldset { margin-top: 20px; }
.hp .ask legend { margin-top: 0; }

/* ----- Case studies index: company profile cards ----- */
.hp .profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp .profiles a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; align-items: center; height: 100%; padding: 22px 24px; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.hp .profiles a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--blue), 0 18px 32px -18px rgba(43, 54, 163, 0.4); }
.hp .profiles :is(img, i) { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; }
.hp .profiles i { display: grid; place-items: center; background: var(--blue-tint); font: 600 19px/1 var(--display); font-style: normal; color: var(--blue-deep); }
.hp .profiles b { align-self: end; font: 600 21px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .profiles span { align-self: start; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.hp .profiles small { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.hp .profiles em { padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); font-size: 13px; font-style: normal; font-weight: 500; color: var(--blue-deep); }
@media (max-width: 900px) { .hp .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hp .profiles { grid-template-columns: minmax(0, 1fr); } }

/* ----- Problem tiles (team pages): one small picture for each problem ----- */
.hp .mess { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.hp .mess > li { grid-column: span 5; display: flex; flex-direction: column; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.hp .mess > li:nth-child(4n + 1), .hp .mess > li:nth-child(4n) { grid-column: span 7; }
.hp .mess h3 { margin: 28px clamp(24px, 2.6vw, 36px) 0; font: 600 clamp(22px, 2.2vw, 28px)/1.12 var(--display); letter-spacing: -0.025em; }
.hp .mess p { margin: 10px clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px); max-width: 48ch; color: var(--ink-soft); }
.hp .pic { display: flex; align-items: center; justify-content: center; gap: 14px; height: 230px; padding: 24px; background: radial-gradient(90% 80% at 85% 10%, rgba(141, 185, 255, 0.5), transparent 60%), radial-gradient(70% 70% at 10% 100%, rgba(183, 169, 255, 0.35), transparent 65%), var(--blue-tint); font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
/* The parts sit at an angle. They go straight when the pointer is on the tile. */
.hp .pic :is(.card, .chip) { background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px #fff, 0 10px 24px -14px rgba(43, 54, 163, 0.5); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
.hp .mess li:hover :is(.card, .chip) { transform: none; }
.hp .pic .card { display: grid; gap: 9px; align-content: start; justify-items: start; width: 104px; min-height: 104px; padding: 14px; border-radius: 14px; }
.hp .pic .card.wide { width: 150px; }
.hp .pic .chip { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.hp .pic .col { display: grid; gap: 8px; justify-items: start; }
.hp .pic img { flex: none; }
.hp .pic small { font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.hp .pic i { display: block; width: var(--w, 100%); height: 7px; border-radius: 999px; background: rgba(15, 22, 56, 0.14); }
.hp .pic i.b { background: var(--blue); }
.hp .pic i.miss { height: 11px; border: 1.5px dashed var(--blue); background: none; }
.hp .pic i.who { width: 22px; height: 22px; background: radial-gradient(circle at 50% 36%, var(--blue) 0 22%, transparent 24%), radial-gradient(ellipse at 50% 108%, var(--blue) 0 46%, transparent 48%), var(--blue-tint); }
.hp .pic .ring { width: 44px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--blue) var(--p), rgba(15, 22, 56, 0.12) 0); -webkit-mask: radial-gradient(circle, transparent 12px, #000 13px); mask: radial-gradient(circle, transparent 12px, #000 13px); }
.hp .pic .q { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); font: 600 14px/1 var(--display); color: #fff; }
.hp .pic .card > .q { width: 40px; height: 40px; font-size: 24px; }
.hp .pic .to { font-size: 20px; font-weight: 500; color: var(--blue); }
.hp .pic .wires { flex: none; width: 72px; height: 124px; }
.hp .pic .wires path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hp .pic .rows { display: grid; gap: 16px; width: min(100%, 340px); padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px #fff, 0 10px 24px -14px rgba(43, 54, 163, 0.5); }
.hp .pic .rows > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.hp .pic .rows div span:last-child { position: relative; height: 2px; background: rgba(15, 22, 56, 0.14); }
.hp .pic .rows div span:last-child::after { content: ""; position: absolute; left: min(var(--a), 100% - 12px); top: -5px; width: calc(var(--b) - var(--a)); min-width: 12px; height: 12px; border-radius: 999px; background: var(--blue); }
/* On the solutions hub, each tile is a link to a team page. */
.hp .mess a { display: flex; flex-direction: column; height: 100%; }
.hp .mess a h3 { transition: color 150ms; }
.hp .mess a:hover h3 { color: var(--blue); }
.hp .mess a:focus-visible :is(.card, .chip) { transform: none; }
.hp .mess > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) { .hp .pic :is(.card, .chip) { transition: transform 500ms var(--ease-out); } }
@media (max-width: 900px) { .hp .mess > li:nth-child(n) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .hp .pic { zoom: 0.78; } }

/* ----- Managed services hub: owners, steps, tier ladders, price tags ----- */
.hp .crew { display: grid; gap: 12px; width: 100%; max-width: 440px; }
.hp .crew li { display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; padding: 12px 22px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px #fff, 0 1px 2px rgba(15, 22, 56, 0.08), 0 24px 40px -16px rgba(15, 22, 56, 0.35); font-size: 15px; line-height: 1.3; }
.hp .crew li:nth-child(even) { margin-left: 14%; }
.hp .crew i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 36%, var(--blue) 0 21%, transparent 23%), radial-gradient(ellipse at 50% 108%, var(--blue) 0 46%, transparent 48%), var(--blue-tint); }
.hp .crew b { display: block; font-weight: 600; color: var(--ink); }
.hp .crew small { display: block; font-size: 13.5px; color: var(--ink-mute); }
@media (prefers-reduced-motion: no-preference) {
  .hp .crew li { animation: hp-event-in 700ms var(--ease-out) both; }
  .hp .crew li:nth-child(1) { animation-delay: 500ms; }
  .hp .crew li:nth-child(2) { animation-delay: 750ms; }
  .hp .crew li:nth-child(3) { animation-delay: 1000ms; }
  .hp .crew li:nth-child(4) { animation-delay: 1250ms; }
}

/* Each step stands higher than the step before it. */
.hp .stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; counter-reset: stair; }
.hp .stairs > li { counter-increment: stair; display: flex; flex-direction: column; align-items: flex-start; min-height: var(--h); padding: clamp(24px, 2.6vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.hp .stairs > li:nth-child(1) { --h: 460px; }
.hp .stairs > li:nth-child(2) { --h: 540px; }
.hp .stairs > li:nth-child(3) { --h: 620px; background: radial-gradient(70% 50% at 100% 0%, rgba(141, 185, 255, 0.7), transparent 65%), radial-gradient(70% 50% at 0% 100%, rgba(26, 33, 110, 0.85), transparent 70%), var(--blue); box-shadow: var(--shadow-stage); color: #fff; }
.hp .stairs > li::before { content: counter(stair); order: -1; margin-bottom: auto; padding-bottom: 32px; font: 600 clamp(88px, 10vw, 144px)/0.8 var(--display); letter-spacing: -0.05em; color: var(--blue); }
.hp .stairs .pill { position: absolute; }
.hp .stairs > li { position: relative; }
.hp .stairs .pill { top: clamp(24px, 2.6vw, 36px); right: clamp(24px, 2.6vw, 36px); }
.hp .stairs h3 { font: 600 clamp(26px, 2.6vw, 38px)/1.08 var(--display); letter-spacing: -0.03em; }
.hp .stairs p { margin-top: 14px; color: var(--ink-soft); }
.hp .stairs div { display: grid; gap: 10px; justify-items: start; margin-top: 24px; }
.hp .stairs > li:nth-child(3)::before, .hp .stairs > li:nth-child(3) h3 { color: #fff; }
.hp .stairs > li:nth-child(3) p { color: rgba(255, 255, 255, 0.84); }
.hp .stairs > li:nth-child(3) .link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.hp .stairs > li:nth-child(3) .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* One card for each service. The three tiers get wider and darker as the scope grows. */
.hp .svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp .svc { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.hp .svc h3 { font: 600 clamp(24px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.025em; }
.hp .svc > p { margin-top: 10px; min-height: 3.1em; color: var(--ink-soft); }
.hp .svc ol { display: grid; gap: 8px; width: 100%; margin: 28px 0 32px; }
.hp .svc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 14px 18px; border-radius: 16px; background: var(--paper); }
.hp .svc li:nth-child(1) { width: 76%; }
.hp .svc li:nth-child(2) { width: 88%; background: var(--blue-tint); }
.hp .svc li:nth-child(3) { background: var(--blue); color: #fff; }
.hp .svc li b { font: 600 19px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .svc li em { font: 600 19px/1.2 var(--display); font-style: normal; font-variant-numeric: tabular-nums; color: var(--blue); }
.hp .svc li small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.hp .svc li:nth-child(3) :is(b, em) { color: #fff; }
.hp .svc li:nth-child(3) small { color: rgba(255, 255, 255, 0.84); }
.hp .svc .link { margin-top: auto; }
.hp .plan.wide.featured { background: var(--blue); box-shadow: var(--shadow-stage); }

/* Eight tags without a price, and one tag with a price. */
.hp .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hp .tags li { position: relative; padding: 12px 20px 12px 38px; border: 1.5px dashed var(--line-strong); border-radius: 999px; font-size: 15px; color: var(--ink-mute); }
.hp .tags li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.hp .tags li:nth-child(odd) { transform: rotate(-2deg); }
.hp .tags li:nth-child(3n) { transform: rotate(2.5deg); }
.hp .tags .us { border: 0; background: var(--blue); box-shadow: 0 12px 24px -8px rgba(61, 75, 202, 0.6); font: 600 clamp(18px, 1.8vw, 22px)/1.2 var(--display); letter-spacing: -0.02em; color: #fff; transform: rotate(-2deg); }

@media (max-width: 900px) {
  .hp .stairs, .hp .svcs { grid-template-columns: minmax(0, 1fr); }
  .hp .stairs > li:nth-child(n) { --h: 0; }
  .hp .svc > p { min-height: 0; }
}
@media (max-width: 560px) { .hp .crew li:nth-child(even) { margin-left: 0; } .hp .crew li { width: 100%; } }
@media (max-width: 560px) { .hp .tags { gap: 8px; } .hp .tags li:not(.us) { padding: 9px 12px 9px 30px; font-size: 13px; } .hp .tags li:not(.us)::before { left: 11px; } }
