/* =============================================================================
   Ostride Labs — Discovery Sprint landing page
   Tokens pulled from Figma variables (file HlPRPcM6pkSy6ZjAXaoTa7, "Landing Discovery").
   Mobile first (Figma 375). Layers: 768 tablet (no Figma frame, interpolated),
   1024 desktop layouts, 1440 → 2560 fluid scale (Figma 1440 and 2560 frames),
   1920 wide line-heights.
   ============================================================================= */

/* Metric-matched local fallbacks, so the swap to the web fonts barely shifts the layout (CLS). */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  size-adjust: 110%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 102%;
}
@font-face {
  font-family: "Work Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  size-adjust: 112%;
}
@font-face {
  font-family: "Work Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 104%;
}

/* ----------------------------------- Tokens ----------------------------------- */
:root {
  /* Brand colours (Figma "2025/..." variables) */
  --black: #000000;
  --white: #ffffff;
  --blue-800: #002780;
  --blue-700: #0037b3;
  --blue-600: #0047e5;
  --blue-500: #004fff; /* primary */
  --blue-400: #1961ff;
  --blue-300: #4c84ff;
  --blue-200: #80a7ff;
  --alabaster: #f4f2e4;
  --grey: #d9dada;
  --muted: #757575; /* on black: 4.6:1 */
  --green: #37fae0; /* Figma 2025/Secondary/green */
  --green-on-blue: #37ffe0; /* same green, +5 G so text on #004FFF reaches 4.5:1 (TZ 7) */
  --error: #d1095e; /* Figma pink #FC0D71 fails 4.5:1 as text; used for borders only */
  --error-border: #fc0d71;

  --grad-back: linear-gradient(180deg, #004fff 11.015%, #000000 97.225%);
  --grad-back-flip: linear-gradient(180deg, #000000 2.775%, #004fff 88.985%);
  --shadow-form: 0 8px 40px 0 rgba(0, 79, 255, 0.6);

  /* Type */
  --font-head: "Space Grotesk", "Space Grotesk Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Work Sans", "Work Sans Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale (mobile values; overridden per breakpoint below) */
  --fs-display: 32px; /* H1, final CTA H2 */
  --lh-display: 1.5;
  --fs-h2: 24px;
  --lh-h2: 1.5;
  --fs-h3: 24px; /* process day/focus, result titles, fit card title (desktop) */
  --fs-body: 16px;
  --lh-body: 1.5;
  --fs-lead: 16px;

  /* Layout rhythm (Figma: 375 → 24 / 120 / 40, 1440 → 140 / 160 / 80, 2560 → 140 / 200 / 100) */
  --pad-x: 24px;
  --section-gap: 120px;
  --head-gap: 40px;

  /* Motion */
  --t-fast: 150ms ease-out;
}

@media (min-width: 768px) {
  :root {
    --pad-x: clamp(40px, 14.881vw - 74.29px, 140px);
    --section-gap: clamp(120px, 3.571vw + 108.57px, 200px);
    --head-gap: clamp(48px, 4.762vw + 11.43px, 80px);
    --fs-display: 40px;
    --lh-display: 1.4;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-body: 18px;
    --fs-lead: 18px;
  }
}
@media (min-width: 1024px) {
  :root {
    --fs-display: clamp(40px, 1.923vw + 20.31px, 48px);
    --fs-h2: 32px;
    --fs-h3: 24px;
  }
}
@media (min-width: 1440px) {
  :root {
    --head-gap: clamp(80px, 1.786vw + 54.29px, 100px);
    --fs-display: clamp(48px, 1.4286vw + 27.43px, 64px);
    --fs-h2: clamp(32px, 1.4286vw + 11.43px, 48px);
    --fs-h3: clamp(24px, 0.7143vw + 13.71px, 32px);
    --fs-body: clamp(18px, 0.5357vw + 10.29px, 24px);
    --fs-lead: clamp(18px, 0.5357vw + 10.29px, 24px);
  }
}
@media (min-width: 1920px) {
  :root {
    --lh-display: 1.2;
    --lh-h2: 1.4;
    --lh-body: 1.4;
  }
}

/* ----------------------------------- Reset ----------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip; /* no horizontal scroll (TZ 8); never put overflow-x on body */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

/* the [hidden] attribute must always win over component display rules */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--blue-200);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 12px;
}
.skip-link:focus-visible {
  outline-color: var(--black);
}

.nowrap {
  white-space: nowrap; /* keeps "15-minute" from splitting at the hyphen */
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------- Layout utils --------------------------------- */
.container {
  width: 100%;
  max-width: 2560px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative; /* paints above the hero prism overflow on wide screens */
  padding-top: var(--section-gap);
}

/* --------------------------------- Typography --------------------------------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--white);
}

.body-text,
.body-text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--head-gap);
}
@media (min-width: 768px) {
  .section-head {
    gap: 16px;
  }
}

/* ----------------------------------- Button ----------------------------------- */
/* Figma component "button/main button", variant used on the page: active (#0047E5 + dark border) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 8px 24px; /* 2 + 8 + 27 + 8 + 2 = 47, so min-height gives Figma's 48px */
  border: 2px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--blue-600), var(--blue-600)) padding-box,
    linear-gradient(180deg, #0047e5 0%, #002780 100%) border-box;
  color: var(--white);
  font: 400 18px/1.5 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition:
    background var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
}
@media (hover: hover) {
  .btn-cta:hover {
    background:
      linear-gradient(var(--blue-400), var(--blue-400)) padding-box,
      linear-gradient(180deg, #80a7ff 0%, #0032a6 100%) border-box;
    box-shadow: 0 4px 0 0 rgba(0, 79, 255, 0.2);
  }
}
.btn-cta:active {
  box-shadow: none;
  transform: translateY(1px);
}

/* ----------------------------------- Header ----------------------------------- */
/* Static on purpose: Figma shows no sticky header and TZ 4 forbids floating elements on mobile. */
.site-header {
  background: var(--blue-500);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 2560px;
  min-height: 56px;
  margin-inline: auto;
  padding: 0 var(--pad-x);
}
.site-header__logo {
  display: inline-flex;
  border-radius: 4px;
}
.site-header__logo img {
  width: auto;
  height: 21.754px; /* 103 x 21.754 on mobile */
}
.site-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* TZ 4: tap targets >= 44px; header stays 56px */
  color: var(--green-on-blue);
  font: 400 16px/1.5 var(--font-body);
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
  white-space: nowrap;
  transition: background-color var(--t-fast);
}
.site-header :focus-visible {
  outline-color: var(--white);
}
@media (min-width: 768px) {
  .site-header__inner {
    min-height: 0;
    padding-block: clamp(16px, 3.571vw - 11.43px, 40px); /* 128px tall at 1440 */
  }
  .site-header__logo img {
    height: 40px; /* 189.388 x 40 */
  }
  .site-header__cta {
    justify-content: center;
    width: 270px;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid var(--green);
    border-radius: 8px;
    text-decoration: none;
  }
}
@media (hover: hover) and (max-width: 767px) {
  .site-header__cta:hover {
    text-decoration-thickness: 2px; /* plain text link on mobile: no box to fill */
  }
}
@media (hover: hover) and (min-width: 768px) {
  .site-header__cta:hover {
    background: var(--blue-700); /* green text stays 7.5:1; a green tint would drop it below 4.5:1 */
  }
}

/* ------------------------------------ Hero ------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  /* Figma "gradient/back" band under the header (Rectangle 1217) */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 1130px;
  background: var(--grad-back);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: 135px;
}
.hero__prism {
  /* 2026_bg_web_26: decorative, never affects flow height */
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 585px;
  max-width: none;
  height: auto;
  aspect-ratio: 1684 / 1080;
  pointer-events: none;
  user-select: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__eyebrow {
  color: var(--green-on-blue);
  font: 400 12px/1.5 var(--font-body);
  /* keeps >= 4.5:1 where the 100% prism beam (#2CA9F5) passes behind the text on small screens (TZ 7) */
  text-shadow:
    0 0 1px #00238a,
    0 0 2px #00238a,
    0 0 4px #00238a,
    0 0 8px #00238a;
}
.hero__title {
  font-family: var(--font-head);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 600;
  text-wrap: pretty; /* no one-word last line */
  text-shadow:
    0 0 2px #00238a,
    0 0 6px rgba(0, 35, 138, 0.6);
}
/* Phase-2 headline variants (index.html <head> script): exactly one is displayed, hidden ones are
   display:none so they are not read or indexed as part of the H1. */
.hero__headline:not([data-headline="default"]) {
  display: none;
}
html[data-headline] .hero__headline[data-headline="default"] {
  display: none;
}
html[data-headline="vendor"] .hero__headline[data-headline="vendor"] {
  display: inline;
}
.hero__lead p {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
}
.hero__cta {
  width: 100%;
}

.facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 80px;
}
.fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 38px;
  background: var(--alabaster);
  border: 2px solid var(--blue-200);
  border-radius: 24px;
}
@media (hover: hover) {
  .fact,
  .result-card {
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .fact:hover,
  .result-card:hover {
    transform: scale(1.03);
  }
}
.fact__value {
  width: fit-content;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--green);
  color: var(--blue-500);
  font: 600 32px/1.5 var(--font-head);
  white-space: nowrap;
}
.fact__label {
  color: var(--black);
  font: 400 16px/1.5 var(--font-body);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero::before {
    height: 760px;
  }
  .hero__eyebrow {
    font-size: 16px;
    text-shadow: none;
  }
  .hero__cta {
    width: auto;
  }
  .facts {
    flex-direction: row;
  }
  .fact {
    flex: 1 1 0;
    min-width: 0;
    padding: 22px 22px;
    justify-content: flex-start; /* values share a baseline when labels wrap unevenly */
  }
  .fact__value {
    border-bottom-color: var(--blue-200);
  }
}
@media (min-width: 1024px) {
  .hero::before {
    height: 620px;
  }
  .hero__title {
    text-shadow: none;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 710fr) minmax(0, 422fr);
    column-gap: 24px;
    align-items: center;
    min-height: 620px;
    padding-top: 0;
  }
  .hero__prism {
    right: var(--pad-x);
    width: min(1929px, calc(85.893vw - 269.86px)); /* 967 @1440, 1929 @2560 */
  }
  .hero__content {
    gap: 80px;
    padding-block: 40px;
  }
  .hero__text {
    gap: 0;
  }
  .hero__eyebrow {
    margin-bottom: 24px;
  }
  .hero__title {
    margin-bottom: 40px;
  }
  .facts {
    margin-top: 80px;
  }
  .fact {
    padding: 26px 28px;
  }
  .fact__value {
    font-size: 40px;
    line-height: 1.4;
  }
  .fact__label {
    font-size: 18px;
  }
}
@media (min-width: 1280px) {
  .fact {
    padding: 26px 38px;
  }
  .fact__value {
    font-size: 48px;
  }
}
@media (min-width: 1440px) {
  .facts {
    margin-top: clamp(80px, 3.571vw + 28.57px, 120px);
  }
  .fact__label {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
}
@media (min-width: 1920px) {
  .hero__cta {
    min-height: 60px;
  }
}

/* ------------------------------ Why pay before build ------------------------------ */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.why__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why__br {
  display: none;
}
.why__body p + p {
  margin-top: 1.5em;
}

.fit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--green);
  border-radius: 16px;
}
.fit-card__media {
  position: relative;
  overflow: hidden;
}
.fit-card__media img {
  width: 100%;
}
.fit-card__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 40px 40px;
}
.fit-card__title {
  color: var(--green);
  font: 400 24px/1.5 var(--font-head);
}
.fit-card__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fit-card__list li {
  color: var(--alabaster);
  font: 400 18px/1.5 var(--font-body);
}
.fit-card__list li + li {
  padding-top: 40px;
  border-top: 1px solid var(--green);
}

@media (min-width: 768px) {
  .fit-card__media {
    aspect-ratio: 565 / 225;
  }
  .fit-card__media img {
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .fit-card__body {
    gap: 24px;
    padding: 0 80px 40px;
  }
  .fit-card__title {
    font-size: 32px;
  }
  .fit-card__list {
    gap: 24px;
  }
  .fit-card__list li + li {
    padding-top: 24px;
  }
}
@media (min-width: 1024px) {
  .why__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }
  .why__text {
    gap: 40px;
  }
  .why__br {
    display: inline;
  }
  .fit-card__body {
    padding: 0 40px 40px;
  }
}
@media (min-width: 1280px) {
  .fit-card__body {
    padding: 0 80px 40px;
  }
}
@media (min-width: 1440px) {
  .fit-card__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }
  .fit-card__list li {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
  .why__body p + p {
    margin-top: calc(var(--lh-body) * 1em);
  }
}
@media (min-width: 1920px) {
  .why__br {
    display: none;
  }
}

/* --------------------------------- ChatGPT card --------------------------------- */
.gpt-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 38px;
  background: var(--blue-500);
  border: 2px solid var(--blue-200);
  border-radius: 16px;
  box-shadow: var(--shadow-form);
}
.gpt-card__title {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--green);
  color: var(--alabaster);
  font: 600 24px/1.5 var(--font-head);
}
.gpt-card__text {
  color: var(--white);
  font: 400 18px/1.5 var(--font-body);
}
@media (min-width: 768px) {
  .gpt-card {
    border-radius: 24px;
  }
  .gpt-card__title {
    font-size: 28px;
  }
}
@media (min-width: 1024px) {
  .gpt-card__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }
}
@media (min-width: 1440px) {
  .gpt-card {
    padding: clamp(38px, 3.571vw - 13.43px, 78px);
  }
  .gpt-card__text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
}

/* ----------------------------------- Process ----------------------------------- */
/* A real <table> (TZ: three columns on desktop), restyled with grid; ARIA roles keep the semantics. */
.process__table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.process__table thead,
.process__table tbody {
  display: block;
}
/* :where() keeps this reset at element specificity so the column classes below win */
:where(.process__table) th,
:where(.process__table) td {
  padding: 0;
  text-align: left;
  vertical-align: top;
  font-weight: inherit;
}
.process__head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 12px;
  padding: 12px 0;
  color: var(--muted);
  font: 400 12px/1.5 var(--font-body);
}
.process__table tbody {
  display: grid;
  row-gap: 24px;
}
.process__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 24px;
}
.process__day {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font: 400 18px/1.5 var(--font-body);
  white-space: nowrap;
}
.process__day::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--green);
}
.process__focus {
  grid-row: 2;
  grid-column: 1;
  color: var(--white);
  font: 600 18px/1.5 var(--font-body);
}
.process__keep {
  grid-row: 2;
  grid-column: 2;
  color: var(--alabaster);
  font: 400 14px/1.5 var(--font-body);
  text-wrap: pretty;
  overflow-wrap: break-word; /* only a word that can't fit breaks (320px); no hyphen characters added */
}

@media (min-width: 768px) {
  .process__head {
    grid-template-columns: 109px minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
    padding: 12px 0 6px;
    font-size: 16px;
  }
  .process__head th:nth-child(2) {
    grid-column: 2;
  }
  .process__head th:nth-child(3) {
    grid-column: 3;
  }
  .process__table tbody,
  .process__row {
    row-gap: 32px;
  }
  .process__row {
    grid-template-columns: 109px minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
  }
  .process__day {
    gap: 48px;
    padding-left: 24px;
    font: 400 var(--fs-h3) / 1.5 var(--font-head);
  }
  .process__focus {
    grid-column: 2;
    font: 600 var(--fs-h3) / 1.5 var(--font-head);
  }
  .process__keep {
    grid-column: 3;
    color: var(--white);
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .process__table {
    width: 75%; /* 864 @1440, 1704 @2560 */
    margin-inline: auto;
  }
  .process__head {
    font-size: 18px;
  }
  .process__table tbody,
  .process__row {
    row-gap: 40px;
  }
  .process__keep {
    font-size: 18px;
  }
}
@media (min-width: 1440px) {
  .process__head {
    grid-template-columns: clamp(109px, 1.786vw + 83.29px, 129px) minmax(0, 1fr) minmax(0, 1fr);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
  .process__row {
    grid-template-columns: clamp(109px, 1.786vw + 83.29px, 129px) minmax(0, 1fr) minmax(0, 1fr);
  }
  .process__keep {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
}
@media (min-width: 1920px) {
  .process__head {
    padding-bottom: 0;
  }
}

/* ----------------------------------- Results ----------------------------------- */
.results__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.result-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  background: var(--alabaster);
  border: 2px solid var(--blue-200);
  border-radius: 16px;
}
.result-card__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blue-200);
  color: var(--blue-500);
  font: 600 18px/1.5 var(--font-body);
}
.result-card__text {
  align-self: stretch;
  color: var(--black);
  font: 400 14px/1.5 var(--font-body);
}
@media (min-width: 768px) {
  .results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .result-card {
    padding: 30px;
    border-radius: 24px;
  }
  .result-card__title {
    font: 600 var(--fs-h3) / 1.5 var(--font-head);
  }
  .result-card__text {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .result-card {
    min-height: 260px;
    padding: 38px 36px; /* Figma lets "Risk and mitigation sheet" overflow its 293px box by 2px */
  }
  .result-card__text {
    font-size: 18px;
  }
}
@media (min-width: 1440px) {
  .result-card__text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
}

/* ------------------------------------ Team ------------------------------------ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  margin-top: var(--head-gap);
}
.person {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.person__photo {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--green);
}
.person__photo img {
  width: 120px; /* TZ 4: team photos at most 260px tall on mobile */
  aspect-ratio: 1;
  object-fit: contain;
}
.person__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.person__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.person__name {
  color: var(--white);
  font: 600 18px/1.5 var(--font-body);
}
.person__name span {
  display: block; /* first / last name on two lines, as in the mobile frame */
}
.person__role {
  color: var(--green);
  font: 400 10px/1.5 var(--font-body);
}
.person__bio {
  color: var(--alabaster);
  font: 400 12px/1.5 var(--font-body);
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .team__grid {
    row-gap: 56px;
  }
  .person__photo img {
    width: 200px;
  }
  .person__body {
    padding: 0 24px;
  }
  .person__name span {
    display: inline;
  }
  .person__role {
    font-size: 12px;
  }
  .person__bio {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .team__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }
  .person {
    gap: 59px;
  }
  .person__photo img {
    width: 69%; /* 200 of 290 @1440, 394 of 570 @2560 */
  }
}
@media (min-width: 1440px) {
  .person__name {
    font-size: clamp(18px, 0.5357vw + 10.29px, 24px);
  }
  .person__role {
    font-size: clamp(12px, 0.1786vw + 9.43px, 14px);
  }
  .person__bio {
    font-size: clamp(16px, 0.7143vw + 5.71px, 24px);
    line-height: var(--lh-body);
  }
}

/* -------------------------------- Testimonials -------------------------------- */
.testimonials__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  max-width: 1704px;
  margin: var(--head-gap) auto 0;
}
.tcard {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 44px;
  grid-template-areas:
    "box box box"
    "logo by avatar";
  align-items: start;
  column-gap: 8px;
  row-gap: 24px;
  height: 100%;
  margin: 0;
}
.tcard__box {
  grid-area: box;
  position: relative;
  display: flex;
  min-height: 180px;
  padding: 20px;
  overflow: hidden;
  background: rgba(0, 79, 255, 0.05);
  border-radius: 6px;
}
/* blue corner brackets (Figma 20x20 vector, drawn in CSS with identical geometry) */
.tcard__box::before,
.tcard__box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 0 solid var(--blue-500);
  pointer-events: none;
}
.tcard__box::before {
  top: 0;
  left: 0;
  border-top-width: 5.8px;
  border-left-width: 5.8px;
  border-top-left-radius: 5.8px;
}
.tcard__box::after {
  right: 0;
  bottom: 0;
  border-right-width: 5.8px;
  border-bottom-width: 5.8px;
  border-bottom-right-radius: 5.8px;
}
.tcard__quote {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: var(--alabaster);
  border-radius: 8px;
}
.tcard__quote p {
  max-width: 100%;
  color: var(--black);
  font: 400 16px/1.5 var(--font-body);
}
.tcard__logo {
  grid-area: logo;
  width: 96px;
  height: 42px;
}
.tcard__avatar {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.tcard__by {
  grid-area: by;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font: 400 14px/1.5 var(--font-body);
}
.tcard__name {
  color: var(--white);
  font-weight: 600;
}
.tcard__role {
  color: var(--alabaster);
}
@media (min-width: 768px) {
  .tcard {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "box logo"
      "box avatar"
      "by avatar";
    align-items: stretch;
    column-gap: 24px;
  }
  .tcard__box {
    min-height: 128px;
  }
  .tcard__logo {
    align-self: start;
  }
  .tcard__avatar {
    align-self: end;
    width: 96px;
    height: 96px;
  }
}
@media (min-width: 1024px) {
  .testimonials__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
@media (min-width: 1440px) {
  .testimonials__list {
    margin-top: 100px; /* Figma: 100 at 1440 and 2560 */
  }
}
@media (min-width: 1440px) {
  .tcard__quote p {
    font-size: clamp(16px, 0.7143vw + 5.71px, 24px);
    line-height: var(--lh-body);
  }
}

/* ------------------------------------ Price ------------------------------------ */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 0;
  background: var(--blue-500);
  border: 2px solid var(--blue-200);
  border-radius: 24px;
  box-shadow: var(--shadow-form);
}
.price-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 22px;
}
.price-card__head {
  width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--green);
}
.price-card__title {
  color: var(--alabaster);
  font: 600 var(--fs-h2) / var(--lh-h2) var(--font-head);
}
.price-card__fee,
.price-card__body {
  color: var(--white);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* "Fixed price" pill: rebuilt in CSS from the Figma raster (which said "A$7.400").
   Everything inside is in container units, so the same rules serve the 517px and 327px slots. */
.price-pill {
  position: relative;
  flex: none;
  width: calc(100% + 4px); /* the Figma slot overlaps the 2px card border on mobile */
  margin-inline: -2px;
  aspect-ratio: 517 / 258;
  container-type: inline-size;
}
.price-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    43.1cqw 15.82cqw at 52.65cqw 16.29cqw,
    rgba(55, 250, 224, 0.72) 0%,
    rgba(55, 250, 224, 0.688) 10%,
    rgba(55, 250, 224, 0.601) 20%,
    rgba(55, 250, 224, 0.48) 30%,
    rgba(55, 250, 224, 0.35) 40%,
    rgba(55, 250, 224, 0.234) 50%,
    rgba(55, 250, 224, 0.142) 60%,
    rgba(55, 250, 224, 0.079) 70%,
    rgba(55, 250, 224, 0.04) 80%,
    rgba(55, 250, 224, 0.019) 90%,
    rgba(55, 250, 224, 0) 100%
  );
}
.price-pill__label {
  position: absolute;
  top: 10.15cqw;
  left: 0;
  right: 0;
  transform: translateX(-0.39cqw);
  color: var(--white); /* Figma; the pill is decorative (aria-hidden), its facts are in the card text */
  font: 500 max(12px, 3.656cqw)/1 var(--font-head);
  text-align: center;
}
.price-pill__value {
  position: absolute;
  top: 16.78cqw;
  left: 13.07cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73.85cqw;
  height: 20.6cqw;
  padding: 0.48cqw 0 0 0.58cqw; /* optical centring of the glyph ink */
  border: 0.5cqw solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#004fff, #004fff) padding-box,
    conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 255, 255, 0.23) 0deg,
        rgba(255, 255, 255, 0.17) 68deg,
        rgba(255, 255, 255, 0.125) 74deg,
        rgba(255, 255, 255, 0.08) 78deg,
        rgba(255, 255, 255, 0) 86deg,
        rgba(255, 255, 255, 0) 212deg,
        rgba(0, 0, 0, 0.05) 232deg,
        rgba(0, 0, 0, 0.2) 242deg,
        rgba(0, 0, 0, 0.36) 248deg,
        rgba(0, 0, 0, 0.44) 254deg,
        rgba(0, 0, 0, 0.38) 262deg,
        rgba(0, 0, 0, 0) 270deg,
        rgba(255, 255, 255, 0.12) 274deg,
        rgba(255, 255, 255, 0.2) 278deg,
        rgba(255, 255, 255, 0.25) 282deg,
        rgba(255, 255, 255, 0.28) 286deg,
        rgba(255, 255, 255, 0.29) 292deg,
        rgba(255, 255, 255, 0.23) 360deg
      )
      border-box,
    linear-gradient(#004fff, #004fff) border-box;
  color: var(--white);
  font: 500 13.47cqw/1 var(--font-head);
  white-space: nowrap;
  text-shadow:
    0 0.39cqw 1.16cqw rgba(0, 0, 0, 0.3),
    0 0 1.16cqw rgba(55, 250, 224, 0.25);
}
@supports not (width: 1cqw) {
  .price-pill {
    width: 100%;
    max-width: 517px;
    margin-inline: auto;
  }
  .price-pill__label {
    top: 52.5px;
    font-size: 18.9px;
    transform: translateX(-2px);
  }
  .price-pill__value {
    top: 86.7px;
    left: 67.6px;
    width: 381.8px;
    height: 106.5px;
    padding: 2.5px 0 0 3px;
    border-width: 2.6px;
    font-size: 69.6px;
  }
}
.br-m {
  display: inline;
}
@media (min-width: 768px) {
  .br-m {
    display: none;
  }
  .price-card {
    padding: 38px 0;
  }
  .price-card__text {
    padding: 0 38px;
  }
  .price-pill {
    width: min(100%, 517px);
    margin-inline: auto;
  }
}
@media (min-width: 1024px) {
  .price-card {
    flex-direction: row;
    align-items: center;
    padding: 38px;
  }
  .price-card__text {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
  }
  .price-card__head {
    width: fit-content;
    max-width: 100%;
  }
  .price-pill {
    flex: 0 0 min(517px, 45%);
    width: auto;
    margin: 0;
  }
}
@media (min-width: 1440px) {
  .price-card {
    padding: 38px clamp(38px, 3.571vw - 13.43px, 78px);
  }
  .price-pill {
    flex-basis: 517px; /* Figma 1440/2560 slot; the 45% cap stays for 1024-1439 */
  }
}

/* ------------------------------------- FAQ ------------------------------------- */
.faq__title {
  margin-bottom: var(--head-gap);
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq__q {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px; /* >= 44px tap target */
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__icon {
  flex: none;
  width: 47px;
  height: 47px;
  background: url("../assets/pricefaq-faq-plus-m.svg") center / 47px 47px no-repeat;
  transform: rotate(-90deg); /* plus looks the same; on open the minus turns in from vertical */
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq__item[open]:not(.is-closing) .faq__icon {
  background-image: url("../assets/pricefaq-faq-minus-m.svg");
  transform: rotate(0deg);
}
.faq__q-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--grey);
  font: 500 18px/1.5 var(--font-head);
  letter-spacing: -0.2px;
}
.faq__a {
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: 12px;
}
.faq__a p {
  color: var(--black);
  font: 400 14px/1.5 var(--font-body);
}
.faq__q:focus-visible {
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .faq__list {
    gap: 16px;
  }
  .faq__q {
    gap: 24px;
    min-height: 60px;
  }
  .faq__icon {
    width: 60px;
    height: 60px;
    background-image: url("../assets/pricefaq-faq-plus.svg");
    background-size: 60px 60px;
  }
  .faq__item[open]:not(.is-closing) .faq__icon {
    background-image: url("../assets/pricefaq-faq-minus.svg");
  }
  .faq__q-text {
    color: var(--white);
    font: 400 24px/1.5 var(--font-head);
    letter-spacing: 0;
  }
  .faq__a {
    margin: 12px 0 0 80px;
    border-radius: 8px;
  }
  .faq__a p {
    font-size: 18px;
  }
}
@media (min-width: 1024px) {
  .faq__list {
    width: 75%; /* 864 @1440, 1704 @2560 */
    margin-inline: auto;
  }
}

/* --------------------------------- Final CTA + form --------------------------------- */
.final-cta {
  position: relative;
  padding: var(--section-gap) 0 144px;
}
.final-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.final-cta__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.final-cta__title {
  font-family: var(--font-head);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 600;
}
.final-cta__sub {
  color: var(--white);
  font: 400 16px/1.5 var(--font-body);
}

.form-card {
  position: relative;
  padding: 26px 22px;
  color: var(--black);
  background: var(--alabaster);
  border: 2px solid var(--blue-200);
  border-radius: 16px;
}
#discovery-sprint-form {
  scroll-margin-top: 64px;
}
.form-card__embed {
  /* reserve the rendered iframe height to avoid layout shift (measured per breakpoint) */
  min-height: 886px;
  transition: min-height var(--t-fast);
}
.form-card__embed[data-state="ready"],
.form-card__embed[data-state="failed"] {
  min-height: 0;
}
.form-card__embed iframe {
  display: block;
  /* 4px gutter each side inside the iframe (css/hubspot-form.css) so focus rings are not clipped */
  width: calc(100% + 8px) !important;
  max-width: none;
  margin: 0 -4px -4px;
  border: 0;
  transition: opacity var(--t-fast);
}
.form-card__embed[data-state="loading"] iframe {
  opacity: 0; /* hidden until the skin stylesheet is applied inside the iframe */
}
.form-card__loading {
  position: absolute; /* out of flow: showing or hiding it never moves the form */
  top: 26px;
  left: 22px;
  right: 22px;
  color: #5c5c5c;
  font: 400 16px/1.5 var(--font-body);
}
.form-card__status,
.form-card__noscript {
  margin-top: 16px;
  padding: 12px 16px;
  color: var(--error);
  background: var(--white);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  font: 400 16px/1.5 var(--font-body);
}
#discovery-sprint-form[data-state="failed"] + .form-card__status {
  margin-top: 0; /* the empty embed collapses; keep the message centred in the card */
}
.form-card__status a,
.form-card__noscript a {
  color: var(--blue-600);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  text-align: center;
}
.form-success__art {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
}
.form-success__art img {
  width: 140px;
}
.form-success__title {
  color: var(--black);
  font: 600 48px/1.4 var(--font-head);
}
.form-success__title:focus {
  outline: none;
}
.form-success__text {
  max-width: 420px;
  margin-top: 8px;
  color: var(--black);
  font: 400 18px/1.5 var(--font-body);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .final-cta {
    padding: var(--section-gap) 0;
    background: var(--grad-back-flip);
  }
  .final-cta__text {
    gap: 40px;
  }
  .final-cta__sub {
    color: var(--alabaster);
    font: 400 24px/1.5 var(--font-head);
  }
  .form-card {
    padding: 38px;
    border-radius: 24px;
  }
  .form-card__embed {
    min-height: 774px;
  }
  .form-card__loading {
    top: 38px;
    left: 38px;
    right: 38px;
  }
}
@media (min-width: 1024px) {
  .final-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Figma 566 + 24 + 566 */
    align-items: center;
    gap: 24px;
  }
  .form-card__embed {
    min-height: 852px;
  }
  .final-cta__sub {
    font-size: clamp(24px, 1.923vw + 4.31px, 32px); /* 32 @1440 and up */
  }
}
@media (min-width: 1280px) {
  .form-card__embed {
    min-height: 810px;
  }
}
@media (min-width: 1600px) {
  .form-card__embed {
    min-height: 774px;
  }
}
@media (min-width: 1920px) {
  .form-card__embed {
    min-height: 902px;
  }
  .form-success__art {
    width: 400px;
    height: 400px;
  }
  .form-success__art img {
    width: 280px;
  }
  .form-success__title {
    font-size: 64px;
    line-height: 1.2;
  }
  .form-success__text {
    max-width: 720px;
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.4;
  }
}

/* ----------------------------------- Footer ----------------------------------- */
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 2560px;
  min-height: 74px;
  margin-inline: auto;
  padding: 16px var(--pad-x);
}
.site-footer__logo {
  display: inline-flex;
  border-radius: 4px;
}
.site-footer__logo img {
  width: auto;
  height: 21.754px;
}
.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font: 400 12px/1.5 var(--font-body); /* Figma 10px; 12px for legibility */
  white-space: nowrap;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--blue-300); /* Figma #004FFF is 3.56:1 on black; #4C84FF (brand blue/300) is 6:1 */
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}
@media (hover: hover) {
  .site-footer__link:hover {
    text-decoration-thickness: 2px;
  }
}
@media (min-width: 768px) {
  .site-footer {
    background: var(--black);
  }
  .site-footer__inner {
    padding-block: clamp(48px, 10.714vw - 34.29px, 120px); /* 280px tall @1440 */
  }
  .site-footer__logo img {
    height: 40px;
  }
  .site-footer__meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 18px;
  }
}

/* -------------------------------- Cookie banner -------------------------------- */
/* Same component as the webinar page; buttons are 44px tall here (TZ 4 tap targets). */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px 20px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(0, 8, 32, 0.96);
  border-top: 1px solid rgba(128, 167, 255, 0.3);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}
.cookie__text {
  flex: 1 1 360px;
  color: var(--grey);
  font: 400 13px/1.5 var(--font-body);
}
.cookie__text a {
  color: var(--blue-200);
  text-decoration: underline;
}
.cookie__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 18px;
  border: 2px solid var(--blue-200);
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-500);
  font: 400 14px/1.2 var(--font-body);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.cookie__btn--ghost {
  color: var(--blue-200);
  background: transparent;
  border-color: var(--blue-300);
}
@media (hover: hover) {
  .cookie__text a:hover {
    color: var(--white);
  }
  .cookie__btn--primary:hover {
    background: var(--blue-600);
  }
  .cookie__btn--ghost:hover {
    color: var(--white);
    background: rgba(0, 79, 255, 0.12);
  }
}

/* ------------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn-cta:active {
    transform: none;
  }
}
