/* ============================================================================
   CASASAC website. Same theming mechanism as the O-DOMO model site: every
   colour is a token, a theme is an override block selected by
   <html data-site-theme="..."> (SiteTheme: ?theme= → cookie → default).

   The look is the APP's own material, not a generic marketing skin:
     CARBON    (default) black moulded-plastic panes with the hard gloss line
               on their top 42 %, lit aqua keys, carbon twill ground;
     PORCELAIN its light sibling, the same aqua deepened where it is text.
   Two semantic accents only: AQUA = the assistant / anything you press,
   SHELF-TAG YELLOW = money (prices, savings, the expenses module).

   Type: Bricolage Grotesque (display, condensed widths), Open Sans (the
   app's text face), IBM Plex Mono (receipts, labels, figures). All bundled
   locally (no CDN).
   ============================================================================ */

/* ---------- fonts ---------- */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("fonts/BricolageGrotesque-var.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face { font-family: "CAS Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CAS Open Sans"; src: url("fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "CAS Open Sans"; src: url("fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- THEME: CARBON (default) ---------- */
:root {
    --c-bg: #050707;
    --c-bg-raise: #0d1112;
    --c-pane: #0c0f10;
    --c-surface: rgba(255, 255, 255, 0.045);
    --c-surface-2: rgba(255, 255, 255, 0.085);
    --c-well: rgba(0, 0, 0, 0.42);
    --c-border: rgba(255, 255, 255, 0.13);
    --c-border-strong: rgba(255, 255, 255, 0.26);
    --c-text: #eef4f4;
    --c-text-dim: rgba(238, 244, 244, 0.68);
    --c-text-faint: rgba(238, 244, 244, 0.46);

    --c-aqua: #19e6ea;
    --c-aqua-ink: #19e6ea;
    --c-on-aqua: #00191a;
    --c-aqua-glow: rgba(25, 230, 234, 0.34);
    --c-tag: #ffd84a;
    --c-tag-ink: #ffd84a;
    --c-on-tag: #241c00;

    --c-paper: #f3f1ea;
    --c-paper-ink: #1c1c1a;
    --c-paper-faint: #7b776d;
    --c-paper-tag: #0f6c70;
    --c-paper-money: #8a6300;
    --c-frame-bg: #ffffff;
    --c-on-photo: #f4f8f8;
    --c-photo-scrim: rgba(3, 6, 7, 0.86);

    --c-ok: #45d68f;
    --c-ok-ink: #8ff0bd;
    --c-bad: #ff4d5a;
    --c-bad-ink: #ff9aa0;
    --c-warn: #ffa02e;
    --c-warn-ink: #ffd28a;
    --c-nec-1: #45d68f;
    --c-nec-2: #19e6ea;
    --c-nec-3: #ffd84a;
    --c-nec-4: #ff6b5a;
    --c-avatar-2: #ffd84a;
    --c-avatar-3: #ff8a6b;

    --c-wallet-bg: #ffffff;
    --c-wallet-fg: #000000;

    /* The app's signature: a hard gloss line at 42 % of every pane / key. */
    --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.085) 42%, rgba(255, 255, 255, 0) 42.4%);
    --pane-hilite: inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 -1px 0 rgba(0, 0, 0, 0.9);
    --key-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 44%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0) 100%);
    --key-base: #121414;
    --lit-bg: linear-gradient(180deg, color-mix(in srgb, var(--c-aqua) 58%, white) 0%, color-mix(in srgb, var(--c-aqua) 78%, white) 44%, var(--c-aqua) 45%, color-mix(in srgb, var(--c-aqua) 80%, black) 100%);
    --lit-glow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 0 14px color-mix(in srgb, var(--c-aqua) 50%, transparent), 0 6px 20px color-mix(in srgb, var(--c-aqua) 28%, transparent);
    --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.6);
    --gloss-cap: 116px;
    --twill-opacity: 0.55;

    color-scheme: dark;
}

/* ---------- THEME: PORCELAIN (light) ---------- */
html[data-site-theme="porcelain"] {
    --c-bg: #e6edef;
    --c-bg-raise: #f5f8f9;
    --c-pane: #ffffff;
    --c-surface: rgba(255, 255, 255, 0.72);
    --c-surface-2: rgba(10, 42, 48, 0.055);
    --c-well: rgba(10, 42, 48, 0.05);
    --c-border: rgba(10, 42, 48, 0.15);
    --c-border-strong: rgba(10, 42, 48, 0.3);
    --c-text: #0b1518;
    --c-text-dim: rgba(11, 21, 24, 0.72);
    --c-text-faint: rgba(11, 21, 24, 0.54);

    --c-aqua: #19d3d8;
    --c-aqua-ink: #007c81;
    --c-on-aqua: #00282a;
    --c-aqua-glow: rgba(25, 211, 216, 0.3);
    --c-tag: #ffc93c;
    --c-tag-ink: #7a5600;
    --c-on-tag: #2b2100;

    --c-ok-ink: #13744d;
    --c-bad-ink: #b3202f;
    --c-warn-ink: #8a4f06;
    --c-nec-1: #13a36a;
    --c-nec-2: #0fb3b8;
    --c-nec-3: #e0a800;
    --c-nec-4: #e2513c;

    --c-wallet-bg: #000000;
    --c-wallet-fg: #ffffff;

    --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 42%, rgba(255, 255, 255, 0) 42.4%);
    --pane-hilite: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(10, 42, 48, 0.08);
    --key-bg: linear-gradient(180deg, #ffffff 0%, #f6f9fa 44%, #eaf0f2 45%, #e2e9eb 100%);
    --key-base: #ffffff;
    --shadow-card: 0 16px 40px rgba(10, 42, 48, 0.13);
    --twill-opacity: 0;

    color-scheme: light;
}

/* ---------- theme-independent tokens ---------- */
:root {
    --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    --font-body: "CAS Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-key: 12px;
    --header-h: 72px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--c-aqua-glow); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--c-aqua); outline-offset: 3px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }

/* ---------- ground ---------- */
.site-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.bg-twill {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: url("img/carbon-fibre.jpg") 0 0 / 72px 72px repeat;
    opacity: var(--twill-opacity);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
}
.bg-glow {
    position: fixed; inset: -10% -10% auto auto; width: 70vw; height: 70vh; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, var(--c-aqua-glow), transparent);
    opacity: 0.35; filter: blur(30px);
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: 0 0 auto; filter: drop-shadow(0 0 10px var(--c-aqua-glow)); }
.lm-tile { fill: var(--c-bg); stroke: var(--c-aqua); stroke-width: 2.2; }
.lm-basket { fill: none; stroke: var(--c-aqua); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lm-roof { fill: none; stroke: var(--c-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font-family: var(--font-display); font-weight: 760; font-stretch: 88%; font-size: 1.32rem; letter-spacing: 0.03em; color: var(--c-text); }
.logo-word .ll { font-style: normal; display: inline-block; backface-visibility: visible; }
/* Mirror colouring: white | split centre | aqua (the palindrome's own symmetry). */
.logo-word { position: relative; white-space: nowrap; }
.logo-word .ll-l { color: var(--c-text); }
.logo-word .ll-r { color: var(--c-aqua-ink); }
.logo-word .ll-mid {
    color: transparent;
    background: linear-gradient(90deg, var(--c-text) 50%, var(--c-aqua-ink) 50%);
    -webkit-background-clip: text; background-clip: text;
}
/* The mirror axis through the centre A, shown while the letters move. */
.logo-word::after {
    content: ""; position: absolute; left: 50%; top: -22%; bottom: -22%; width: 2px; margin-left: -1px;
    border-radius: 1px; background: var(--c-aqua); box-shadow: 0 0 8px var(--c-aqua-glow);
    opacity: 0; transform: scaleY(0.2); transition: opacity 0.35s, transform 0.45s var(--ease-out);
    pointer-events: none;
}
.logo.is-mirroring .logo-word::after { opacity: 0.9; transform: scaleY(1); }
.logo-word .ll.is-read { text-shadow: 0 0 12px var(--c-aqua-glow); }
/* The palindrome logo: the letters live in 3D space while they walk / turn. */
.logo-anim { perspective: 520px; }
.logo-anim .logo-word { display: inline-block; transform-style: preserve-3d; }
.logo-anim .ll { will-change: transform; transform-style: preserve-3d; }
.logo-anim .logo-mark { transform-style: preserve-3d; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40; height: var(--header-h);
    display: flex; align-items: center; gap: 20px;
    padding: 0 clamp(16px, 4vw, 40px);
    background: color-mix(in srgb, var(--c-bg) 72%, transparent);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid var(--c-border);
}
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand { flex: none; }
.header-link { color: var(--c-text-dim); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; white-space: nowrap; }
.header-link:hover { color: var(--c-text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- keys (buttons): the app's moulded keys, never pills ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
    border-radius: var(--radius-key); padding: 12px 22px; cursor: pointer;
    border: 1px solid var(--c-border-strong);
    background: var(--key-bg), var(--key-base); color: var(--c-text);
    box-shadow: var(--pane-hilite), 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s var(--ease-out), box-shadow 0.2s, filter 0.2s;
    white-space: nowrap; text-align: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--lit-bg); color: var(--c-on-aqua); border-color: color-mix(in srgb, var(--c-aqua) 60%, white); box-shadow: var(--lit-glow); }
.btn-ghost { }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-aqua-ink); font-weight: 600; cursor: pointer; }

/* ---------- sections ---------- */
.site-main { flex: 1; }
.page-top { height: 24px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 720px; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--c-aqua-ink); margin: 0 0 16px; }
.eyebrow-money { color: var(--c-tag-ink); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 730; font-stretch: 88%; letter-spacing: -0.012em; margin-bottom: 14px; text-wrap: balance; }
.section-sub { color: var(--c-text-dim); font-size: 1.12rem; max-width: 640px; margin: 0; }
.section-foot { margin-top: 22px; color: var(--c-text-faint); font-size: 0.9rem; max-width: 760px; }

/* ---------- hero ---------- */
.hero {
    display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 72px);
    align-items: center; min-height: calc(92vh - var(--header-h));
    max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px);
}
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 760; font-stretch: 86%; letter-spacing: -0.018em; line-height: 1; text-wrap: balance; }
.hero-lit { display: block; color: var(--c-aqua-ink); text-shadow: 0 0 34px var(--c-aqua-glow); }
.hero-sub { color: var(--c-text-dim); font-size: clamp(1.05rem, 1.7vw, 1.22rem); margin: 24px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; color: var(--c-text-faint); font-size: 0.9rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.hero-visual { position: relative; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise-in 0.7s var(--ease-out) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

/* ---------- THE voice demo (signature) ---------- */
.vd { position: relative; max-width: 470px; margin-left: auto; }
.vd::before {
    content: ""; position: absolute; inset: 8% -6% -6% 6%; z-index: -1;
    background: radial-gradient(closest-side, var(--c-aqua-glow), transparent); filter: blur(30px);
}
.vd-pane {
    border-radius: var(--radius-lg); padding: 22px 22px 18px;
    border: 1px solid var(--c-border-strong);
    background: var(--gloss) top / 100% var(--gloss-cap) no-repeat, var(--c-pane);
    box-shadow: var(--pane-hilite), var(--shadow-card);
}
.vd-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.vd-mic {
    width: 54px; height: 54px; border-radius: 16px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--lit-bg); box-shadow: var(--lit-glow);
}
.vd-mic svg { width: 26px; height: 26px; fill: none; stroke: var(--c-on-aqua); stroke-width: 2.2; stroke-linecap: round; }
.vd-mic svg rect { fill: var(--c-on-aqua); stroke: none; }
.vd-wave { display: flex; align-items: center; gap: 4px; height: 30px; }
.vd-wave i { display: block; width: 4px; height: 6px; border-radius: 2px; background: var(--c-aqua); opacity: 0.55; }
.vd-state { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-faint); }
@keyframes vd-bar { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@keyframes vd-ring { 0% { box-shadow: var(--lit-glow), 0 0 0 0 var(--c-aqua-glow); } 100% { box-shadow: var(--lit-glow), 0 0 0 16px transparent; } }
.vd.is-listening .vd-mic { animation: vd-ring 1.1s ease-out infinite; }
.vd.is-listening .vd-wave i { opacity: 1; animation: vd-bar 0.9s ease-in-out infinite; }
.vd.is-listening .vd-wave i:nth-child(2) { animation-delay: 0.12s; }
.vd.is-listening .vd-wave i:nth-child(3) { animation-delay: 0.3s; }
.vd.is-listening .vd-wave i:nth-child(4) { animation-delay: 0.05s; }
.vd.is-listening .vd-wave i:nth-child(5) { animation-delay: 0.22s; }
.vd.is-listening .vd-wave i:nth-child(6) { animation-delay: 0.4s; }
.vd.is-listening .vd-wave i:nth-child(7) { animation-delay: 0.16s; }
.vd.is-listening .vd-state { color: var(--c-aqua-ink); }

.vd-scene { display: none; }
.vd-scene.is-on { display: block; }
.vd-say {
    font-family: var(--font-display); font-weight: 520; font-stretch: 92%; font-size: 1.22rem; line-height: 1.3;
    min-height: 3.9em; margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--c-aqua);
}
@keyframes vd-caret { 50% { opacity: 0; } }
.vd.is-listening .vd-say::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--c-aqua); animation: vd-caret 0.8s steps(1) infinite; }

.vd-list { border-radius: 16px; background: var(--c-well); border: 1px solid var(--c-border); padding: 4px 14px 6px; }
.vd-list-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-faint); padding: 9px 0 6px; border-bottom: 1px solid var(--c-border); }
.vd-row {
    display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "tick name qty" "tick meta meta";
    column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-border);
}
.vd-row:last-child { border-bottom: 0; }
.vd-tick { grid-area: tick; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--c-border-strong); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3); }
.vd-name { grid-area: name; font-weight: 700; }
.vd-qty { grid-area: qty; font-family: var(--font-mono); font-size: 0.9rem; color: var(--c-text-dim); }
.vd-cat { grid-area: meta; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-faint); }
.vd-note { grid-area: meta; justify-self: end; font-size: 0.74rem; font-weight: 600; color: var(--c-aqua-ink); border: 1px solid color-mix(in srgb, var(--c-aqua) 45%, transparent); border-radius: 999px; padding: 1px 9px; }
.vd-live .vd-row { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), background-color 1.2s; }
.vd-live .vd-row.is-in { opacity: 1; transform: none; animation: vd-flash 1.3s ease-out; }
@keyframes vd-flash { 0% { background: color-mix(in srgb, var(--c-aqua) 18%, transparent); } 100% { background: transparent; } }
.vd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.vd-avatars { display: flex; }
.vd-avatars i {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--c-on-aqua);
    background: var(--c-aqua); border: 2px solid var(--c-pane); margin-left: -7px;
}
.vd-avatars i:first-child { margin-left: 0; }
.vd-avatars i:nth-child(2) { background: var(--c-avatar-2); color: var(--c-on-tag); }
.vd-avatars i:nth-child(3) { background: var(--c-avatar-3); color: var(--c-on-tag); }
.vd-synced { font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-text-dim); display: inline-flex; align-items: center; gap: 8px; }
.vd-synced::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 8px var(--c-ok); }

/* ---------- languages strip ---------- */
.speaks { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 8px; text-align: center; }
.speaks-label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-faint); margin: 0 0 12px; }
.speaks-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.speaks-row li { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 680; font-stretch: 82%; letter-spacing: -0.01em; line-height: 1.4; }
.speaks-row li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-aqua); margin: 0 0.7em; vertical-align: 0.3em; box-shadow: 0 0 10px var(--c-aqua-glow); }

/* ---------- steps (how it works) ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { min-width: 0; }
.step-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid var(--c-border); box-shadow: var(--shadow-card); }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.step:hover .step-img img { transform: scale(1.04); }
.step-num { font-family: var(--font-mono); font-weight: 600; color: var(--c-aqua-ink); font-size: 0.9rem; letter-spacing: 0.1em; margin: 18px 0 6px; }
.step-title { font-size: 1.5rem; font-weight: 700; font-stretch: 86%; margin-bottom: 8px; }
.step-body { color: var(--c-text-dim); margin: 0; }

/* ---------- cards ---------- */
.card {
    position: relative; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--c-border);
    background: var(--gloss) top / 100% var(--gloss-cap) no-repeat, var(--c-pane);
    box-shadow: var(--pane-hilite), var(--shadow-card);
    padding: 16px 16px 22px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--c-border-strong); }
.card-img-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; margin-bottom: 16px; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.card:hover .card-img { transform: scale(1.05); }
.card-title { font-size: 1.28rem; font-weight: 700; font-stretch: 88%; margin: 0 4px 6px; }
.card-body { color: var(--c-text-dim); font-size: 0.97rem; margin: 0 4px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }

.more { margin-top: 56px; border-top: 1px solid var(--c-border); padding-top: 28px; }
.more-title { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-faint); margin-bottom: 18px; }
.more-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; margin: 0; }
.more-item dt { font-family: var(--font-display); font-weight: 680; font-stretch: 90%; font-size: 1.08rem; margin-bottom: 4px; }
.more-item dd { margin: 0; color: var(--c-text-dim); font-size: 0.93rem; }

/* ---------- money (the receipt) ---------- */
.money-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.receipt {
    margin: 0 auto; width: 100%; max-width: 380px; padding: 30px 24px 24px;
    background: var(--c-paper); color: var(--c-paper-ink); font-family: var(--font-mono); font-size: 0.86rem;
    transform: rotate(-1.6deg); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    /* torn thermal paper, top and bottom */
    -webkit-mask: radial-gradient(circle 6px at 8px 0, transparent 98%, #000) top left / 16px 51% repeat-x,
                  radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 51% repeat-x;
    mask: radial-gradient(circle 6px at 8px 0, transparent 98%, #000) top left / 16px 51% repeat-x,
          radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 51% repeat-x;
}
.rc-head { text-align: center; border-bottom: 1px dashed var(--c-paper-faint); padding-bottom: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.rc-head strong { font-weight: 600; letter-spacing: 0.12em; }
.rc-head span { color: var(--c-paper-faint); font-size: 0.78rem; }
.rc-lines { list-style: none; margin: 0; padding: 0; }
.rc-lines li { display: grid; grid-template-columns: 1fr auto; padding: 8px 0 7px; border-bottom: 1px dotted color-mix(in srgb, var(--c-paper-faint) 50%, transparent); }
.rc-item { text-transform: uppercase; }
.rc-amt { font-weight: 500; }
.rc-tag { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; color: var(--c-paper-tag); }
.nec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.nec-1 { background: var(--c-nec-1); }
.nec-2 { background: var(--c-nec-2); }
.nec-3 { background: var(--c-nec-3); }
.nec-4 { background: var(--c-nec-4); }
.rc-saved, .rc-total { display: flex; justify-content: space-between; padding-top: 8px; }
.rc-saved { color: var(--c-paper-money); font-weight: 500; }
.rc-total { border-top: 1px dashed var(--c-paper-faint); margin-top: 8px; padding-top: 10px; font-weight: 600; font-size: 1.08rem; }
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-family: var(--font-body); font-size: 0.72rem; color: var(--c-paper-faint); }
.rc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.money-points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.money-points li { position: relative; padding-left: 26px; color: var(--c-text-dim); }
.money-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 9px; border-radius: 2px; background: var(--c-tag); box-shadow: 0 0 10px color-mix(in srgb, var(--c-tag) 40%, transparent); }
.money-points strong { color: var(--c-text); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.pricing-grid.plans { max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing-grid.addons { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 20px; }
.price-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); border: 1px solid var(--c-border);
    background: var(--gloss) top / 100% var(--gloss-cap) no-repeat, var(--c-pane);
    box-shadow: var(--pane-hilite), var(--shadow-card);
    padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.price-card.featured { border-color: color-mix(in srgb, var(--c-aqua) 60%, transparent); box-shadow: var(--pane-hilite), 0 0 0 1px var(--c-aqua-glow), 0 0 40px var(--c-aqua-glow); }
.price-badge { align-self: flex-start; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-aqua); background: var(--c-aqua); border-radius: 6px; padding: 3px 9px; margin-bottom: 8px; }
.price-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; font-stretch: 88%; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.price-amount { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 760; font-stretch: 80%; line-height: 1.05; letter-spacing: -0.02em; }
.addons .price-amount { font-size: 1.9rem; }
.price-per { color: var(--c-text-faint); font-size: 0.88rem; font-family: var(--font-mono); }
.price-desc { color: var(--c-text-dim); font-size: 0.95rem; margin: 8px 0 14px; }
.price-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-list li { display: flex; gap: 10px; font-size: 0.95rem; }
.price-list li::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 0.3em; border-radius: 4px; background: var(--c-aqua); box-shadow: 0 0 8px var(--c-aqua-glow); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.6L11 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.6L11 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price-card .btn { margin-top: auto; }
.pricing-foot { text-align: center; margin-top: 22px; color: var(--c-text-faint); font-size: 0.9rem; }
.pricing-foot a { color: var(--c-aqua-ink); font-weight: 600; }

@supports (grid-template-rows: subgrid) {
    .pricing-grid.plans > .price-card, .pricing-grid.addons > .price-card { display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
    .pricing-grid.plans > .price-card { grid-row: span 6; }
    .pricing-grid.addons > .price-card { grid-row: span 5; }
}
.pricing-grid.plans > .price-card { padding-top: 54px; }
.pricing-grid.plans .price-badge { position: absolute; top: 22px; left: 24px; margin-bottom: 0; }

/* CSS-only monthly / annual switch (static page) */
.bill-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.billing-toggle, .plan-toggle {
    display: flex; width: max-content; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 4px;
    margin: 30px auto 0; padding: 5px; border-radius: 14px;
    border: 1px solid var(--c-border); background: var(--c-well);
}
.billing-toggle label, .plan-toggle button {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 18px; border: 0; border-radius: 10px; background: transparent;
    font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--c-text-dim);
    transition: background 0.2s, color 0.2s;
}
#bill-mo:checked ~ .billing-toggle label[for="bill-mo"],
#bill-yr:checked ~ .billing-toggle label[for="bill-yr"],
.plan-toggle button.on { background: var(--lit-bg); color: var(--c-on-aqua); box-shadow: var(--lit-glow); }
#bill-mo:focus-visible ~ .billing-toggle label[for="bill-mo"],
#bill-yr:focus-visible ~ .billing-toggle label[for="bill-yr"] { outline: 2px solid var(--c-aqua); outline-offset: 2px; }
.save-badge { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--c-tag); color: var(--c-on-tag); }
.amt-yr, .per-yr, .cta-yr { display: none; }
#bill-yr:checked ~ .pricing-grid .amt-mo,
#bill-yr:checked ~ .pricing-grid .per-mo,
#bill-yr:checked ~ .pricing-grid .cta-mo { display: none; }
#bill-yr:checked ~ .pricing-grid .amt-yr,
#bill-yr:checked ~ .pricing-grid .per-yr { display: inline; }
#bill-yr:checked ~ .pricing-grid .cta-yr { display: inline-flex; }

/* ---------- closing band (photo) ---------- */
.cta-band {
    position: relative; max-width: var(--maxw); margin: 0 auto clamp(48px, 7vw, 96px);
    border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; align-items: center;
    background: linear-gradient(90deg, transparent 30%, var(--c-photo-scrim) 66%), url("img/hero.jpg") left center / cover no-repeat;
    border: 1px solid var(--c-border);
}
.cta-inner { margin-left: auto; max-width: 480px; padding: 40px clamp(24px, 4vw, 48px); color: var(--c-on-photo); }
.cta-inner .section-sub { color: color-mix(in srgb, var(--c-on-photo) 78%, transparent); margin-bottom: 26px; }

/* ---------- forms / panels ---------- */
.panel-page { max-width: 480px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 20px; }
.panel-card {
    border-radius: var(--radius-lg); border: 1px solid var(--c-border-strong);
    background: var(--gloss) top / 100% var(--gloss-cap) no-repeat, var(--c-pane);
    box-shadow: var(--pane-hilite), var(--shadow-card);
    padding: 32px;
}
.panel-title { font-size: 2rem; font-weight: 760; font-stretch: 84%; letter-spacing: -0.015em; margin-bottom: 6px; }
.panel-sub { color: var(--c-text-dim); margin: 0 0 22px; }
.panel-sub.flush { margin-bottom: 0; }
.panel-section { margin: 26px 0 10px; font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-faint); }
.panel-loading { display: flex; justify-content: center; padding: 40px 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field legend { font-size: 0.9rem; color: var(--c-text-dim); font-weight: 600; padding: 0; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field label { font-size: 0.9rem; color: var(--c-text-dim); font-weight: 600; }
.field-hint { color: var(--c-text-faint); font-size: 0.82rem; margin: 0 0 12px; }
.field input, .field select, .field textarea {
    background: var(--c-well); border: 1px solid var(--c-border); border-radius: 12px;
    padding: 12px 14px; color: var(--c-text); font-size: 1rem; font-family: var(--font-body); width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}
.field input[readonly] { opacity: 0.7; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
    -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23889999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: var(--c-bg-raise); color: var(--c-text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-aqua); box-shadow: 0 0 0 3px var(--c-aqua-glow); }
.field .choice { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--c-text); font-weight: 400; cursor: pointer; padding: 4px 0; }
.field .choice input { width: auto; accent-color: var(--c-aqua); margin: 0.3em 0 0; box-shadow: none; }
.field .choice a { color: var(--c-aqua-ink); font-weight: 600; text-decoration: underline; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; margin: 4px 0 14px; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.form-msg.err { background: color-mix(in srgb, var(--c-bad) 12%, transparent); color: var(--c-bad-ink); border-color: color-mix(in srgb, var(--c-bad) 40%, transparent); }
.form-msg.ok { background: color-mix(in srgb, var(--c-ok) 12%, transparent); color: var(--c-ok-ink); border-color: color-mix(in srgb, var(--c-ok) 40%, transparent); }
.form-msg.warn { background: color-mix(in srgb, var(--c-warn) 14%, transparent); color: var(--c-warn-ink); border-color: color-mix(in srgb, var(--c-warn) 45%, transparent); font-weight: 600; }
.form-alt { text-align: center; color: var(--c-text-dim); font-size: 0.92rem; margin-top: 16px; }
.form-alt a { color: var(--c-aqua-ink); font-weight: 600; }
.get-app { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.cancel-summary { border: 1px solid var(--c-border); border-radius: 12px; padding: 4px 16px; margin: 14px 0; background: var(--c-well); }
.cancel-summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--c-border); font-size: 0.93rem; }
.cancel-summary .row:last-child { border-bottom: none; }
.cancel-summary .row span { color: var(--c-text-dim); white-space: nowrap; }
.cancel-summary .row b { text-align: right; word-break: break-word; }

/* ---------- payment ---------- */
.panel-page:has(.pay-frame) { max-width: 720px; }
.pay-frame { width: 100%; height: 1150px; border: 0; border-radius: var(--radius); background: var(--c-frame-bg); }
.pay-choice { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-choice .btn { flex: 1 1 160px; }
.btn-wallet { background: var(--c-wallet-bg); color: var(--c-wallet-fg); border-color: var(--c-wallet-bg); box-shadow: none; font-family: -apple-system, "SF Pro Text", Roboto, sans-serif; font-size: 1.2rem; }
.pay-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.pay-total { font-family: var(--font-display); font-size: 1.8rem; font-weight: 760; font-stretch: 82%; white-space: nowrap; }
.pay-per { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; opacity: 0.65; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }

/* ---------- basket ---------- */
.cart-lines { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-well); font-size: 0.95rem; }
.cart-name { flex: 1; min-width: 0; font-weight: 700; }
.cart-per { display: block; font-weight: 400; font-size: 0.8rem; color: var(--c-text-dim); }
.cart-amount { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.cart-qty { display: inline-flex; align-items: center; gap: 4px; }
.cart-qty button { width: 28px; height: 28px; line-height: 1; cursor: pointer; border: 1px solid var(--c-border); border-radius: 8px; background: var(--key-bg), var(--key-base); color: var(--c-text); font: inherit; }
.cart-qty span { min-width: 20px; text-align: center; font-weight: 700; }
.cart-qty-flat { color: var(--c-text-dim); font-size: 0.9rem; }
.cart-remove { border: 0; background: transparent; cursor: pointer; color: var(--c-text-dim); font-size: 1.3rem; line-height: 1; padding: 0 2px; }
.cart-remove:hover { color: var(--c-text); }
.cart-more { margin: 10px 0 18px; }
.cart-more > summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--c-aqua-ink); }
.plan-toggle.acct-choice { margin-top: 18px; }
.panel-card .pricing-grid { margin-top: 16px; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: none; }
.panel-card .price-card { padding: 20px; }
.panel-card .pricing-grid.plans > .price-card { padding-top: 20px; }
.panel-card .price-amount { font-size: 1.7rem; }
.btn.is-current { cursor: default; opacity: 0.7; border-style: dashed; pointer-events: none; }

/* ---------- account dashboard ---------- */
.acct-page { max-width: 1240px; }
.acct-page:has(.pay-frame) { max-width: 1240px; }
.acct-cols > .acct-sec { break-inside: avoid; }
.acct-page .panel-card .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 900px) {
    .acct-cols { column-count: 2; column-gap: 32px; }
    .acct-cols > .acct-sec { margin-bottom: 24px; }
    .acct-cols > .acct-sec > .panel-section { margin-top: 0; }
    .acct-full + .acct-cols { margin-top: 26px; }
    .acct-cols2 .field, .acct-cols2 .acct-links, .acct-cols2 > .acct-sec > .btn-block { max-width: 420px; }
}
@media (min-width: 1500px) { .acct-cols { column-count: 3; } .acct-cols2 { column-count: 2; } }
.acct-grid { display: flex; flex-direction: column; gap: 6px; }
.acct-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 10px; font-size: 0.92rem; background: var(--c-well); }
.acct-row span { color: var(--c-text-dim); }
.acct-row strong { text-align: right; }
.acct-links { display: flex; flex-direction: column; gap: 8px; }
.acct-react { border-left: 3px solid var(--c-aqua); padding-left: 16px; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; font-size: 0.92rem; background: var(--c-well); }
.mod-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mod-name { font-weight: 700; }
.mod-status { font-size: 0.82rem; color: var(--c-text-dim); }
.mod-row.ending { border-color: color-mix(in srgb, var(--c-warn) 60%, transparent); }
.mod-row.ending .mod-status { color: var(--c-warn-ink); }
.mod-row .btn { flex: 0 0 auto; }
.acct-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.92rem; }
.acct-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pay-table th, .pay-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--c-border); }
.pay-table th { font-weight: 600; color: var(--c-text-faint); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-table td.amt, .pay-table th.amt { text-align: right; white-space: nowrap; font-family: var(--font-mono); }
.pay-table .st-ok { color: var(--c-ok-ink); }
.pay-table .st-failed { color: var(--c-bad-ink); }
.pay-table .st-refunded { color: var(--c-warn-ink); }

/* ---------- legal ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 20px; }
.legal-title { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 760; font-stretch: 84%; margin-bottom: 8px; }
.legal-meta { color: var(--c-text-faint); font-size: 0.88rem; font-family: var(--font-mono); margin-bottom: 26px; }
.legal-page h2 { font-size: 1.32rem; font-weight: 700; font-stretch: 88%; margin: 30px 0 8px; }
.legal-page p, .legal-page li { color: var(--c-text-dim); }
.legal-page a { color: var(--c-aqua-ink); }
.legal-notice { border: 1px solid var(--c-border-strong); border-radius: var(--radius); background: var(--c-well); padding: 18px 20px; margin: 18px 0 30px; font-size: 0.9rem; }
.legal-notice p { margin: 0 0 10px; }
.legal-notice p:last-child { margin-bottom: 0; }
.legal-notice .ln-lang { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--c-aqua-ink); margin-right: 8px; }
.co-name { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.co-name::before { content: "EB"; }
.co-name::after { content: "OX3"; }

/* ---------- language menu ---------- */
.site-lang { position: relative; }
.site-lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--c-border); border-radius: 10px; color: var(--c-text-dim); font-size: 0.86rem; font-weight: 600; font-family: var(--font-mono); }
.site-lang > summary::-webkit-details-marker { display: none; }
.site-lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--c-bg-raise); border: 1px solid var(--c-border); border-radius: 12px; padding: 6px; min-width: 160px; box-shadow: var(--shadow-card); z-index: 50; }
.site-lang-item { display: block; padding: 8px 12px; border-radius: 8px; color: var(--c-text-dim); font-size: 0.92rem; }
.site-lang-item:hover { background: var(--c-surface-2); color: var(--c-text); }
.site-lang-item.active { color: var(--c-aqua-ink); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); padding: 32px clamp(16px, 4vw, 40px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--c-text-faint); font-size: 0.88rem; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand .logo-mark { width: 26px; height: 26px; }
.footer-brand .logo-word { font-size: 1.05rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--c-text-dim); }
.footer-links a:hover { color: var(--c-text); }

/* ---------- theme picker (pre-launch) ---------- */
.theme-picker { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: flex; gap: 6px; padding: 7px; border-radius: 14px; background: color-mix(in srgb, var(--c-bg) 75%, transparent); border: 1px solid var(--c-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-card); }
.theme-dot { width: 28px; height: 28px; border-radius: 9px; border: 2px solid transparent; display: block; }
.theme-dot.active { border-color: var(--c-aqua); }
.theme-dot.carbon { background: linear-gradient(135deg, #0c0f10 55%, #19e6ea 55%); }
.theme-dot.porcelain { background: linear-gradient(135deg, #ffffff 55%, #19d3d8 55%); box-shadow: inset 0 0 0 1px rgba(10, 42, 48, 0.2); }

/* ---------- entrances (model site) ---------- */
html.js-on [data-slide] { opacity: 0; }
html.embed [data-slide] { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
.hero > *, .steps > *, .feat-grid > *, .pricing-grid > *, .money-grid > * { min-width: 0; }
@media (max-width: 1080px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .more-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .vd { margin: 8px auto 0; }
    .steps { grid-template-columns: 1fr; max-width: 560px; }
    .money-grid { grid-template-columns: 1fr; }
    .cta-band { margin-left: 16px; margin-right: 16px; background: linear-gradient(180deg, transparent 20%, var(--c-photo-scrim) 70%), url("img/hero.jpg") center / cover no-repeat; align-items: flex-end; min-height: 520px; }
    .cta-inner { margin: 0; }
}
@media (max-width: 1040px) {
    .nav-burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        margin-left: auto; width: 44px; height: 44px; padding: 11px; cursor: pointer;
        border-radius: 12px; border: 1px solid var(--c-border); background: var(--key-bg), var(--key-base);
    }
    .nav-burger span { display: block; height: 2px; width: 100%; background: var(--c-text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
    .header-nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px clamp(16px, 4vw, 40px) 20px;
        background: color-mix(in srgb, var(--c-bg) 94%, transparent);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-card);
    }
    #nav-toggle:checked ~ .header-nav { display: flex; }
    .header-link { display: block; padding: 11px 4px; font-size: 1.05rem; }
    .header-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 10px; }
    .header-actions .btn { width: 100%; }
    .site-lang { align-self: stretch; margin: 4px 0; }
    .site-lang > summary { width: max-content; }
    .site-lang-menu { position: static; min-width: 0; margin-top: 6px; padding: 4px 0 0; background: transparent; border: none; box-shadow: none; }
    #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
    .pay-frame { height: 1320px; }
    .panel-card { padding: 24px 20px; }
    .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .feat-grid, .more-list { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .theme-picker { bottom: 10px; right: 10px; }
    .vd-pane { padding: 18px 16px 14px; }
    .vd-say { font-size: 1.08rem; }
}

/* Reduced motion stills the ambient bits (the voice demo stays static by itself, see site.js). */
@media (prefers-reduced-motion: reduce) {
    .hero-copy > * { animation: none; }
    .vd.is-listening .vd-mic, .vd.is-listening .vd-wave i { animation: none; }
    .step-img img, .card-img, .card { transition: none; }
}
