/* =====================================================================
   DEUTSCH SPRACHE RWANDA - site styles
   Shared by index.html and packages.html; packages.css adds the pricing
   page sections on top of this file.

   The palette, radii and type mirror the learning platform at
   class.deutshsprache.org, so the marketing site and the student portal
   read as one brand:
     --brand  #b60e1c  crimson - primary actions and emphasis
     --night  #203044  navy - headings, dark panels, button hover
     --cream  #faf5f2  page background
     --line   #ece2de  hairlines and card borders
   ===================================================================== */

/* ---------- Fonts: self-hosted Poppins, latin subset ---------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-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;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-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;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-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;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700-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;
}
/* Arial tuned to Poppins' metrics, so text doesn't jump when the webfont
   swaps in. */
@font-face {
    font-family: 'Poppins Fallback';
    src: local('Arial');
    ascent-override: 93.62%;
    descent-override: 31.21%;
    line-gap-override: 8.92%;
    size-adjust: 112.16%;
}

/* ---------- Design tokens ---------- */
:root {
    --brand: #b60e1c;
    --brand-deep: #8f0b16;
    --brand-soft: #f7e3e4;
    --brand-tint: #fcf2f2;

    --night: #203044;
    --night-2: #2b3d55;
    --night-soft: #e6e9ee;

    --ink: #203044;
    --text: #3a4657;
    --muted: #616a79;
    --faint: #8a919c;

    --cream: #faf5f2;
    --cream-deep: #f3ebe6;
    --line: #ece2de;
    --line-strong: #e1d4ce;
    --white: #ffffff;

    --sun: #c28335;
    --sun-ink: #8f5f22;
    --sun-soft: #f8eedf;
    --amber: #e5a134;
    --peach: #eea76d;
    --apricot: #f1b39a;
    --mint: #4cbc9a;
    --mint-ink: #237a61;
    --mint-soft: #e2f4ee;
    --sky: #5b8def;
    --sky-ink: #2f5fc4;
    --sky-soft: #e7eefd;

    --font: 'Poppins', 'Poppins Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 12px;
    --radius-field: 14px;
    --radius: 20px;
    --radius-card: 24px;
    --radius-lg: 28px;
    --radius-xl: 32px;

    --shadow-xs: 0 1px 2px rgba(32, 48, 68, 0.05);
    --shadow-sm: 0 2px 6px -1px rgba(32, 48, 68, 0.07), 0 1px 2px rgba(32, 48, 68, 0.04);
    --shadow-md: 0 16px 36px -16px rgba(32, 48, 68, 0.2), 0 2px 6px -2px rgba(32, 48, 68, 0.06);
    --shadow-lg: 0 30px 60px -26px rgba(32, 48, 68, 0.3), 0 4px 12px -4px rgba(32, 48, 68, 0.08);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --container: 1680px;
    --gutter: clamp(16px, 3vw, 56px);
    --section-y: clamp(60px, 7vw, 96px);
    --header-h: 96px;
    --header-space: 92px; /* rendered height of .site-header */
}

/* ---------- 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);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

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

img {
    height: auto;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid rgba(182, 14, 28, 0.45);
    outline-offset: 3px;
}

::selection {
    background: rgba(182, 14, 28, 0.15);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--night);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

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

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

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

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

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(182, 14, 28, 0.12);
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-title {
    font-size: clamp(1.875rem, 1.25rem + 2.5vw, 2.875rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.section-lead {
    max-width: 600px;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    color: var(--muted);
}

.hl {
    color: var(--brand);
}

.hl-gold {
    color: var(--sun);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--white);
    --btn-fg: var(--ink);
    --btn-bd: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.btn:hover .icon-trail {
    transform: translateX(3px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    --btn-bd: var(--brand);
    box-shadow: 0 12px 24px -14px rgba(182, 14, 28, 0.75);
}

/* Like the portal: primary actions turn navy on hover. */
.btn-primary:hover {
    --btn-bg: var(--night);
    --btn-bd: var(--night);
    box-shadow: 0 12px 26px -14px rgba(32, 48, 68, 0.7);
}

.btn-secondary {
    --btn-bg: var(--cream);
    --btn-bd: var(--line);
}

.btn-secondary:hover {
    --btn-bg: #fff;
    --btn-bd: var(--ink);
}

.btn-white {
    --btn-bg: #fff;
    --btn-fg: var(--brand);
    --btn-bd: #fff;
}

.btn-white:hover {
    --btn-bg: var(--night);
    --btn-fg: #fff;
    --btn-bd: var(--night);
}

/* On the navy panels the navy hover would vanish, so go white instead. */
.on-dark .btn-primary:hover {
    --btn-bg: #fff;
    --btn-fg: var(--ink);
    --btn-bd: #fff;
}

.btn-sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.875rem;
}

.btn-lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    cursor: progress;
    opacity: 0.75;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand);
}

.text-link .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
    transform: translateX(4px);
}

/* ---------- Pills and icon tiles ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.pill .icon {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.tile {
    --tile-bg: var(--brand-soft);
    --tile-fg: var(--brand);
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--tile-bg);
    color: var(--tile-fg);
}

.tile .icon {
    width: 22px;
    height: 22px;
}

.tile-sun   { --tile-bg: var(--sun-soft);   --tile-fg: var(--sun-ink); }
.tile-mint  { --tile-bg: var(--mint-soft);  --tile-fg: var(--mint-ink); }
.tile-sky   { --tile-bg: var(--sky-soft);   --tile-fg: var(--sky-ink); }
.tile-night { --tile-bg: var(--night-soft); --tile-fg: var(--night); }
.tile-cream { --tile-bg: var(--cream);      --tile-fg: var(--ink); }

/* Solid tiles, as on the portal's overview cards. */
.tile-solid-brand { --tile-bg: var(--brand); --tile-fg: #fff; }
.tile-solid-mint  { --tile-bg: var(--mint);  --tile-fg: #fff; }
.tile-solid-amber { --tile-bg: var(--amber); --tile-fg: #fff; }
.tile-solid-sky   { --tile-bg: var(--sky);   --tile-fg: #fff; }

/* German flag, black / red / gold. */
.flag-de {
    display: inline-flex;
    flex-direction: column;
    width: 28px;
    height: 18px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(32, 48, 68, 0.12);
}

.flag-de span {
    flex: 1;
}

.flag-de span:nth-child(1) { background: #000; }
.flag-de span:nth-child(2) { background: #dd0000; }
.flag-de span:nth-child(3) { background: #ffce00; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-block: 12px;
    pointer-events: none;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: var(--shadow-xs);
    pointer-events: auto;
    transition: box-shadow 0.3s, background-color 0.3s;
}

.site-header.is-scrolled .nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px -20px rgba(32, 48, 68, 0.32);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    border-radius: 14px;
}

.brand img {
    width: 46px;
    height: 46px;
}

.brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.brand-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    background: var(--cream);
    color: var(--ink);
}

.nav-link.is-active {
    background: var(--brand);
    color: var(--white);
}

.nav-menu .menu-icon {
    display: none;
}

.nav-menu .caret {
    width: 15px;
    height: 15px;
    color: var(--faint);
    transition: transform 0.25s var(--ease);
}

.nav-link.is-active .caret {
    color: currentColor;
}

.has-sub {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 290px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}

/* Hover bridge across the gap between the link and the panel. */
.sub-menu::before {
    content: '';
    position: absolute;
    inset: -14px 0 auto;
    height: 14px;
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.has-sub:hover .caret,
.has-sub:focus-within .caret {
    transform: rotate(180deg);
}

.sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.sub-link:hover {
    background: var(--cream);
}

.sub-link .tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.sub-link .tile .icon {
    width: 20px;
    height: 20px;
}

.sub-link strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.sub-link small {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s, background-color 0.2s;
}

.nav-login .icon {
    width: 18px;
    height: 18px;
}

.nav-login:hover {
    background: var(--cream);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
    color: var(--ink);
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.nav-toggle .icon-close,
.nav.is-open .nav-toggle .icon-open {
    display: none;
}

.nav.is-open .nav-toggle .icon-close {
    display: block;
}

.menu-extra {
    display: none;
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: grid;
    }

    .nav-actions .nav-login {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100dvh - 120px);
        padding: 10px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s, transform 0.25s var(--ease), visibility 0.22s;
    }

    .nav.is-open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-link {
        width: 100%;
        height: 50px;
        gap: 12px;
        font-size: 1rem;
    }

    .nav-menu .menu-icon {
        display: block;
        width: 19px;
        height: 19px;
        color: var(--faint);
    }

    .nav-link.is-active .menu-icon {
        color: currentColor;
    }

    .nav-menu .caret {
        display: none;
    }

    .sub-menu {
        position: static;
        min-width: 0;
        margin: 0 0 4px 30px;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sub-menu::before {
        display: none;
    }

    .menu-extra {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
        margin-top: 6px;
        border-top: 1px solid var(--line);
    }

    .menu-extra .btn {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 440px) {
    .nav-actions .btn {
        display: none;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 8px;
}

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    min-height: clamp(560px, calc(100svh - 250px), 780px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(32px, 5vw, 72px);
    padding-right: clamp(24px, 3vw, 40px);
}

.hero-title {
    font-size: clamp(2.5rem, 1.4rem + 3.3vw, 4.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* Soft highlighter stroke under the key word. */
.hero-title .hl {
    background: linear-gradient(transparent 70%, rgba(182, 14, 28, 0.13) 70%, rgba(182, 14, 28, 0.13) 92%, transparent 92%);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sun-ink);
}

.hero-tagline .icon {
    width: 18px;
    height: 18px;
}

.hero-lead {
    max-width: 520px;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.scroll-hint {
    position: absolute;
    left: clamp(32px, 5vw, 72px);
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color 0.2s;
}

.scroll-hint:hover {
    color: var(--ink);
}

/* Only where the hero is roomy enough not to crowd the buttons. */
@media (max-width: 1199px), (max-height: 820px) {
    .scroll-hint {
        display: none;
    }
}

.scroll-mouse {
    position: relative;
    width: 20px;
    height: 30px;
    border: 2px solid currentColor;
    border-radius: 12px;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: currentColor;
    animation: scroll-wheel 1.8s var(--ease) infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 0; transform: translateY(-2px); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(8px); }
}

.hero-media {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    background: var(--cream-deep);
}

.hero-slide,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    object-fit: cover;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 7s linear;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide:nth-child(1) img { object-position: 52% 40%; }
.hero-slide:nth-child(2) img { object-position: 50% 50%; }
.hero-slide:nth-child(3) img { object-position: 46% 50%; }

/* Shade the bottom edge so the dots stay visible on any photo. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(32, 48, 68, 0.42), transparent 34%);
    pointer-events: none;
}

/* The curved seam between copy and photo, as on the portal's sign-in page. */
.hero-wave {
    position: absolute;
    top: 0;
    left: -1px;
    z-index: 2;
    width: clamp(46px, 5.5vw, 84px);
    height: 100%;
    color: #fff;
}

.hero-path {
    position: absolute;
    left: clamp(56px, 7vw, 104px);
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - clamp(56px, 7vw, 104px) - 90px);
    padding: 14px 18px 14px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.hero-path strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.hero-path small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.level-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.level-path .sep {
    width: 12px;
    height: 12px;
    color: var(--faint);
}

.lvl {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lvl-a1 { background: var(--mint-soft);  color: var(--mint-ink); }
.lvl-a2 { background: var(--sky-soft);   color: var(--sky-ink); }
.lvl-b1 { background: var(--brand-soft); color: var(--brand); }
.lvl-b2 { background: var(--sun-soft);   color: var(--sun-ink); }
.lvl-c1 { background: var(--night-soft); color: var(--night); }

.hero-dots {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 3;
    display: flex;
}

.hero-dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
}

.hero-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.35s var(--ease), background-color 0.3s;
}

.hero-dot:hover::before {
    background: rgba(255, 255, 255, 0.85);
}

.hero-dot[aria-current='true']::before {
    width: 24px;
    background: #fff;
}

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-media {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hero-wave {
        display: none;
    }

    .hero-copy {
        padding: 28px clamp(20px, 5vw, 40px) 36px;
    }

    .hero-path {
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 100px);
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-media {
        aspect-ratio: 4 / 3;
    }

    .hero-path {
        display: none;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Full-bleed hero (homepage) ----------
   Runs edge to edge and fills the first screen. It slides up under the
   floating header (negative margin = header height), so the photo shows
   through the glass bar. Copy aligns with the page container's left edge. */
.hero-full {
    --seam: clamp(64px, 6vw, 112px);
    --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: clamp(640px, 100svh, 1060px);
    margin-top: calc(-1 * var(--header-space));
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.hero-full .hero-copy {
    position: relative;
    isolation: isolate;
    gap: 0;
    justify-content: center;
    padding: calc(var(--header-space) + clamp(28px, 5vh, 64px)) clamp(28px, 3.5vw, 64px) clamp(64px, 10vh, 112px) var(--edge);
}

/* Warm glow and a faint dot grid behind the copy. */
.hero-full .hero-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px 420px at 0% 100%, rgba(238, 167, 109, 0.16), transparent 70%),
        radial-gradient(560px 380px at 35% 8%, rgba(182, 14, 28, 0.06), transparent 70%),
        radial-gradient(circle at 1px 1px, rgba(32, 48, 68, 0.08) 1px, transparent 0) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%);
    mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%);
}

.hero-copy-inner {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
    max-width: 700px;
}

.hero-full .hero-title {
    font-size: clamp(2.6rem, 1rem + 3.4vw, 4.75rem);
    line-height: 1.02;
}

.hero-full .hero-lead {
    max-width: 560px;
}

/* Stats as small cards; four in a row, or two by two in a narrow column. */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.hero-stats li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-stats .tile {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.hero-stats .tile .icon {
    width: 19px;
    height: 19px;
}

.hero-stats strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.hero-stats small {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--muted);
}

@container (max-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero-full .scroll-hint {
    left: var(--edge);
    bottom: 30px;
}

.hero-full .hero-media {
    min-height: 100%;
}

.hero-full .hero-media::after {
    background:
        linear-gradient(to top, rgba(20, 30, 44, 0.55), transparent 32%),
        linear-gradient(to bottom, rgba(20, 30, 44, 0.25), transparent 22%);
}

.hero-full .hero-wave {
    width: var(--seam);
}

.hero-wave-h {
    display: none;
}

/* The badge on the seam. */
.hero-seal {
    position: absolute;
    top: 30%;
    left: calc(var(--seam) * 0.46);
    z-index: 4;
    display: grid;
    place-items: center;
    width: clamp(92px, 7vw, 128px);
    aspect-ratio: 1;
    padding: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 22px 44px -18px rgba(32, 48, 68, 0.5);
    transform: translate(-50%, -50%);
    animation: seal-in 0.9s var(--ease) 0.35s both;
}

.hero-seal img {
    width: 100%;
    height: 100%;
}

@keyframes seal-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-12deg); }
}

.hero-full .hero-path {
    left: calc(var(--seam) + 28px);
    bottom: clamp(28px, 6vh, 56px);
    max-width: calc(100% - var(--seam) - 240px);
}

/* Slide controls as progress bars; the active one fills while playing. */
.hero-full .hero-dots {
    right: clamp(24px, 3vw, 56px);
    bottom: clamp(36px, 6vh, 64px);
    gap: 6px;
}

.hero-full .hero-dot {
    position: relative;
    width: 46px;
    height: 26px;
}

.hero-full .hero-dot::before,
.hero-full .hero-dot[aria-current='true']::before {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-full .hero-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 4px;
    margin-top: -2px;
    border-radius: 4px;
    background: #fff;
}

.hero-full .hero-dot[aria-current='true']::after {
    width: 100%;
}

.hero-full [data-hero-slider].is-playing .hero-dot[aria-current='true']::after {
    animation: hero-progress 6s linear both;
}

@keyframes hero-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Entrance: the copy rises in, line by line. */
.hero-in {
    animation: hero-in 0.8s var(--ease) both;
}

.hero-copy-inner > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy-inner > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy-inner > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy-inner > :nth-child(5) { animation-delay: 0.24s; }
.hero-copy-inner > :nth-child(6) { animation-delay: 0.3s; }
.hero-copy-inner > :nth-child(7) { animation-delay: 0.38s; }

@keyframes hero-in {
    from { opacity: 0; translate: 0 18px; }
}

/* Laptops: give the copy more room so the headline keeps to two lines. */
@media (max-width: 1600px) {
    .hero-full {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

/* The scroll cue only where the first screen is tall enough for it. */
@media (max-height: 940px) {
    .hero-full .scroll-hint {
        display: none;
    }
}

@media (max-width: 1100px) {
    .hero-full {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .hero-full .hero-path {
        display: none;
    }
}

/* Phones and small tablets: photo on top (under the glass header),
   wave along its bottom edge, badge sitting on the wave. */
@media (max-width: 900px) {
    .hero-full {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-full .hero-media {
        order: -1;
        height: clamp(340px, 58svh, 580px);
        min-height: 0;
        aspect-ratio: auto;
    }

    .hero-full .hero-copy {
        padding: 30px var(--gutter) 52px;
    }

    .hero-full .hero-wave {
        display: none;
    }

    .hero-wave-h {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        z-index: 2;
        display: block;
        width: 100%;
        height: 38px;
        color: #fff;
    }

    .hero-seal {
        top: auto;
        bottom: -14px;
        left: var(--gutter);
        width: 86px;
        transform: none;
        animation-name: seal-in-mobile;
    }

    @keyframes seal-in-mobile {
        from { opacity: 0; transform: scale(0.7) rotate(-12deg); }
    }

    .hero-full .hero-dots {
        bottom: 48px;
    }
}

/* ---------- Photo focal points ---------- */
.hero-full .hero-slide:nth-child(1) img { object-position: 50% 38%; }
.hero-full .hero-slide:nth-child(2) img { object-position: 28% 50%; }
.hero-full .hero-slide:nth-child(3) img { object-position: 46% 30%; }

/* ---------- Hand-drawn underline under the hero's key word ---------- */
.hero-full .hl-swash {
    position: relative;
    display: inline-block;
    background: none;
}

.hl-swash svg {
    position: absolute;
    left: -2%;
    bottom: -0.1em;
    width: 104%;
    height: 0.28em;
    overflow: visible;
    pointer-events: none;
}

.hl-swash path {
    fill: none;
    stroke: var(--peach);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: swash-draw 1.1s var(--ease) 0.6s forwards;
}

@keyframes swash-draw {
    to { stroke-dashoffset: 0; }
}

/* ---------- German chat bubbles over the hero photo ---------- */
.hero-chat {
    position: absolute;
    top: calc(var(--header-space) + clamp(24px, 6vh, 64px));
    right: clamp(20px, 3vw, 56px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 18px 36px -18px rgba(15, 23, 35, 0.6);
    animation: bubble-in 0.6s var(--ease) both, bubble-float 6s ease-in-out infinite;
}

.bubble-in {
    border-bottom-right-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    animation-delay: 1s, 1.6s;
}

.bubble-out {
    margin-right: 26px;
    border-bottom-right-radius: 6px;
    background: var(--brand);
    color: #fff;
    animation-delay: 1.8s, 2.4s;
}

.bubble-out .icon {
    width: 16px;
    height: 16px;
}

.bubble-face {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--night);
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
}

@keyframes bubble-in {
    from { opacity: 0; transform: translateY(10px) scale(0.92); }
}

@keyframes bubble-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

@media (max-width: 900px) {
    .hero-chat {
        top: calc(var(--header-space) + 14px);
        right: var(--gutter);
    }

    .bubble {
        font-size: 0.8rem;
        padding: 8px 13px;
    }

    .bubble-out {
        margin-right: 18px;
    }

    .bubble-face {
        width: 24px;
        height: 24px;
    }
}

/* ---------- About: layered photo collage ---------- */
.about-media.about-collage {
    aspect-ratio: auto;
    padding: 0 16% 13% 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    isolation: isolate;
}

/* Dotted patch peeking out behind the top right corner. */
.about-collage::before {
    content: '';
    position: absolute;
    top: -22px;
    right: 6%;
    z-index: -1;
    width: 34%;
    aspect-ratio: 1;
    border-radius: 28px;
    background: radial-gradient(circle at 2px 2px, rgba(182, 14, 28, 0.32) 2px, transparent 0) 0 0 / 16px 16px;
}

.collage-main {
    position: relative;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--cream-deep);
    box-shadow: var(--shadow-md);
}

.collage-main picture,
.collage-main img,
.collage-inset picture,
.collage-inset img {
    width: 100%;
    height: 100%;
}

.collage-main img,
.collage-inset img {
    object-fit: cover;
}

.collage-main img {
    object-position: 50% 48%;
}

.collage-main .about-stats {
    right: 24%;
}

.collage-inset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    aspect-ratio: 3 / 4;
    transform: rotate(3.5deg);
}

.collage-inset picture {
    display: block;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 22px;
    background: var(--cream-deep);
    box-shadow: var(--shadow-lg);
}

/* Taped-on label. */
.sticker {
    position: absolute;
    top: -16px;
    left: -26px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--amber);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--night);
    box-shadow: 0 10px 22px -12px rgba(32, 48, 68, 0.6);
    transform: rotate(-8deg);
}

.sticker::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 46px;
    height: 16px;
    margin-left: -23px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(4deg);
}

@media (max-width: 560px) {
    .collage-main .about-stats {
        right: 16px;
        bottom: auto;
        top: calc(100% + 12px);
        position: relative;
        left: auto;
        margin: 0;
    }

    .about-media.about-collage {
        padding: 0;
    }

    .collage-inset {
        display: none;
    }
}

/* ---------- Service photo focal points ---------- */
.service-media img[src*='svc-aupair'] {
    object-position: 50% 30%;
}

.service-media img[src*='svc-uni'] {
    object-position: 50% 42%;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
}

.about-media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--cream-deep);
    box-shadow: var(--shadow-md);
}

.about-media picture,
.about-media img {
    width: 100%;
    height: 100%;
}

.about-media img {
    object-fit: cover;
}

.about-chip {
    position: absolute;
    top: 18px;
    left: 18px;
    box-shadow: var(--shadow-md);
}

.about-chip .icon {
    color: var(--amber);
}

.about-stats {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.about-stat {
    text-align: center;
}

.about-stat + .about-stat {
    border-left: 1px solid var(--line);
}

.about-stat strong {
    display: block;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.about-stat span {
    display: block;
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.about-text {
    max-width: 64ch;
    font-size: 1.03rem;
    color: var(--muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 8px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.feature h3 {
    margin-bottom: 3px;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-media {
    position: relative;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: var(--cream-deep);
}

.service-media picture,
.service-media img {
    width: 100%;
    height: 100%;
}

.service-media img {
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(32, 48, 68, 0.5));
}

.service-media .pill {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.94);
}

.service-media .pill-gold .icon {
    color: var(--sun);
}

.service-num {
    position: absolute;
    right: 20px;
    bottom: 12px;
    z-index: 1;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 26px 26px;
}

.service-body h3 {
    font-size: 1.25rem;
}

.service-body p {
    font-size: 0.95rem;
    color: var(--muted);
}

.service-body .text-link {
    margin-top: auto;
    padding-top: 8px;
}

/* Wide screens: one row of four. */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .service-media {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 760px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Online classes ---------- */
/* The panel sits between two padded sections, so it needs none itself. */
.section.online {
    padding-block: 0;
}

.online-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(18px, 3vw, 40px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--night);
    color: rgba(255, 255, 255, 0.78);
}

.online-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(560px 320px at 92% -10%, rgba(182, 14, 28, 0.42), transparent 70%),
        radial-gradient(420px 300px at 40% 120%, rgba(238, 167, 109, 0.16), transparent 70%);
}

.online-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #eef0f7;
}

.online-media picture,
.online-media img {
    width: 100%;
    height: 100%;
}

.online-media img {
    object-fit: cover;
}

.online-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 12px clamp(0px, 2vw, 24px) 12px 0;
}

.online-copy h2 {
    color: #fff;
}

.online-copy .hl-gold {
    color: var(--peach);
}

.tag-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(238, 167, 109, 0.28);
    border-radius: 999px;
    background: rgba(238, 167, 109, 0.12);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peach);
}

.tag-dark .icon {
    width: 15px;
    height: 15px;
}

.perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    width: 100%;
}

.perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.perks .icon {
    width: 20px;
    height: 20px;
    color: var(--mint);
}

@media (max-width: 900px) {
    .online-panel {
        grid-template-columns: 1fr;
    }

    .online-copy {
        padding: 4px 8px 12px;
    }
}

@media (max-width: 520px) {
    .perks {
        grid-template-columns: 1fr;
    }
}

/* ---------- Courses ---------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.course-card {
    --lvl: var(--brand);
    --lvl-soft: var(--brand-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-a1 { --lvl: var(--mint-ink); --lvl-soft: var(--mint-soft); }
.course-a2 { --lvl: var(--sky-ink);  --lvl-soft: var(--sky-soft); }
.course-b1 { --lvl: var(--brand);    --lvl-soft: var(--brand-soft); }
.course-b2 { --lvl: var(--sun-ink);  --lvl-soft: var(--sun-soft); }

.course-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.course-level {
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--lvl);
}

.course-card .tile {
    --tile-bg: var(--lvl-soft);
    --tile-fg: var(--lvl);
}

.course-name h3 {
    font-size: 1.15rem;
}

.course-name p {
    margin-top: 2px;
    font-size: 0.875rem;
    color: var(--muted);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--line-strong);
}

.course-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.course-list .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--lvl);
}

.course-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.course-price strong {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.course-price span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.course-card.is-featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.course-card.is-featured:hover {
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
}

.course-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(182, 14, 28, 0.75);
}

.course-badge .icon {
    width: 14px;
    height: 14px;
}

@media (max-width: 1100px) {
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }
}

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Why us ---------- */
.why {
    position: relative;
    overflow: hidden;
}

.why-watermark {
    position: absolute;
    top: clamp(24px, 4vw, 48px);
    left: 0;
    right: 0;
    font-size: clamp(5rem, 17vw, 15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    text-align: center;
    color: rgba(32, 48, 68, 0.035);
    pointer-events: none;
    user-select: none;
}

.why .container {
    position: relative;
}

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

.why-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 290px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Accent line that draws in on hover. */
.why-card::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-wide {
    grid-column: span 2;
}

.why-num {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.why-text {
    margin-top: auto;
}

.why-text h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.why-text p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--muted);
}

.why-stat {
    font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--ink);
}

.why-stat span {
    color: var(--brand);
}

/* Stat cards: icon at the top, number and copy grouped at the bottom. */
.why-stat-card .why-stat {
    margin-top: auto;
}

.why-stat-card .why-text {
    margin-top: 0;
}

.why-photo {
    min-height: 320px;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
}

.why-photo > picture,
.why-photo > picture img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.why-photo > picture img {
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.why-photo:hover > picture img {
    transform: scale(1.05);
}

.why-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(32, 48, 68, 0.2) 0%, rgba(32, 48, 68, 0.55) 45%, rgba(18, 27, 40, 0.92) 100%);
}

.why-photo .why-num {
    color: rgba(255, 255, 255, 0.72);
}

.why-photo h3 {
    color: #fff;
}

.why-photo .why-text p {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.84);
}

.why-tag {
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}

.why-photo .tile {
    --tile-bg: rgba(255, 255, 255, 0.16);
    --tile-fg: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-wide {
        grid-column: auto;
    }

    .why-card {
        min-height: 0;
    }

    .why-photo {
        min-height: 340px;
    }
}

/* ---------- Instructors ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    --accent: var(--night);
    --accent-soft: var(--night-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-card.t-night { --accent: var(--night); --accent-soft: #dfe4eb; }
.team-card.t-sun   { --accent: var(--sun);   --accent-soft: #f6e8d3; }
.team-card.t-brand { --accent: var(--brand); --accent-soft: #f6dcdd; }
.team-card.t-mint  { --accent: #2e9c7c;      --accent-soft: #d6f0e7; }

.team-banner {
    width: 100%;
    height: 88px;
    background:
        radial-gradient(circle at 1px 1px, rgba(32, 48, 68, 0.12) 1px, transparent 0) 0 0 / 14px 14px,
        linear-gradient(135deg, var(--accent-soft), #fff 90%);
}

.team-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-top: -44px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.team-flag {
    position: absolute;
    right: -6px;
    bottom: 2px;
    width: 28px;
    height: 19px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.team-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 22px 22px;
}

.team-name {
    font-size: 1.05rem;
}

.team-role {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
}

.team-bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
}

.team-levels {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.level-chip {
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

.team-foot {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn .icon {
    width: 18px;
    height: 18px;
}

.icon-btn:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Testimonials ---------- */
.rating-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    max-width: 940px;
    margin: 0 auto 40px;
    padding: 22px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 32px;
    border-right: 1px solid var(--line);
}

.rating-score > strong {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.rating-score p {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--amber);
}

.stars .icon {
    width: 18px;
    height: 18px;
}

.rating-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rating-stats li {
    padding: 0 8px;
    text-align: center;
}

.rating-stats li + li {
    border-left: 1px solid var(--line);
}

.rating-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.rating-stats span {
    font-size: 0.8125rem;
    color: var(--muted);
}

.t-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 24px) / 3);
    gap: 24px;
    margin: -8px -4px -20px;
    padding: 8px 4px 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
}

.t-track::-webkit-scrollbar {
    display: none;
}

.t-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    scroll-snap-align: start;
}

.t-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t-text {
    flex: 1;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text);
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.t-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.t-av-1 { background: var(--brand); }
.t-av-2 { background: var(--sun); }
.t-av-3 { background: var(--night); }
.t-av-4 { background: #2e9c7c; }
.t-av-5 { background: var(--sky-ink); }

.t-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.t-role {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--muted);
}

.t-level {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
}

.t-level.is-gold {
    background: var(--sun-soft);
    color: var(--sun-ink);
}

.t-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}

.round-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.round-btn .icon {
    width: 20px;
    height: 20px;
}

.round-btn:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.round-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

.t-dots {
    display: flex;
}

.t-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.t-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: width 0.35s var(--ease), background-color 0.3s;
}

.t-dot[aria-current='true']::before {
    width: 24px;
    background: var(--brand);
}

@media (max-width: 1100px) {
    .t-track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 760px) {
    .rating-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px;
    }

    .rating-score {
        justify-content: center;
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .rating-stats strong {
        font-size: 1.25rem;
    }

    .rating-stats span {
        display: block;
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

@media (max-width: 640px) {
    .t-track {
        grid-auto-columns: 88%;
        gap: 16px;
    }

    .t-card {
        padding: 22px;
    }
}

/* ---------- Enrol ---------- */
.enroll-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.enroll-info {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(28px, 4vw, 56px);
    overflow: hidden;
    background: var(--night);
    color: rgba(255, 255, 255, 0.75);
}

.enroll-info::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(32, 48, 68, 0.9), rgba(32, 48, 68, 0.72) 60%, rgba(32, 48, 68, 0.9));
}

.enroll-info-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% center;
}

.enroll-info h2 {
    font-size: clamp(1.875rem, 1.3rem + 2vw, 2.625rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #fff;
}

.enroll-info .hl-gold {
    color: var(--peach);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-item .tile {
    --tile-bg: rgba(238, 167, 109, 0.14);
    --tile-fg: var(--peach);
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.contact-item .tile .icon {
    width: 19px;
    height: 19px;
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    overflow-wrap: anywhere;
}

a.contact-value:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-row li + li {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-row strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.trust-row span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.enroll-form-card {
    padding: clamp(24px, 4vw, 52px);
}

.form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.form-head h3 {
    font-size: 1.25rem;
}

.form-head p {
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .enroll-shell {
        grid-template-columns: 1fr;
    }
}

/* ---------- Forms ---------- */
.enroll-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
}

.req {
    color: var(--brand);
}

.opt {
    font-weight: 400;
    color: var(--muted);
}

.control {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-field);
    background: var(--cream);
    font-size: 0.9375rem;
    color: var(--ink);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.control::placeholder {
    color: var(--faint);
}

.control:hover {
    border-color: #d5c5be;
}

.control:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(182, 14, 28, 0.12);
}

.control[aria-invalid='true'] {
    border-color: #c83333;
    background: #fff7f7;
}

select.control {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616a79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
    text-overflow: ellipsis;
}

/* The disabled first option acts as a placeholder. */
select.control:invalid,
select.control.is-empty {
    color: var(--faint);
}

select.control option {
    color: var(--ink);
}

textarea.control {
    min-height: 104px;
    padding: 14px 16px;
    line-height: 1.55;
    resize: vertical;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}

.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--brand);
    cursor: pointer;
}

/* Honeypot: invisible to people, tempting to bots. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #f1c6c6;
    border-radius: 14px;
    background: #fdf1f1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #8f1d1d;
}

.form-status .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.btn-submit {
    min-height: 54px;
    font-size: 1rem;
}

.btn-submit .spinner {
    display: none;
}

.btn-submit.is-loading .spinner {
    display: block;
    animation: spin 0.9s linear infinite;
}

.btn-submit.is-loading .icon-trail {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.form-note .icon {
    width: 16px;
    height: 16px;
    color: var(--mint-ink);
}

.form-alt {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    text-align: center;
    color: var(--muted);
}

.form-alt a {
    font-weight: 600;
    color: var(--brand);
}

.form-alt a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 0 4px;
    text-align: center;
    outline: none;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 8px var(--brand-soft);
    animation: pop 0.5s var(--ease);
}

.success-icon .icon {
    width: 30px;
    height: 30px;
}

@keyframes pop {
    from { transform: scale(0.6); opacity: 0; }
}

.form-success h3 {
    margin-top: 8px;
    font-size: 1.5rem;
}

.success-text {
    max-width: 430px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.success-text strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.success-ref {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--cream);
}

.success-ref span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.success-ref strong {
    font-family: var(--mono);
    font-size: 1.375rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    user-select: all;
}

.success-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 460px;
    padding: 12px 14px;
    border: 1px solid #c4ebdc;
    border-radius: 14px;
    background: #effaf5;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    color: #1d6b53;
}

.success-hint .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */
/* flow-root keeps the CTA's negative margin from collapsing into the
   footer's, so the strip really overlaps the footer's top edge. */
.site-footer {
    display: flow-root;
    margin-top: clamp(84px, 8vw, 110px);
    background: var(--night);
    color: rgba(255, 255, 255, 0.7);
}

.footer-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
    margin-top: calc(-1 * clamp(52px, 6vw, 64px));
    padding: clamp(22px, 3vw, 32px) clamp(22px, 4vw, 40px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 30px 60px -30px rgba(182, 14, 28, 0.7);
}

.footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.16) 0 90px, transparent 91px),
        radial-gradient(circle at 80% 120%, rgba(255, 255, 255, 0.1) 0 120px, transparent 121px);
}

.footer-cta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-cta .tile {
    --tile-bg: rgba(255, 255, 255, 0.16);
    --tile-fg: #fff;
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.footer-cta .tile .icon {
    width: 26px;
    height: 26px;
}

.footer-cta-heading {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.footer-cta-sub {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-block: clamp(48px, 6vw, 72px) 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo img {
    width: 62px;
    height: 62px;
}

.footer-logo-name {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
}

.footer-logo-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--peach);
}

.footer-desc {
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.socials {
    display: flex;
    gap: 10px;
}

.social {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transition: background-color 0.2s, border-color 0.2s;
}

.social .icon {
    width: 19px;
    height: 19px;
}

.social:hover {
    border-color: var(--brand);
    background: var(--brand);
}

.social-wa:hover {
    border-color: #1fa855;
    background: #1fa855;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-pill .icon {
    width: 15px;
    height: 15px;
    color: var(--peach);
}

.footer-title {
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

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

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s, transform 0.25s var(--ease);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-links .icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.45);
}

.lvl-tag {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
}

.lvl-tag.is-hot {
    background: var(--brand);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-contact .tile {
    --tile-bg: rgba(255, 255, 255, 0.06);
    --tile-fg: var(--peach);
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.footer-contact .tile .icon {
    width: 16px;
    height: 16px;
}

.footer-contact span,
.footer-contact a {
    padding-top: 4px;
    overflow-wrap: anywhere;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: 22px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .flag-de {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.footer-tag em {
    font-style: normal;
    font-weight: 600;
    color: var(--peach);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-cta .btn {
        width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Enrolment dialog ---------- */
.enroll-dialog {
    width: min(660px, calc(100vw - 32px));
    max-width: none;
    max-height: min(92dvh, 920px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text);
    box-shadow: 0 40px 120px -30px rgba(15, 23, 35, 0.6);
}

.enroll-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: dialog-in 0.3s var(--ease);
}

.enroll-dialog::backdrop {
    background: rgba(20, 30, 44, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.enroll-dialog[open]::backdrop {
    animation: fade-in 0.3s ease;
}

.dialog-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 18px 24px;
    border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.dialog-head p {
    font-size: 0.8125rem;
    color: var(--muted);
}

.dialog-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
    color: var(--ink);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.dialog-close .icon {
    width: 20px;
    height: 20px;
}

.dialog-close:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.dialog-body {
    padding: 22px 24px 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dialog-context {
    margin-bottom: 18px;
}

html.modal-open {
    overflow: hidden;
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

@keyframes sheet-in {
    from { transform: translateY(100%); }
}

@keyframes fade-in {
    from { opacity: 0; }
}

/* Bottom sheet on phones. */
@media (max-width: 600px) {
    .enroll-dialog {
        width: 100vw;
        max-height: 94dvh;
        margin: auto 0 0;
        border-radius: 26px 26px 0 0;
    }

    .enroll-dialog[open] {
        animation: sheet-in 0.35s var(--ease);
    }

    .dialog-body {
        padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    }
}

/* ---------- Scroll reveal ----------
   html.reveal is set by the inline script in <head> and removed again if
   main.js never starts, so content can't get stuck invisible. The reveal
   uses the `translate` property, which leaves `transform` free for the
   hover lift on cards. */
.reveal [data-reveal] {
    opacity: 0;
}

.reveal [data-reveal].is-visible {
    animation: reveal-up 0.8s var(--ease) var(--delay, 0s) both;
}

@keyframes reveal-up {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: none; }
}

[data-stagger] > :nth-child(2) { --delay: 0.08s; }
[data-stagger] > :nth-child(3) { --delay: 0.16s; }
[data-stagger] > :nth-child(4) { --delay: 0.24s; }
[data-stagger] > :nth-child(5) { --delay: 0.32s; }
[data-stagger] > :nth-child(6) { --delay: 0.4s; }

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal [data-reveal] {
        opacity: 1;
    }

    .hero-slide {
        transform: none;
    }
}
