/*
 * Partner landing page.
 * Built from Figma "FEAT - Partner landing page" (node 2005:13323).
 * Breakpoints follow the TIP design system: mobile < 768px, tablet 768px - 1151px, desktop >= 1152px.
 */

:root {
    color-scheme: light;

    /* Colours (TIP theme tokens). */
    --color-foundation: #303c69;
    --color-quiet: #44538d;
    --color-accent-blue: #526ed6;
    --color-accent-green: #72edc7;
    --color-border: #e7ecfd;
    --color-highlight: #e7ecfd;
    --color-canvas: #fafbff;
    --color-foreground: #ffffff;
    --color-heavy: #303c69;
    --color-soft: #c0cdfc;
    --color-inverted: #ffffff;
    --color-inverted-quiet: #c0cdfc;
    --color-contact: #44538d;
    --color-strong: #44538d;
    --color-tag-info: #e0e6fe;
    --color-tag-success: #e6fcf5;
    --color-tag-success-text: #2c785e;
    --color-error-inverted: #ffc7c7;

    /* Type. */
    --font-main: "sofia-pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-alt: "fields", Georgia, "Times New Roman", serif;

    --fs-070: 11.237px;
    --fs-080: 12.642px;
    --fs-090: 14.222px;
    --fs-100: 16px;
    --fs-200: 18px;
    --fs-300: 20.25px;
    --fs-400: 22.781px;
    --fs-500: 25.629px;
    --fs-600: 28.833px;
    --fs-700: 32.437px;
    --fs-800: 36.491px;
    --fs-900: 41.053px;

    /* Layout: container.sizes tokens. */
    --container-xsmall: 480px;
    --container-small: 720px;
    --container-medium: 960px;
    --container: 1152px;
    --gutter: 16px;
    --page-rhythm: 48px;
    --radius-050: 6px;
    --radius-100: 12px;
    --radius-200: 24px;

    /* Fixed site header: its height is kept free at the top of the hero. */
    --header-height: 72px;

    /* Every hover state animates with this. */
    --hover-transition: 300ms linear;

    /* theme/shadows/default */
    --shadow-default: 0 2px 4px rgba(0, 0, 0, 0.04), 0 19px 25px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
        --page-rhythm: 64px;
        --header-height: 80px;
    }
}

@media (min-width: 1152px) {
    :root {
        --page-rhythm: 96px;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--gutter) + var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    overflow-x: clip;
    background: var(--color-foreground);
    color: var(--color-foundation);
    font: 400 var(--fs-100) / 1.5 var(--font-main);
    -webkit-font-smoothing: antialiased;
}

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

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

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-accent-blue);
    outline-offset: 2px;
}

.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;
}

/* ---------------------------------------------------------------------------
 * Layout helpers
 * ------------------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page {
    margin-bottom: var(--page-rhythm);
}

.page-inner {
    display:flex;
    flex-direction:column;
    gap: var(--page-rhythm);
}

.band {
    padding-block: var(--page-rhythm);
}

.band--canvas {
    background: var(--color-canvas);
}

/* Several sections sharing one band, separated by the page rhythm. */
.band-group {
    display: flex;
    flex-direction: column;
    gap: var(--page-rhythm);
}

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

/* ---------------------------------------------------------------------------
 * Type
 * ------------------------------------------------------------------------ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-quiet);
    font: 600 var(--fs-070) / 1 var(--font-main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    background: url("../icons/dot.svg") center / contain no-repeat;
}

.eyebrow--foundation {
    color: var(--color-foundation);
}

.blockcaps {
    font: 600 var(--fs-070) / 1 var(--font-main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.title {
    font: 600 var(--fs-600) / 1.24 var(--font-alt);
}

.title--small {
    font-size: var(--fs-400);
    line-height: 1.32;
}

@media (min-width: 768px) {
    .title--small {
        font-size: var(--fs-600);
        line-height: 1.24;
    }
}

/* Section subtitles are capped at container.sizes.xsmall. */
.title--narrow {
    max-width: var(--container-xsmall);
}

.heading-100 {
    font: 600 var(--fs-100) / 1.5 var(--font-alt);
}

.highlight-blue {
    color: var(--color-accent-blue);
}

.highlight-green {
    color: var(--color-accent-green);
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: var(--container-small);
}

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

/* ---------------------------------------------------------------------------
 * Buttons (mirror the TIP `.button-*` classes)
 * ------------------------------------------------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid transparent;
    border-radius: 1000px;
    font: 600 var(--fs-090) / 1 var(--font-alt);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color var(--hover-transition),
        border-color var(--hover-transition),
        color var(--hover-transition);
}

.button-primary {
    background: var(--color-accent-green);
    border-color: var(--color-accent-green);
    color: var(--color-foundation);
}

.button-primary:hover {
    background: #5fe3bb;
    border-color: #5fe3bb;
}

.button-secondary {
    background: transparent;
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
}

.button-secondary:hover {
    background: rgba(114, 237, 199, 0.1);
}

.button-tertiary {
    background: transparent;
    border-color: var(--color-accent-blue);
    color: var(--color-foundation);
}

.button-tertiary:hover {
    background: rgba(82, 110, 214, 0.08);
}

.button-size-small {
    padding: 10px 22px;
    font-size: var(--fs-080);
}

.button-size-default {
    padding: 14px 30px;
    font-size: var(--fs-090);
}

.button-size-large {
    padding: 18px 46px;
    font-size: var(--fs-100);
}

/* ---------------------------------------------------------------------------
 * Tick list
 * ------------------------------------------------------------------------ */

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

.tick-list--tight {
    gap: 9px;
}

.tick-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tick-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: url("../icons/check.svg") center / contain no-repeat;
}

.tick-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.tick-columns > .tick-list,
.tick-columns > .regulator-list {
    flex: 1 0 0;
    min-width: 300px;
}

@media (max-width: 767px) {
    .tick-columns > .tick-list,
    .tick-columns > .regulator-list {
        min-width: 100%;
    }
}

/* Regulator links: register logo, copy and chevron in a bordered card. */
.regulator-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.regulator-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-050);
    text-decoration: none;
    transition: border-color var(--hover-transition);
}

.regulator-link:hover {
    border-color: var(--color-soft);
}

.regulator-link__logo {
    width: 100px;
    height: auto;
    flex: none;
}

.regulator-link__body {
    display: flex;
    flex: 1 0 0;
    align-items: center;
    gap: 16px;
    min-width: min(300px, 100%);
}

.regulator-link__text {
    flex: 1 0 0;
    min-width: 1px;
    font-size: var(--fs-090);
}

.regulator-link__chevron {
    flex: none;
}

/* ---------------------------------------------------------------------------
 * Card
 * ------------------------------------------------------------------------ */

.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--color-foreground);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-100);
}

.card__body {
    color: var(--color-quiet);
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card-grid > .card {
    flex: 1 0 0;
    min-width: 300px;
}

@media (max-width: 767px) {
    .card-grid > .card {
        min-width: 100%;
    }
}

/* Tablet: two cards a row, and a card left alone on a row keeps its half width. */
@media (min-width: 768px) and (max-width: 1151px) {
    .card-grid > .card {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
    }
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------ */

.hero {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background:var(--color-strong);
    /* Room for the fixed header (outside .hero, so this stacking context cannot trap its z-index). */
    padding-top: calc(var(--gutter) + var(--header-height));
}

.hero__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--gutter) var(--gutter) 0;
    /* Let clicks through the gutter around the header bar. */
    pointer-events: none;
}

.hero__header .site-header {
    pointer-events: auto;
}

/* Large pill shape behind the hero. Its lower curve sits just above the bottom of the stats. */
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 40.57px;
    width: 4540px;
    height: 8786px;
    transform: translateX(-50%);
    background: url("../img/pill-hero.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}

/* Site header */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--color-heavy);
    border-radius: var(--radius-100);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0), 0 19px 25px rgba(0, 0, 0, 0);
    transition: box-shadow var(--hover-transition);
}

/* Added by main.js once the hero has scrolled up under the header. */
.site-header.is-raised {
    box-shadow: var(--shadow-default);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--container);
    height: var(--header-height);
    margin-inline: auto;
    padding: 16px var(--gutter);
}

.site-header__logo img {
    width: auto;
    height: 40px;
}

@media (min-width: 768px) {
    .site-header__logo img {
        height: 48px;
    }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-050);
    color: var(--color-foreground);
    font: 600 var(--fs-090) / 1.5 var(--font-main);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__link {
    transition: background-color var(--hover-transition);
}

.site-nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: var(--radius-100);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--hover-transition);
}

.site-nav__toggle:hover,
.site-nav__toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
}

.site-nav__toggle img {
    width: 22.25px;
    height: 15.25px;
}

@media (max-width: 1151px) {
    .site-nav__toggle {
        display: inline-flex;
    }

    /* Dropdown menu (Figma "Mobile dropdown example", 8114:59815). */
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--gutter) - var(--header-height) - 16px);
        overflow-y: auto;
        padding: 8px;
        background: var(--color-foreground);
        border-radius: var(--radius-100);
        box-shadow: var(--shadow-default);
    }

    .site-nav__link {
        padding: 12px;
        border-radius: var(--radius-050);
        color: var(--color-foundation);
        font: 400 var(--fs-090) / 1.5 var(--font-main);
    }

    .site-nav__link:hover {
        background: var(--color-canvas);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__item--cta {
        display: none;
    }
}

@media (min-width: 1152px) {
    .site-header__cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-header__cta {
        display: none;
    }

    .site-nav__item--cta {
        display: flex;
        justify-content: center;
        padding: 12px;
        border-top: 1px solid var(--color-border);
    }

    .site-nav__item--cta .button {
        padding: 14px 30px;
        font-size: var(--fs-090);
    }
}

/* Hero content */

.hero__main {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--page-rhythm) var(--gutter);
}

.hero__copy {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.hero__title {
    font: 600 var(--fs-700) / 1.2 var(--font-alt);
}

@media (min-width: 1152px) {
    .hero__title {
        font-size: var(--fs-800);
        line-height: 1.1;
    }
}

.hero__title span {
    display: block;
}

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

.hero__buttons {
    display: flex;
    gap: 8px;
}

/* Small buttons below desktop, so the pair stays on one line. */
@media (max-width: 1151px) {
    .hero__buttons .button {
        padding: 10px 22px;
        font-size: var(--fs-080);
    }
}

.hero__media {
    flex: 1 0 0;
    min-width: 0;
}

/* The shadow sits on the iframe itself, so the rounded corners clip the video but not the shadow. */
.hero__media iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius-100);
    background: var(--color-heavy);
    box-shadow: 12px 12px 0 0 var(--color-accent-blue);
}

@media (max-width: 767px) {
    .hero__main {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__copy,
    .hero__media {
        flex: none;
    }
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

@media (min-width: 1152px) {
    .stats {
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--color-foundation);
    color:var(--color-inverted);
    border-radius: var(--radius-100);
}

.stat__value {
    font: 600 var(--fs-400) / 1.1 var(--font-main);
}

.stat__label {
    color: var(--color-inverted-quiet);
    font-size: var(--fs-070);
    line-height: 1.5;
}

@media (min-width: 1152px) {
    .stat {
        padding: 24px;
    }

    .stat__value {
        font-size: var(--fs-900);
    }

    .stat__label {
        font-size: var(--fs-090);
    }
}

/* ---------------------------------------------------------------------------
 * Brands
 * ------------------------------------------------------------------------ */

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

.brands__label {
    color: var(--color-quiet);
}

.brands__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

.brands__list img {
    width: auto;
    height: 32px;
}

/* ---------------------------------------------------------------------------
 * What we do: services, what we treat and the trust block (Figma "Sections/Services")
 * ------------------------------------------------------------------------ */

/* Keeps the services band and the trust block together, without the page gap between them. */
.services-wrap {
    display: flex;
    flex-direction: column;
}

.services {
    padding: var(--page-rhythm) 0 48px;
    background: var(--color-strong);
    color: var(--color-foreground);
}

.services__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.services .title {
    color: var(--color-foreground);
}

.services__title {
    max-width: 520px;
}

.eyebrow--inverted-quiet {
    color: var(--color-inverted-quiet);
}

.services__body {
    display: flex;
    align-items: stretch;
}

/* Service accordion: one open item at a time (main.js). */
.services__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin-right: -24px;
    padding-block: 24px;
}

.service {
    position: relative;
    overflow: hidden;
    background: var(--color-heavy);
    border-radius: var(--radius-050);
}

.service.is-open::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--color-accent-blue);
}

.service__heading {
    margin: 0;
}

.service__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 24px 16px 24px 24px;
    background: none;
    border: 0;
    color: var(--color-foreground);
    font: 600 var(--fs-200) / 1.4 var(--font-alt);
    text-align: left;
    cursor: pointer;
}

.service__toggle span {
    flex: 1 0 0;
}

.service__chevron {
    width: 24px;
    height: 24px;
    /* Glyph is 7.625 x 13.75 inside the 24px icon box. */
    padding: 5.125px 8.1875px;
    opacity: 0.5;
    transition:
        opacity var(--hover-transition),
        transform var(--hover-transition);
}

.service__toggle:hover .service__chevron,
.service.is-open .service__chevron {
    opacity: 1;
}

.service__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 16px 24px 24px;
}

.service__panel[hidden] {
    display: none;
}

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

.service__lead {
    font-weight: 600;
}

.services__media {
    flex: 1 0 0;
    min-width: 0;
}

.services__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-100);
}

/* One image per service; main.js shows the open service's image. Hidden images are not fetched (lazy). */
.services__media img[hidden] {
    display: none;
}

.services__separator {
    width: 100%;
    height: 1px;
    margin: 0;
    background: var(--color-heavy);
    border: 0;
}

/* What we treat callout */
.services__treat {
    display: flex;
    align-items: center;
    gap: 32px;
}

.services__treat-copy {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.services__treat-copy strong {
    font-weight: 600;
}

.services__treat-eyebrow {
    color: var(--color-accent-green);
}

.services__treat-copy a {
    text-decoration: underline;
}

.services__regulators {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.services__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.services__logos img {
    width: auto;
    height: 50px;
}

/* Trust block: a white card across the bottom edge of the band. */
.trust {
    position: relative;
    isolation: isolate;
}

.trust::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--color-strong);
}

.trust__block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--color-foreground);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-050);
    box-shadow: var(--shadow-default);
}

.trust__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 16px 24px;
}

/* Dividers: between columns, and between the two rows below desktop. */
.trust__item:nth-child(even) {
    border-left: 1px solid var(--color-border);
}

.trust__item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
}

.trust__eyebrow {
    color: var(--color-quiet);
}

.trust__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust__value {
    flex: 1 0 0;
    font: 600 var(--fs-400) / 1.24 var(--font-alt);
}

.trust__icon {
    width: 16px;
    height: 16px;
}

.trust__sub {
    color: var(--color-quiet);
    font-size: var(--fs-070);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .trust__value {
        font-size: var(--fs-600);
    }

    .trust__icon {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1152px) {
    .trust__block {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .trust__item:nth-child(n + 2) {
        border-left: 1px solid var(--color-border);
    }

    .trust__item:nth-child(n + 3) {
        border-top: 0;
    }
}

/* Tablet: the image runs to the right edge of the screen; the logos go on their own row. */
@media (min-width: 768px) and (max-width: 1151px) {
    .services__media {
        margin-right: calc(var(--gutter) * -1);
    }

    .services__media img {
        border-radius: var(--radius-100) 0 0 var(--radius-100);
    }

    .services__treat {
        flex-wrap: wrap;
    }

    .services__regulators {
        flex-basis: 100%;
    }
}

/* Mobile: no image, stacked callout, and the open item's chevron points down. */
@media (max-width: 767px) {
    .services__media {
        display: none;
    }

    .services__list {
        margin-right: 0;
        padding-block: 0;
    }

    .service.is-open .service__chevron {
        transform: rotate(90deg);
    }

    .services__treat {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .services__regulators {
        padding-top: 48px;
        border-top: 1px solid var(--color-heavy);
    }
}

/* ---------------------------------------------------------------------------
 * Where we sit
 * ------------------------------------------------------------------------ */

.line-card {
    gap: 12px;
}

.line-card__eyebrow {
    color: var(--color-accent-blue);
}

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

/* ---------------------------------------------------------------------------
 * Take a tour
 * ------------------------------------------------------------------------ */

.tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.tour__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.tour__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-heavy);
    border-radius: var(--radius-100);
    box-shadow: 12px 12px 0 0 var(--color-accent-blue);
}

.tour__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .tour {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }
}

@media (min-width: 1152px) {
    .tour {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tour__media {
        grid-column: span 2;
        border-radius: var(--radius-200);
    }
}

/* ---------------------------------------------------------------------------
 * Integration
 * ------------------------------------------------------------------------ */

.route-card__lead {
    font-weight: 600;
}

.route-card--soon {
    background: var(--color-canvas);
    border-style: dashed;
    color: var(--color-quiet);
}

.route-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tag {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--color-tag-info);
    border-radius: var(--radius-050);
    color: var(--color-quiet);
    font: 600 var(--fs-080) / 1 var(--font-main);
    white-space: nowrap;
}

.callout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--color-highlight);
    border-radius: var(--radius-100);
}

/* ---------------------------------------------------------------------------
 * Testimonials
 * ------------------------------------------------------------------------ */

.quotes {
    display: flex;
    gap: 16px;
}

.quote {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 24px 32px;
    background: var(--color-foreground);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-100);
}

.quote__logo {
    align-self: flex-start;
    width: auto;
    height: 24px;
}

.quote blockquote {
    font: 500 var(--fs-100) / 1.5 var(--font-alt);
}

.quote__attribution {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-090);
}

.quote__name {
    font-weight: 600;
}

.quote__role {
    color: var(--color-quiet);
}

.quotes__dots {
    display: none;
}

@media (max-width: 767px) {
    .quotes {
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .quotes::-webkit-scrollbar {
        display: none;
    }

    .quote {
        flex: 0 0 calc(100% - 24px);
        padding: 24px;
        scroll-snap-align: start;
    }

    .quotes__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .quotes__dot {
        width: 6px;
        height: 4px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: var(--color-border);
        cursor: pointer;
        transition: width 150ms ease;
    }

    .quotes__dot[aria-current="true"] {
        width: 64px;
        background: var(--color-border);
        filter: brightness(0.95);
    }
}

/* ---------------------------------------------------------------------------
 * FAQs
 * ------------------------------------------------------------------------ */

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

.faqs__title {
    text-align: center;
}

.accordion {
    width: 100%;
    max-width: var(--container-medium);
    margin-inline: auto;
}

.accordion__item {
    border-top: 1px solid var(--color-border);
}

.accordion__item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 24px;
    cursor: pointer;
    list-style: none;
}

.accordion__item summary::-webkit-details-marker {
    display: none;
}

.accordion__item summary::after {
    content: "";
    width: 24px;
    height: 24px;
    flex: none;
    background: url("../icons/chevron-down.svg") center / 13.75px 7.625px no-repeat;
    transform: rotate(-90deg);
    transition: transform 150ms ease;
}

.accordion__item[open] summary::after {
    transform: rotate(0deg);
}

.accordion__question {
    flex: 1 0 0;
}

.accordion__answer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    color: var(--color-quiet);
}

/* ---------------------------------------------------------------------------
 * Enquiry and footer
 * ------------------------------------------------------------------------ */

.enquiry-wrap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Large pill shape: its upper curve forms the arc above the contact form. */
.enquiry-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 4540px;
    height: 8786px;
    transform: translateX(-50%);
    background: url("../img/pill-contact.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}

.enquiry {
    padding-block: var(--page-rhythm);
    color: var(--color-foreground);
}

.enquiry__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: var(--container-small);
}

.enquiry__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: var(--container-xsmall);
    margin-inline: auto;
    text-align: center;
}

.enquiry__eyebrow {
    color: var(--color-inverted-quiet);
}

.enquiry__head .title {
    color: var(--color-foreground);
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.enquiry-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.enquiry-form legend {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
    padding: 0;
}

.enquiry-form .field-row + .field-row {
    margin-top: 24px;
}

.step-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    background: var(--color-soft);
    border-radius: 1000px;
    box-shadow: var(--shadow-default);
    color: var(--color-foundation);
    font: 600 var(--fs-070) / 1.5 var(--font-main);
}

.step-title {
    display: flex;
    flex-direction: column;
}

.step-title__hint {
    font-size: var(--fs-090);
}

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1152px) {
    .field-row--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field__label {
    font: 600 var(--fs-090) / 1 var(--font-alt);
}

.field__hint {
    color: var(--color-inverted-quiet);
    font-size: var(--fs-070);
    line-height: 1.5;
}

.field__control {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    background: var(--color-heavy);
    border: 0;
    border-radius: var(--radius-100);
    color: var(--color-foreground);
    font: 400 var(--fs-100) / 1.5 var(--font-main);
}

.field__control::placeholder {
    color: var(--color-inverted-quiet);
    opacity: 1;
}

select.field__control {
    padding-right: 36px;
    appearance: none;
    background-image: url("../icons/chevron-down.svg");
    background-position: right 14px center;
    background-size: 9px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select.field__control:invalid {
    color: var(--color-inverted-quiet);
}

select.field__control option {
    color: var(--color-foundation);
    background: var(--color-foreground);
}

textarea.field__control {
    height: 166px;
    resize: vertical;
}

.enquiry-form__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.enquiry-form__note {
    max-width: var(--container-xsmall);
    color: var(--color-inverted-quiet);
    font-size: var(--fs-070);
    text-align: center;
}

.enquiry-form__note a {
    color: var(--color-foreground);
}

.enquiry-form__status {
    font-size: var(--fs-090);
    text-align: center;
}

.enquiry-form__status:empty {
    display: none;
}

.enquiry-form__status.is-error {
    padding: 12px 16px;
    background: var(--color-heavy);
    border-radius: var(--radius-100);
    color: var(--color-error-inverted);
}

.enquiry-form__status a {
    color: var(--color-foreground);
}

.enquiry-form button[type="submit"]:disabled {
    cursor: progress;
    opacity: 0.7;
}

/* Field errors (added by enquiry-form.js). */
.field__control[aria-invalid="true"] {
    box-shadow: inset 0 0 0 2px var(--color-error-inverted);
}

.field__error {
    color: var(--color-error-inverted);
    font-size: var(--fs-090);
    line-height: 1.5;
}

/* Thank-you panel that replaces the form after a successful send (Figma 8114:59799). */
.enquiry-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--color-heavy);
    border-radius: var(--radius-100);
    color: var(--color-foreground);
    text-align: center;
}

.enquiry-success:focus {
    outline: none;
}

.enquiry-success__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: var(--container-xsmall);
}

.enquiry-success__title {
    font: 600 var(--fs-300) / 1.36 var(--font-alt);
}

.tag--success {
    align-items: center;
    gap: 8px;
    background: var(--color-tag-success);
    color: var(--color-tag-success-text);
}

.tag--success img {
    width: 16px;
    height: 16px;
}

/* Footer */

.site-footer {
    padding: 64px 0;
    background: var(--color-heavy);
    border-radius: var(--radius-200) var(--radius-200) 0 0;
    color: var(--color-foreground);
}

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

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

.site-footer__logo {
    width: 121px;
    height: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    font-size: var(--fs-090);
}

/* Tablet: 10 column grid, spans 3 / 2 / 5, and smaller regulator logos. */
@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 24px;
    }

    .site-footer__col--contact {
        grid-column: span 3;
    }

    .site-footer__col--check {
        grid-column: span 2;
    }

    .site-footer__col--company {
        grid-column: span 5;
    }

    .site-footer .badges {
        gap: 16px 24px;
    }

    .site-footer .badges img {
        height: 24px;
    }
}

@media (min-width: 1152px) {
    .site-footer__grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 48px;
    }

    .site-footer__col--contact,
    .site-footer__col--check {
        grid-column: span 2;
    }

    .site-footer__col--company {
        grid-column: span 6;
    }

    .site-footer .badges {
        gap: 16px 32px;
    }

    .site-footer .badges img {
        height: 30px;
    }
}

.site-footer__col--contact {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

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

.site-footer__heading {
    color: var(--color-inverted-quiet);
}

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

.site-footer a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color var(--hover-transition);
}

.site-footer a:hover {
    text-decoration-color: currentColor;
}

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

/* Regulator logos: vector SVGs from Figma, shown straight on the footer background. */
.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.badges img {
    width: auto;
    height: 30px;
}

@media (max-width: 767px) {
    .badges {
        justify-content: space-between;
        gap: 16px;
    }
}
