/*
 * Public site: header, footer and page builder blocks (Hedvig design language).
 */

.muted { color: var(--muted); }
.container--narrow { max-width: var(--container-narrow); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text-strong); color: var(--surface); }
.skip-link:focus { left: 8px; }

.draft-banner { padding: 10px var(--gutter); background: var(--accent-2); color: #fff; font: 500 14px var(--font-ui); text-align: center; }

/* ------------------------------------------------------------------ header & footer */

.site-header {
    position: sticky; top: 0; z-index: 20;
    padding: 12px var(--gutter);
    background: rgba(238, 238, 238, .8);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--container); margin: 0 auto; }
.site-header__brand { display: block; flex: none; line-height: 0; }
.site-header__brand img { display: block; width: auto; height: 60px; }
@media (max-width: 640px) { .site-header__brand img { height: 46px; } }

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

.site-header__inner > .site-nav { margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: var(--surface); }
.site-nav__item { position: relative; }
.site-nav__link {
    display: block; padding: 8px 16px; border-radius: 999px; cursor: pointer; list-style: none;
    font: 500 .9375rem var(--font-ui); color: var(--text-soft); text-decoration: none; white-space: nowrap;
}
.site-nav__link::-webkit-details-marker { display: none; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { background: var(--bg); color: var(--text-strong); }
.has-children .site-nav__link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.site-nav__submenu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; z-index: 30;
    list-style: none; margin: 0; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow);
}
.site-nav__submenu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.site-nav__submenu a:hover { background: var(--bg); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--text-strong); transition: transform .2s var(--ease); }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .site-header__inner { flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .site-header__inner > .site-nav { display: none; order: 3; width: 100%; margin: 0; }
    .site-header__inner > .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; border-radius: 20px; padding: 8px; }
    .site-nav__link { padding: 12px 14px; border-radius: 12px; font-size: 1.0625rem; }
    .site-nav__submenu { position: static; box-shadow: none; padding: 0 0 0 12px; }
}

.lang-menu { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.lang-menu a { padding: 6px 12px; border-radius: 999px; font: 500 13px var(--font-ui); text-decoration: none; color: var(--muted); }
.lang-menu a[aria-current="true"] { background: var(--text-strong); color: var(--surface); }

.site-footer { margin-top: var(--space-7); padding-block: var(--space-6) var(--space-4); background: var(--dark); color: #B9C0CC; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5); }
.site-footer__inner p { margin: 0 0 6px; }
.site-footer__brand { font: 600 1.75rem/1.1 var(--font-sans); letter-spacing: -0.03em; color: var(--surface); margin-bottom: 14px !important; }
.site-footer__logo { margin: 0 0 18px !important; line-height: 0; }
.site-footer__logo img { display: block; width: auto; height: 56px; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-footer__menu ul, .site-footer__legal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__heading { font-weight: 600; color: var(--surface); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__bottom { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--dark-2); font-size: 14px; }
.site-footer__bottom p { margin: 0; }

/* ------------------------------------------------------------------ shared */

.section { padding-block: clamp(4rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }

.section-heading { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-title { margin-bottom: 0; }
.section-intro { margin: var(--space-3) auto 0; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }

.eyebrow { margin: 0 0 var(--space-3); color: var(--accent); font: 600 .8125rem var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--pill {
    display: inline-flex; padding: 6px 14px; border-radius: 999px;
    background: var(--surface); color: var(--text-soft); letter-spacing: .02em; text-transform: none; font-size: .875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.button-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }
.hero--center .button-group { justify-content: center; }
.button--ghost { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.button--ghost:hover { background: var(--surface); opacity: 1; }
.button--inverse { background: var(--surface); color: var(--text-strong); }
.button--block { width: 100%; }

.badge {
    display: inline-flex; padding: 4px 10px; border-radius: 999px;
    background: #E0F2FF; color: #0072C0; font: 600 12px var(--font-ui);
}

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

.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 6vw, 4rem); }
.hero__title { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: var(--space-4); max-width: 14ch; }
.hero--center .hero__title { margin-inline: auto; }
.hero__text { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--muted); max-width: 36em; margin: 0; }
.hero--center { text-align: center; }
.hero--center .hero__text { margin-inline: auto; }
.hero--center .hero__media { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero--split .hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .hero--split .hero__inner { grid-template-columns: 1fr; } }

/* Image / slider. The viewport clips the sliding track; its shape depends on the layout. */
.hero-slider { position: relative; }
.hero-slider__viewport { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); aspect-ratio: 16 / 9; }
.hero--split .hero-slider__viewport { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .hero--split .hero-slider__viewport { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .hero--center .hero-slider__viewport { aspect-ratio: 4 / 5; } }
/* Full browser width: edge to edge, no rounded corners. */
.hero--full { padding-bottom: 0; }
.hero--full .hero__media { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero--full .hero-slider__viewport { border-radius: 0; aspect-ratio: auto; height: clamp(420px, 78vh, 860px); }
@media (max-width: 640px) { .hero--full .hero-slider__viewport { height: 72vh; } }

/* Images only (no title or text): no space above, the image starts right under the header. */
.hero--media-only { padding-top: 0; }
.hero--media-only .hero__media { margin-top: 0; }
.hero--media-only.hero--split .hero__inner { grid-template-columns: 1fr; }
.hero--media-only:not(.hero--full) { padding-top: 12px; }

/* Title and description of each image, on the image above the buttons / dots; they slide with it. */
.hero-slider__slide { position: relative; }
.hero-slider__slide--captioned::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(8, 12, 18, .72), rgba(8, 12, 18, .25) 45%, rgba(8, 12, 18, 0) 70%);
}
.hero-slider__caption {
    position: absolute; left: 50%; bottom: clamp(56px, 8vw, 76px); z-index: 1; transform: translateX(-50%);
    width: min(760px, calc(100% - 48px)); text-align: center; color: #fff;
}
.hero-slider:not([data-slider]) .hero-slider__caption { bottom: clamp(24px, 4vw, 44px); }
.hero-slider__caption .hero-actions { margin-top: 20px; }
.hero-slider__caption-title { margin: 0; font: 600 clamp(1.375rem, 3.4vw, 2.5rem)/1.15 var(--font-sans); letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.hero-slider__caption-text { margin: 8px 0 0; font-size: clamp(.9375rem, 1.6vw, 1.125rem); opacity: .92; }
/* Height chosen in the editor (otherwise the sizes above apply). */
.hero .hero-slider--sized .hero-slider__viewport { aspect-ratio: auto; height: max(240px, var(--hero-height)); }

.hero-slider__track { display: flex; height: 100%; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.hero-slider__slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 8s linear; }
/* Slow zoom on the visible image while it is shown. */
.hero-slider[data-slider] .hero-slider__slide.is-active img { transform: scale(1.06); }

/* Bottom centre: buttons over the image, dots below them. A soft shade keeps them readable. */
.hero-slider--actions .hero-slider__viewport::after, .hero-slider[data-slider] .hero-slider__viewport::after {
    content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none;
    background: linear-gradient(to top, rgba(8, 12, 18, .55), rgba(8, 12, 18, 0));
}
.hero-slider__bottom {
    position: absolute; left: 50%; bottom: clamp(18px, 4vw, 40px); transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px);
}
/* Two independent buttons side by side (no shared capsule). */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Hero buttons a little larger than the default ones */
.hero-actions .button { padding: 15px 30px; font-size: 1.0625rem; box-shadow: 0 8px 28px rgba(8, 12, 18, .22); }
.button--light { background: #fff; color: var(--text-strong); }
.button--light:hover { opacity: 1; background: #F2F2F2; }
/* Transparent button readable on any photo: its own light frosted background. */
.button--glass {
    background: rgba(255, 255, 255, .16); color: #fff;
    backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.hero-actions .button--glass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 28px rgba(8, 12, 18, .22); }
.button--glass:hover { opacity: 1; background: rgba(255, 255, 255, .26); }
.hero-actions .button:focus-visible, .hero-slider button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 520px) {
    .hero-actions { flex-direction: column; width: min(280px, 100%); gap: 10px; }
    .hero-actions .button { width: 100%; }
}

.hero-slider__dots { display: flex; gap: 8px; }
.hero-slider__dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .5); transition: width .4s var(--ease), background .3s;
}
.hero-slider__dot[aria-current="true"] { width: 28px; background: #fff; }
.hero-slider__arrow, .hero-slider__pause {
    position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; cursor: pointer; color: #fff;
    background: rgba(8, 12, 18, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: opacity .3s, background .3s;
}
.hero-slider__arrow:hover, .hero-slider__pause:hover { background: rgba(8, 12, 18, .45); }
.hero-slider__arrow { top: 50%; transform: translateY(-50%); }
.hero-slider__arrow--prev { left: clamp(10px, 2vw, 24px); }
.hero-slider__arrow--next { right: clamp(10px, 2vw, 24px); }
.hero-slider__pause { right: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vw, 24px); width: 36px; height: 36px; }
.hero-slider__pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero-slider__pause[aria-pressed="true"] .hero-slider__pause-icon { border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; width: 0; height: 0; margin-left: 3px; }
/* Arrows appear on hover with a mouse; always visible on touch screens. */
@media (hover: hover) {
    .hero-slider__arrow { opacity: 0; }
    .hero-slider:hover .hero-slider__arrow, .hero-slider:focus-within .hero-slider__arrow { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider__track, .hero-slider__slide img { transition: none; }
    .hero-slider[data-slider] .hero-slider__slide.is-active img { transform: none; }
}

/* ------------------------------------------------------------------ cards */

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.tile {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:has(.tile__link):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; flex: 1; }
.tile__title { margin: 0; font-size: 1.25rem; }
.tile__link { text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tile__text { margin: 0; color: var(--muted); }
.tile__more { margin-top: auto; padding-top: 6px; font: 600 .9375rem var(--font-ui); color: var(--text-strong); }

/* ------------------------------------------------------------------ features */

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.feature__icon-img { width: 30px; height: 30px; object-fit: contain; }
.tile__icon { margin-bottom: 4px; }
.tile__media + .tile__body .tile__icon { margin-top: -50px; position: relative; background: var(--surface); box-shadow: var(--shadow); }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--bg); color: var(--accent); }
.feature__title { font-size: 1.25rem; margin-bottom: 8px; }
.feature__text { margin: 0; color: var(--muted); }
/* A long word without spaces must not run out of its card */
:is(.tile, .feature, .testimonial, .plan, .compare__col, .flip__content) :is(p, h2, h3) { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ comparison */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__col { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); }
.compare__col--highlight { background: var(--dark); color: #DDE2EA; }
.compare__label { margin: 0 0 16px; font: 600 .875rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare__col--highlight .compare__label { color: var(--accent); }
.compare__media { margin-bottom: 20px; overflow: hidden; border-radius: var(--radius); }
.compare__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare__text { margin: 0; font-size: 1.0625rem; }

/* ------------------------------------------------------------------ pricing */

.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 960px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); }
.plan--highlight { background: var(--dark); color: #DDE2EA; }
.plan--highlight .plan__name, .plan--highlight .plan__price { color: var(--surface); }
.plan__name { font-size: 1.125rem; margin-bottom: 12px; }
.plan__price { margin: 0 0 12px; font: 600 clamp(2.25rem, 5vw, 3rem)/1 var(--font-sans); letter-spacing: -0.03em; color: var(--text-strong); }
.plan__price span { font: 400 1rem var(--font-ui); letter-spacing: 0; color: var(--muted); }
.plan__description { color: var(--muted); }
.plan__features { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 10px; }
.plan__features li { position: relative; padding-left: 28px; }
.plan__features li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan .button { margin-top: auto; }
.plan--highlight .button--ghost { color: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.plan--highlight .button:not(.button--ghost) { background: var(--surface); color: var(--text-strong); }

/* ------------------------------------------------------------------ testimonials */

.testimonials { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 20px; }
.testimonial { break-inside: avoid; margin-bottom: 20px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.testimonial__quote { margin: 0 0 20px; }
.testimonial__quote p { margin: 0; font-size: 1.0625rem; color: var(--text-soft); }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__author > span:last-child { display: flex; flex-direction: column; line-height: 1.3; font-size: .9375rem; }
.testimonial__avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ------------------------------------------------------------------ call to action */

.cta {
    display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
    padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden;
}
.cta--with-media { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .cta--with-media { grid-template-columns: 1fr; } }
.cta { background: var(--cta-bg, var(--dark)); }
.cta--on-dark { color: #E4E8EE; }
/* No colour: the banner blends into the section (its text follows the section). */
.cta--plain { padding-inline: 0; }
/* Photo behind the banner, shaded for readability */
.cta--photo { position: relative; background-image: var(--cta-image); background-size: cover; background-position: center; }
.cta--photo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.cta--overlay-soft::before { background: rgba(8, 12, 18, .3); }
.cta--overlay-medium::before { background: rgba(8, 12, 18, .52); }
.cta--overlay-strong::before { background: rgba(8, 12, 18, .72); }
.cta--photo > * { position: relative; z-index: 1; }
.cta--on-dark .cta__title { color: #fff; }
.cta--on-light { --text: #111111; --text-strong: #000000; --text-soft: #1F1F1F; --muted: #5F6672; color: var(--text); }
.cta__title { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.cta__text { font-size: 1.125rem; opacity: .85; max-width: 40ch; margin-bottom: var(--space-4); }
.cta__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------------ text, image, faq */

.prose { margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; }
.prose--narrow { max-width: 720px; }
.prose--wide { max-width: 980px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .6em; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.375rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 1.25rem; color: var(--text-soft); }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose h4 { font-size: 1.125rem; margin: 1.3em 0 .4em; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.prose .text-center { text-align: center; }
.prose .text-right { text-align: right; }
.prose .text-justify { text-align: justify; }

.figure { margin: 0 auto; }
.figure--narrow { max-width: 760px; }
.figure img { width: 100%; border-radius: var(--radius-lg); }
.figure--full img { border-radius: 0; }
.figure figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .9375rem; }

.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--surface); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 24px; cursor: pointer; list-style: none; font: 600 1.0625rem var(--font-sans); color: var(--text-strong);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 400 1.5rem/1 var(--font-ui); color: var(--accent); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ------------------------------------------------------------------ journal */

.tile__meta { color: var(--muted); font: 500 .8125rem var(--font-ui); }
.empty-state { text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: var(--space-6); }

.article__header { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.article__back { margin-bottom: var(--space-4); font: 500 .9375rem var(--font-ui); }
.article__back a { color: var(--muted); text-decoration: none; }
.article__title { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; }
.article__lead { color: var(--muted); font-size: 1.25rem; max-width: 40em; margin: var(--space-3) auto 0; }

/* ------------------------------------------------------------------ shop */

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--space-5); }
.shop-toolbar__current { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: 1.125rem; }
.shop-toolbar__current a { color: var(--accent); font-size: .9375rem; }

/* Category tiles: four per row on desktop, two on phones; square image with the name below. */
.shop-categories { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.shop-categories__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.03em; margin: 0 0 var(--space-4); }
.category-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
@media (max-width: 760px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.category-tile { display: grid; gap: 12px; text-decoration: none; color: var(--text-strong); }
.category-tile__media {
    display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
    border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 2px transparent; transition: box-shadow .3s;
}
.category-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-tile:hover .category-tile__media img { transform: scale(1.04); }
.category-tile__initial { font: 600 clamp(2.5rem, 6vw, 4rem) var(--font-sans); color: var(--muted); }
.category-tile__media { position: relative; }
.category-tile__name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    font: 600 1.0625rem/1.25 var(--font-sans); color: var(--text-strong); text-align: center;
    transition: background .3s;
}
.category-tile:hover .category-tile__name { background: rgba(255, 255, 255, .86); }
@media (max-width: 520px) { .category-tile__name { padding: 9px 10px; font-size: .9375rem; } }
.category-tile[aria-current="page"] .category-tile__media { box-shadow: 0 0 0 2px var(--text-strong); }
.category-tile:focus-visible { outline: none; }
.category-tile:focus-visible .category-tile__media { box-shadow: 0 0 0 3px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font: 500 .9375rem var(--font-ui); color: var(--text-soft); }
.chip[aria-current="page"] { background: var(--text-strong); color: var(--surface); }
.sort-form select, .field select, .qty-input {
    padding: 10px 14px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text);
}

.product-card .tile__media { aspect-ratio: 1 / 1; position: relative; }
.product-card .tile__body { padding: 16px 18px 20px; gap: 0; }
.product-card .tile__title { font-size: 1.0625rem; line-height: 1.35; }
/* Price on its own line, pinned to the bottom right of the card (same height across a row). */
.product-card__price { margin: auto 0 0; padding-top: 12px; align-self: stretch; display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; }
.product-card__price .product-card__was { order: -1; }
.product-card__amount { font: 600 1.25rem/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--text-strong); }
.product-card__was { font: 500 .9375rem var(--font-ui); color: var(--muted); }
.product-card__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__flag { padding: 4px 10px; border-radius: 999px; background: var(--dark); color: #fff; font: 600 12px var(--font-ui); letter-spacing: .02em; }
.product-card__flags--right { left: auto; right: 12px; justify-content: flex-end; }
.product-card__ribbon {
    position: absolute; top: 20px; left: -40px; z-index: 1; width: 150px; padding: 6px 0; transform: rotate(-45deg);
    background: var(--accent); color: #fff; text-align: center; font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(8, 12, 18, .2);
}
.product-card__flag--sale { background: var(--accent-2); }
.product-grid { gap: 16px; }
/* "Vous aimerez aussi": always three columns on desktop, so one or two products do not stretch. */
@media (min-width: 900px) { .product-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.breadcrumb { display: flex; gap: 8px; margin-bottom: var(--space-4); font: 500 .9375rem var(--font-ui); color: var(--muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text-strong); }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.product__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product__caption { margin: 10px 4px 0; color: var(--muted); font-size: .9375rem; text-align: center; }
.product__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.product__thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.product__thumbs button[aria-current="true"] { border-color: var(--text-strong); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: 90px; }
.product__name { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-3); }
.product__price { margin: 0; font: 600 1.5rem var(--font-sans); display: flex; gap: 12px; align-items: baseline; }
.product__lead { margin: var(--space-4) 0; font-size: 1.125rem; color: var(--text-soft); }
/* Full width below the photos and buying options; a quiet panel just lighter than the page. */
.product__description {
    max-width: none; margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .45);
}
.product__description > :first-child { margin-top: 0; }
.product__description > :last-child { margin-bottom: 0; }

.buy-form { display: grid; gap: 14px; margin: var(--space-4) 0; }
.buy-form .field { display: grid; gap: 6px; font-weight: 500; }
.buy-form__personalization input {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text);
}
.buy-form__personalization input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 153, 255, .15); }
.buy-form__personalization p { margin: 0; font-weight: 400; display: flex; justify-content: space-between; gap: 12px; }
.buy-form__variant-description { margin: -4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--text-soft); font-size: .9375rem; }
.buy-form__row { display: flex; gap: 10px; }
.buy-form__row .button { flex: 1; }
.qty-input { width: 90px; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--surface); color: var(--text-soft); }
/* "Dates bientôt annoncées" (event published without dates) */
.badge--soon { background: #FFEDE3; color: #B54200; }
.notice--soon { display: grid; gap: 12px; justify-items: start; }
.notice--soon p { margin: 0; }

/* ------------------------------------------------------------------ workshops & courses */

.chips--center { justify-content: center; margin-bottom: var(--space-5); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.event-card {
    position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden;
    border-radius: var(--radius-lg); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width: 760px) { .event-card { grid-template-columns: 1fr; } }
.event-card__media { min-height: 220px; background: var(--bg); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.event-card__meta { margin: 0; display: flex; gap: 12px; align-items: center; color: var(--muted); font: 500 .875rem var(--font-ui); }
.event-card__title { margin: 0; font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
.event-card__price { margin: auto 0 0; font: 600 1.125rem var(--font-ui); }

.date-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.date-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: .9375rem; }
.date-list li:first-letter, .session-option__date strong:first-letter { text-transform: uppercase; }
.seats { color: #16794A; font: 600 .8125rem var(--font-ui); white-space: nowrap; }
.seats--low { color: var(--accent-2); }
.seats--full { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: var(--space-4) 0; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.facts dt { color: var(--muted); font: 500 .8125rem var(--font-ui); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.h3 { font-size: 1.25rem; margin: var(--space-4) 0 var(--space-3); }

.session-picker { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.session-option {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 14px 16px; border: 2px solid transparent; border-radius: 14px; background: var(--surface); cursor: pointer;
}
.session-option:has(input:checked) { border-color: var(--text-strong); }
.session-option.is-full { opacity: .5; cursor: not-allowed; }
.session-option input { accent-color: var(--text-strong); width: 18px; height: 18px; }
.session-option__date { display: flex; flex-direction: column; font-size: .9375rem; }

/* ------------------------------------------------------------------ cart */

.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text-strong); }
.site-header__inner > .site-nav + .cart-link, .site-header__inner > .site-header__brand + .cart-link { margin-left: auto; }
.site-header__inner > .site-nav { margin-right: 4px; }
.cart-link__count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #fff; font: 600 11px/20px var(--font-ui); text-align: center;
}

.cart { margin-bottom: var(--space-5); }
.cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line {
    display: grid; grid-template-columns: 96px 1fr auto auto; gap: 20px; align-items: center;
    padding: 16px; border-radius: var(--radius); background: var(--surface);
}
@media (max-width: 640px) {
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-line__qty, .cart-line__total { grid-column: 2; }
}
.cart-line__media { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line__name { font-weight: 600; text-decoration: none; color: var(--text-strong); }
.cart-line__qty { display: flex; align-items: center; gap: 12px; }
.cart-line__total { font: 600 1.0625rem var(--font-ui); white-space: nowrap; }
.link-button { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.link-muted { color: var(--muted); text-decoration: none; font-size: .9375rem; text-align: center; }

.cart-summary { max-width: 420px; margin-left: auto; padding: 24px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 16px; }
.cart-summary dl { margin: 0; display: grid; gap: 8px; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dd { margin: 0; font-weight: 600; }
.cart-summary dl > div:first-child { font-size: 1.125rem; }

/* ------------------------------------------------------------------ forms & checkout */

.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field label { font: 500 .9375rem var(--font-ui); color: var(--text-soft); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 12px;
    background: var(--surface); font: inherit; color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 153, 255, .15); }
.form-field.has-error input, .form-field.has-error select { border-color: #D93025; }
.form-field__error { margin: 0; color: #C5221F; font: 500 .875rem var(--font-ui); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--text-strong); flex: none; }
.check.has-error { color: #C5221F; }
.notice--error { background: #FDECEA; color: #C5221F; }

.checkout__title { margin-bottom: var(--space-4); }
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.checkout-step { border: 0; margin: 0 0 20px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); }
.checkout-step legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 16px; font: 600 1.25rem var(--font-sans); color: var(--text-strong); }
.checkout-step legend + * { clear: both; }
.checkout-step legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text-strong); color: var(--surface); font-size: .875rem; }
.checkout-shipping-address { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--bg); }

.choice-list { display: grid; gap: 10px; margin-bottom: 16px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--bg); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--text-strong); }
.choice input { accent-color: var(--text-strong); width: 18px; height: 18px; }
.choice .small { grid-column: 2 / -1; }

.checkout__summary { position: sticky; top: 90px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.checkout__summary .h3 { margin-top: 0; }
.checkout__secure { text-align: center; margin: 10px 0 0; }
.summary-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg); font-size: .9375rem; }
.summary-totals { margin: 0 0 12px; display: grid; gap: 8px; }
.summary-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-totals dd { margin: 0; font-weight: 600; }
.summary-totals__total { padding-top: 10px; border-top: 1px solid var(--bg); font-size: 1.25rem; }

.order-box { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); }
.order-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.address { font-style: normal; color: var(--text-soft); }
.test-payment { text-align: center; }

/* ------------------------------------------------------------------ account */

.auth-box { max-width: 460px; margin: 0 auto; padding: clamp(24px, 5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); }
.auth-box__title { font-size: 2rem; margin-bottom: var(--space-3); }
.auth-box__aside { text-align: right; margin: -6px 0 16px; font-size: .9375rem; }
.auth-box__footer { margin: var(--space-4) 0 0; text-align: center; color: var(--muted); }
.auth-box a, .account-grid a { color: var(--accent); }
.account-nav { justify-content: center; margin-bottom: var(--space-5); }
.account-nav form { display: inline; }
.chip--button { border: 0; cursor: pointer; font: 500 .9375rem var(--font-ui); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }

/* ------------------------------------------------------------------ online courses */

.list-heading { margin: var(--space-5) 0 var(--space-4); }
.online-grid { margin-bottom: var(--space-4); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.curriculum { list-style: none; margin: 0; padding: 0; counter-reset: lesson; }
.curriculum li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.curriculum--nav li { padding: 0; border: 0; }
.curriculum--nav a { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text-soft); }
.curriculum--nav a:hover { background: var(--bg); }
.curriculum--nav .is-current a { background: var(--text-strong); color: var(--surface); }
.curriculum__check { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg); color: var(--text-soft); font: 600 12px var(--font-ui); }
.curriculum--nav .is-done .curriculum__check { background: #E3F5EA; color: #16794A; }
.curriculum--nav .is-current .curriculum__check { background: rgba(255, 255, 255, .15); color: #fff; }
.player { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } }
.player__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: var(--space-4); }
.player__side { position: sticky; top: 90px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.progress { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* ------------------------------------------------------------------ contact & newsletter */

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__info a { color: var(--accent); }

.newsletter {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
    margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--dark-2);
}
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter p { margin: 0; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input[type="email"] {
    flex: 1; min-width: 200px; padding: 14px 18px; border: 1px solid var(--dark-2); border-radius: 999px;
    background: var(--dark-2); color: var(--surface); font: inherit;
}
.newsletter__form input::placeholder { color: #6B7385; }
.newsletter__notice { color: var(--surface); font-weight: 500; }

/* ------------------------------------------------------------------ scroll reveal (site.js adds .is-visible) */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ block design options (App\Services\BlockDesign) */

.pb { position: relative; }
.pb--bg { background-color: var(--pb-bg); }
.pb--image { background-image: var(--pb-image); background-size: cover; background-position: center; }
.pb--image::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.pb--overlay-soft::before { background: rgba(8, 12, 18, .28); }
.pb--overlay-medium::before { background: rgba(8, 12, 18, .5); }
.pb--overlay-strong::before { background: rgba(8, 12, 18, .7); }
.pb--image > * { position: relative; z-index: 1; }
/* How the section photo fills the section, and where it is anchored */
.pb--fit-contain { background-size: contain; background-repeat: no-repeat; }
.pb--fit-repeat { background-size: auto; background-repeat: repeat; }
.pb--fit-fixed { background-attachment: fixed; }
@media (hover: none) { .pb--fit-fixed { background-attachment: scroll; } } /* not supported on phones */
.pb--position-top { background-position: center top; }
.pb--position-bottom { background-position: center bottom; }

/* Coloured sections become rounded panels inside the page margins. */
.pb--card { margin: clamp(12px, 2vw, 24px) var(--gutter); border-radius: var(--radius-lg); overflow: hidden; }

/* Light text on dark backgrounds; boxes that stay white keep dark text. */
.pb--light { --text: #E9EBEF; --text-strong: #FFFFFF; --text-soft: #D5D9E0; --muted: #AEB4BF; color: var(--text); }
.pb--light :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .cta--light, .eyebrow--pill, .chip, .split, .signup__notice) {
    --text: #111111; --text-strong: #000000; --text-soft: #1F1F1F; --muted: #999999; color: var(--text);
}
/* …but a selected chip keeps the contrast of its own (dark) background. */
.pb--light .chip[aria-current="page"] { color: var(--surface); }
.pb--light .button--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.pb--light .button--ghost:hover { background: rgba(255, 255, 255, .12); }
.pb--light .eyebrow:not(.eyebrow--pill) { color: #8FD0FF; }
.pb--dark-text { --text: #111111; --text-strong: #000000; --text-soft: #1F1F1F; --muted: #5F6672; color: var(--text); }

/* Space above and below (the block's own padding is replaced). */
.pb--pt-none > * { padding-top: 0 !important; }
.pb--pt-sm > * { padding-top: clamp(1rem, 3vw, 2rem) !important; }
.pb--pt-lg > * { padding-top: clamp(4.5rem, 11vw, 9rem) !important; }
.pb--pt-xl > * { padding-top: clamp(6rem, 15vw, 12rem) !important; }
.pb--pb-none > * { padding-bottom: 0 !important; }
.pb--pb-sm > * { padding-bottom: clamp(1rem, 3vw, 2rem) !important; }
.pb--pb-lg > * { padding-bottom: clamp(4.5rem, 11vw, 9rem) !important; }
.pb--pb-xl > * { padding-bottom: clamp(6rem, 15vw, 12rem) !important; }

/* Heading alignment */
.pb--align-left .section-heading, .pb--align-left .hero__content { text-align: left; margin-left: 0; }
.pb--align-left .hero__title, .pb--align-left .hero__text { margin-left: 0; }
.pb--align-left .button-group { justify-content: flex-start; }
.pb--align-center .section-heading, .pb--align-center .hero__content { text-align: center; margin-inline: auto; }
.pb--align-center .button-group { justify-content: center; }

/* Scroll animation */
.js .pb--animation-none [data-reveal] { opacity: 1; transform: none; transition: none; }
.js .pb--animation-zoom [data-reveal]:not(.is-visible) { transform: scale(.94); }

/* Device visibility */
@media (max-width: 760px) { .pb--visibility-desktop { display: none; } }
@media (min-width: 761px) { .pb--visibility-mobile { display: none; } }
.pb[id] { scroll-margin-top: 90px; }

/* Rich text that could be wider than a phone */
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose iframe, .prose video { max-width: 100%; }
.prose pre { max-width: 100%; overflow-x: auto; }

/* Sliders take horizontal swipes; vertical ones still scroll the page. */
.hero-slider__viewport, .cs__viewport, .lightbox { touch-action: pan-y; }
.carousel__track { overscroll-behavior-x: contain; }

/* Flip boxes on phones: a swipeable carousel with the next card peeking in. */
@media (max-width: 760px) {
    .flip-carousel .flip-grid {
        display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 14px;
        overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
        margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    }
    .flip-carousel .flip-grid::-webkit-scrollbar { display: none; }
    .flip-carousel .flip { scroll-snap-align: start; }
}
@media (min-width: 761px) { .flip-carousel .carousel__controls { display: none; } }

/* Minimum height: the block's content is centred in the available height. */
.pb--min-height > * { min-height: var(--pb-min-height); display: flex; flex-direction: column; justify-content: center; }

/* Box background (cards, plans, reviews, questions…): a chosen colour, or none. */
.pb--box :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .flip__front, .order-box, .cs__slide--text, .split) { background: var(--pb-box); }
.pb--box-dark :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .flip__front, .order-box, .cs__slide--text, .split) { --text: #E9EBEF; --text-strong: #FFFFFF; --text-soft: #D5D9E0; --muted: #AEB4BF; color: var(--text); }
.pb--box-light :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .flip__front, .order-box, .cs__slide--text, .split) { --text: #111111; --text-strong: #000000; --text-soft: #1F1F1F; --muted: #5F6672; color: var(--text); }
.pb--box-none :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .flip__front, .order-box, .cs__slide--text, .split) { background: transparent; box-shadow: none; }
.pb--box-none :is(.tile, .feature, .testimonial, .faq__item, .compare__col, .plan:not(.plan--highlight)) { border: 1px solid rgba(127, 127, 127, .25); }
/* Box image: covers the whole box, shaded so the light text stays readable */
.pb--box-image :is(.tile, .feature, .compare__col, .plan:not(.plan--highlight), .testimonial, .faq__item, .flip__front, .order-box, .cs__slide--text, .split) {
    background: linear-gradient(rgba(8, 12, 18, .55), rgba(8, 12, 18, .55)), var(--pb-box-image) center / cover no-repeat;
}

/* ------------------------------------------------------------------ carousels (gallery, collection) */

.carousel { position: relative; }
.carousel__track {
    list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; gap: 16px;
    grid-auto-columns: calc((100% - 32px) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.collection--cols-4 .carousel__track, .gallery--cols-4 .carousel__track { grid-auto-columns: calc((100% - 48px) / 4); }
.collection--cols-2 .carousel__track, .gallery--cols-2 .carousel__track { grid-auto-columns: calc((100% - 16px) / 2); }
@media (max-width: 860px) { .carousel__track, .collection--cols-4 .carousel__track, .gallery--cols-4 .carousel__track { grid-auto-columns: 72%; } }
.carousel__controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.carousel--static .carousel__controls { display: none; }
.carousel__arrow {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow); transition: opacity .2s, transform .2s;
}
.carousel__arrow:hover:not(:disabled) { transform: scale(1.06); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.collection__more { margin: var(--space-5) 0 0; text-align: center; }

/* ------------------------------------------------------------------ gallery + lightbox */

.gallery__list { list-style: none; margin: 0; padding: 0; }
.gallery--grid .gallery__list { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--grid.gallery--cols-2 .gallery__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--grid.gallery--cols-4 .gallery__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery--grid .gallery__list, .gallery--grid.gallery--cols-4 .gallery__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery--masonry .gallery__list { columns: 3; column-gap: 14px; }
.gallery--masonry.gallery--cols-2 .gallery__list { columns: 2; }
.gallery--masonry.gallery--cols-4 .gallery__list { columns: 4; }
@media (max-width: 760px) { .gallery--masonry .gallery__list { columns: 2; } }
.gallery--masonry .gallery__item { break-inside: avoid; margin-bottom: 14px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.gallery__link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.gallery__link img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery__link:hover img { transform: scale(1.04); }
.gallery--square:not(.gallery--masonry) .gallery__link img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery--landscape:not(.gallery--masonry) .gallery__link img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--portrait:not(.gallery--masonry) .gallery__link img { aspect-ratio: 4 / 5; object-fit: cover; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 12, 18, .92); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 72px; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox__figure figcaption { color: #E4E8EE; text-align: center; max-width: 60ch; }
.lightbox__close, .lightbox__nav {
    position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; font: 400 30px/1 var(--font-ui); cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox--single .lightbox__nav { display: none; }
@media (max-width: 640px) { .lightbox__figure { padding: 56px 12px; } .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* ------------------------------------------------------------------ animated headline */

.animated-headline { max-width: 980px; }
.animated-headline__title { margin: 0; line-height: 1.1; letter-spacing: -0.035em; }
.animated-headline__title--md { font-size: clamp(2rem, 4.5vw, 3rem); }
.animated-headline__title--lg { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.animated-headline__title--xl { font-size: clamp(3rem, 8.5vw, 6rem); }
.ah-words { position: relative; display: inline-grid; vertical-align: bottom; text-align: left; color: var(--accent); transition: width .45s var(--ease); }
.ah-words__word { grid-area: 1 / 1; white-space: nowrap; }
.ah-words--rotate .ah-words__word, .ah-words--highlight .ah-words__word { opacity: 0; transform: translateY(55%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ah-words .ah-words__word.is-active { opacity: 1; transform: none; }
.ah-words .ah-words__word.is-leaving { opacity: 0; transform: translateY(-55%); }
.ah-words--typing::after { content: ""; display: inline-block; width: 3px; height: .9em; margin-left: 4px; background: currentColor; vertical-align: -0.08em; animation: ah-caret 1s steps(1) infinite; grid-area: 1 / 2; align-self: center; }
@keyframes ah-caret { 50% { opacity: 0; } }
.ah-words--highlight { color: inherit; }
.ah-words__mark { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.ah-words__mark path { fill: none; stroke: var(--accent-2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.ah-words.is-drawn .ah-words__mark path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .2s; }
@media (prefers-reduced-motion: reduce) { .ah-words__mark path { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ price list */

.price-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 22px 48px; max-width: 820px; }
.price-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
@media (max-width: 760px) { .price-list--cols-2 { grid-template-columns: 1fr; } }
.price-item { display: flex; gap: 16px; align-items: flex-start; }
.price-item__media img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.price-item__body { flex: 1; min-width: 0; }
.price-item__line { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 600 1.125rem var(--font-sans); color: var(--text-strong); }
.price-item__title { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-item__title a { color: inherit; text-decoration: none; }
.price-item__title a:hover { color: var(--accent); }
.price-item__dots { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(0, 0, 0, .22); transform: translateY(-4px); }
.pb--light .price-item__dots { border-color: rgba(255, 255, 255, .35); }
.price-item__price { white-space: nowrap; color: var(--accent); }
.price-item__text { margin: 6px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ flip boxes */

/*
 * Both faces share one grid cell (the card is as tall as its longest face). site.js toggles
 * .is-flipped; each effect below is a soft, partly transparent transition. In the "turn" effects the
 * front turns away to the edge first, then the back turns in: the card clearly turns over and no
 * face is ever seen from behind. Transitions are defined on the state being entered, so the
 * leaving face always moves first and the arriving one follows (--flip-half later).
 */
.flip { list-style: none; border-radius: var(--radius); outline: none; --flip-half: .32s; }
.flip__inner { display: grid; min-height: 300px; height: 100%; }
.flip__face {
    grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
    border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip__front { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.flip__back { background: var(--flip-bg); justify-content: center; opacity: 0; pointer-events: none; visibility: hidden; }
.flip.is-flipped .flip__front { opacity: 0; pointer-events: none; visibility: hidden; }
.flip.is-flipped .flip__back { opacity: 1; pointer-events: auto; visibility: visible; }
.flip:focus-visible { box-shadow: 0 0 0 3px var(--accent); }

/* Leaving (fast, eases in) and arriving (after the leaving half, eases out) */
.flip__back, .flip.is-flipped .flip__front {
    transition: transform var(--flip-half) cubic-bezier(.55, 0, .75, .3), opacity var(--flip-half) ease-in, visibility 0s linear var(--flip-half);
}
.flip__front, .flip.is-flipped .flip__back {
    transition: transform var(--flip-half) cubic-bezier(.2, .7, .3, 1) var(--flip-half), opacity var(--flip-half) ease-out var(--flip-half), visibility 0s linear var(--flip-half);
}

/* Turn, horizontal: front turns to its edge and fades a little, back turns in from the other side */
.flip-grid--turn .flip__face { transform: perspective(1200px) rotateY(0deg); }
.flip-grid--turn .flip__back { transform: perspective(1200px) rotateY(-90deg); }
.flip-grid--turn .flip.is-flipped .flip__front { transform: perspective(1200px) rotateY(90deg); opacity: .35; }
.flip-grid--turn .flip.is-flipped .flip__back { transform: perspective(1200px) rotateY(0deg); }
.flip-grid--turn .flip__back { opacity: .35; }
.flip-grid--turn .flip.is-flipped .flip__back { opacity: 1; }
/* Turn, vertical */
.flip-grid--turn_vertical .flip__face { transform: perspective(1200px) rotateX(0deg); }
.flip-grid--turn_vertical .flip__back { transform: perspective(1200px) rotateX(90deg); opacity: .35; }
.flip-grid--turn_vertical .flip.is-flipped .flip__front { transform: perspective(1200px) rotateX(-90deg); opacity: .35; }
.flip-grid--turn_vertical .flip.is-flipped .flip__back { transform: perspective(1200px) rotateX(0deg); opacity: 1; }
/* Cross-fade: both at once, slightly longer */
.flip-grid--crossfade .flip { --flip-half: .45s; }
.flip-grid--crossfade .flip__back, .flip-grid--crossfade .flip.is-flipped .flip__front {
    transition: opacity var(--flip-half) ease, transform var(--flip-half) ease, visibility 0s linear var(--flip-half);
}
.flip-grid--crossfade .flip__front, .flip-grid--crossfade .flip.is-flipped .flip__back {
    transition: opacity var(--flip-half) ease, transform var(--flip-half) ease, visibility 0s;
}
.flip-grid--crossfade .flip.is-flipped .flip__front { transform: scale(.98); }
/* Slide up: the back rises over the dimmed front */
.flip-grid--slide_up .flip__inner { overflow: hidden; border-radius: var(--radius); }
.flip-grid--slide_up .flip__back { transform: translateY(100%); opacity: 1; z-index: 1; }
.flip-grid--slide_up .flip.is-flipped .flip__back { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.2, .7, .3, 1), visibility 0s; }
.flip-grid--slide_up .flip__back { transition: transform .45s cubic-bezier(.55, 0, .75, .3), visibility 0s linear .45s; }
.flip-grid--slide_up .flip.is-flipped .flip__front { opacity: .4; visibility: visible; transform: scale(.97); transition: opacity .55s ease, transform .55s ease; }
.flip-grid--slide_up .flip__front { transition: opacity .45s ease, transform .45s ease; }
/* Zoom: the front steps back and fades, the back comes forward */
.flip-grid--zoom .flip__back { transform: scale(1.06); }
.flip-grid--zoom .flip.is-flipped .flip__front { transform: scale(.9); }
.flip-grid--zoom .flip.is-flipped .flip__back { transform: none; }

.flip__back--dark { color: #E4E8EE; }
.flip__back--dark .flip__title { color: #fff; }
.flip__back--light { --text: #111111; --text-strong: #000000; color: var(--text); }
.flip__content { position: relative; z-index: 1; padding: clamp(22px, 4vw, 28px); }
.flip__title { margin: 0 0 8px; font-size: clamp(1.1875rem, 2.4vw, 1.375rem); }
.flip__text { margin: 0 0 16px; }
.flip__text:last-child { margin-bottom: 0; }
.flip__photo { position: absolute; inset: 0; }
.flip__photo img { width: 100%; height: 100%; object-fit: cover; }
.flip--photo .flip__front { color: #fff; }
.flip--photo .flip__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 18, .78), rgba(8, 12, 18, .05) 65%); }
.flip--photo .flip__front .flip__title { color: #fff; }
.flip__hint {
    position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--text-strong); font-size: 1rem;
}
.flip--photo .flip__hint { background: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 760px) { .flip__inner { min-height: 240px; } }
@media (prefers-reduced-motion: reduce) {
    .flip__face, .flip.is-flipped .flip__face { transform: none !important; transition: opacity .2s, visibility 0s linear .2s !important; }
}

/* ------------------------------------------------------------------ contact form block */

.contact-block--details { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-block--details .section-heading { text-align: left; margin-left: 0; }
.contact-block:not(.contact-block--details) .order-box { max-width: 720px; margin: 0 auto; }
.contact-block__details { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 16px; }
.contact-block__details li { display: grid; gap: 2px; }
@media (max-width: 860px) { .contact-block--details { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ search */

.search-form {
    position: relative; display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 0 auto;
    padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
}
.search-form:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(0, 153, 255, .25); }
.search-form__icon { flex: none; color: var(--muted); }
.search-form input {
    flex: 1; min-width: 0; padding: 10px 4px; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--text);
}
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 520px) { .search-form .button { padding-inline: 16px; } }
.search-page__header { text-align: center; margin-bottom: var(--space-6, 3rem); }
.search-page__header .section-title { margin-bottom: var(--space-4); }
.search-page__header > .muted { margin: var(--space-3) 0 0; }
.search-results { margin-bottom: var(--space-6, 3rem); }
.search-results__title { font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin: 0 0 var(--space-4); }
.search-results__title .muted { font-weight: 400; }
.search-page__empty { text-align: center; }
.search-page__empty .button-group { justify-content: center; }
.search-box .section-heading { margin-bottom: var(--space-4); }

/* ------------------------------------------------------------------ content slider (block "slider") */

.cs { position: relative; }
.cs__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.cs__track { display: flex; align-items: stretch; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.cs__slide {
    position: relative; flex: 0 0 100%; min-width: 0; display: grid; align-items: center; overflow: hidden;
    background: var(--cs-bg, var(--surface)); border-radius: var(--radius-lg);
}
.cs__content { position: relative; z-index: 1; padding: clamp(28px, 6vw, 72px); }
.cs__title { margin: 0 0 12px; font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.cs__text { margin: 0 0 22px; font-size: 1.0625rem; color: var(--text-soft); max-width: 60ch; }
.cs__text:last-child { margin-bottom: 0; }
.cs__icon { margin-bottom: 18px; }

/* Text only: centred */
.cs__slide--text { min-height: 320px; text-align: center; }
.cs__slide--text .cs__content { max-width: 760px; margin: 0 auto; }
.cs__slide--text .cs__text { margin-inline: auto; }

/* Photo beside the text */
.cs__slide--photo { grid-template-columns: 1fr 1fr; align-items: stretch; }
.cs__slide--photo .cs__media { min-height: 360px; }
.cs__slide--photo .cs__media img { width: 100%; height: 100%; object-fit: cover; }
.cs__slide--photo .cs__content { align-self: center; }
.cs__slide--photo-right .cs__media { order: 2; }
@media (max-width: 760px) {
    .cs__slide--photo { grid-template-columns: 1fr; }
    .cs__slide--photo .cs__media { min-height: 0; aspect-ratio: 4 / 3; order: 0; }
}

/* Photo behind the text, shaded */
.cs__slide--cover { min-height: clamp(380px, 55vw, 560px); align-items: end; }
.cs__slide--cover .cs__media { position: absolute; inset: 0; }
.cs__slide--cover .cs__media img { width: 100%; height: 100%; object-fit: cover; }
.cs__slide--cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 18, .78), rgba(8, 12, 18, .15) 70%); }
.cs__slide--cover .cs__content { z-index: 2; }

/* Light text on dark slides; dark text on light ones */
.cs__slide--on-dark { --text: #E9EBEF; --text-strong: #FFFFFF; --text-soft: #D5D9E0; --muted: #AEB4BF; color: var(--text); }
.cs__slide--on-light { --text: #111111; --text-strong: #000000; --text-soft: #1F1F1F; --muted: #5F6672; color: var(--text); }
.cs__slide--on-dark .eyebrow { color: #8FD0FF; }

/* Controls under the slider */
.cs__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
/* Arrows inside the slider, at the left and right edges, vertically centred */
.cs__arrow { position: absolute; top: calc(50% - 31px); z-index: 3; transform: translateY(-50%); background: rgba(255, 255, 255, .9); }
.cs__arrow--prev { left: clamp(10px, 2vw, 20px); }
.cs__arrow--next { right: clamp(10px, 2vw, 20px); }
.cs__arrow:hover { transform: translateY(-50%) scale(1.06); }
.cs:has(.cs__arrow) .cs__content { padding-inline: clamp(64px, 8vw, 96px); }
@media (max-width: 760px) { .cs:has(.cs__arrow) .cs__content { padding-inline: clamp(24px, 6vw, 40px); } .cs__arrow { width: 38px; height: 38px; } }
.cs__arrow, .cs__pause {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow); transition: transform .2s;
}
.cs__pause:hover { transform: scale(1.06); }
.cs__pause { width: 36px; height: 36px; margin-left: 4px; }
.cs__dots { display: flex; gap: 8px; }
.cs__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .2); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.cs__dot[aria-current="true"] { width: 26px; background: var(--text-strong); }
.pb--light .cs__dot { background: rgba(255, 255, 255, .35); }
.pb--light .cs__dot[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .cs__track { transition: none; } }
.cs__pause[aria-pressed="true"] .hero-slider__pause-icon { border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; width: 0; height: 0; margin-left: 3px; }

/* ------------------------------------------------------------------ two-tone titles ("title_muted") */

.title-muted { display: block; color: color-mix(in srgb, currentColor 48%, transparent); }

/* ------------------------------------------------------------------ image + text (block "image_text") */

.split-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.split {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(10px, 1.2vw, 14px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.split__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-lg) - 8px); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--media-right .split__media { order: 2; }
.split__body { padding: clamp(12px, 3vw, 36px); }
.split__title { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 12px; }
.split__text { margin: 0 0 24px; color: var(--text-soft); font-size: 1.0625rem; }
.split__body > :last-child { margin-bottom: 0; }
.split--text-only { grid-template-columns: 1fr; text-align: center; }
.split--text-only .split__text { max-width: 60ch; margin-inline: auto; }
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; }
    .split--media-right .split__media { order: 0; }
}
/* Stack: every card sticks under the header a little lower than the one before, so they pile up while scrolling.
   Not on phones or short screens, where a card can be taller than the screen. */
.split-list--stack { gap: clamp(28px, 6vh, 64px); }
@media (min-width: 761px) and (min-height: 640px) {
    .split-list--stack .split { position: sticky; top: calc(96px + var(--i, 0) * 16px); box-shadow: 0 -8px 30px -12px rgba(8, 12, 18, .18), var(--shadow); }
}

/* ------------------------------------------------------------------ statement */

.statement { max-width: 980px; margin: 0 auto; text-align: center; }
.statement__text { margin: 0; }
.statement__text p { margin: 0; font: 600 clamp(1.75rem, 4vw, 2.75rem)/1.22 var(--font-sans); letter-spacing: -0.03em; color: var(--text-strong); text-wrap: balance; }
.statement--md .statement__text p { font-size: clamp(1.375rem, 3vw, 2rem); }
.statement--xl .statement__text p { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.1; }
.statement__word--muted { color: color-mix(in srgb, var(--text-strong) 48%, transparent); }
.js [data-statement] .statement__word { opacity: .16; transition: opacity .35s var(--ease); }
.js [data-statement] .statement__word.is-lit { opacity: 1; }
.statement__author { margin-top: 24px; color: var(--muted); font: 500 1rem var(--font-ui); }
.statement__action { margin: 32px 0 0; }

/* ------------------------------------------------------------------ video */

.video-embed { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #000; }
.figure--full .video-embed { border-radius: 0; }
.figure .video-embed img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform .6s var(--ease); }
.video-embed:hover img { transform: scale(1.02); }
.video-embed__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
    width: 76px; height: 76px; padding-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
}
.video-embed:hover .video-embed__play, .video-embed:focus-visible .video-embed__play { transform: translate(-50%, -50%) scale(1.07); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ newsletter block */

.signup { max-width: 640px; margin: 0 auto; text-align: center; }
.signup .section-heading { margin-bottom: var(--space-4); }
.pb--align-left .signup { margin-left: 0; text-align: left; }
.pb--align-left .signup__form { justify-content: flex-start; }
.signup__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.signup__form input[type="email"] {
    flex: 1 1 240px; min-width: 0; padding: 14px 20px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 999px;
    background: var(--surface); font: inherit; color: var(--text);
}
.signup__form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 153, 255, .15); }
.signup__note { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.signup__notice { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--surface); color: var(--text-soft); }

/* ------------------------------------------------------------------ marquee */

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 45s) linear infinite; }
.marquee--slow { --marquee-duration: 80s; }
.marquee--fast { --marquee-duration: 25s; }
.marquee--right .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { flex: none; list-style: none; margin: 0; padding: 0 .6em 0 0; display: flex; align-items: center; gap: .6em; }
.marquee__list li { white-space: nowrap; font: 600 clamp(1.5rem, 3.5vw, 2.5rem)/1.25 var(--font-sans); letter-spacing: -0.03em; color: var(--text-strong); }
.marquee--md .marquee__list li { font-size: clamp(1.125rem, 2.2vw, 1.5rem); }
.marquee--xl .marquee__list li { font-size: clamp(2.25rem, 6vw, 4.5rem); }
.marquee__list .marquee__sep { font-size: .7em; color: var(--accent); }
.marquee--md .marquee__list .marquee__sep, .marquee--xl .marquee__list .marquee__sep { font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__track { width: auto; justify-content: center; }
    .marquee__list { flex-wrap: wrap; justify-content: center; }
    .marquee__list[aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------------------ hero at the top of the page, under the header */

/* Header height, measured by site.js (these are the values before it runs). */
:root { --header-h: 84px; }
@media (max-width: 640px) { :root { --header-h: 70px; } }

.hero--under-header { margin-top: calc(-1 * var(--header-h)); }
/* A soft haze of the page colour behind the header keeps the logo and menu readable on any photo. */
.hero--under-header .hero-slider__viewport::before {
    content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: calc(var(--header-h) + 70px); pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent);
}
/* The header is see-through while it sits on the photo, frosted again once the page scrolls. */
body:has(.hero--under-header) .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header { transition: background-color .3s var(--ease); }

/* Bottom edge melting into the page (or the section's own colour). Above the photo and its shade,
   below the caption; the caption, buttons and dots move up out of the faded part. */
.hero--fade { --hero-fade: clamp(90px, 18vh, 200px); }
.hero--fade .hero-slider__slide::before {
    content: ""; position: absolute; inset: auto 0 -1px; z-index: 1; height: var(--hero-fade); pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--pb-bg, var(--bg)));
}
.hero--fade .hero-slider__caption { z-index: 2; bottom: calc(clamp(56px, 8vw, 76px) + var(--hero-fade) * .55); }
.hero--fade .hero-slider:not([data-slider]) .hero-slider__caption { bottom: calc(clamp(24px, 4vw, 44px) + var(--hero-fade) * .55); }
.hero--fade .hero-slider__bottom { bottom: calc(clamp(18px, 4vw, 40px) + var(--hero-fade) * .55); }
.hero--fade .hero-slider__pause { bottom: calc(clamp(10px, 2vw, 24px) + var(--hero-fade) * .55); }
