/**
 * Musa TTS — Public Site Design System
 * Light + dark themes, indigo brand. Used by layouts/main.php and auth pages only;
 * the user dashboard and admin panel keep main.css / components.css.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    color-scheme: light;

    --brand: #6366f1;
    --brand-strong: #4f46e5;
    --brand-soft: rgba(99, 102, 241, 0.1);
    --brand-ring: rgba(99, 102, 241, 0.35);
    --brand-2: #8b5cf6;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --on-brand: #ffffff;

    --bg: #ffffff;
    --bg-alt: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f4f4f8;
    --surface-3: #ececf3;
    --border: #e6e6ee;
    --border-strong: #d4d4df;

    --text: #0c0c14;
    --text-2: #3f3f4e;
    --muted: #6b6b7b;

    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.1);
    --warning: #b45309;
    --warning-soft: rgba(245, 158, 11, 0.12);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.08);

    --shadow-sm: 0 1px 2px rgba(16, 16, 40, 0.06);
    --shadow-md: 0 4px 16px -4px rgba(16, 16, 40, 0.1), 0 2px 4px rgba(16, 16, 40, 0.04);
    --shadow-lg: 0 24px 48px -16px rgba(16, 16, 40, 0.18), 0 4px 12px rgba(16, 16, 40, 0.05);
    --shadow-brand: 0 10px 30px -10px rgba(99, 102, 241, 0.55);

    --hero-glow: radial-gradient(60% 50% at 50% 0%, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0) 70%);
    --grid-line: rgba(12, 12, 20, 0.045);
    --nav-bg: rgba(255, 255, 255, 0.78);

    --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --container: 1200px;
    --container-narrow: 820px;
    --gutter: 24px;
    --nav-h: 68px;
    --section-y: clamp(64px, 9vw, 112px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark is the default theme */
:root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: rgba(129, 140, 248, 0.14);
    --brand-ring: rgba(129, 140, 248, 0.4);
    --on-brand: #0b0b14;
    --bg: #08080d;
    --bg-alt: #0d0d14;
    --surface: #111119;
    --surface-2: #171721;
    --surface-3: #1f1f2b;
    --border: #23232f;
    --border-strong: #32323f;
    --text: #f4f4f8;
    --text-2: #c9c9d6;
    --muted: #8f8fa3;
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.12);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    --shadow-brand: 0 10px 30px -10px rgba(129, 140, 248, 0.5);
    --hero-glow: radial-gradient(60% 50% at 50% 0%, rgba(129, 140, 248, 0.2) 0%, rgba(129, 140, 248, 0) 70%);
    --grid-line: rgba(255, 255, 255, 0.04);
    --nav-bg: rgba(8, 8, 13, 0.72);
}


/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, kbd, pre { font-family: var(--font-mono); }
::selection { background: var(--brand-soft); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: calc(var(--section-y) * 0.6) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section + .section-alt, .section-alt + .section { border-top-color: var(--border); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 64px; }

/* ==========================================================================
   4. Typography
   ========================================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.display {
    font-size: clamp(2.5rem, 6.2vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1.1; }
.h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 16px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 0.9em; }

.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
:root:not([data-theme="light"]) .btn-primary:hover { background: #a5b4fc; }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: 0.88; }

.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 10px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row, .btn-row.center { justify-content: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; color: var(--brand-strong);
}
.link-arrow i { transition: transform 0.2s var(--ease); font-size: 0.8em; }
.link-arrow:hover i { transform: translateX(3px); }

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.site-nav .container { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > a, .nav-drop > button {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px;
    font-size: 0.9375rem; font-weight: 500;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    background: none; border: 0;
    transition: color 0.15s, background 0.15s;
}
.nav-links > a:hover, .nav-drop > button:hover, .nav-drop.is-open > button { color: var(--text); background: var(--surface-2); }
.nav-links > a.is-active { color: var(--text); }
.nav-drop { position: relative; }
.nav-drop > button i { font-size: 0.65em; transition: transform 0.2s; }
.nav-drop.is-open > button i { transform: rotate(180deg); }

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    width: 560px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}
.nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); transition: background 0.15s; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu .ico {
    flex: none; width: 36px; height: 36px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 0.95rem;
}
.nav-menu strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.nav-menu span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
    width: 38px; height: 38px;
    display: inline-grid; place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .i-sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }

.nav-burger { display: none; }

.mobile-panel {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 99;
    background: var(--bg);
    padding: 16px var(--gutter) 32px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-panel .group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-panel .group-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin: 4px 0 6px; }
.mobile-panel a.m-link { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 1.0625rem; font-weight: 500; }
.mobile-panel a.m-link i { width: 20px; color: var(--brand-strong); }
.mobile-panel .btn-row { margin-top: 20px; }
.mobile-panel .btn-row .btn { flex: 1; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: var(--hero-glow);
}
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .lead { margin: 22px auto 0; max-width: 640px; }
.hero .btn-row { justify-content: center; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i { color: var(--success); font-size: 0.85em; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-hero .hero-inner { max-width: 760px; }
.page-hero.left .hero-inner { text-align: left; margin: 0; }
.page-hero.left .lead { margin-left: 0; }
.page-hero.left .btn-row { justify-content: flex-start; }

/* App window mock — frames the real screenshot */
.app-window {
    position: relative;
    margin: clamp(48px, 7vw, 72px) auto 0;
    max-width: 1080px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--surface-2) 70%, transparent);
    overflow: hidden;
}
.app-window-bar {
    height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.app-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.app-window-bar em { margin-left: 10px; font-style: normal; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.app-window img { width: 100%; }

/* Animated waveform */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.wave i {
    display: block; width: 3px; border-radius: 3px;
    background: var(--brand);
    height: 30%;
    animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(2n) { animation-delay: -0.2s; }
.wave i:nth-child(3n) { animation-delay: -0.45s; }
.wave i:nth-child(4n) { animation-delay: -0.7s; }
.wave i:nth-child(5n) { animation-delay: -0.95s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ==========================================================================
   8. Cards & features
   ========================================================================== */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.card:hover, .card.hoverable:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.125rem; font-weight: 620; letter-spacing: -0.015em; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 0.9688rem; }
.card .link-arrow { margin-top: 18px; font-size: 0.9375rem; }

.icon-tile {
    width: 44px; height: 44px; border-radius: 11px;
    display: grid; place-items: center;
    font-size: 1.05rem;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    margin-bottom: 18px;
}
.icon-tile.lg { width: 52px; height: 52px; font-size: 1.25rem; border-radius: 13px; }
.icon-tile.emoji { font-size: 1.4rem; background: var(--surface-2); border-color: var(--border); }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600;
    padding: 3px 10px; border-radius: var(--radius-full);
    background: var(--surface-2); color: var(--text-2);
    border: 1px solid var(--border);
}
.tag.brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.tag.success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.tag.warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
.bento .visual { margin-top: auto; padding-top: 24px; }

/* Feature split rows (alternating text + visual) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.split + .split { margin-top: clamp(64px, 9vw, 112px); }
.split.reverse > :first-child { order: 2; }
.split .h2 { margin-top: 16px; }
.split .lead { margin-top: 16px; }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list li::before {
    content: '';
    flex: none;
    width: 20px; height: 20px; margin-top: 2px;
    border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list.x li::before {
    background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath d='M6.3 5L5 6.3 8.7 10 5 13.7 6.3 15 10 11.3 13.7 15 15 13.7 11.3 10 15 6.3 13.7 5 10 8.7z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Visual panels used beside feature copy */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.panel-glow::before {
    content: ''; position: absolute; inset: -40% -20% auto; height: 80%;
    background: radial-gradient(closest-side, var(--brand-soft), transparent);
    pointer-events: none;
}
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.9375rem; }
.panel-row:last-child { border-bottom: 0; }
.panel-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

.voice-chip {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.voice-chip .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.8125rem; font-weight: 700;
    color: var(--on-brand); background: var(--brand-gradient);
}
.voice-chip strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.voice-chip small { color: var(--muted); font-size: 0.8125rem; }
.voice-chip .wave { margin-left: auto; height: 20px; }

.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand-gradient); border-radius: inherit; }

.code-snippet {
    background: #0b0b12;
    color: #e4e4ef;
    border: 1px solid #23232f;
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}
.code-snippet .c { color: #6f6f86; }
.code-snippet .k { color: #a5b4fc; }
.code-snippet .s { color: #86efac; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--muted); }

/* Logo / tool strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.strip .tag { font-size: 0.875rem; padding: 7px 14px; background: var(--surface); }
.strip .tag i { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step .num {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.9375rem;
    background: var(--text); color: var(--bg);
    margin-bottom: 18px;
}
.step img { border-radius: var(--radius); border: 1px solid var(--border); margin-top: 20px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ==========================================================================
   9. Pricing
   ========================================================================== */
.billing-note { text-align: center; margin: -32px 0 40px; color: var(--muted); font-size: 0.9375rem; }
.ref-banner {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 640px; margin: 0 auto 32px; padding: 12px 18px;
    border-radius: var(--radius);
    background: var(--success-soft); color: var(--success);
    font-weight: 600; font-size: 0.9375rem; text-align: center;
}

.pricing-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
    position: relative;
    display: flex; flex-direction: column;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.plan.is-featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--brand-gradient) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-brand);
}
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    background: var(--brand-gradient); color: #fff; white-space: nowrap;
}
.plan-name { font-size: 1.0625rem; font-weight: 640; }
.plan-desc { color: var(--muted); font-size: 0.875rem; margin-top: 4px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 4px; }
.plan-price .amount { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price .cur { font-size: 1.25rem; font-weight: 600; align-self: flex-start; margin-top: 4px; }
.plan-price .per { color: var(--muted); font-size: 0.9375rem; }
.plan-price .was { color: var(--muted); text-decoration: line-through; font-size: 1.125rem; margin-right: 6px; }
.plan-sub { font-size: 0.8125rem; color: var(--muted); min-height: 1.4em; }
.plan-sub.ok { color: var(--success); font-weight: 600; }
.plan .btn { margin-top: 20px; }
.plan-fine { text-align: center; font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }
.plan-features { list-style: none; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 0.9063rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); line-height: 1.45; }
.plan-features li i { margin-top: 3px; font-size: 0.8rem; width: 14px; flex: none; color: var(--brand); }
.plan-features li.off { color: var(--muted); }
.plan-features li.off i { color: var(--muted); }
.plan-features .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); }

.guarantee {
    display: flex; align-items: center; gap: 20px;
    max-width: 760px; margin: 48px auto 0; padding: 22px 26px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface);
}
.guarantee .icon-tile { margin: 0; flex: none; color: var(--success); background: var(--success-soft); border-color: transparent; }
.guarantee strong { display: block; font-size: 1.0625rem; }
.guarantee p { color: var(--text-2); font-size: 0.9375rem; margin-top: 2px; }

/* ==========================================================================
   10. Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 640px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: var(--surface-2); text-transform: uppercase; letter-spacing: 0.05em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--text); }
.table td { color: var(--text-2); }
.table .hl { background: color-mix(in srgb, var(--brand) 5%, transparent); color: var(--text); }
.table thead .hl { color: var(--brand-strong); background: var(--brand-soft); }
.table .yes { color: var(--success); }
.table .no { color: var(--muted); }
.table td.center, .table th.center { text-align: center; }

/* ==========================================================================
   11. FAQ (native details/summary)
   ========================================================================== */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0;
    font-size: 1.0625rem; font-weight: 600;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--border-strong);
    background:
        linear-gradient(var(--text-2), var(--text-2)) center / 10px 1.5px no-repeat,
        linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 10px no-repeat;
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer strong { color: var(--text); }

/* ==========================================================================
   12. CTA band
   ========================================================================== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    text-align: center;
    background: #0c0c16;
    color: #f4f4f8;
    isolation: isolate;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 80% at 20% 0%, rgba(99, 102, 241, 0.45), transparent 70%),
        radial-gradient(40% 70% at 90% 100%, rgba(168, 85, 247, 0.35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c4c4d4; margin: 16px auto 0; max-width: 560px; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-band .btn-primary { background: #fff; color: #0c0c16; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e7e7f3; color: #0c0c16; }
.cta-band .btn-secondary { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
.cta-band .btn-secondary:hover { border-color: #fff; }
.cta-band .hero-note { color: #a1a1b5; }
.cta-band .hero-note i { color: #86efac; }

/* ==========================================================================
   13. Breadcrumbs, prose, misc
   ========================================================================== */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs i { font-size: 0.6rem; }
.breadcrumbs span[aria-current] { color: var(--text-2); }

.prose { color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.625rem; margin-top: 2.2em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; color: var(--text); }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5em; color: var(--text); }
.prose a { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--text); }
.prose code { font-size: 0.875em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.prose pre { background: #0b0b12; color: #e4e4ef; border: 1px solid #23232f; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 0.8438rem; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.875rem; font-weight: 500; color: var(--text-2);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { font-size: 0.75rem; opacity: 0.7; }

/* Media cards (tutorials) */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 2rem; border-bottom: 1px solid var(--border); }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.65); color: #fff; border: 0; }
.media-body { padding: 22px; }

/* Timeline (changelog) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item::before {
    content: ''; position: absolute; left: -28px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--brand);
}
.timeline-item:first-child::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.change-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.change-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.change-list .tag { flex: none; min-width: 74px; justify-content: center; margin-top: 2px; }

/* Docs layout (developer API, long guides) */
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.docs-toc summary { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; margin-bottom: 10px; list-style: none; }
.docs-toc summary::-webkit-details-marker { display: none; }
.docs-toc nav a { display: block; padding: 6px 12px; font-size: 0.875rem; color: var(--muted); border-left: 2px solid var(--border); line-height: 1.4; }
.docs-toc nav a:hover { color: var(--text); }
.docs-toc nav a.is-active { color: var(--brand-strong); border-left-color: var(--brand); font-weight: 500; }
.docs-article { max-width: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); font-size: 1rem; }
.docs-article h2:first-child { margin-top: 0; }
.docs-article h2 { padding-top: 8px; }
.docs-article pre { position: relative; }
.docs-article pre code.hljs { padding: 0; background: none; }
.docs-copy {
    position: absolute; top: 8px; right: 8px;
    font-size: 0.75rem; padding: 4px 10px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.08); color: #c9c9d6; border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0; transition: opacity 0.15s;
}
.docs-article pre:hover .docs-copy, .docs-copy:focus-visible { opacity: 1; }
@media (max-width: 960px) {
    .docs-grid { grid-template-columns: 1fr; gap: 20px; }
    .docs-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
    .docs-toc summary { margin-bottom: 0; }
    .docs-toc details[open] summary { margin-bottom: 10px; }
}

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--brand-soft); color: var(--brand-strong); }
.alert a { text-decoration: underline; }

.empty {
    text-align: center; padding: 56px 24px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
    color: var(--muted);
}
.empty i { font-size: 2rem; margin-bottom: 14px; color: var(--muted); }
.empty h3 { margin-bottom: 6px; }

/* ==========================================================================
   14. Forms
   ========================================================================== */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.input, .textarea, .select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9688rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .field + .field { margin-top: 0; }

/* ==========================================================================
   15. Modal
   ========================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(5, 5, 12, 0.6);
    backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; animation: fadeIn 0.2s ease; }
.modal-card {
    position: relative;
    width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: pop 0.25s var(--ease);
}
.modal-close { position: absolute; top: 14px; right: 14px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 32px; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.9375rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 0.9375rem; color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 0.875rem; color: var(--muted);
}
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* No extra gap when the page ends with its own CTA section */
main > .section:last-child { padding-bottom: 0; }

/* ==========================================================================
   17. Reveal animation
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.06s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.12s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.18s; }
.js [data-reveal][data-delay="4"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   18. Auth pages
   ========================================================================== */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
    position: relative; overflow: hidden;
    padding: 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: #0c0c16; color: #e4e4ef;
    isolation: isolate;
}
.auth-side::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(99, 102, 241, 0.5), transparent 70%),
        radial-gradient(50% 50% at 100% 100%, rgba(168, 85, 247, 0.35), transparent 70%);
}
.auth-side .brand { color: #fff; }
.auth-side h2 { color: #fff; font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; max-width: 440px; }
.auth-side .check-list li { color: #c4c4d4; }
.auth-side .check-list li strong { color: #fff; }
.auth-side .check-list li::before { background-color: rgba(129, 140, 248, 0.2); }
.auth-side small { color: #8f8fa3; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); position: relative; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.875rem; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--muted); margin-top: 8px; }
.auth-card form { margin-top: 28px; }
.auth-card .btn { margin-top: 24px; }
.auth-card .alert { margin-top: 20px; }
.auth-foot { margin-top: 24px; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.auth-foot a { color: var(--brand-strong); font-weight: 600; }
.auth-row { display: flex; justify-content: flex-end; margin-top: 10px; font-size: 0.875rem; }
.auth-row a { color: var(--brand-strong); font-weight: 500; }
.auth-top { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; align-items: center; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }

/* ==========================================================================
   19. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .nav-links, .nav-actions .hide-mobile { display: none; }
    .nav-burger { display: inline-grid; }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento > .card, .bento > .span-3, .bento > .span-4 { grid-column: span 3; }
    .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .auth-body { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-mobile-brand { display: inline-flex; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento > .card, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: auto; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .card { padding: 22px; }
    .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; }
    .guarantee { flex-direction: column; text-align: center; }
    .faq .answer { padding-right: 0; }
    .section-head { margin-bottom: 40px; }
    .modal-card { padding: 24px; }
}

/* ==========================================================================
   20. Print
   ========================================================================== */
@media print {
    .site-nav, .site-footer, .mobile-panel, .cta-band, .modal { display: none !important; }
    body { background: #fff; color: #000; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.contact-grid .stack > * + * { margin-top: 16px; }
.contact-grid .stack .card { display: block; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Team avatar */
.avatar-lg {
    width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong);
    font-size: 2rem; font-weight: 700;
    border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* Legal / callouts */
.callout { padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); color: var(--text); }
.legal h2 { font-size: 1.375rem; }

/* Offer page */
.offer-strip { background: var(--text); color: var(--bg); font-size: 0.9375rem; }
.offer-strip .container { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.offer-strip .countdown { font-family: var(--font-mono); font-weight: 600; }
.offer-card {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
    max-width: 860px; margin: 48px auto 0; padding: 32px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--brand-gradient) border-box;
    border: 1.5px solid transparent;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) { .offer-card { grid-template-columns: 1fr; padding: 24px; } }

/* Sales page (/offer) */
.sales-hero { padding-top: clamp(40px, 6vw, 72px); }
.sales-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; text-align: left; }
.sales-hero .display { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-top: 20px; }
.sales-hero .lead { margin: 20px 0 0; }
.sales-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--text-2); font-weight: 500; }
.sales-ticks i { color: var(--success); margin-right: 6px; }
.sales-buy {
    position: relative; padding: 32px 28px 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-lg), var(--shadow-brand);
}
.sales-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; }
.sales-price .was { font-size: 1.25rem; color: var(--muted); text-decoration: line-through; }
.sales-price .now { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.sales-price.lg .now { font-size: clamp(3rem, 6vw, 3.75rem); }
.sales-price .per { color: var(--muted); }
.sales-save { color: var(--success); font-weight: 600; font-size: 0.9375rem; margin-top: 8px; }
.sales-buy-list { list-style: none; display: grid; gap: 8px; margin-top: 18px; font-size: 0.9063rem; color: var(--text-2); }
.sales-buy-list i { width: 18px; color: var(--muted); margin-right: 8px; }
.sales-try { display: block; text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; color: var(--brand-strong); }
.sales-try i { font-size: 0.75em; margin-left: 4px; }
.icon-tile.warn { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.stack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1000px; margin: 0 auto; }
.stack-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stack-item .icon-tile { margin: 0; flex: none; }
.stack-item h3 { font-size: 1.0313rem; }
.stack-item p { color: var(--text-2); font-size: 0.9375rem; margin-top: 4px; }
.stack-check { margin-left: auto; color: var(--success); flex: none; margin-top: 3px; }
.sales-final-price { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
.sales-final-price .sales-price .now { color: #fff; }
.sales-final-price .sales-price .was, .sales-final-price .sales-price .per { color: #a1a1b5; }
.sales-final-price .sales-save { color: #86efac; }
.sales-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    transform: translateY(100%); transition: transform 0.25s var(--ease);
}
.sales-bar strong { font-size: 1.25rem; display: block; line-height: 1.1; }
.sales-bar span { font-size: 0.8125rem; color: var(--muted); }
.sales-bar.is-visible { transform: none; }
@media (max-width: 960px) {
    .sales-hero-grid { grid-template-columns: 1fr; }
    .stack-list { grid-template-columns: 1fr; }
    .sales-bar { display: flex; }
    body:has(.sales-bar) .site-footer { padding-bottom: 96px; }
}

/* Voice gallery */
.vg-toolbar { display: grid; gap: 16px; margin-bottom: 24px; }
.vg-langs { justify-content: center; }
.vg-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vg-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); }
.vg-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--muted); font-size: 0.8438rem; font-weight: 600; }
.vg-seg button:hover { color: var(--text); }
.vg-seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vg-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 14px; text-align: left;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
    transition: border-color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.vg-card[hidden] { display: none; }
.vg-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.vg-card.is-playing, .vg-card.is-loading { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vg-avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; color: #fff;
    background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 70% 46%));
}
.vg-info { min-width: 0; flex: 1; }
.vg-info strong { display: block; font-size: 0.9688rem; font-weight: 600; color: var(--text); }
.vg-info small { display: block; font-size: 0.7813rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-play {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}
.vg-card:hover .vg-play { background: var(--brand); color: var(--on-brand); }
.vg-play .i-pause, .vg-play .wave { display: none; }
.vg-card.is-playing .vg-play { background: var(--brand); color: var(--on-brand); }
.vg-card.is-playing .vg-play .i-play { display: none; }
.vg-card.is-playing:hover .vg-play .i-pause { display: block; }
.vg-card.is-playing:not(:hover) .vg-play .wave { display: inline-flex; }
.vg-play .wave { height: 14px; gap: 2px; }
.vg-play .wave i { width: 2px; background: currentColor; }
.vg-card.is-loading .vg-play { animation: vgPulse 1s ease-in-out infinite; }
@keyframes vgPulse { 50% { opacity: 0.5; } }
.vg-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.vg-progress span { display: block; height: 100%; width: 0; background: var(--brand-gradient); transition: width 0.25s linear; }

.vg-now { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); background: var(--surface); }
.vg-now-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.8125rem; }
.vg-now-label { font-weight: 600; color: var(--brand-strong); }
.vg-now-label i { margin-right: 4px; }
.vg-now-meta { color: var(--muted); }
.vg-now p { margin-top: 8px; color: var(--text); font-size: 1rem; line-height: 1.6; }

/* Voice Clone Pro demo (views/partials/vcp-demo.php): sample in → three cloned results out */
.vcd-block { margin-top: 88px; }
.vcd-block + .split { margin-top: 88px; }
.vcd-langs { margin-bottom: 24px; }
.vcd-panel[hidden] { display: none; }
.vcd-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); gap: 20px 24px; align-items: start; }
.vcd-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vcd-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vcd-tag i { margin-right: 4px; }
.vcd-out .vcd-tag { color: var(--brand-strong); }
.vcd-item { display: flex; flex-direction: column; gap: 6px; }
.vcd-in .vg-card { border-style: dashed; }
.vcd-avatar-in { background: var(--surface-3); color: var(--text); font-size: 0.75rem; }
.vcd-text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.vcd-tr { margin: 0; font-size: 0.8125rem; line-height: 1.5; font-style: italic; color: var(--muted); }
.vcd-arrow { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--brand); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.vcd-arrow i { font-size: 1.5rem; }
.vcd-note { margin-top: 20px; text-align: center; }
@media (max-width: 860px) {
    .vcd-flow { grid-template-columns: 1fr; }
    .vcd-arrow { flex-direction: row; }
    .vcd-arrow i { transform: rotate(90deg); }
}

/* Hero sample button */
.sample-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 18px; padding: 6px 16px 6px 6px;
    border-radius: var(--radius-full); border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); font-size: 0.875rem; font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}
.sample-btn:hover { border-color: var(--brand); color: var(--text); }
.sample-btn .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 0.75rem; }
.sample-btn .i-pause, .sample-btn .wave { display: none; }
.sample-btn.is-playing .i-play { display: none; }
.sample-btn.is-playing .wave { display: inline-flex; height: 14px; gap: 2px; }
.sample-btn.is-playing .wave i { width: 2px; background: var(--brand); }
.sample-btn.is-loading .ico { animation: vgPulse 1s ease-in-out infinite; }
.sample-more { margin-left: 12px; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sample-more:hover { color: var(--text); }
.featured-samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 28px; }
.featured-samples .sample-btn { margin-top: 0; }

/* ==========================================================================
   20. App mockup — code-built, animated replica of the desktop app
       (views/partials/app-mockup.php, driven by public/js/site.js)
   ========================================================================== */
.mk-frame { width: 100%; container: mk / inline-size; }
.mk {
    --mk-bg: var(--bg-alt);
    --mk-card: var(--surface);
    --mk-field: var(--surface);
    --mk-line: var(--border);
    --mk-accent: #5b5fd6;
    --mk-accent-ring: rgba(91, 95, 214, 0.28);
    --mk-side: #171827;
    --mk-player: #1c1b2b;
    position: relative;
    display: flex;
    font-size: clamp(9px, 1.2cqw, 13px);
    line-height: 1.45;
    color: var(--text);
    background: var(--mk-bg);
    text-align: left;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
:root:not([data-theme="light"]) .mk {
    --mk-accent: #6366f1;
    --mk-accent-ring: rgba(129, 140, 248, 0.35);
    --mk-side: #0b0b12;
    --mk-player: #0b0b12;
}
.mk p { margin: 0; }
.mk i { font-style: normal; }

/* Sidebar */
.mk-side {
    flex: 0 0 15.5em;
    display: flex; flex-direction: column; gap: 0.15em;
    padding: 1.3em 0.9em;
    background: var(--mk-side); color: #b4b4c8;
}
.mk-brand { display: flex; align-items: center; gap: 0.7em; padding: 0 0.3em; }
.mk .mk-brand img { width: 2.6em; height: 2.6em; border-radius: 0.6em; }
.mk-brand strong { display: block; color: #fff; font-size: 1.15em; letter-spacing: -0.01em; line-height: 1.2; }
.mk-brand small { display: block; color: #8b8ba3; font-size: 0.75em; }
.mk-status { display: flex; align-items: center; gap: 0.6em; margin: 1em 0 0.4em; padding: 0.5em 0.8em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.05); font-size: 0.8em; }
.mk-status i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0.25em rgba(34, 197, 94, 0.2); }
.mk .mk-sec { margin: 0.9em 0.5em 0.3em; font-size: 0.68em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6c6c84; }
.mk-nav {
    position: relative; display: flex; align-items: center; gap: 0.8em;
    padding: 0.56em 0.8em; border-radius: 0.55em; font-size: 0.9em;
    transition: background 0.3s, color 0.3s;
}
.mk-nav > i { width: 1.1em; text-align: center; opacity: 0.75; }
.mk-nav.is-active { background: rgba(99, 102, 241, 0.22); color: #fff; }
.mk-nav.is-active::before { content: ''; position: absolute; left: -0.9em; top: 0.45em; bottom: 0.45em; width: 3px; border-radius: 3px; background: #818cf8; }
.mk-nav em { margin-left: auto; padding: 0.15em 0.5em; border-radius: 0.4em; font-style: normal; font-size: 0.68em; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.mk-ver { margin-top: auto; padding: 1em 0.5em 0; font-size: 0.72em; color: #5f5f78; }

/* Main column */
.mk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.3em 2em; background: var(--mk-card); border-bottom: 1px solid var(--mk-line); }
.mk-head b { display: block; font-size: 1.45em; letter-spacing: -0.02em; line-height: 1.25; }
.mk-head small { display: block; margin-top: 0.15em; font-size: 0.88em; color: var(--muted); }
.mk-socials { display: flex; gap: 0.6em; }
.mk-socials i { width: 2.4em; height: 2.4em; display: grid; place-items: center; border: 1px solid var(--mk-line); border-radius: 0.6em; color: var(--muted); }
.mk-stage { flex: 1; display: grid; padding: 1.8em 2em 2em; }
.mk-scene {
    position: relative; grid-area: 1 / 1; min-width: 0;
    opacity: 0; visibility: hidden; transform: translateY(0.6em);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
}
.mk-scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mk-split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.6em; align-items: start; }
.mk-split--blend { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mk-split--podcast { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mk-col { display: flex; flex-direction: column; gap: 1.6em; min-width: 0; }

/* Cards & controls */
.mk-card { min-width: 0; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 1em; box-shadow: 0 1px 2px rgba(16, 16, 40, 0.04); }
.mk-card-h {
    display: flex; align-items: center; gap: 1em; min-height: 3.4em; padding: 0.7em 1.4em;
    border-bottom: 1px solid var(--mk-line);
    font-size: 0.84em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
}
.mk-card-h > span:first-child { white-space: nowrap; }
.mk-count { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-count b { font-weight: 600; }
.mk-pill { padding: 0.2em 0.75em; border-radius: 99px; font-size: 0.9em; letter-spacing: 0; text-transform: none; background: var(--success-soft); color: var(--success); }
.mk-card-b { padding: 1.2em 1.4em; }
.mk-textarea {
    min-height: 8.6em; padding: 0.9em 1.1em;
    border: 1px solid var(--mk-line); border-radius: 0.7em; background: var(--mk-field);
    font-size: 1.02em; line-height: 1.7; color: var(--text);
}
.mk-textarea--sm { min-height: 5.6em; }
.mk-caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--mk-accent); animation: mkBlink 1s steps(1) infinite; }
@keyframes mkBlink { 50% { opacity: 0; } }
.mk-btns { display: flex; flex-wrap: wrap; gap: 0.7em; margin-top: 1em; }
.mk-btn {
    display: inline-flex; align-items: center; gap: 0.55em; padding: 0.6em 1.1em;
    border: 1px solid var(--mk-line); border-radius: 0.6em; background: var(--mk-card);
    font-size: 0.92em; color: var(--text-2); white-space: nowrap;
}
.mk-btn > i { color: var(--muted); }
.mk-btn--h { margin-left: auto; padding: 0.45em 0.9em; font-size: 1em; font-weight: 500; letter-spacing: 0; text-transform: none; }
.mk-field + .mk-field { margin-top: 1.05em; }
.mk-label { display: flex; align-items: center; gap: 0.55em; margin-bottom: 0.55em; font-size: 0.78em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.mk-label > i { width: 1em; color: var(--muted); }
.mk-badge { padding: 0.1em 0.6em; border-radius: 99px; font-size: 0.95em; letter-spacing: 0; text-transform: none; background: var(--brand-soft); color: var(--mk-accent); font-variant-numeric: tabular-nums; }
.mk-card-h .mk-badge { margin-left: auto; }
.mk-select {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6em;
    padding: 0.66em 0.95em; border: 1px solid var(--mk-line); border-radius: 0.6em; background: var(--mk-field);
    font-size: 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mk-select > i { flex-shrink: 0; font-size: 0.7em; color: var(--muted); }
.mk-select.is-open { border-color: var(--mk-accent); box-shadow: 0 0 0 3px var(--mk-accent-ring); }
.mk-dd { position: relative; }
.mk-menu {
    position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 0.3em);
    padding: 0.35em 0; border: 1px solid var(--mk-line); border-radius: 0.6em;
    background: var(--mk-card); box-shadow: var(--shadow-lg); font-size: 0.92em;
    opacity: 0; visibility: hidden; transform: translateY(-0.4em);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.mk-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mk-menu b { display: block; padding: 0.4em 0.9em 0.25em; font-size: 0.88em; }
.mk-menu span { display: block; padding: 0.36em 0.9em 0.36em 1.6em; color: var(--text-2); transition: background 0.12s; }
.mk-menu span.is-hover { background: var(--mk-accent); color: #fff; }
.mk-range { position: relative; display: block; height: 0.32em; margin: 1em 0.3em 0.6em; border-radius: 99px; background: var(--surface-3); }
.mk-range::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--mk-accent); opacity: 0.4; transition: width 0.12s linear; }
.mk-range > i {
    position: absolute; top: 50%; left: var(--v);
    width: 1.15em; height: 1.15em; margin: -0.575em 0 0 -0.575em; border-radius: 50%;
    background: var(--mk-accent); box-shadow: 0 2px 6px var(--mk-accent-ring);
    transition: left 0.12s linear, transform 0.15s;
}
.mk-range.is-pressed > i { transform: scale(1.25); }
.mk-range-ends { display: flex; justify-content: space-between; font-size: 0.76em; color: var(--muted); }
.mk-primary {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1.2em; padding: 0.85em; border-radius: 0.65em;
    background: var(--mk-accent); color: #fff; font-weight: 600;
    box-shadow: 0 6px 16px -6px var(--mk-accent-ring);
    transition: transform 0.15s;
}
.mk-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, 0.24); }
.mk-primary.is-busy .mk-fill { width: 100%; transition: width var(--dur, 1.8s) linear; }
.mk-lbl { position: relative; display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; }
.mk-primary.is-busy .mk-lbl > i { animation: mkPulse 0.8s ease-in-out infinite; }
@keyframes mkPulse { 50% { opacity: 0.35; } }
.mk-secondary {
    display: flex; align-items: center; justify-content: center; gap: 0.6em;
    margin-top: 0.7em; padding: 0.72em; border: 1px solid var(--mk-line); border-radius: 0.65em;
    background: var(--mk-card); font-size: 0.95em; color: var(--text-2); transition: transform 0.15s;
}
.mk-note { margin-top: 0.7em; padding: 0.6em; border-radius: 0.6em; background: var(--surface-2); text-align: center; font-size: 0.8em; color: var(--muted); }
.mk-note.is-done { background: var(--success-soft); color: var(--success); }
.mk .is-pressed { transform: scale(0.96); }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.62em 0; border-bottom: 1px solid var(--mk-line); font-size: 0.92em; color: var(--text-2); }
.mk-row > span:first-child { display: inline-flex; align-items: center; gap: 0.6em; }
.mk-tag { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.28em 0.75em; border: 1px solid var(--mk-line); border-radius: 99px; background: var(--surface-2); font-size: 0.86em; color: var(--text-2); white-space: nowrap; }
.mk-tag.brand { border-color: transparent; background: var(--brand-soft); color: var(--mk-accent); }
.mk-tag.ok { border-color: transparent; background: var(--success-soft); color: var(--success); }
.mk-dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: hsl(var(--hue) 65% 55%); }

/* Waveform player */
.mk-player { --p: 0; overflow: hidden; border-radius: 1em; background: var(--mk-player); color: #c9c9da; box-shadow: 0 12px 30px -14px rgba(16, 16, 40, 0.55); }
.mk-wave { position: relative; height: 6.2em; }
.mk-bars { position: absolute; inset: 0 0.9em; display: flex; align-items: center; gap: 2px; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 2px; background: #7c5cf0; transform: scaleY(0.06); transition: transform 0.5s var(--ease) calc(var(--i) * 4ms); }
.mk-bars.is-top { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.mk-bars.is-top i { background: #ece9ff; }
.mk-wave::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(0.9em + (100% - 1.8em) * var(--p)); width: 1px; background: rgba(255, 255, 255, 0.6); opacity: 0; }
.mk-player.is-ready .mk-bars i { transform: none; }
.mk-player.is-ready .mk-wave::after { opacity: 1; }
.mk-prog { height: 3px; background: rgba(255, 255, 255, 0.08); }
.mk-prog span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #6366f1, #ec4899); }
.mk-player.is-playing .mk-bars.is-top { transition: clip-path 0.6s linear; }
.mk-player.is-playing .mk-wave::after { transition: left 0.6s linear; }
.mk-player.is-playing .mk-prog span { transition: width 0.6s linear; }
.mk-ctrl { display: flex; align-items: center; gap: 0.8em; padding: 0.85em 1.3em; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mk-round { width: 2.3em; height: 2.3em; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; font-size: 0.8em; }
.mk-play {
    width: 3.2em; height: 3.2em; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
    background: var(--mk-accent); color: #fff; box-shadow: 0 0 0 0.4em rgba(99, 102, 241, 0.18);
    transition: transform 0.15s;
}
.mk-play > i { grid-area: 1 / 1; }
.mk-play .fa-pause, .is-playing .mk-play .fa-play, .mk-play.is-playing .fa-play { display: none; }
.is-playing .mk-play .fa-pause, .mk-play.is-playing .fa-pause { display: block; }
.mk-play--sm { width: 2.6em; height: 2.6em; font-size: 0.9em; }
.mk-time { margin: 0 auto; padding: 0.35em 0.9em; border-radius: 99px; background: rgba(255, 255, 255, 0.06); font-family: var(--font-mono); font-size: 0.8em; color: #a9a9bf; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-time b { font-weight: 500; color: #e4e4ef; }
.mk-vol { display: flex; align-items: center; gap: 0.6em; color: #a9a9bf; }
.mk-vol span { position: relative; width: 4.5em; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.mk-vol span::after { content: ''; position: absolute; right: 0; top: 50%; width: 0.75em; height: 0.75em; margin-top: -0.375em; border-radius: 50%; background: #d4d4e4; }
.mk-rate { font-size: 0.9em; font-weight: 700; color: #e4e4ef; }
.mk-player--sm { border-radius: 0.8em; }
.mk-player--sm .mk-wave { height: 3.8em; }
.mk-player--sm .mk-ctrl { gap: 0.6em; padding: 0.6em 0.9em; }
.mk-player--sm .mk-round, .mk-player--sm .mk-vol, .mk-player--sm .mk-rate { display: none; }
.mk-player--sm .mk-play { width: 2.5em; height: 2.5em; font-size: 0.85em; box-shadow: none; }
.mk-player--sm .mk-time { margin: 0 0 0 auto; }
.mk-out { margin-top: 1em; }

/* Mini equaliser waveform */
.mk-mini { display: flex; align-items: center; gap: 2px; height: 2.2em; min-width: 0; overflow: hidden; }
.mk-mini i { flex: 0 0 3px; height: var(--h); border-radius: 2px; background: var(--mk-accent); opacity: 0.75; transform-origin: center; }
.mk-mini.is-playing i { animation: mkEq 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
@keyframes mkEq { 50% { transform: scaleY(0.3); } }

/* Toast */
.mk-toast {
    position: absolute; z-index: 4; left: 50%; bottom: 0.4em;
    display: flex; align-items: center; gap: 0.6em; padding: 0.7em 1.1em; border-radius: 0.7em;
    background: var(--text); color: var(--bg); font-size: 0.9em; white-space: nowrap; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translate(-50%, 1em); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mk-toast > i { color: #22c55e; }
.mk-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Voice Clone Pro */
.mk-drop { display: grid; place-items: center; min-height: 4.8em; padding: 0.9em 1em; border: 1.5px dashed var(--border-strong); border-radius: 0.8em; transition: border-color 0.2s, background 0.2s; }
.mk-drop.is-over { border-color: var(--mk-accent); background: var(--brand-soft); }
.mk-drop-empty { display: flex; align-items: center; gap: 0.6em; font-size: 0.92em; color: var(--muted); }
.mk-drop-empty > i { font-size: 1.3em; }
.mk-drop-empty u { text-decoration: none; font-weight: 600; color: var(--mk-accent); }
.mk-file { display: none; align-items: center; gap: 0.8em; width: 100%; min-width: 0; }
.mk-drop.has-file { place-items: stretch; border-style: solid; border-color: var(--mk-line); background: var(--surface-2); }
.mk-drop.has-file .mk-drop-empty { display: none; }
.mk-drop.has-file .mk-file { display: flex; animation: mkPop 0.4s var(--ease); }
.mk-file-ico, .mk-saved-ico { width: 2.6em; height: 2.6em; flex-shrink: 0; display: grid; place-items: center; border-radius: 0.6em; background: var(--brand-soft); color: var(--mk-accent); }
.mk-file b { display: block; font-size: 0.95em; }
.mk-file small { display: block; font-size: 0.8em; color: var(--success); white-space: nowrap; }
.mk-file .mk-mini { margin-left: auto; }
.mk-saved-tag { margin-top: 0.9em; text-align: center; transition: opacity 0.35s, transform 0.35s var(--ease); }
.mk-saved-tag.is-out { opacity: 0; transform: translateY(0.4em); }
@keyframes mkPop { from { opacity: 0; transform: scale(0.96) translateY(0.3em); } to { opacity: 1; transform: none; } }

/* Voice Blending */
.mk-vrow { padding: 1em 1.1em; border: 1px solid var(--mk-line); border-radius: 0.8em; background: var(--surface-2); }
.mk-vrow + .mk-vrow { margin-top: 0.8em; }
.mk-vrow-h { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.7em; font-size: 0.95em; font-weight: 600; }
.mk-num { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: var(--mk-accent); color: #fff; font-size: 0.85em; font-weight: 700; }
.mk-vrow .mk-select { background: var(--mk-card); }
.mk-mix { display: flex; align-items: center; gap: 1em; margin-top: 0.8em; font-size: 0.8em; color: var(--muted); }
.mk-mix .mk-range { flex: 1; margin: 0; }
.mk-mix b { min-width: 2.8em; text-align: right; font-size: 1.15em; color: var(--mk-accent); font-variant-numeric: tabular-nums; }
.mk-total { margin-top: 0.8em; padding: 0.9em 1.1em; border: 1px solid var(--mk-line); border-radius: 0.8em; background: var(--surface-2); }
.mk-total-h { display: flex; justify-content: space-between; font-size: 0.92em; font-weight: 600; }
.mk-total-h b { font-size: 1.15em; color: var(--success); }
.mk-meter { height: 0.45em; margin: 0.55em 0 0.4em; border-radius: 99px; background: var(--success); }
.mk-total small { display: block; text-align: center; font-size: 0.8em; color: var(--success); }
.mk-preview { display: flex; align-items: center; gap: 0.9em; padding: 0.6em 0.8em; border-radius: 0.8em; background: var(--mk-player); }
.mk-preview .mk-mini i { background: #a99bf7; }
.mk-saved { display: flex; align-items: center; gap: 0.8em; padding: 0.7em 0.9em; border: 1px solid var(--mk-line); border-radius: 0.7em; background: var(--surface-2); }
.mk-saved + .mk-saved { margin-top: 0.6em; }
.mk-saved b { display: block; font-size: 0.95em; }
.mk-saved small { display: block; font-size: 0.78em; color: var(--muted); }
.mk-saved.is-out { display: none; }
.mk-saved.is-new { border-color: var(--mk-accent); animation: mkPop 0.45s var(--ease); }

/* Podcast Generator */
.mk-stepper { display: flex; align-items: center; gap: 0.7em; margin-bottom: 1.4em; font-size: 0.85em; color: var(--muted); }
.mk-stepper span { display: flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.mk-stepper span > i { width: 1.9em; height: 1.9em; display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: 50%; font-size: 0.85em; font-weight: 700; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.mk-stepper .is-done > i { border-color: var(--success); background: var(--success); color: #fff; }
.mk-stepper .is-on { font-weight: 600; color: var(--text); }
.mk-stepper .is-on > i { border-color: var(--mk-accent); background: var(--mk-accent); color: #fff; }
.mk-stepper hr { flex: 1; height: 1.5px; margin: 0; border: 0; background: var(--mk-line); }
.mk-lines { padding-top: 0.4em; padding-bottom: 0.4em; }
.mk-line { display: flex; gap: 0.9em; padding: 0.8em 0; border-bottom: 1px solid var(--mk-line); transition: opacity 0.4s, transform 0.4s var(--ease); }
.mk-line:last-child { border-bottom: 0; }
.mk-line.is-out { opacity: 0; transform: translateY(0.5em); }
.mk-ava { flex: 0 0 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--hue) 60% 52%); color: #fff; font-size: 0.85em; font-weight: 700; }
.mk-line b { font-size: 0.92em; }
.mk-line small { margin-left: 0.5em; font-size: 0.82em; color: var(--muted); }
.mk-line p { margin-top: 0.1em; font-size: 0.95em; color: var(--text-2); }

/* Simulated pointer */
.mk-cursor {
    position: absolute; z-index: 6; left: 0; top: 0;
    width: 1.7em; height: 1.7em; pointer-events: none;
    opacity: 0; transform: translate(70cqw, 12em);
    transition: transform 0.7s var(--ease), opacity 0.3s;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.mk-cursor svg { display: block; width: 100%; height: 100%; }
.mk-cursor::after { content: ''; position: absolute; left: -0.7em; top: -0.7em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--brand-ring); opacity: 0; }
.mk-cursor.is-click::after { animation: mkRipple 0.45s ease-out; }
@keyframes mkRipple { from { opacity: 1; transform: scale(0.3); } to { opacity: 0; transform: scale(2.2); } }
.mk.is-live .mk-cursor { opacity: 1; }

/* Compact (single-scene) mockups */
.mk--compact { font-size: clamp(9.5px, 2.2cqw, 12.5px); }
.mk--compact .mk-stage { padding: 1.2em; }
.mk--compact .mk-scene { display: flex; flex-direction: column; gap: 1.2em; }
.mk--type .mk-textcard { flex: 1; display: flex; flex-direction: column; }
.mk--type .mk-card-b { flex: 1; display: flex; flex-direction: column; }
.mk--type .mk-textarea { flex: 1; }
.mk--export .mk-settings .mk-primary { margin-top: 0; }

/* Placement: "how it works" steps and feature splits */
.step .mk-frame { margin: 20px 0 0; max-width: none; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.step .mk-frame .app-window-bar { height: 26px; padding: 0 10px; gap: 5px; }
.step .mk-frame .app-window-bar span { width: 8px; height: 8px; }
.step .mk { aspect-ratio: 5 / 4; }
.step .mk-stage { padding: 1em; }
.step .mk-card-b { padding: 1em 1.1em; }
.step .mk-field + .mk-field { margin-top: 0.8em; }
.split .mk-frame { margin: 0; }

@container mk (max-width: 820px) {
    .mk--tour { font-size: clamp(9px, 1.6cqw, 12.5px); }
    .mk--tour .mk-side { display: none; }
}
@container mk (max-width: 560px) {
    .mk--tour { font-size: clamp(9.5px, 2.7cqw, 12px); }
    .mk-split, .mk-split--blend, .mk-split--podcast { grid-template-columns: minmax(0, 1fr); gap: 1.1em; }
    .mk-col { gap: 1.1em; }
    .mk-head { padding: 1em 1.2em; }
    .mk-socials, .mk-vol, .mk-btns, .mk-round { display: none; }
    .mk-stage { padding: 1.1em; }
    .mk-stepper hr { display: none; }
    .mk-stepper { justify-content: space-between; }
    .mk-textarea { min-height: 0; }
}
@container mk (max-width: 420px) {
    .mk-stepper span:not(.is-on) { font-size: 0; gap: 0; }
    .mk-stepper span:not(.is-on) > i { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mk-cursor { display: none; }
    .mk-caret { animation: none; }
}

/* ==========================================================================
   21. Sales page (/offer) — comparison, specs and steps
   ========================================================================== */
.stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.stats-6 .stat { border: 0; background: var(--surface); }
.sales-h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.split-top { align-items: start; }

.deal-table td:first-child { white-space: nowrap; }
.deal-table tr.is-us td { background: color-mix(in srgb, var(--brand) 7%, transparent); color: var(--text); }
.deal-table tr.is-us td:first-child { color: var(--brand-strong); box-shadow: inset 3px 0 0 var(--brand); }
.deal-table tr.is-us .fa-crown { margin-right: 6px; }
.deal-table td.no { color: var(--muted); }

.cost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cost-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cost-card.is-us {
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
    border: 1.5px solid transparent; box-shadow: var(--shadow-brand);
}
.cost-name { font-weight: 600; color: var(--text); }
.cost-month { margin-top: 8px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cost-month span { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.cost-limit { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.cost-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.cost-limit + .cost-total { margin-top: 20px; }
.cost-total span { font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cost-total strong { font-size: 1.25rem; color: var(--danger); }
.cost-card.is-us .cost-total strong { color: var(--success); }

.spec-list { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.spec-list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 12px 18px; }
.spec-list > div + div { border-top: 1px solid var(--border); }
.spec-list dt { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.spec-list dd { margin: 0; font-size: 0.9375rem; color: var(--text); }

.sales-steps { list-style: none; display: grid; gap: 12px; padding: 0; }
.sales-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sales-steps .num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: 0.875rem; }
.sales-steps strong { display: block; color: var(--text); }
.sales-steps p { margin-top: 2px; font-size: 0.9375rem; color: var(--text-2); }

@media (max-width: 1080px) {
    .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cost-grid { grid-template-columns: 1fr; }
    .spec-list > div { grid-template-columns: 1fr; gap: 2px; }
}
.section-head.sub-head { margin-top: clamp(56px, 7vw, 88px); }
