/* ===================================================================
   The shared building blocks of the site's pages (real-time, overview, traffic, compare, websites, privacy, docs, contact,
   the legal pages and 404). Load it after hero.css and before the page's own style/<slug>.css.
   The look is the home page's (style/home.css): same green hero, section heads, cards, questions and last call; the home
   page itself does not load this file.

   page head ....... <section class="hero page-head"> .page-head-inner .page-eyebrow .page-title .page-accent .page-lead .page-actions
   buttons ......... .page-btn + .page-btn-main | .page-btn-soft (on green) | .page-btn-ghost (on the page colour), .page-btn-arrow
   big animation ... .page-head.has-stage + .page-stage (pulled up into the hero), .app-frame .app-bar .app-dots .app-address .app-body
   sections ........ .page-sec (.is-soft | .is-mint) .sec-head (.is-start) .sec-eyebrow .sec-title .sec-accent .sec-lead .sec-icon
   rows ............ .split-rows > .split > .split-text (.split-tag .split-title .split-copy .split-points) + .split-media
   features ........ .features > .feature > .feature-media + .feature-title + .feature-text;  cards: .cards > .card
   good to know .... .know-list > li > .know-check + p (strong + text);  questions: .faq-list > details.faq-item > summary.faq-q + .faq-a
   app look ........ .app-card .app-label .app-num .chip (.is-on) .site-dot (--dot) .live-dot, demo colours --site-northwind|bluelake|acme
   pictures ........ .shot > img.shot-img.shot-light + img.shot-img.shot-dark
   code ............ .code-box > .code-bar (.code-lang .code-copy) + pre > code (.tok-tag .tok-attr .tok-str)
   long text ....... .prose (legal pages, docs)
   map ............. svg.site-map (scripts/worldmap.js): .sm-land .sm-country .sm-dots .sm-dot, tokens --map-*
   motion .......... [data-reveal] (fades in once in view), [data-anim] (CSS animations inside run only while .is-playing),
                     .anim-ctl .anim-ctl-btn ("Pause animations", added by scripts/anim.js under .page-stage or in [data-anim-ctl])
   last call ....... src/partials/cta.html: .cta .cta-band .cta-wave .cta-title .cta-accent .cta-lead .cta-actions .cta-note
   =================================================================== */

:root {
    --hero-mint: color-mix(in srgb, var(--color-green) 13%, #ffffff);

    /* small green text on white or mint: 4.5:1 (as the home page's labels) */
    --green-text: #15803d;

    /* the three demo websites (never real clients) */
    --site-northwind: #16a34a;
    --site-bluelake: #2563eb;
    --site-acme: #f97316;

    /* the world map (scripts/worldmap.js) */
    --map-water: transparent;
    --map-land: #e3e9f0;
    --map-border: #ffffff;
    --map-dot-ring: #ffffff;

    /* how far the big animation under a page head reaches up into the green */
    --stage-overlap: clamp(72px, 11vw, 170px);
}

:root[data-theme="dark"] {
    --hero-mint: color-mix(in srgb, var(--color-green) 7%, var(--color-bg));
    --green-text: var(--color-green);

    --map-land: #1f2a3d;
    --map-border: #0b1120;
    --map-dot-ring: #0b1120;
}

/* ===================================================================
   Page head: the green hero of the home page, shorter
   =================================================================== */

.page-head {
    padding-top: calc(var(--header-height) + clamp(28px, 6vh, 72px));
    padding-bottom: clamp(64px, 9vw, 128px);
    background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 42%, var(--hero-mint) 76%, var(--color-bg) 100%);
}

.page-head .hero-wave {
    opacity: .35;
}

/* the head is short, so its buttons can sit where the green is already pale: the quiet button keeps a visible edge */
.page-head .page-btn-soft {
    background: color-mix(in srgb, #ffffff 45%, transparent);
    border-color: color-mix(in srgb, var(--on-hero) 16%, transparent);
}

.page-head .page-btn-soft:hover {
    background: color-mix(in srgb, #ffffff 70%, transparent);
}

:root[data-theme="dark"] .page-head .page-btn-soft {
    background: color-mix(in srgb, #ffffff 6%, transparent);
    border-color: color-mix(in srgb, #ffffff 16%, transparent);
}

:root[data-theme="dark"] .page-head .page-btn-soft:hover {
    background: color-mix(in srgb, #ffffff 11%, transparent);
}

/* the big animation sits half on the green: the head makes room, the stage is pulled up into it */
.page-head.has-stage {
    padding-bottom: calc(var(--stage-overlap) + clamp(40px, 5vw, 64px));
}

/* the hint under the head's buttons: what to do in the working example */
.page-hint {
    margin-top: 18px;

    font-size: 15.5px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--on-hero) 82%, transparent);
}

.page-hint strong {
    font-weight: 800;
    color: var(--on-hero);
}

/* the button "Try ..." scrolls to the working example: it stops just under the sticky menu bar */
.page-stage > [id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* the link to the whole demo, under the working example */
.stage-link {
    margin-top: 22px;
    text-align: center;
}

.page-stage {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * var(--stage-overlap));
}

/* legal pages, contact, 404: less green */
.page-head.is-compact {
    padding-bottom: clamp(48px, 6vw, 88px);
}

.page-head-inner {
    max-width: 880px;
    text-align: center;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 30px;
    padding: 4px 14px;

    border-radius: 999px;
    background: color-mix(in srgb, #ffffff 55%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 70%, transparent);

    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-green-ink);
}

.page-eyebrow svg {
    width: 16px;
    height: 16px;
}

:root[data-theme="dark"] .page-eyebrow {
    background: color-mix(in srgb, var(--color-green) 14%, transparent);
    border-color: color-mix(in srgb, var(--color-green) 30%, transparent);
    color: var(--color-green);
}

.page-title {
    margin-top: 18px;

    font-size: clamp(34px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.page-accent {
    color: #14532d; /* on the light green: a deep green, white would be under 3:1 */
}

:root[data-theme="dark"] .page-accent {
    color: var(--on-hero-accent);
}

.page-lead {
    max-width: 52ch;
    margin: 16px auto 0;

    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: color-mix(in srgb, var(--on-hero) 86%, transparent);
    text-wrap: balance;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(22px, 3vh, 30px);
}

/* ===================================================================
   Buttons (the home page's two buttons, plus a quiet one for the page colour)
   =================================================================== */

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    /* 52px for a one-line label; a long translation wraps inside the button instead of leaving a narrow screen */
    min-height: 52px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 24px;

    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;

    transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.page-btn:hover {
    transform: translateY(-1px);
}

.page-btn:active {
    transform: translateY(0);
}

.page-btn > svg {
    width: 18px;
    height: 18px;
    flex: none;
}

/* "Start Free": dark ink on the light green, bright green in the dark theme */
.page-btn-main {
    background: var(--color-green-ink);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(5, 46, 22, .3);
}

.page-btn-main:hover {
    background: #0a4a26;
    box-shadow: 0 12px 24px -12px rgba(5, 46, 22, .6);
}

:root[data-theme="dark"] .page-btn-main {
    background: var(--color-green);
    color: var(--color-green-ink);
    box-shadow: 0 1px 2px rgba(22, 163, 74, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

:root[data-theme="dark"] .page-btn-main:hover {
    background: #2bd46a;
    box-shadow: 0 12px 24px -12px rgba(22, 163, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.page-btn-arrow {
    transition: transform .22s var(--ease);
}

.page-btn:hover .page-btn-arrow {
    transform: translateX(3px);
}

[dir="rtl"] .page-btn-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .page-btn:hover .page-btn-arrow {
    transform: scaleX(-1) translateX(3px);
}

/* "Explore Demo", "Log in" on green: a quiet glass button */
.page-btn-soft {
    background: color-mix(in srgb, #ffffff 24%, transparent);
    border-color: color-mix(in srgb, #ffffff 55%, transparent);
    color: var(--on-hero);
}

.page-btn-soft:hover {
    background: color-mix(in srgb, #ffffff 40%, transparent);
}

:root[data-theme="dark"] .page-btn-soft {
    background: color-mix(in srgb, #ffffff 6%, transparent);
    border-color: color-mix(in srgb, #ffffff 16%, transparent);
}

:root[data-theme="dark"] .page-btn-soft:hover {
    background: color-mix(in srgb, #ffffff 11%, transparent);
}

/* on the page colour (not on green): a bordered button */
.page-btn-ghost {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

.page-btn-ghost:hover {
    border-color: color-mix(in srgb, var(--color-green) 55%, var(--color-border));
    box-shadow: 0 10px 22px -14px rgba(22, 163, 74, .55);
}

:root[data-theme="dark"] .page-btn-ghost {
    background: var(--color-bg-soft);
}

/* a text link with an arrow: "More about Real-time →" */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 700;
    color: var(--green-text);
}

.more-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.more-link svg {
    width: 16px;
    height: 16px;
    flex: none;
}

[dir="rtl"] .more-link svg {
    transform: scaleX(-1);
}

/* ===================================================================
   The app look: a browser frame, cards, chips and dots (small HTML recreations of the app, so they can move)
   =================================================================== */

.app-frame {
    position: relative;
    overflow: hidden;
    max-width: 1160px;
    margin-inline: auto;

    border: 1px solid var(--color-border);
    border-radius: clamp(14px, 1.6vw, 20px);
    background: var(--color-bg);
    box-shadow:
        0 34px 80px -34px rgba(5, 46, 22, .45),
        0 14px 32px -18px rgba(15, 23, 42, .22);
}

:root[data-theme="dark"] .app-frame {
    background: var(--color-bg-soft);
    box-shadow:
        0 34px 80px -28px rgba(0, 0, 0, .75),
        0 0 0 1px rgba(255, 255, 255, .04);
}

.app-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    height: 40px;
    padding-inline: 14px;

    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-bg);
}

:root[data-theme="dark"] .app-bar {
    border-bottom-color: var(--color-border);
}

.app-dots {
    display: flex;
    gap: 7px;
}

.app-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.app-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    height: 24px;
    padding-inline: 12px;

    border-radius: 8px;
    background: var(--color-bg-soft);

    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-soft);
    white-space: nowrap;
}

.app-address svg {
    width: 12px;
    height: 12px;
}

.app-body {
    position: relative;
    padding: clamp(12px, 2vw, 24px);
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .app-body {
    background: var(--color-bg);
}

/* a card of the app */
.app-card {
    min-width: 0;
    padding: 14px 16px;

    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .app-card {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.app-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-soft);
}

.app-num {
    margin-top: 2px;

    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

/* a filter chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 30px;
    padding-inline: 12px;

    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-soft);
    white-space: nowrap;
}

.chip.is-on {
    border-color: color-mix(in srgb, var(--color-green) 55%, var(--color-border));
    background: var(--color-green-soft);
    color: var(--color-text);
}

:root[data-theme="dark"] .chip {
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .chip.is-on {
    background: var(--color-green-soft);
}

.chip svg {
    width: 14px;
    height: 14px;
}

/* the colour dot of a website: <span class="site-dot" style="--dot: var(--site-acme)"></span> */
.site-dot {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot, var(--color-green));
}

/* "live": a green dot with a slow ring (the ring stops with reduced motion) */
.live-dot {
    position: relative;
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-green);
    opacity: 0;
    animation: live-ring 2.4s var(--ease) infinite;
}

@keyframes live-ring {
    0% { transform: scale(.5); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===================================================================
   Sections
   =================================================================== */

.page-sec {
    padding-block: clamp(64px, 9vw, 120px);
}

/* a section right under the page head (or its stage) starts closer */
.page-head + .page-sec,
.page-stage + .page-sec {
    padding-top: clamp(40px, 6vw, 80px);
}

.page-sec.is-soft {
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .page-sec.is-soft {
    background: color-mix(in srgb, var(--color-bg-soft) 55%, var(--color-bg));
}

.page-sec.is-mint {
    background: var(--color-green-soft);
}

.page-sec[id],
.split[id],
.page-sec [id].anchor {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.sec-head {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.sec-head.is-start {
    margin-inline: 0;
    text-align: start;
}

.sec-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 4px 12px;

    border-radius: 999px;
    background: var(--color-green-soft);

    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-text);
}

/* on the mint band the label would vanish */
.page-sec.is-mint .sec-eyebrow {
    background: var(--color-bg);
}

.sec-title {
    margin-top: 16px;

    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-wrap: balance;
}

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

:root[data-theme="dark"] .sec-accent {
    color: var(--color-green);
}

.sec-lead {
    max-width: 56ch;
    margin: 14px auto 0;

    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--color-text-soft);
    text-wrap: balance;
}

.sec-head.is-start .sec-lead {
    margin-inline: 0;
}

.sec-head.is-start .sec-title > span {
    display: block;
}

/* the space between a section head and what follows it */
.sec-head + * {
    margin-top: clamp(32px, 4vw, 52px);
}

/* a green square with a line icon */
.sec-icon {
    display: grid;
    place-items: center;
    flex: none;

    width: 46px;
    height: 46px;

    border-radius: 13px;
    background: var(--color-green-soft);
    color: var(--color-green-dark);
}

:root[data-theme="dark"] .sec-icon {
    color: var(--color-green);
}

.sec-icon svg {
    width: 22px;
    height: 22px;
}

/* a bit of code inside a sentence */
:is(.page-sec, .page-head) :not(pre) > code {
    padding: 1px 6px;

    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-soft);

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ===================================================================
   Two-column rows: text on one side, a picture or animation on the other; the sides alternate
   =================================================================== */

.split-rows {
    display: grid;
    gap: clamp(56px, 8vw, 112px);
    max-width: 1220px;
    margin-inline: auto;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 64px);
}

.split:nth-child(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split:nth-child(even) .split-media {
    order: -1;
}

.split-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 800;
    color: var(--green-text);
}

.split-tag svg {
    width: 18px;
    height: 18px;
}

.split-title {
    margin-top: 10px;

    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.split-copy {
    max-width: 48ch;
    margin-top: 12px;

    font-size: clamp(16px, 1.3vw, 17.5px);
    line-height: 1.65;
    color: var(--color-text-soft);
}

.split-points {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.split-points li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;

    font-size: 15.5px;
    line-height: 1.55;
    color: var(--color-text-soft);
}

.split-points li::before {
    content: "";
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat,
        var(--color-green);
}

.split-media {
    min-width: 0;
}

/* ===================================================================
   Feature blocks (a picture or small animation, a title, a line) and plain icon cards
   =================================================================== */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1220px;
    margin-inline: auto;
}

.features.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1080px;
}

.feature {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 26px;

    border: 1px solid var(--color-border-soft);
    border-radius: 22px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .feature {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.feature-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;

    border-radius: 14px;
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .feature-media {
    background: var(--color-bg);
}

.feature-title {
    margin: 20px 14px 0;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.feature-text {
    margin: 8px 14px 0;

    font-size: 15.5px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin-inline: auto;
}

.cards.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
}

.cards.is-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    min-width: 0;
    padding: 28px 26px 30px;

    border: 1px solid var(--color-border-soft);
    border-radius: 22px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .card {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.card h3 {
    margin-top: 18px;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.card p {
    margin-top: 8px;

    font-size: 15.5px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

/* ===================================================================
   Pictures of the app (a light and a dark copy; only the current theme's one is shown and downloaded)
   =================================================================== */

.shot {
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: clamp(12px, 1.4vw, 18px);
    background: var(--color-bg-soft);
    box-shadow:
        0 28px 60px -32px rgba(5, 46, 22, .4),
        0 10px 24px -14px rgba(15, 23, 42, .18);
}

:root[data-theme="dark"] .shot {
    box-shadow:
        0 28px 60px -28px rgba(0, 0, 0, .75),
        0 0 0 1px rgba(255, 255, 255, .03);
}

.shot-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.shot-img.shot-dark,
:root[data-theme="dark"] .shot-img.shot-light {
    display: none;
}

:root[data-theme="dark"] .shot-img.shot-dark {
    display: block;
}

/* ===================================================================
   Good to know: a short list with green checks; questions that open
   =================================================================== */

.know-list {
    max-width: 820px;
    margin-inline: auto;
    padding: 6px clamp(20px, 3vw, 32px);

    border: 1px solid color-mix(in srgb, var(--color-green) 22%, var(--color-border-soft));
    border-radius: 24px;
    background: var(--color-bg);
    box-shadow: 0 24px 50px -34px rgba(5, 46, 22, .45);
}

:root[data-theme="dark"] .know-list {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
    box-shadow: none;
}

.know-list > li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    padding-block: 18px;
}

.know-list > li + li {
    border-top: 1px solid var(--color-border-soft);
}

:root[data-theme="dark"] .know-list > li + li {
    border-top-color: var(--color-border);
}

.know-check {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;
    margin-top: 1px;

    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-green-ink);
}

.know-check svg {
    width: 15px;
    height: 15px;
}

.know-list p {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

.know-list strong {
    display: block;
    margin-bottom: 2px;

    font-size: 17px;
    font-weight: 800;
    color: var(--color-text);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 18px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s var(--ease);
}

:root[data-theme="dark"] .faq-item {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--color-green) 45%, var(--color-border));
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 19px 22px;

    border-radius: 18px;
    list-style: none;
    cursor: pointer;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:focus-visible {
    outline-offset: -2px;
}

.faq-chevron {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--color-text-quiet);
    transition: transform .2s var(--ease), color .2s var(--ease);
}

.faq-q:hover .faq-chevron {
    color: var(--color-text);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--green-text);
}

.faq-a {
    padding: 0 22px 22px;

    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-soft);
}

.faq-a > * + * {
    margin-top: 10px;
}

/* ===================================================================
   Code: a dark box with a Copy button (the same in both themes)
   =================================================================== */

.code-box {
    overflow: hidden;

    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #0b1120;
    text-align: start;
}

:root[data-theme="dark"] .code-box {
    border-color: var(--color-border);
    background: #060a14;
}

.code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-block: 7px;
    padding-inline: 16px 7px;

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.code-lang {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #94a3b8;
}

.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    height: 32px;
    padding-inline: 12px;

    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;

    font-size: 13.5px;
    font-weight: 700;

    transition: background-color .18s var(--ease), color .18s var(--ease);
}

.code-copy:hover {
    background: rgba(255, 255, 255, .15);
}

.code-copy svg {
    width: 15px;
    height: 15px;
}

.code-copy .code-copy-ok,
.code-copy.is-done .code-copy-i {
    display: none;
}

.code-copy.is-done .code-copy-ok {
    display: block;
}

.code-copy.is-done {
    background: var(--color-green);
    color: var(--color-green-ink);
}

.code-box pre {
    padding: 16px 18px 18px;

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.65;
    color: #e2e8f0;
    text-align: left; /* code reads left to right in every language */

    /* wraps instead of scrolling: the whole line stays readable on a phone */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.code-box code {
    font-family: inherit;
}

.tok-tag { color: #86efac; }
.tok-attr { color: #93c5fd; }
.tok-str { color: #fcd34d; }
.tok-com { color: #64748b; }

/* ===================================================================
   Long text: legal pages and docs
   =================================================================== */

.prose {
    max-width: 74ch;
    margin-inline: auto;
    overflow-wrap: break-word; /* a very long word (nl, de) breaks at 320 px instead of widening the page */

    font-size: 16.5px;
    line-height: 1.7;
    color: var(--color-text-soft);
}

.prose > * + * {
    margin-top: 14px;
}

.prose h2 {
    margin-top: 48px;

    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--color-text);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.prose h3 {
    margin-top: 30px;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-text);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.prose > :first-child {
    margin-top: 0;
}

.prose strong {
    color: var(--color-text);
}

.prose a {
    color: var(--green-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
    padding-inline-start: 1.4em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: 6px;
}

.prose li::marker {
    color: var(--color-green-dark);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prose :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: start;
    vertical-align: top;
}

.prose th {
    color: var(--color-text);
    font-weight: 800;
}

/* a wide table scrolls by itself, the page never does */
.prose .table-scroll {
    overflow-x: auto;
}

.prose-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-quiet);
}

/* ===================================================================
   The world map (scripts/worldmap.js draws the countries; the page adds its dots to .sm-dots)
   =================================================================== */

.site-map {
    display: block;
    width: 100%;
    height: auto;
    background: var(--map-water);
}

.sm-land path {
    fill: var(--map-land);
    stroke: var(--map-border);
    stroke-width: .6;
    stroke-linejoin: round;
}

.sm-dot {
    fill: var(--dot, var(--color-green));
    stroke: var(--map-dot-ring);
    stroke-width: 1.2;
    transition: opacity .35s ease;
}

/* ===================================================================
   Motion
   =================================================================== */

/* fades in once it comes into view (scripts/anim.js marks what starts below the fold, so nothing visible ever blinks) */
[data-reveal].is-pending {
    opacity: 0;
    transform: translateY(18px);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

/* CSS animations inside an animated block run only while it is in view and the tab is open (StaseeAnim.onView adds .is-playing) */
[data-anim]:not(.is-playing),
[data-anim]:not(.is-playing) *,
[data-anim]:not(.is-playing)::before,
[data-anim]:not(.is-playing)::after,
[data-anim]:not(.is-playing) *::before,
[data-anim]:not(.is-playing) *::after {
    animation-play-state: paused !important;
}

/* "Pause animations" (scripts/anim.js adds it under the big animation; it pauses every animation of the page) */
.anim-ctl {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.anim-ctl[hidden] {
    display: none;
}

.anim-ctl-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 32px;
    padding-inline: 12px 14px;

    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);

    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-soft);
    cursor: pointer;

    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.anim-ctl-btn:hover {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-text-soft) 35%, var(--color-border));
}

.anim-ctl-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

:root[data-theme="dark"] .anim-ctl-btn {
    background: var(--color-bg-soft);
}

@media (prefers-reduced-motion: reduce) {

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

    .live-dot::after {
        animation: none;
    }
}

/* ===================================================================
   The last call (src/partials/cta.html): a green band like the hero, the same two buttons
   =================================================================== */

.cta {
    padding-block: clamp(56px, 8vw, 104px) clamp(16px, 3vw, 40px);
}

.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    max-width: 1220px;
    margin-inline: auto;
    padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px);

    border-radius: clamp(22px, 3vw, 32px);
    background: linear-gradient(165deg, var(--hero-top), var(--hero-bottom));
    color: var(--on-hero);
    text-align: center;
}

:root[data-theme="dark"] .cta-band {
    border: 1px solid color-mix(in srgb, var(--color-green) 22%, transparent);
}

.cta-wave {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    z-index: -1;

    height: 75%;
    opacity: .5;
    pointer-events: none;
}

.cta-wave svg {
    width: 100%;
    max-width: none;
    height: 100%;
}

.cta-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.cta-accent {
    color: var(--on-hero-accent);
}

:root:not([data-theme="dark"]) .cta-accent {
    color: #14532d; /* white on the light green band is under 3:1 */
}

.cta-lead {
    max-width: 46ch;
    margin: 14px auto 0;

    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: color-mix(in srgb, var(--on-hero) 86%, transparent);
    text-wrap: balance;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(24px, 3vw, 32px);
}

.cta-note {
    margin-top: 16px;

    font-size: 14px;
    font-weight: 600;
    color: color-mix(in srgb, var(--on-hero) 76%, transparent);
}

/* ===== focus rings: the site's green ring is too faint on white and vanishes on green ===== */

/* (the big animation under the head sits on white too, and partly on the green: the dark green ring shows on both) */
:root:not([data-theme="dark"]) :is(.page-sec:not(.cta), .page-stage) :focus-visible {
    outline-color: var(--green-text);
}

:is(.cta-band, .page-head) :focus-visible {
    outline-color: var(--on-hero);
}

/* ===================================================================
   Narrower screens
   =================================================================== */

@media (max-width: 960px) {

    .features,
    .features.is-2,
    .cards,
    .cards.is-2 {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
    }

    .cards.is-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* one column: the text first, then its picture */
    .split,
    .split:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .split:nth-child(even) .split-media {
        order: 0;
    }

    .split-copy {
        max-width: 62ch;
    }
}

@media (max-width: 640px) {

    .page-btn {
        flex: 1 1 auto;
        height: 50px;
        padding-inline: 20px;
    }

    .cards.is-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 22px 20px 24px;
    }

    .app-bar {
        height: 34px;
        padding-inline: 10px;
    }

    .app-dots i {
        width: 8px;
        height: 8px;
    }

    .app-address {
        height: 22px;
        padding-inline: 10px;
        font-size: 11.5px;
    }

    .faq-q {
        padding: 17px 18px;
        font-size: 16px;
    }

    .faq-a {
        padding: 0 18px 18px;
        font-size: 15.5px;
    }

    .code-box pre {
        padding: 14px 14px 16px;
        font-size: 13px;
    }

    .prose {
        font-size: 16px;
    }

    .cta-wave {
        height: 55%;
    }
}
