/*
 * THE READY — landing page styles.
 * Linked from layouts/theready.vue (not imported: a Vite import leaks into
 * every page's <head> in dev, and these rules style body, a, img globally).
 * Everything but @font-face sits in Tailwind's `components` layer, so preflight
 * loses to it and utility classes still win over it.
 * Design: Figma "THE READY Landing Page" (desktop 29:22 @1440, mobile 29:490 @390).
 * Fluid values interpolate linearly between those two frames:
 *   size = min + (max - min) * (100vw - 390px) / 1050px
 */

/* ---------- fonts ---------- */

/* latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/the-ready/assets/fonts/unbounded-normal-latin-ext.woff2')
    format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/the-ready/assets/fonts/unbounded-normal-latin.woff2')
    format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/the-ready/assets/fonts/dm-sans-normal-latin-ext.woff2')
    format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/the-ready/assets/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/the-ready/assets/fonts/dm-sans-italic-latin-ext.woff2')
    format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/the-ready/assets/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* same order as main.css, in case this file lands first */
@layer theme, base, components, utilities;

@layer components {
  /* ---------- tokens ---------- */

  :root {
    --magenta: #f0c;
    --green: #0f9;
    --green-600: #00cc7a;
    --green-900: #004026;
    --magenta-600: #cc00a3;
    --blue: #36f;
    --navy: #0f172a;
    --ink: #0b0f19;
    --paper: #f8fafc;
    --white: #fff;
    --muted: #94a3b8;
    --slate: #475569;
    --line: #e2e8f0;
    --line-dark: #1e293b;
    --error: #d4183d;

    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --container: 1280px;
    --gutter: clamp(16px, calc(6.095vw - 7.77px), 80px);
    --section-y: clamp(40px, calc(7.62vw + 10.3px), 120px);

    --fs-h2: clamp(20px, calc(1.524vw + 14.06px), 36px);
    --fs-lead: clamp(14px, calc(0.571vw + 11.77px), 20px);
    --fs-card: clamp(14px, calc(0.19vw + 13.26px), 16px);
    --fs-btn: clamp(13px, calc(0.095vw + 12.63px), 14px);

    --header-h: clamp(54px, calc(2.476vw + 44.34px), 80px);
  }

  /* ---------- base ---------- */

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

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }

  /* resets the text-sm/tracking the app root puts around every layout */
  .the-ready {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
  }

  body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    font-optical-sizing: auto;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  figure,
  blockquote {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
    list-style: none;
  }

  img {
    display: block;
    max-width: 100%;
  }

  a {
    color: inherit;
  }

  button {
    font: inherit;
    color: inherit;
    cursor: pointer;
  }

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

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

  .skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--navy);
    color: var(--green);
    font: 700 14px var(--font-display);
    text-decoration: none;
    transform: translateY(-200%);
  }

  .skip-link:focus {
    transform: none;
  }

  /* not .container - that name is a Tailwind utility in this app */
  .tr-container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section {
    padding-block: var(--section-y);
  }

  .section-title {
    font: 800 var(--fs-h2) / normal var(--font-display);
    text-align: center;
    text-transform: uppercase;
  }

  /*
 * Scroll reveal. Only hidden once the layout has marked <html class="js">, so the
 * page is fully readable without JavaScript. --d staggers siblings.
 */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
      transition-delay: calc(var(--d, 0) * 120ms);
    }

    .js [data-reveal].is-revealed {
      opacity: 1;
      transform: none;
    }
  }

  /* rows of big check marks between sections — decorative, desktop/tablet only */
  .checks-row {
    display: none;
  }

  @media (min-width: 768px) {
    .checks-row {
      display: block;
      width: 100%;
      max-width: 1284px;
      height: auto;
      aspect-ratio: 1284 / 138.34;
    }
  }

  /* ---------- buttons ---------- */

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 32px;
    border: 0;
    border-radius: 100px;
    font: 700 var(--fs-btn) / normal var(--font-display);
    text-align: center;
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .btn--magenta {
    background: var(--magenta);
    color: var(--white);
  }

  .btn--green {
    background: var(--green);
    color: var(--navy);
  }

  .btn--navy {
    background: var(--navy);
    color: var(--green);
  }

  @media (hover: hover) {
    .btn--magenta:hover {
      background: var(--magenta-600);
    }

    .btn--green:hover {
      background: var(--green-600);
    }

    .btn--navy:hover {
      background: var(--green-900);
    }
  }

  .btn--block {
    width: 100%;
  }

  @media (min-width: 768px) {
    .btn--block {
      align-self: center;
      width: auto;
    }

    .hero__copy .btn--block {
      align-self: flex-start;
    }
  }

  /* ---------- header ---------- */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--green);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
  }

  .site-header__logo {
    display: block;
    flex-shrink: 0;
  }

  .site-header__logo img {
    width: clamp(110px, calc(5.238vw + 89.57px), 165px);
    height: auto;
    aspect-ratio: 165 / 24;
  }

  .site-header__cta {
    min-height: 30px;
    padding: 8px 16px;
    font-size: 11px;
  }

  @media (min-width: 768px) {
    .site-header__cta {
      min-height: 48px;
      padding: 15px 32px;
      font-size: 14px;
    }
  }

  /* ---------- hero ---------- */

  .hero {
    background: var(--paper);
    padding-block: 32px;
    overflow: hidden;
  }

  .hero__inner {
    display: grid;
    gap: 24px;
  }

  .hero__title {
    font-family: var(--font-display);
    text-transform: uppercase;
  }

  .hero__kicker {
    display: block;
    margin-bottom: 24px;
    color: var(--magenta);
    font-weight: 900;
    font-size: clamp(38px, calc(11.05vw - 5.09px), 154px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero__headline {
    display: block;
    max-width: 618px;
    font-weight: 800;
    font-size: clamp(20px, calc(2.571vw + 9.97px), 47px);
    line-height: 1.3;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: -12px;
  }

  .hero__lead {
    font: 600 clamp(13px, calc(0.667vw + 10.4px), 20px) / 1.4
      var(--font-display);
  }

  .hero__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hero__tile {
    aspect-ratio: 110 / 136;
    perspective: 900px;
  }

  /*
 * Card flip: every card turns over (creator <-> tick) and back, each starting
 * a little later than the previous (--i), so the grid ripples instead of
 * flipping as one block. The delay only offsets the first cycle, so the
 * stagger holds for every loop.
 */
  .flip__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
  }

  @media (prefers-reduced-motion: no-preference) {
    .flip__inner {
      animation: card-flip 8s cubic-bezier(0.65, 0, 0.35, 1) infinite both;
      animation-delay: calc(1.2s + var(--i, 0) * 140ms);
    }
  }

  @keyframes card-flip {
    0%,
    38% {
      transform: rotateY(0);
    }
    48%,
    88% {
      transform: rotateY(180deg);
    }
    98%,
    100% {
      transform: rotateY(360deg);
    }
  }

  .flip__face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .flip__face--back {
    transform: rotateY(180deg);
  }

  .flip__face--photo {
    background: var(--magenta);
  }

  .flip__face--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .flip__face--check {
    display: grid;
    place-items: center;
    background: var(--paper);
  }

  .flip__face--check img {
    width: 80%;
    height: auto;
    aspect-ratio: 100 / 79;
  }

  .hero__tile--check {
    display: none;
  }

  /* mobile shows three photos: the 1st, the centre one and the top-right one */
  .hero__tile:nth-child(1) {
    order: 1;
  }
  .hero__tile:nth-child(5) {
    order: 2;
  }
  .hero__tile:nth-child(3) {
    order: 3;
  }
  .hero__tile:nth-child(7),
  .hero__tile:nth-child(9) {
    display: none;
  }

  /*
 * Desktop: the kicker spans the full width above the gallery while the rest of
 * the <h1> sits in the left column — subgrid keeps it one heading.
 */
  @media (min-width: 900px) {
    .hero {
      padding-block: 48px 35px;
    }

    .hero__inner {
      grid-template-columns: 1fr minmax(280px, 391px);
      grid-template-rows: auto 1fr auto;
      column-gap: 40px;
      row-gap: 0;
    }

    .hero__title {
      display: grid;
      grid-column: 1 / -1;
      grid-row: 1 / 3;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
    }

    .hero__kicker {
      grid-column: 1 / -1;
      margin-bottom: 0;
      padding-bottom: clamp(8px, 2.5vw, 36px);
      line-height: 1;
    }

    .hero__headline {
      grid-column: 1;
      grid-row: 2;
      align-self: end;
      line-height: 1.25;
    }

    .hero__copy {
      grid-column: 1;
      grid-row: 3;
      gap: 20px;
      margin-top: clamp(24px, 5.3vw, 76px);
    }

    .hero__gallery {
      grid-column: 2;
      grid-row: 2 / 4;
      align-self: end;
      gap: 8px;
    }

    .hero__tile {
      aspect-ratio: 125 / 156;
    }

    .hero__tile,
    .hero__tile:nth-child(n) {
      display: block;
      order: 0;
    }

    .hero__tile--check,
    .hero__tile--check:nth-child(n) {
      display: block;
    }
  }

  /* ---------- intro (green) ---------- */

  .intro {
    background: var(--green);
    text-align: center;
  }

  .intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, calc(8.571vw - 13.43px), 110px);
  }

  .intro__heading {
    color: var(--magenta);
    font: 700 clamp(16px, calc(1.905vw + 8.57px), 36px) / 1.4
      var(--font-display);
  }

  .intro__text {
    max-width: 1040px;
    margin-inline: auto;
    font: 500 clamp(16px, calc(0.381vw + 14.51px), 20px) / 1.4
      var(--font-display);
  }

  @media (min-width: 1200px) {
    .intro {
      padding-block: 123px 124px;
    }

    .intro__heading {
      line-height: normal;
      margin-bottom: 6px;
    }

    .intro__text {
      line-height: 1.6;
    }
  }

  /*
 * Partner lock-up: buycoffee.to X brandbuddies. The X sits on the centre line
 * (like the X in "Kto stoi za THE READY?"): two equal columns around it, each
 * logo hugging the X. brandbuddies fills its column; buycoffee.to keeps the
 * Figma size ratio to it (224 / 272).
 */
  .lockup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(14px, calc(0.952vw + 10.29px), 24px);
    width: min(100%, 609px);
  }

  .lockup__buycoffee {
    justify-self: end;
    width: 82.35%;
    height: auto;
    aspect-ratio: 358 / 44.6952;
  }

  .lockup__x {
    font:
      600 clamp(16px, calc(0.9vw + 12.5px), 25.6px) / 1 'Delight',
      var(--font-body);
  }

  .lockup .bb-logo {
    width: 100%;
  }

  .bb-logo {
    display: block;
    height: auto;
    aspect-ratio: 358 / 38.1516;
  }

  /* ---------- pain points (dark) ---------- */

  .pain {
    background: var(--ink);
    color: var(--paper);
  }

  .pain__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, calc(3.333vw + 11px), 59px);
  }

  .quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1216px;
    padding: 20px;
    border-radius: 16px;
  }

  .quote__mark {
    display: block;
    height: 0.62em;
    color: var(--green);
    font: 700 96px / 1.5 var(--font-display);
    overflow: hidden;
  }

  .quote__text {
    font: italic 700 clamp(16px, calc(0.762vw + 13.03px), 24px) / 1.5
      var(--font-body);
  }

  .quote__author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font: 600 clamp(14px, calc(0.381vw + 12.51px), 18px) / normal
      var(--font-body);
  }

  .quote__author img {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  @media (min-width: 900px) {
    .quote {
      align-items: center;
      padding: 32px;
      text-align: center;
    }

    .quote__mark {
      font-weight: 600;
    }

    .quote__author {
      gap: 12px;
    }
  }

  .pain-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .pain-cards > li {
    display: flex;
    width: 100%;
  }

  .pain-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 20px;
    background: var(--magenta);
    color: var(--paper);
    font: 600 var(--fs-card) / 1.5 var(--font-display);
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* the real checkbox stays in the page for keyboards and screen readers */
  .pain-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .pain-card__box {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    transition: border-color 0.2s ease;
  }

  .pain-card__box img {
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  @media (hover: hover) {
    .pain-card:hover {
      background: var(--magenta-600);
    }
  }

  .pain-card:has(:checked) {
    background: var(--green);
    color: var(--navy);
  }

  .pain-card:has(:checked) .pain-card__box {
    border-color: #000;
  }

  .pain-card:has(:checked) .pain-card__box img {
    opacity: 1;
    transform: none;
  }

  .pain-card:has(:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
  }

  @media (min-width: 640px) {
    .pain-cards {
      gap: 24px;
    }

    .pain-cards > li {
      width: calc(50% - 12px);
    }
  }

  @media (min-width: 1100px) {
    .pain-cards {
      max-width: 1008px;
      row-gap: 59px;
    }

    .pain-cards > li {
      width: 320px;
    }

    .pain-card {
      min-height: 240px;
      gap: 20px;
      padding: 32px;
    }

    .pain-card__box {
      width: 48px;
      height: 48px;
      border-width: 3px;
      border-radius: 12px;
    }

    .pain-card__box img {
      width: 24px;
      height: 24px;
    }
  }

  .pain__cta {
    width: 100%;
  }

  .pain__cta[aria-disabled='true'],
  .pain__cta[aria-disabled='true']:hover {
    background: var(--muted);
    cursor: not-allowed;
  }

  @media (min-width: 768px) {
    .pain__cta {
      width: auto;
      padding-inline: 48px;
    }
  }

  /* ---------- solution (magenta) ---------- */

  .solution {
    background: var(--magenta);
    color: var(--white);
    text-align: center;
  }

  .solution__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, calc(3.048vw + 12.11px), 56px);
  }

  .solution .section-title {
    color: var(--green);
  }

  .solution__text {
    display: flex;
    flex-direction: column;
    gap: 1.6em;
    max-width: 1100px;
    font: 600 var(--fs-lead) / 1.6 var(--font-display);
  }

  .solution__text strong {
    color: var(--green);
    font-weight: 800;
  }

  @media (min-width: 1200px) {
    .solution__text {
      line-height: 1.4;
      gap: 1.4em;
    }

    .solution__text p + p {
      font-weight: 500;
    }
  }

  /* ---------- paths / scenarios ---------- */

  .paths {
    background: var(--paper);
    text-align: center;
  }

  .paths__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .paths__intro {
    font: 600 var(--fs-lead) / normal var(--font-display);
  }

  .paths__outro {
    max-width: 1100px;
    color: var(--magenta);
    font: 600 var(--fs-lead) / normal var(--font-display);
  }

  .scenarios {
    display: grid;
    gap: 16px;
    width: 100%;
    text-align: left;
  }

  /*
 * Each card picks its layout from its own width, not the viewport: the
 * side-by-side version (Figma desktop) needs >= 400px for words like
 * "zaangażowaną" to fit; narrower cards stack like the mobile design.
 */
  .scenario {
    display: flex;
    container-type: inline-size;
  }

  .scenario__card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    border: 1px solid var(--line);
    font: 400 14px / 1.4 var(--font-display);
  }

  .scenario__from,
  .scenario__to {
    padding: 16px;
    overflow-wrap: break-word;
  }

  .scenario__from {
    background: var(--navy);
    color: var(--white);
  }

  .scenario__to {
    color: var(--navy);
  }

  .scenario__to strong {
    font-weight: 800;
  }

  .scenario--creator .scenario__to {
    background: var(--green);
  }
  .scenario--usp .scenario__to {
    background: var(--magenta);
  }
  .scenario--brand .scenario__to {
    background: var(--blue);
  }

  .scenario__arrow {
    display: none;
  }

  @container (min-width: 400px) {
    .scenario__card {
      grid-template-columns: minmax(0, 203fr) minmax(0, 210fr);
      grid-template-rows: none;
      min-height: 196px;
      border: 0;
    }

    .scenario__from,
    .scenario__to {
      display: flex;
      align-items: center;
      padding: 24px;
    }

    .scenario__from {
      padding-right: 30px;
    }

    .scenario__to {
      padding-left: 30px;
    }

    .scenario__arrow {
      position: absolute;
      top: 50%;
      left: calc(49.15% - 22px);
      display: block;
      width: 44px;
      height: auto;
      aspect-ratio: 59.5529 / 31.6927;
      transform: translateY(-50%);
    }
  }

  @media (min-width: 1024px) {
    .paths__inner {
      gap: 64px;
    }

    .scenarios {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }

    .scenario__card {
      font-size: 16px;
    }
  }

  /* ---------- journey / stages ---------- */

  .journey {
    background: var(--paper);
    padding-top: 0;
    overflow: hidden;
  }

  @media (min-width: 1024px) {
    .journey {
      padding-top: 104px;
    }
  }

  .journey__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .stages {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .stage__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .stage__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stage__badge {
    padding: 6px 12px;
    color: var(--white);
    font: 700 12px / normal var(--font-display);
  }

  .stage--creator .stage__badge {
    background: var(--green);
    color: var(--navy);
  }
  .stage--check .stage__badge {
    background: var(--magenta);
  }
  .stage--brand .stage__badge {
    background: var(--blue);
  }

  .stage__highlight {
    width: 100%;
    padding: 16px;
    background: var(--navy);
    color: var(--white);
    font: 700 12px / 1.4 var(--font-display);
  }

  .stage__description {
    font: 600 14px / 1.5 var(--font-body);
  }

  .stage__description strong {
    font-weight: 800;
  }

  .milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .milestones li {
    padding: 8px 12px;
    border: 1px solid var(--navy);
    border-radius: 100px;
    font: 700 12px / normal var(--font-body);
    white-space: nowrap;
  }

  .stage--creator .milestones li {
    background: var(--white);
  }

  .stage__axis {
    display: none;
  }

  .persona {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    font-size: 14px;
  }

  .persona__title {
    font: 800 14px / normal var(--font-display);
  }

  .persona__text {
    font: 600 14px / 1.5 var(--font-body);
  }

  .persona__seats {
    padding: 6px 12px;
    background: var(--white);
    font: 800 11px / normal var(--font-display);
    white-space: nowrap;
  }

  .persona--green {
    background: var(--green);
  }
  .persona--magenta {
    background: var(--magenta);
  }
  .persona--magenta .persona__text {
    color: var(--paper);
    font-weight: 700;
  }
  .persona--blue {
    background: var(--blue);
    color: var(--white);
  }
  .persona--blue .persona__seats {
    background: var(--paper);
    color: var(--navy);
    font-size: 10px;
  }

  .stage__more {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 200px;
    background: var(--navy);
    color: var(--white);
    font: 600 11px / normal var(--font-display);
    text-align: left;
  }

  .stage__more img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
  }

  @media (min-width: 640px) {
    .stage__more {
      align-self: flex-start;
      width: auto;
      padding: 12px 24px;
      border-radius: 24px;
      font-size: 16px;
      line-height: 20px;
      letter-spacing: 0.32px;
    }
  }

  @media (min-width: 1024px) {
    .journey__inner,
    .stages {
      gap: 64px;
    }

    .stage {
      gap: 64px;
    }

    .stage__body {
      display: grid;
      grid-template-columns: 1fr 72px 1fr;
      gap: 40px;
    }

    .stage__details,
    .stage__audience {
      padding-block: 36px;
    }

    .stage__details {
      gap: 24px;
    }

    .stage__badge {
      padding: 10px 18px;
      color: var(--navy);
      font-size: 20px;
    }

    .stage--check .stage__badge,
    .stage--brand .stage__badge {
      color: var(--navy);
    }

    .stage__highlight {
      padding: 20px;
      font-size: 15px;
      line-height: 1.45;
    }

    .stage__description {
      font-weight: 500;
      font-size: 18px;
    }

    .stage__axis {
      position: relative;
      display: block;
    }

    /*
     * One connector per stage, from its row down through the gap into the next
     * one, so the stages read as one line however tall each grows. Centred:
     * the axis is the middle column of a symmetric grid.
     */
    .stage {
      position: relative;
    }

    .stage::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: -64px;
      left: calc(50% - 2px);
      width: 4px;
      background: var(--navy);
    }

    .stage:last-child::before {
      bottom: 0;
    }

    .stage__point {
      position: absolute;
      top: 56px;
      left: 19px;
      width: 34px;
      height: 34px;
      border: 7px solid var(--navy);
      border-radius: 50%;
    }

    .stage--creator .stage__point {
      background: var(--green);
    }
    .stage--check .stage__point {
      background: var(--magenta);
    }
    .stage--brand .stage__point {
      background: var(--blue);
    }

    .persona {
      gap: 20px;
      padding: 32px;
    }

    .persona__title {
      font-size: 24px;
      line-height: 1.2;
    }

    .persona__text {
      font-size: 16px;
      line-height: 1.55;
    }

    .persona__seats,
    .persona--blue .persona__seats {
      padding: 10px 18px;
      font-size: 14px;
    }

    .persona--magenta {
      gap: 12px;
      padding: 28px;
    }

    .persona--magenta .persona__title {
      font-size: 16px;
      line-height: normal;
    }

    .persona--magenta .persona__text {
      font-size: 16px;
      line-height: 1.5;
    }
  }

  /* ---------- stage benefits (popover) ---------- */

  .benefits {
    width: min(100% - 32px, 1021px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px 20px 24px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 64px 4px rgba(0, 0, 0, 0.4);
    color: var(--navy);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .benefits::backdrop {
    background: rgba(11, 15, 25, 0.6);
  }

  /* no JS: freeze the page behind an open popover */
  html:has(.benefits:popover-open) {
    overflow: hidden;
  }

  .benefits--green {
    background: var(--green);
  }
  .benefits--magenta {
    background: var(--magenta);
  }
  .benefits--blue {
    background: var(--blue);
  }

  .benefits__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
  }

  .benefits__title {
    font: 800 clamp(20px, calc(1.143vw + 15.54px), 32px) / 1.2
      var(--font-display);
  }

  .benefits--magenta .benefits__title,
  .benefits--blue .benefits__title {
    color: var(--paper);
  }

  .benefits__close {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
  }

  .benefits__close img {
    width: 24px;
    height: 24px;
  }

  .benefits__list {
    display: grid;
    gap: 16px;
  }

  .benefit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--white);
  }

  .benefit h3 {
    font: 700 15px / 1.3 var(--font-display);
  }

  .benefit p {
    font: 600 14px / 1.45 var(--font-body);
  }

  .benefits__cta {
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 800;
  }

  .benefits__cta img {
    width: 16px;
    height: 16px;
  }

  .benefits--green .benefits__cta {
    color: var(--paper);
  }
  .benefits--magenta .benefits__cta,
  .benefits--blue .benefits__cta {
    color: #071017;
  }

  @media (min-width: 768px) {
    .benefits {
      padding: 40px 48px 32px;
    }

    .benefits__list {
      grid-template-columns: 1fr 1fr;
      column-gap: 24px;
      row-gap: 20px;
    }

    .benefit {
      min-height: 138px;
      padding: 24px;
    }
  }

  /* ---------- community rules (dark) ---------- */

  .rules {
    background: var(--ink);
  }

  .rules__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, calc(3.048vw + 12.11px), 56px);
  }

  .rules .section-title {
    color: var(--green);
  }

  .rules__list {
    display: grid;
    gap: 16px;
    width: 100%;
  }

  .rule {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--green);
    font: 400 var(--fs-card) / 1.5 var(--font-display);
  }

  .rule__number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--magenta);
    font: 900 14px / normal var(--font-display);
  }

  @media (min-width: 900px) {
    .rules__list {
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .rule {
      min-height: 340px;
      gap: 24px;
      padding: 32px;
      line-height: 1.55;
    }

    .rule__number {
      width: 56px;
      height: 56px;
      font-size: 18px;
    }
  }

  /* ---------- team ---------- */

  .team {
    background: var(--paper);
  }

  .team__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .team .section-title {
    color: var(--magenta);
  }

  .orgs {
    position: relative;
    display: grid;
    gap: 40px;
  }

  .org {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .org__card {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .org__logo--buycoffee {
    width: 100%;
    height: auto;
    aspect-ratio: 358 / 44.6952;
  }

  .org__description {
    padding: 20px 16px;
    font: 600 14px / 1.55 var(--font-body);
  }

  .org--buycoffee .org__description {
    background: var(--green);
  }
  .org--brandbuddies .org__description {
    background: var(--magenta);
  }

  .org--brandbuddies {
    gap: 40px;
  }

  .orgs__x {
    display: none;
  }

  .members {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .org--brandbuddies .members {
    gap: 16px;
  }

  .member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
  }

  .member__photo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: var(--pos, 50% 50%);
  }

  .member__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .member__name {
    font: 800 16px / normal var(--font-display);
  }

  .member__role {
    color: var(--magenta);
    font: 600 14px / normal var(--font-body);
  }

  @media (min-width: 1024px) {
    .team {
      padding-top: 0;
      padding-bottom: 120px;
    }

    .team__inner {
      gap: 0;
    }

    .team .section-title {
      padding-block: 80px 81px;
    }

    .orgs {
      grid-template-columns: 1fr 1fr;
      gap: 0;
    }

    .org {
      gap: 0;
    }

    .org__card {
      gap: 24px;
      height: 300px;
      padding-top: 37px;
      overflow: hidden;
    }

    .org--buycoffee .org__card {
      align-items: flex-end;
      padding-inline: 26px 38px;
      background: var(--green);
      text-align: right;
    }

    .org--brandbuddies .org__card {
      align-items: flex-start;
      padding-inline: 40px 24px;
      background: var(--magenta);
    }

    .org__description,
    .org--buycoffee .org__description,
    .org--brandbuddies .org__description {
      padding: 0;
      background: none;
      font-size: 16px;
    }

    .org__logo--buycoffee {
      width: 252px;
      margin-right: 8px;
    }

    .org--brandbuddies .bb-logo {
      width: 305px;
      margin-left: 5px;
    }

    .orgs__x {
      position: absolute;
      top: 37px;
      left: 50%;
      display: block;
      font:
        600 29.6px / 37px 'Delight',
        var(--font-body);
      /* translate, not transform: the reveal animation owns transform */
      translate: -50% 0;
      /* the cards' reveal transform would otherwise paint them over it */
      z-index: 1;
    }

    .members,
    .org--brandbuddies .members {
      flex-direction: row;
      gap: 0;
    }

    .member {
      flex: 1 1 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      padding: 0;
      background: none;
    }

    .member__photo {
      width: 100%;
      height: 280px;
    }

    .member__name {
      font-size: 18px;
    }

    .member__role {
      font-weight: 700;
      font-size: 16px;
    }

    .member__text {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
  }

  /* ---------- partners ---------- */

  .partners {
    background: var(--paper);
  }

  .partners__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .partners__title {
    font: 800 clamp(16px, calc(0.762vw + 13.03px), 24px) / normal
      var(--font-display);
    text-align: center;
    text-transform: uppercase;
  }

  .partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .partners__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 16px) / 3);
    max-width: 106px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font: 800 11px / normal var(--font-display);
    text-align: center;
  }

  @media (min-width: 768px) {
    .partners__inner {
      gap: 40px;
    }

    .partners__list {
      gap: 12px;
    }

    .partners__list li {
      flex: 1 1 calc((100% - 24px) / 3);
      max-width: none;
      height: 112px;
      border: 0;
      border-radius: 0;
      font-size: 17px;
    }

    .partners__group + .partners__group {
      margin-top: 24px;
    }
  }

  @media (min-width: 1024px) {
    .partners {
      padding-top: 0;
    }
  }

  @media (min-width: 1100px) {
    .partners {
      padding-bottom: 104px;
    }

    .partners__list li {
      flex-basis: calc((100% - 60px) / 6);
    }
  }

  .partners__group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  /* TheReadyPartnersSection adds .is-marquee and three aria-hidden copies of the list */
  .partners__marquee.is-marquee {
    --marquee-gap: 8px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  }

  .marquee__track {
    display: flex;
    gap: var(--marquee-gap);
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
  }

  .partners__marquee--reversed .marquee__track {
    animation-direction: reverse;
  }

  .partners__marquee:hover .marquee__track,
  .partners__marquee:focus-within .marquee__track {
    animation-play-state: paused;
  }

  .is-marquee .partners__list {
    flex-wrap: nowrap;
    gap: var(--marquee-gap);
    width: auto;
  }

  .is-marquee .partners__list li {
    flex: 0 0 106px;
    width: 106px;
    max-width: none;
  }

  @keyframes marquee-scroll {
    to {
      transform: translateX(calc(-50% - var(--marquee-gap) / 2));
    }
  }

  @media (min-width: 768px) {
    .partners__marquee.is-marquee {
      --marquee-gap: 12px;
    }

    .is-marquee .partners__list li {
      flex-basis: 203px;
      width: 203px;
    }

    .marquee__track {
      animation-duration: 45s;
    }
  }

  @media (min-width: 768px) {
    .partners__group {
      gap: 40px;
    }
  }

  /* ---------- final CTA ---------- */

  .final {
    background: var(--magenta);
    text-align: center;
  }

  .final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .final__title {
    max-width: 1100px;
    font: 900 var(--fs-h2) / 1.3 var(--font-display);
  }

  @media (min-width: 1024px) {
    .final {
      padding-block: 116px 95px;
    }

    .final__inner {
      gap: 62px;
    }

    .final__title {
      line-height: 1.25;
    }
  }

  /* ---------- contact + footer (dark) ---------- */

  .contact,
  .site-footer {
    background: var(--ink);
    color: var(--paper);
  }

  .contact {
    padding-block: 60px 32px;
  }

  .contact__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contact .section-title {
    color: var(--paper);
  }

  .contact__cards {
    display: grid;
    gap: 12px;
  }

  .contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    color: var(--navy);
  }

  .contact-card--green {
    background: var(--green);
  }
  .contact-card--magenta {
    background: var(--magenta);
  }

  .contact-card__label {
    padding: 4px 10px;
    border: 1px solid var(--navy);
    border-radius: 100px;
    font: 700 10px / normal var(--font-display);
    text-transform: uppercase;
  }

  .contact-card__email {
    font: 700 12px / normal var(--font-display);
    text-decoration: none;
    word-break: break-word;
  }

  .contact-card__email:hover {
    text-decoration: underline;
  }

  @media (min-width: 768px) {
    .contact {
      padding-block: 120px 100px;
    }

    .contact__inner {
      gap: 47px;
    }

    .contact .section-title {
      line-height: 60px;
    }

    .contact__cards {
      grid-template-columns: 1fr 1fr;
      gap: clamp(24px, 8.75vw - 14px, 112px);
    }

    .contact-card {
      align-items: center;
      justify-content: center;
      gap: 37px;
      min-height: 185px;
    }

    .contact-card__label {
      padding: 6px 12px;
      font-size: 12px;
      letter-spacing: 1px;
    }

    .contact-card__email {
      font-size: 18px;
    }
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--blue);
  }

  .legal a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--white);
    font: 500 12px / normal var(--font-display);
    text-decoration: none;
  }

  /* hover (Figma 37:1367, 37:1392): text and icon turn green; the green icon is its own export */
  .legal a,
  .socials a {
    transition: color 0.2s ease;
  }

  .icon-hover {
    display: none;
  }

  .legal a:is(:hover, :focus-visible),
  .socials a:is(:hover, :focus-visible) {
    color: var(--green);
  }

  :is(.legal, .socials) a:is(:hover, :focus-visible) .icon-default {
    display: none;
  }

  :is(.legal, .socials) a:is(:hover, :focus-visible) .icon-hover {
    display: block;
  }

  .legal img {
    width: 16px;
    height: 16px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .footer-brand img {
    width: 131px;
    height: auto;
    aspect-ratio: 165 / 24;
  }

  .footer-brand p,
  .socials__label,
  .site-footer__copy {
    color: var(--muted);
  }

  .footer-brand p {
    font: 600 12px / normal var(--font-body);
  }

  .socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .socials__label {
    font: 800 11px / normal var(--font-display);
  }

  .socials__label-long {
    display: none;
  }

  .socials__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .socials a {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 12px / normal var(--font-body);
    text-decoration: none;
  }

  .socials img {
    width: 14px;
    height: 14px;
  }

  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__bottom::before {
    content: '';
    height: 1px;
    background: var(--line-dark);
  }

  .site-footer__copy {
    font: 500 11px / normal var(--font-body);
    text-align: center;
  }

  @media (min-width: 768px) {
    .site-footer {
      padding-bottom: 60px;
    }

    .site-footer__inner {
      gap: 100px;
    }

    .legal {
      flex-direction: row;
      justify-content: center;
      gap: 40px;
      min-height: 84px;
      padding: 24px;
    }

    .legal a {
      justify-content: flex-start;
      padding-block: 8px;
      font-size: 16px;
    }

    .footer-main {
      gap: 48px;
    }

    .site-footer__top {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .footer-brand {
      gap: 8px;
    }

    .footer-brand img {
      width: 165px;
    }

    .footer-brand p {
      font-weight: 500;
      font-size: 14px;
    }

    .socials {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
    }

    .socials__label {
      font-weight: 500;
      font-size: 15px;
    }

    .socials__label-long {
      display: inline;
    }

    .socials__list {
      flex-direction: row;
      gap: 16px;
    }

    .socials a {
      gap: 8px;
      padding: 6px 12px;
      border: 1px solid var(--line-dark);
      border-radius: 100px;
      font-size: 14px;
    }

    .socials img {
      width: 16px;
      height: 16px;
    }

    .site-footer__copy {
      font-size: 14px;
    }
  }
  /* ---------- application form (/aplikuj) ---------- */

  .apply {
    padding-block: var(--section-y);
    background: var(--paper);
  }

  .apply__inner {
    display: grid;
    gap: 32px;
  }

  .apply__title {
    font: 900 clamp(32px, calc(3.048vw + 20.11px), 64px) / 1.05
      var(--font-display);
    text-transform: uppercase;
  }

  .apply__lead {
    margin-top: 20px;
    max-width: 440px;
    font: 600 var(--fs-lead) / 1.5 var(--font-body);
  }

  .apply-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 16px;
    border: 2px solid var(--navy);
    background: var(--white);
  }

  .apply-form__row {
    display: grid;
    gap: 28px;
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .field__label {
    padding: 0;
    font: 700 12px / 1.4 var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* a legend is not a flex item of its fieldset, so `gap` skips it */
  legend.field__label {
    margin-bottom: 10px;
  }

  .field__required {
    color: var(--magenta-600);
  }

  .apply-form__legend {
    color: var(--slate);
    font-size: 14px;
  }

  .field__hint {
    margin-top: -4px;
    color: var(--slate);
    font-size: 14px;
  }

  .field__control {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 2px solid var(--navy);
    border-radius: 0;
    background: var(--white);
    color: var(--navy);
    font: 500 16px / 1.4 var(--font-body);
  }

  .field__control::placeholder {
    color: var(--muted);
  }

  .field__control:focus-visible {
    outline-offset: 0;
  }

  .field__control--select {
    padding-right: 48px;
    appearance: none;
    background: var(--white)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230f172a' stroke-width='2'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E")
      no-repeat right 16px center;
    cursor: pointer;
  }

  .field--invalid .field__control {
    border-color: var(--error);
  }

  .field__message {
    font-size: 14px;
    font-weight: 600;
  }

  .field__message:empty {
    display: none;
  }

  .field__message--error {
    color: var(--error);
  }
  .field__message--info {
    color: var(--slate);
  }
  .field__message--success {
    color: var(--green-900);
  }
  .field__message--warning {
    color: #92400e;
  }

  .choices {
    display: grid;
    gap: 12px;
  }

  .choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
  }

  /*
   * Drawn by hand rather than left native: a native box cannot take a border
   * colour, and the error state has to colour the box itself. Background
   * images rather than ::after - Firefox renders no pseudo-elements on inputs.
   */
  .choice__input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    border: 2px solid var(--navy);
    border-radius: 4px;
    background: var(--white) center / 14px no-repeat;
    cursor: inherit;
    appearance: none;
  }

  .choice__input[type='radio'] {
    border-radius: 50%;
  }

  .choice__input[type='checkbox']:checked {
    background-color: var(--navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
  }

  .choice__input[type='radio']:checked {
    background-image: radial-gradient(var(--navy) 0 4px, transparent 4.5px);
    background-size: auto;
  }

  .choice__input:disabled {
    opacity: 0.4;
  }

  .choice__link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .choice--disabled {
    color: var(--muted);
    cursor: not-allowed;
  }

  .field--invalid .choice__input {
    border-color: var(--error);
  }

  .consents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .consents__title {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    font: 700 12px / 1.4 var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .consents__title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--navy);
  }

  .apply-form__error {
    padding: 12px 16px;
    border-left: 4px solid var(--error);
    background: #fff1f2;
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
  }

  .apply-form__submit {
    width: 100%;
    text-transform: uppercase;
  }

  .apply-form__submit:disabled {
    background: var(--muted);
    cursor: not-allowed;
  }

  @media (min-width: 768px) {
    .apply-form {
      padding: 40px;
    }

    .apply-form__row {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (min-width: 1024px) {
    .apply__inner {
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      align-items: start;
      gap: 64px;
    }

    .apply__intro {
      position: sticky;
      top: calc(var(--header-h) + 40px);
    }
  }

  /* success dialog on the landing page after sending the form */
  .benefits--compact {
    width: min(100% - 32px, 560px);
  }

  .benefits--compact .benefit {
    gap: 12px;
  }

  .benefits--compact .benefits__cta {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
  /* entry: backdrop fades in, card rises with a slight overshoot, then its
     content follows in turn; exit fades the card out */
  @media (prefers-reduced-motion: no-preference) {
    .benefits--compact {
      opacity: 0;
      transform: translateY(32px) scale(0.94);
      transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-in,
        overlay 0.25s allow-discrete,
        display 0.25s allow-discrete;
    }

    .benefits--compact:popover-open {
      opacity: 1;
      transform: none;
      transition:
        opacity 0.35s ease-out,
        transform 0.55s cubic-bezier(0.22, 1.4, 0.36, 1),
        overlay 0.35s allow-discrete,
        display 0.35s allow-discrete;
    }

    .benefits--compact::backdrop {
      background: rgba(11, 15, 25, 0);
      backdrop-filter: blur(0);
      transition:
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;
    }

    .benefits--compact:popover-open::backdrop {
      background: rgba(11, 15, 25, 0.6);
      backdrop-filter: blur(4px);
    }

    .benefits--compact :is(.benefits__header, .benefit, .benefits__cta) {
      transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
    }

    .benefits--compact .benefit {
      transition-delay: 0.12s;
    }

    .benefits--compact .benefits__cta {
      transition-delay: 0.2s;
    }

    @starting-style {
      .benefits--compact:popover-open {
        opacity: 0;
        transform: translateY(32px) scale(0.94);
      }

      .benefits--compact:popover-open::backdrop {
        background: rgba(11, 15, 25, 0);
        backdrop-filter: blur(0);
      }

      .benefits--compact:popover-open
        :is(.benefits__header, .benefit, .benefits__cta) {
        opacity: 0;
        transform: translateY(12px);
      }
    }
  }
}
