/*
 | MedWeg site styles: the same design language as MedWeg Academy, so the
 | homepage and the app read as one product. Fredoka (+ Baloo Bhaijaan 2 for
 | Arabic) for headings and buttons, Plus Jakarta Sans (+ IBM Plex Sans Arabic)
 | for text, the Academy palette, chunky buttons with a lip that sinks on press,
 | and cards with a heavier bottom edge.
 |
 | Fonts are self-hosted (fonts.css): no request to Google or any other third
 | party, so the site still needs no consent banner.
 */
@import url("fonts.css");

:root {
    --brand: #6C4CF1;
    --brand-dark: #5436C9;
    --sky: #22A5F7;
    --sky-dark: #1783CB;
    --green: #2BC24A;
    --green-dark: #1F9B39;
    --orange: #FF9F1C;
    --red: #FF4757;
    --teal: #0D9488;
    --ink: #20232B;
    --muted: #6F7480;
    --faint: #AFB4BF;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #F4F5F7;
    --soft: #EDE8FE;
    --line: #E5E7EB;
    --line-strong: #D3D7DE;
    --locked: #E5E5E5;
    --locked-dark: #C8C8C8;
    --on-locked: #AFAFAF;
    --gold: #FF9F1C;
    --ok: #2BC24A;
    --ok-soft: #DFF7E4;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(32, 35, 43, .08);
    --display: Fredoka, "Baloo Bhaijaan 2", "Plus Jakarta Sans", system-ui, sans-serif;
    --font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
    --academy-bg: #E3F3FE; --academy-ink: #1783CB;
    --friends-bg: #DFF7E4; --friends-ink: #1F9B39;
    color-scheme: light;
}
/* Dark: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #8B70FF; --brand-dark: #6749DB; --sky: #4FB8FF; --sky-dark: #2E8FD1;
        --green: #4ED96B; --green-dark: #33AE4D; --orange: #FFB74D; --red: #FF6B78; --teal: #2DD4BF;
        --ink: #F2F3F5; --muted: #9CA3AF; --faint: #676D78; --bg: #14161B; --surface: #1C1F26; --surface-alt: #242830;
        --soft: #2A2350; --line: #2E333C; --line-strong: #3B414B;
        --locked: #3A3F49; --locked-dark: #2A2E36; --on-locked: #7B818D; --ok: #4ED96B; --ok-soft: #12331B;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
        --academy-bg: #16304A; --academy-ink: #4FB8FF; --friends-bg: #12331B; --friends-ink: #4ED96B;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --brand: #8B70FF; --brand-dark: #6749DB; --sky: #4FB8FF; --sky-dark: #2E8FD1;
    --green: #4ED96B; --green-dark: #33AE4D; --orange: #FFB74D; --red: #FF6B78; --teal: #2DD4BF;
    --ink: #F2F3F5; --muted: #9CA3AF; --faint: #676D78; --bg: #14161B; --surface: #1C1F26; --surface-alt: #242830;
    --soft: #2A2350; --line: #2E333C; --line-strong: #3B414B;
    --locked: #3A3F49; --locked-dark: #2A2E36; --on-locked: #7B818D; --ok: #4ED96B; --ok-soft: #12331B;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --academy-bg: #16304A; --academy-ink: #4FB8FF; --friends-bg: #12331B; --friends-ink: #4ED96B;
    color-scheme: dark;
}
/*
 | German palette (owner's choice 2026-10-25, same values as the app's lib/theme/ds_colors.dart):
 | red brand, charcoal accent (in place of sky blue/teal), gold, raspberry for errors.
 | The purple Academy values above stay untouched: delete this block (and restore
 | assets/logo.svg from assets/logo-purple.svg) to go back to purple.
 */
:root {
    --brand: #E23744; --brand-dark: #B3202D; --soft: #FDEBEC;
    --sky: #2D3038; --sky-dark: #15171C; --teal: #F5B800;
    --orange: #C99400; --gold: #F5B800; --red: #D81B60;
    --ink: #16171B;
    --academy-bg: #EEEFF2; --academy-ink: #2D3038;
    --brand-shadow: rgba(226, 55, 68, .18);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #FF5C66; --brand-dark: #D13C47; --soft: #3D1A1E;
        --sky: #D5D8DE; --sky-dark: #A9AEB8; --on-sky: #15171C; --teal: #FFCB3D;
        --orange: #FFCB3D; --gold: #FFCB3D; --red: #FF5C9A;
        --ink: #F2F3F5;
        --academy-bg: #2A2D33; --academy-ink: #D5D8DE;
    }
}
:root[data-theme="dark"] {
    --brand: #FF5C66; --brand-dark: #D13C47; --soft: #3D1A1E;
    --sky: #D5D8DE; --sky-dark: #A9AEB8; --on-sky: #15171C; --teal: #FFCB3D;
    --orange: #FFCB3D; --gold: #FFCB3D; --red: #FF5C9A;
    --ink: #F2F3F5;
    --academy-bg: #2A2D33; --academy-ink: #D5D8DE;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .brand, summary { font-family: var(--display); font-weight: 700; }
a { color: var(--brand); text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; font-family: var(--display); font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 12px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--brand); background: var(--soft); }
.theme-toggle, .lang-toggle { border: 2px solid var(--line); border-bottom-width: 4px; background: var(--surface); color: var(--ink); border-radius: 12px; height: 40px; cursor: pointer; transition: transform 80ms, border-bottom-width 80ms; }
.theme-toggle { width: 44px; font-size: 16px; }
.lang-toggle { padding: 0 14px; font: 700 14px var(--display); }
.theme-toggle:active, .lang-toggle:active { transform: translateY(2px); border-bottom-width: 2px; }
@media (max-width: 760px) { .nav { display: none; } .theme-toggle { margin-inline-start: auto; } }

/*
 | Buttons: the Academy's chunky 3D button. The lip is a box-shadow so pressing
 | costs no layout: the face moves down by the lip height while the lip
 | collapses, and the button appears to sink.
 */
.btn { --lip: 4px; --lip-color: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 16px; font: 700 16px/1.2 var(--display); letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; box-shadow: 0 var(--lip) 0 0 var(--lip-color); transition: box-shadow 80ms ease-out, transform 80ms ease-out, filter 120ms; }
html[lang="en"] .btn { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.btn:hover { filter: brightness(1.05); }
.btn:active { box-shadow: 0 0 0 0 var(--lip-color); transform: translateY(var(--lip)); }
.btn-primary { background: var(--brand); color: #fff; --lip-color: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--sky); border-color: var(--line-strong); --lip-color: var(--line-strong); }
.btn-green { background: var(--green); color: #fff; --lip-color: var(--green-dark); }
.btn-sky { background: var(--sky); color: var(--on-sky, #fff); --lip-color: var(--sky-dark); }

/* the small pill above a heading */
.eyebrow, .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--brand); font: 700 12px var(--display); letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; }
html[lang="en"] .eyebrow, html[lang="en"] .badge { text-transform: uppercase; }
.eyebrow { border: 2px solid var(--brand); font-size: 13px; }
.badge.green { background: var(--ok-soft); color: var(--green-dark); }
.badge.sky { background: var(--academy-bg); color: var(--academy-ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; border-bottom: 2px solid var(--line); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; margin: 18px 0 16px; max-width: 820px; }
.hero h1 em { font-style: normal; background-image: linear-gradient(100deg, var(--brand) 0%, var(--sky) 28%, var(--teal) 42%, var(--brand) 62%, var(--brand) 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
.hero p.lead { font-size: clamp(17px, 2.1vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13px var(--display); }
.trust span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { text-align: center; } .hero .cta, .trust { justify-content: center; } .hero h1, .hero p.lead { margin-inline: auto; } }

/* the drifting colour wash behind the hero (Academy "aurora") */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 19s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 520px; height: 520px; top: -30%; inset-inline-start: -10%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 34%, transparent), transparent 68%); }
.aurora i:nth-child(2) { width: 460px; height: 460px; top: -18%; inset-inline-end: -12%; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 28%, transparent), transparent 68%); animation-duration: 23s; animation-delay: -7s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; bottom: -30%; inset-inline-start: 32%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 68%); animation-duration: 31s; animation-delay: -14s; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--surface-alt); border-block: 2px solid var(--line); }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.2; margin: 12px 0 10px; }
.sec-title p { color: var(--muted); margin: 0 auto; max-width: 640px; font-size: 16px; }

/* card: 2px outline, heavier bottom edge, lifts on hover */
.card-weight, .step, .product, .who div, .numbers div, .faq details, .about { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; }
.lift { transition: transform .2s, border-color .2s; }
.lift:hover { transform: translateY(-4px); border-color: var(--brand); }

/* numbers band */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.numbers div { padding: 22px 16px; text-align: center; }
.numbers b { display: block; font: 700 38px/1.1 var(--display); color: var(--ink); }
.numbers div:nth-child(1) b { color: var(--brand); }
.numbers div:nth-child(2) b { color: var(--green); }
.numbers div:nth-child(3) b { color: var(--sky); }
.numbers div:nth-child(4) b { color: var(--orange); }
.numbers span { color: var(--muted); font: 600 13px var(--display); letter-spacing: .02em; }
@media (max-width: 700px) { .numbers { grid-template-columns: 1fr 1fr; } }

/*
 | The way to Germany, as a numbered rail (Academy "how it works"): each number
 | fills in when its step scrolls in.
 */
.rail { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.rail li { position: relative; display: flex; gap: 18px; padding-bottom: 18px; }
.rail li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 27px; top: 58px; bottom: 0; width: 2px; background: var(--line); }
.rail .n { position: relative; z-index: 1; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--faint); display: flex; align-items: center; justify-content: center; font: 700 20px var(--display); transition: background .5s, color .5s, border-color .5s; }
.rail li.in .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.rail li.academy.in .n { background: var(--sky); border-color: var(--sky); }
.step { flex: 1; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.step .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--soft); }
.step h3 { margin: 0 0 2px; font-size: 18px; }
.step p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.step .tag { display: inline-block; font: 700 12px var(--display); padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.step .tag.academy { background: var(--academy-bg); color: var(--academy-ink); }
.rail li.academy .step { border-color: color-mix(in srgb, var(--sky) 55%, var(--line)); }
.rail li.academy .ico { background: var(--academy-bg); }

/* showcase: text with a check list on one side, a product mock on the other */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; margin: 16px 0 8px; }
.showcase .sub { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: "✓"; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--ok-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font: 800 14px var(--font); }
.checks b { display: block; font: 700 17px var(--display); }
.checks span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 40px; } .showcase.flip .mock-col { order: 2; } }

/* Academy mock: the exam path, nodes unlocking one after another */
.mock-col { position: relative; max-width: 400px; width: 100%; margin: 0 auto; }
.pathmock { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.unit { background: var(--brand); color: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 4px 0 0 var(--brand-dark); margin-bottom: 26px; }
.unit small { display: block; font: 700 11px var(--display); letter-spacing: .1em; opacity: .8; }
html[lang="en"] .unit small { text-transform: uppercase; }
.unit b { font: 700 19px var(--display); }
.nodes { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: 8px; }
.node { position: relative; transform: translateX(var(--x, 0)); }
[dir="rtl"] .node { transform: translateX(calc(var(--x, 0) * -1)); }
.node > span { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: var(--green); box-shadow: 0 6px 0 0 var(--green-dark); opacity: 0; transform: scale(.6); transition: opacity .45s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.node.current > span { background: var(--brand); box-shadow: 0 6px 0 0 var(--brand-dark); }
.node.locked > span { background: var(--locked); box-shadow: 0 6px 0 0 var(--locked-dark); color: var(--on-locked); filter: grayscale(1); }
.pathmock.in .node > span { opacity: 1; transform: none; }
.node .label { position: absolute; top: 50%; inset-inline-start: calc(100% + 12px); transform: translateY(-50%); white-space: nowrap; font: 700 12px var(--display); color: var(--muted); }
.node.current .label { color: var(--brand); }
.node .start { position: absolute; top: -34px; left: 50%; translate: -50% 0; white-space: nowrap; border: 2px solid var(--line); background: var(--surface); color: var(--brand); border-radius: 10px; padding: 2px 9px; font: 700 11px var(--display); letter-spacing: .06em; animation: bob 2.4s ease-in-out infinite; }
.chip { position: absolute; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; font: 700 17px var(--display); box-shadow: var(--shadow); animation: bob 2.6s ease-in-out infinite; z-index: 2; }
.chip.tr { top: -14px; inset-inline-end: -14px; }
.chip.bl { bottom: -14px; inset-inline-start: -14px; animation-delay: -.8s; }
.chip.ml { top: 46%; inset-inline-start: -30px; animation-delay: -1.6s; font-size: 14px; }
.chip .score { color: var(--green); }

/* MedWeg AI mock: one answer with its sources and the state it is for */
.answer-mock { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.q { justify-self: start; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 18px; border-end-start-radius: 6px; font-size: 14px; max-width: 90%; }
.a { background: var(--surface-alt); border-radius: 18px; padding: 14px 16px; font-size: 14px; color: var(--ink); }
.a ol { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sources span { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; padding: 6px 10px; font: 700 12px var(--display); background: var(--surface); }
.state-pill { justify-self: start; background: var(--academy-bg); color: var(--academy-ink); border-radius: 999px; padding: 4px 12px; font: 700 12px var(--display); }

/* stations strip */
.stations { display: flex; gap: 8px; margin: 0 0 26px; flex-wrap: wrap; }
.stations span { font: 700 13px var(--display); padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); }

/* state teaser */
.teaser { position: relative; overflow: hidden; background: var(--green); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; box-shadow: 0 6px 0 0 var(--green-dark); }
.teaser h2 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; }
.teaser p { margin: 0 0 24px; opacity: .95; }
.teaser .btn { background: #fff; color: var(--green-dark); --lip-color: rgba(0, 0, 0, .18); }
.teaser .states { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.teaser .states span { background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 12px; font: 700 14px var(--display); }
@media (max-width: 800px) { .teaser { grid-template-columns: 1fr; padding: 28px; } }

/* for whom */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who div { padding: 26px; text-align: center; }
.who .emoji { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; font-size: 36px; background: var(--soft); }
.who div:nth-child(2) .emoji { background: var(--academy-bg); }
.who div:nth-child(3) .emoji { background: var(--ok-soft); }
.who h3 { margin: 12px 0 4px; font-size: 20px; }
.who p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } }

/* about + faq */
.about { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 34px; }
.about .avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--brand); box-shadow: 0 5px 0 0 var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 40px var(--display); }
.about h3 { margin: 0 0 6px; font-size: 24px; }
.about p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; text-align: center; } .about .avatar { margin: 0 auto; } }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 18px 20px; border-bottom-width: 4px; }
.faq details[open] { border-color: var(--brand); }
.faq summary { font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* footer */
footer.site { border-top: 2px solid var(--line); padding: 32px 0 40px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer.site a { color: var(--muted); font-weight: 600; }
footer.site a:hover { color: var(--brand); }
footer.site .legal { margin-inline-start: auto; display: flex; gap: 18px; }
.note { font-size: 13px; color: var(--faint); }

/* ───────────────────────── motion ───────────────────────── */
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1) } 33% { transform: translate3d(6%, -5%, 0) scale(1.12) } 66% { transform: translate3d(-5%, 4%, 0) scale(.94) } 100% { transform: translate3d(0, 0, 0) scale(1) } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-5px); opacity: 1 } }
@keyframes sheen { to { background-position: 200% center } }

/* hero visual: a chat that types itself, and a simulation card (kept as it was) */
.visual { position: relative; min-height: 420px; margin-bottom: 44px; }
.phone { position: relative; z-index: 4; background: var(--surface); border: 2px solid var(--line); border-radius: 28px; padding: 16px; box-shadow: 0 30px 60px var(--brand-shadow, rgba(108, 76, 241, .18)); max-width: 380px; margin-inline-start: auto; }
.phone-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.phone-top img { width: 32px; height: 32px; }
.phone-top b { display: block; font: 700 16px var(--display); }
.phone-top small { color: var(--green); font-weight: 700; font-size: 12px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 14px; margin-bottom: 10px; opacity: 0; animation: pop .5s ease forwards; }
/* Mirrors with the language: the question at the start side (right in Arabic,
   left in English), the answer at the end side, away from the simulation card. */
.bubble.me { background: linear-gradient(135deg, var(--brand), var(--sky)) border-box; color: #fff; margin-inline-end: auto; border-end-start-radius: 6px; }
.bubble.bot { background: var(--soft); color: var(--ink); margin-inline-start: auto; border-end-end-radius: 6px; }
#chat { display: flex; flex-direction: column; }
.bubble .src { display: block; margin-top: 6px; font-size: 11px; color: var(--brand); font-weight: 700; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--soft); border-radius: 18px; margin-inline-start: auto; opacity: 0; animation: pop .3s ease forwards; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
.sim-card { position: absolute; z-index: 2; bottom: -44px; inset-inline-start: 0; width: 236px; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.sim-card .label { font: 700 11px var(--display); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.sim-card .title { font: 700 15px var(--display); margin: 4px 0 10px; }
.sim-card .row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }
.sim-card .meter { flex: 1; height: 10px; background: var(--surface-alt); border-radius: 99px; overflow: hidden; }
.sim-card .meter div { height: 100%; border-radius: 99px; background: var(--green); }
@media (max-width: 900px) { .visual { min-height: 0; margin-top: 10px; } .phone { margin-inline: auto; } .sim-card { position: static; margin: 14px auto 0; width: auto; max-width: 380px; } }

/* final call */
.final { position: relative; overflow: hidden; text-align: center; background: var(--brand); color: #fff; border-radius: 32px; padding: 60px 24px; box-shadow: 0 6px 0 0 var(--brand-dark); }
.final h2 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 10px; position: relative; }
.final p { margin: 0 0 28px; opacity: .92; position: relative; }
.final .cta { justify-content: center; position: relative; }
.final .btn-primary { background: #fff; color: var(--brand); --lip-color: rgba(0, 0, 0, .2); }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); --lip-color: rgba(0, 0, 0, .2); }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.final::before { width: 260px; height: 260px; top: -90px; inset-inline-start: -60px; }
.final::after { width: 200px; height: 200px; bottom: -80px; inset-inline-end: -40px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .bubble, .typing, .node > span { opacity: 1; transform: none; }
}

.insta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 18px; border-radius: 14px; font: 700 15px var(--display); color: #fff;
    background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); box-shadow: 0 4px 0 0 #6a2a8f; transition: transform 80ms, box-shadow 80ms; }
.insta:active { transform: translateY(4px); box-shadow: none; }
.insta[hidden] { display: none; }
.insta .handle { opacity: .9; font-weight: 600; }

.soon { cursor: default; opacity: .75; }
.soon-tag { font-weight: 600; opacity: .85; font-size: .9em; }
.node .label { font-style: normal; }
.node.current { margin-top: 18px; }
.node.current > span { width: 70px; height: 70px; outline: 4px solid color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 4px; }
.chip { direction: ltr; }

/* German palette, component tweaks (delete together with the German token block to go back to purple). */
.teaser { background: var(--gold); color: #1A1A1A; box-shadow: 0 6px 0 0 #C99400; }
.teaser .btn { background: #1A1A1A; color: #fff; --lip-color: rgba(0, 0, 0, .35); }
.teaser .states span { background: rgba(255, 255, 255, .35); border-color: rgba(26, 26, 26, .15); }
.bubble.me { background: linear-gradient(135deg, var(--brand), var(--brand-dark)) border-box; }
