/*
 * www.mdc.swiss: website layer on top of Bootstrap 5.3.8 and mdc-tokens.css (CI, unchanged).
 * Website-only tokens are --site-*. Every component below has a Twig include under
 * templates/components/ and an example on /styleguide (PLAN.md 2.3).
 */

:root {
    --site-section-y: clamp(3rem, 6vw, 6rem);
    --site-narrow: 46rem;

    /* PLAN.md 2.2: brand-navy as a surface, only for hero, CTA band and footer. */
    --site-band-dark-bg: var(--brand-navy);
    --site-band-dark-color: #ffffff;
    --site-band-dark-muted: #c7d4ea;
    --site-band-dark-border: rgba(255, 255, 255, 0.16);

    --site-hero-title-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
    --site-page-title-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    --site-section-title-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
    --site-lead-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);

    /* Surfaces: the page sits on --mdc-page-bg, cards on --mdc-surface-bg (as in the app). */
    --site-page-bg: var(--mdc-page-bg);
    --site-card-bg: var(--mdc-surface-bg);
    --site-tint-bg: var(--mdc-shell-bg);
    --site-card-radius: var(--bs-border-radius-xl);
    --site-card-padding: 1.75rem;
    --site-icon-size: 2.75rem;
}

/*
 * Bootstrap 5.3 colours links from --bs-link-color-rgb; mdc-tokens.css only sets --bs-link-color.
 * Without these the links fall back to #0d6efd, which misses 4.5:1 on the tinted bands.
 */
:root,
[data-theme="light"] {
    --bs-link-color-rgb: 10, 88, 202;
    --bs-link-hover-color-rgb: 8, 66, 152;
}

[data-theme="dark"] {
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color-rgb: 139, 185, 254;
}

/* Outline primary: Bootstrap's #0d6efd misses 4.5:1 on --mdc-page-bg; use the token link colour. */
.btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
    --bs-btn-border-color: var(--bs-link-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0a58ca;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #084298;
    --bs-btn-active-border-color: #084298;
}

/* Secondary action on light surfaces: Bootstrap's grey outline misses 4.5:1 on --mdc-page-bg. */
.btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary-text-emphasis);
    --bs-btn-border-color: var(--bs-secondary-color);
    --bs-btn-hover-color: var(--bs-emphasis-color);
    --bs-btn-hover-bg: var(--bs-secondary-bg);
    --bs-btn-hover-border-color: var(--bs-secondary-color);
    --bs-btn-active-color: var(--bs-emphasis-color);
    --bs-btn-active-bg: var(--bs-secondary-bg);
    --bs-btn-active-border-color: var(--bs-secondary-color);
}

body {
    font-family: var(--font-sans);
    background: var(--site-page-bg);
    color: var(--bs-body-color);
}

.site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

main:focus {
    outline: none;
}

/* Anchor targets clear the sticky header. */
[id] {
    scroll-margin-top: 6rem;
}

.site-skip {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: var(--bs-body-bg);
    border-radius: var(--bs-border-radius);
}

/* ---------- Sections ---------- */

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

.site-narrow {
    max-width: var(--site-narrow);
}

.site-medium {
    max-width: 62rem;
}

.site-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 0.75rem;
}

.site-lead {
    font-size: var(--site-lead-size);
    line-height: 1.55;
    color: var(--bs-secondary-color);
    max-width: 42rem;
    margin-bottom: 2rem;
}

/* ---------- Dark band (hero, CTA, footer) ---------- */

.site-band-dark {
    background: var(--site-band-dark-bg);
    color: var(--site-band-dark-color);
}

.site-band-dark .site-eyebrow,
.site-band-dark .site-lead {
    color: var(--site-band-dark-muted);
}

.site-band-dark a:not(.btn) {
    color: var(--site-band-dark-color);
    text-decoration-color: var(--site-band-dark-border);
    text-underline-offset: 0.2em;
}

.site-band-dark a:not(.btn):hover {
    text-decoration-color: currentColor;
}

/* ---------- Tinted band (page intro, light hero) ---------- */

.site-band-tint {
    background: var(--site-tint-bg);
}

/* ---------- Header ---------- */

.site-header {
    background: var(--site-card-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.site-header .navbar {
    padding-block: 0.875rem;
}

.site-brand {
    display: inline-flex;
    padding: 0;
}

.site-brand img {
    display: block;
}

/* mdc-tokens.css sizes .nav-link for the app sidebar (0.875rem); the website navbar is larger. */
.site-header .nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
    padding-inline: 0.875rem;
}

.site-header .nav-link:hover {
    color: var(--bs-link-hover-color);
}

.site-header .nav-link.active {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.site-lang-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-sm);
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.site-lang-link:hover {
    color: var(--bs-emphasis-color);
    background: var(--bs-tertiary-bg);
}

.site-lang-link.is-current {
    color: var(--bs-emphasis-color);
    background: var(--bs-secondary-bg);
}

/* ---------- Header: scroll state, mega menu, phone sheet ---------- */

.site-header .navbar {
    transition: padding-block 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 1px 12px rgb(0 0 0 / 0.06);
}

.site-header.is-scrolled .navbar {
    padding-block: 0.5rem;
}

.site-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 0;
    background: none;
    width: 100%;
}

.site-mega-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.site-mega-trigger[aria-expanded="true"] .site-mega-chevron {
    transform: rotate(180deg);
}

.site-mega-inner {
    display: grid;
    gap: 1.5rem;
}

.site-mega-heading {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.site-mega-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem;
    margin-inline: -0.5rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-body-color);
    text-decoration: none;
}

.site-mega-link:hover,
.site-mega-link:focus-visible,
.site-mega-link[aria-current="page"] {
    background: var(--bs-tertiary-bg);
}

.site-mega-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}

.site-mega-title {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.site-mega-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.site-mega-overview {
    display: block;
    padding: 1rem;
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
}

.site-mega-overview img {
    width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
    border-radius: var(--bs-border-radius);
}

.site-mega-more {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--bs-link-color);
}

/* Wide screens: the panel drops below the whole navbar, full width, content on the container grid. */
@media (min-width: 992px) {
    .site-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding-block: 1.5rem;
        background: var(--site-card-bg);
        border-top: 1px solid var(--bs-border-color);
        border-bottom: 1px solid var(--bs-border-color);
        box-shadow: 0 16px 32px rgb(0 0 0 / 0.08);
    }

    .site-mega-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr);
    }

    .site-mega-trigger {
        width: auto;
    }
}

/* Phones and tablets: the opened menu fills the screen below the header and scrolls on its own;
   the groups stack, contact and language sit at the end. */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100dvh - 100%);
        overflow-y: auto;
        padding: 0.5rem 1.25rem 1.5rem;
        background: var(--site-card-bg);
        border-top: 1px solid var(--bs-border-color);
    }

    .site-header .navbar-collapse.collapsing {
        height: 0;
    }

    .site-header .navbar-nav .nav-link {
        padding-block: 0.75rem;
        padding-inline: 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .site-mega {
        padding: 0.75rem 0 0.5rem 0.5rem;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .site-mega-inner {
        padding: 0;
    }

    /* Contact and language at the bottom of the sheet, where the thumb is. */
    .site-header .navbar-collapse.show {
        display: flex;
        flex-direction: column;
    }

    .site-nav-end {
        margin-top: auto;
        padding-top: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .navbar,
    .site-mega-chevron {
        transition: none;
    }
}

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

.site-hero {
    padding-block: clamp(4rem, 9vw, 8rem);
}

.site-hero-title {
    font-size: var(--site-hero-title-size);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin-bottom: 1.25rem;
}

/* PLAN.md 2.3 components ------------------------------------------------------------------ */

/* ---------- Hero with screenshot ---------- */

.site-hero-with-screen {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.site-hero-with-screen .site-hero-title {
    max-width: 16ch;
}

/* ---------- Page intro + breadcrumb ---------- */

.site-page-intro {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--bs-border-color);
}

.site-page-title {
    font-size: var(--site-page-title-size);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 24ch;
}

.site-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ---------- Section head ---------- */

.site-section-head {
    max-width: 48rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.site-section-head.is-centered {
    margin-inline: auto;
    text-align: center;
}

.site-section-head.is-centered .site-lead {
    margin-inline: auto;
}

.site-section-head .site-lead {
    margin-bottom: 0;
}

.site-section-title {
    font-size: var(--site-section-title-size);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ---------- Icon tile ---------- */

.site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--site-icon-size);
    height: var(--site-icon-size);
    margin-bottom: 1.125rem;
    border-radius: 0.75rem;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    font-size: 1.375rem;
}

/* ---------- Feature card, module teaser ---------- */

.site-feature,
.site-teaser {
    height: 100%;
    padding: var(--site-card-padding);
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-feature-title,
.site-teaser-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.site-feature-text,
.site-teaser-text {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.site-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.site-teaser-title a {
    color: inherit;
    text-decoration: none;
}

.site-teaser-text {
    margin-bottom: 1.25rem;
}

.site-teaser-more {
    margin-top: auto;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bs-link-color);
}

.site-teaser:hover {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: var(--bs-box-shadow-sm);
    transform: translateY(-2px);
}

.site-teaser:focus-within {
    outline: 3px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}

.site-teaser .stretched-link:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-teaser {
        transition: none;
    }

    .site-teaser:hover {
        transform: none;
    }
}

/* ---------- Process band ---------- */

.site-process {
    display: grid;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-process-step {
    position: relative;
    padding-left: 3.75rem;
}

.site-process-number {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Connector: vertical on small screens, horizontal from lg. */
.site-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3rem;
    bottom: -1.25rem;
    left: 1.1875rem;
    width: 2px;
    background: var(--bs-border-color);
}

.site-process-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    padding-top: 0.5rem;
}

.site-process-text {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .site-process {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .site-process-step {
        padding-left: 0;
    }

    .site-process-number {
        position: static;
        margin-bottom: 0.75rem;
    }

    .site-process-step:not(:last-child)::after {
        top: 1.25rem;
        bottom: auto;
        left: 3.25rem;
        right: -0.75rem;
        width: auto;
        height: 2px;
    }

    .site-process-title {
        padding-top: 0;
    }
}

/* ---------- Screenshot ---------- */

.site-screen {
    margin: 0;
}

.site-screen-link {
    display: block;
    border-radius: var(--bs-border-radius-lg);
    cursor: zoom-in;
}

.site-screen-link:focus-visible {
    outline: 3px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}

.site-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.site-screen-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.site-band-dark .site-screen-caption {
    color: var(--site-band-dark-muted);
}

/* ---------- Lightbox ---------- */

.site-lightbox {
    width: min(96vw, 1600px);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.site-lightbox::backdrop {
    background: rgba(2, 6, 23, 0.86);
}

.site-lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
}

.site-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 1;
}

/* ---------- Split media, prose ---------- */

.site-prose > :last-child {
    margin-bottom: 0;
}

.site-prose p {
    font-size: 1.0625rem;
}

/* ---------- Check list ---------- */

.site-checks {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.site-checks li {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.site-checks .bi {
    flex: none;
    color: var(--bs-primary);
    font-size: 1.125rem;
    line-height: 1.4;
}

.site-band-dark .site-checks .bi {
    color: var(--site-band-dark-color);
}

/* ---------- Trust strip ---------- */

.site-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.site-trust .bi {
    color: var(--bs-primary);
    margin-right: 0.25rem;
}

/* ---------- Pricing ---------- */

.site-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-plan.is-highlight {
    border: 2px solid var(--bs-primary);
    box-shadow: var(--bs-box-shadow);
}

.site-plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
}

.site-plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.site-plan-tagline {
    color: var(--bs-secondary-color);
    margin-bottom: 1.25rem;
}

.site-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.site-plan-amount {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.site-plan-unit,
.site-plan-note {
    color: var(--bs-secondary-color);
}

.site-plan-note {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.site-plan .site-checks {
    margin-bottom: 1.75rem;
}

/* ---------- Data table ---------- */

.site-table {
    margin: 0;
}

.site-table .table-responsive {
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-table .table {
    --bs-table-bg: transparent;
}

.site-table th,
.site-table td {
    padding: 0.875rem 1.25rem;
}

.site-table tbody tr:last-child > * {
    border-bottom: 0;
}

.site-table-caption {
    caption-side: top;
    padding: 1.125rem 1.25rem 0.375rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.site-table tbody th {
    white-space: nowrap;
}

.site-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Phones: one card per row, the column head in front of each value. */
@media (max-width: 767.98px) {
    .site-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .site-table table,
    .site-table tbody,
    .site-table tr,
    .site-table th,
    .site-table td {
        display: block;
    }

    .site-table caption {
        display: block;
    }

    .site-table tbody tr {
        padding: 0.75rem 1.25rem;
        border-top: 1px solid var(--bs-border-color);
    }

    .site-table tbody th,
    .site-table tbody td {
        padding: 0.25rem 0;
        border: 0;
        text-align: left !important;
        white-space: normal;
    }

    .site-table tbody th {
        font-size: 1.0625rem;
    }

    .site-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-table tbody td::before {
        content: attr(data-label);
        color: var(--bs-secondary-color);
    }

    .site-table tbody td.site-num {
        white-space: normal;
        text-align: right !important;
    }
}

.site-table-note {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* ---------- FAQ ---------- */

.site-faq {
    --bs-accordion-bg: var(--site-card-bg);
    --bs-accordion-border-radius: var(--site-card-radius);
    --bs-accordion-inner-border-radius: calc(var(--site-card-radius) - 1px);
}

.site-faq .accordion-button {
    font-weight: 600;
}

.site-faq .accordion-body p:last-child {
    margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.site-cta {
    padding-block: var(--site-section-y);
    border-bottom: 1px solid var(--site-band-dark-border);
}

.site-cta-inner {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.site-cta-title {
    font-size: var(--site-section-title-size);
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-cta .site-lead {
    margin-inline: auto;
}

.site-cta .site-actions {
    justify-content: center;
}

/* Page-level patterns (phase 3) -------------------------------------------------------- */

/* A slim band directly below a hero or before the CTA (trust strip). */
.site-strip {
    padding-block: 1.5rem;
    background: var(--site-card-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.site-strip-end {
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 0;
}

.site-fineprint {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.site-pricing-teaser {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-pricing-teaser .site-section-title {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

@media (min-width: 992px) {
    .site-pricing-teaser {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-pricing-teaser .btn {
        flex: none;
    }
}

.site-module-list li {
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.site-module-list .badge {
    margin-right: 0.5rem;
}

.site-timeline {
    margin: 0;
    padding: 1.75rem;
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-timeline li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding-block: 0.625rem;
    font-weight: 600;
}

.site-timeline li + li {
    border-top: 1px solid var(--bs-border-color);
}

.site-timeline-years {
    min-width: 8.5rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

.site-contact-card {
    height: 100%;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--site-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-card-radius);
}

.site-contact-value {
    font-size: 1.375rem;
    font-weight: 600;
    word-break: break-word;
}

.site-legal h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.site-legal h2:first-child {
    margin-top: 0;
}

.site-contact-form .form-label {
    font-weight: 600;
}

.site-required {
    color: var(--bs-danger-text-emphasis);
}

.site-optional {
    font-weight: 400;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}

/* Honeypot of the contact form: off screen rather than display:none, which bots look for. */
.site-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-placeholder {
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem 1.25rem;
    color: var(--bs-secondary-color);
    font-style: italic;
}

.site-address-label {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin: 1rem 0 .25rem;
}

.site-legal address {
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 3.5rem 2rem;
    font-size: 0.9375rem;
}

.site-footer-claim {
    color: var(--site-band-dark-muted);
    max-width: 22rem;
}

.site-footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--site-band-dark-muted);
    margin-bottom: 0.75rem;
}

.site-footer li + li {
    margin-top: 0.375rem;
}

.site-footer .site-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--site-band-dark-border);
    color: var(--site-band-dark-muted);
    font-size: 0.875rem;
}

/* ---------- Motion: shine on the light button, scroll reveal ---------- */

/*
 * The filled light button on the dark bands (hero, CTA): a faint sky tint, a light sweep every
 * few seconds and once more on hover, a lift with a sky glow. Without motion only the colours stay.
 */
.site-band-dark .btn-light {
    --bs-btn-color: var(--brand-navy);
    --bs-btn-hover-color: var(--brand-navy);
    --bs-btn-active-color: var(--brand-navy);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-active-bg: #e6f0fb;
    --bs-btn-active-border-color: #e6f0fb;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-weight: 600;
    background-image: linear-gradient(180deg, #ffffff 0%, #e9f2fc 100%);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 6px 18px -8px rgb(61 151 227 / 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-band-dark .btn-light::after {
    content: "";
    position: absolute;
    inset: -2px auto -2px 0;
    z-index: -1;
    width: 60%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgb(61 151 227 / 0.22) 35%,
        rgb(255 255 255 / 0.95) 50%,
        rgb(61 151 227 / 0.22) 65%,
        transparent 100%
    );
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
    animation: site-shine 7s ease-in-out 1.2s infinite;
}

.site-band-dark .btn-light:hover,
.site-band-dark .btn-light:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 12px 28px -10px rgb(61 151 227 / 0.85);
}

/* A different animation name restarts the sweep the moment the pointer arrives. */
.site-band-dark .btn-light:hover::after,
.site-band-dark .btn-light:focus-visible::after {
    animation: site-shine-hover 0.8s ease-out;
}

.site-band-dark .btn-light:active {
    transform: translateY(0);
}

@keyframes site-shine {
    0% { transform: translateX(-120%) skewX(-18deg); }
    16%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes site-shine-hover {
    from { transform: translateX(-120%) skewX(-18deg); }
    to { transform: translateX(260%) skewX(-18deg); }
}

/*
 * Scroll reveal (site.js sets html.site-reveal and .is-revealed per element). Without JS, without
 * IntersectionObserver or with reduced motion the class is never set and everything simply shows.
 * Once in place, site.js drops data-reveal, so cards get their own transitions (hover lift) back.
 * Screenshots fade in and tilt flat out of a slight perspective; cards and steps only rise,
 * staggered. Text never fades: it keeps full contrast at every moment (axe, WCAG 1.4.3), so only
 * the image (the link inside the figure, not the caption) changes its opacity.
 */
.site-reveal [data-reveal] {
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--site-reveal-delay, 0s);
}

.site-reveal [data-reveal="rise"] {
    transform: translateY(2rem);
}

.site-reveal [data-reveal="screen"] {
    opacity: 0;
    transform: perspective(1400px) translateY(3rem) rotateX(10deg) scale(0.95);
    transform-origin: 50% 100%;
    transition:
        opacity 0.7s ease var(--site-reveal-delay, 0s),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--site-reveal-delay, 0s);
}

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

/*
 * Hero screenshot: settles in from a 3D tilt on load, then drifts slower than the page (parallax).
 * The hero clips, so neither movement widens the page on a phone or reaches into the next band.
 */
.site-hero {
    overflow: clip;
}

.site-hero .site-screen {
    animation: site-hero-screen 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

@keyframes site-hero-screen {
    from {
        opacity: 0;
        transform: perspective(1400px) translateY(1.5rem) rotateX(12deg) scale(0.96);
        transform-origin: 50% 100%;
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@supports (animation-timeline: scroll()) {
    .site-hero .site-screen-link {
        animation: site-hero-parallax linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 100vh;
    }

    @keyframes site-hero-parallax {
        to { transform: translateY(3rem) scale(0.97); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-band-dark .btn-light,
    .site-band-dark .btn-light:hover,
    .site-band-dark .btn-light:focus-visible {
        transform: none;
        transition: none;
    }

    .site-band-dark .btn-light::after,
    .site-hero .site-screen,
    .site-hero .site-screen-link {
        animation: none;
    }

    .site-band-dark .btn-light::after {
        display: none;
    }
}

@media print {
    .site-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
