:root {
    --bg: #F4F5FA;
    --surface: #FFFFFF;
    --surface-2: #F8F9FD;
    --ink: #0A0F1F;
    --ink-2: #131A30;
    --text: #141B2D;
    --muted: #586379;
    --primary: #5146F0;
    --primary-strong: #3A2FD1;
    --primary-soft: #EEEDFF;
    --violet: #8B5CF6;
    --cyan: #14B8D4;
    --mint: #10B981;
    --success: #127A43;
    --success-soft: #E6F6EE;
    --warning: #8A5B00;
    --warning-soft: #FFF5E0;
    --danger: #B42318;
    --danger-soft: #FDECEC;
    --border: #E2E5EF;
    --border-strong: #CDD2E1;
    --shadow-sm: 0 1px 2px rgba(10, 15, 31, 0.06);
    --shadow: 0 1px 2px rgba(10, 15, 31, 0.05), 0 12px 32px -12px rgba(10, 15, 31, 0.14);
    --shadow-lg: 0 30px 70px -30px rgba(31, 24, 120, 0.45);
    --glow: linear-gradient(135deg, #5146F0 0%, #8B5CF6 55%, #14B8D4 100%);
    --radius: 20px;
    --radius-sm: 14px;
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
    --display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
    --max: 1160px;
    --content: 720px;
    --nav-h: 72px;
    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100dvh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; color: var(--text); }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: 1.06rem; line-height: 1.3; letter-spacing: -0.01em; }
::selection { background: #D9D6FF; }

.skip {
    position: absolute; left: 12px; top: -48px; z-index: 60;
    background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(var(--content), 100%); margin: 0 auto; }
.legal-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 72px; }
.legal-page h1 { letter-spacing: -0.035em; }
.legal-page .lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal-toc a { color: var(--primary-strong); font-weight: 600; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section h2 { font-size: 1.28rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.legal-section p, .legal-section li { max-width: 68ch; }
.legal-section ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 8px; }
.contact-layout { display: grid; gap: 22px; }
.contact-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-points li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.contact-points strong { display: block; margin-bottom: 4px; }
@media (min-width: 860px) {
    .contact-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; justify-items: start; }
.stack-lg { display: grid; gap: 28px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.pad-top { padding-top: 12px; }
.page-pad { padding: 18px 0 72px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.stat { font-family: var(--display); font-size: 1.9rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.side-logout { margin-top: auto; }
.gradient-text {
    background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30; height: var(--header-h);
    display: flex; align-items: center;
    background: rgba(244, 245, 250, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(226, 229, 239, 0.8);
}
body.nav-public { --header-h: 92px; }
.nav-public .site-header {
    background: transparent; border-bottom: 0; align-items: flex-end; padding-bottom: 10px;
}
.nav-public .header-row {
    height: 64px; padding: 0 8px 0 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 229, 239, 0.95);
    border-radius: 20px;
    box-shadow: 0 16px 40px -26px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav-public .nav-links { gap: 4px; }
.nav-public .nav-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; }
.nav-public .nav-links a:not(.btn):hover { background: rgba(81, 70, 240, 0.08); }
.nav-public .nav-links .btn { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.nav-public .nav-panel {
    position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 40;
    width: min(var(--max), calc(100% - 32px)); margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 229, 239, 0.95); border-radius: 18px;
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
}
.page-landing .header-row {
    background: rgba(12, 16, 34, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
}
.page-landing .site-header .brand, .page-landing .nav-links a:not(.btn) { color: #E6E8F2; }
.page-landing .nav-links a:not(.btn) { color: #C9CEE0; }
.page-landing .nav-links a:not(.btn):hover { color: white; background: rgba(255, 255, 255, 0.08); }
.page-landing .nav-toggle { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: white; }
.page-landing .nav-panel {
    background: rgba(12, 16, 34, 0.92); border-color: rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,0.65);
}
.page-landing .nav-panel a { color: #E6E8F2; border-bottom-color: rgba(255,255,255,0.08); }
.header-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: min(var(--max), calc(100% - 32px)); margin: 0 auto;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px; color: var(--text);
    text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem;
}
.mark {
    position: relative; width: 34px; height: 34px; border-radius: 11px;
    background: var(--glow); color: white; display: grid; place-items: center;
    box-shadow: 0 6px 18px -6px rgba(81, 70, 240, 0.7);
}
.logo-mark {
    display: block; border-radius: 22%; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 8px 18px -10px rgba(10, 16, 36, 0.85);
}
.logo-lockup { display: block; width: min(420px, 100%); height: auto; }
.logo-lockup.compact { width: min(300px, 92%); margin-inline: auto; }
.hero-lockup { margin: 6px 0 20px; }
.side-brand {
    display: flex; align-items: center; gap: 10px; padding: 2px 10px 14px;
    color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em;
}
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-toggle {
    width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface);
    border-radius: 12px; display: grid; place-items: center; cursor: pointer;
}
.nav-panel {
    display: none; position: sticky; top: var(--header-h); z-index: 29;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    box-shadow: var(--shadow);
}
.nav-panel a, .nav-panel button {
    display: block; padding: 13px 4px; text-decoration: none; color: var(--text);
    background: none; border: 0; width: 100%; text-align: left; font-weight: 550;
    border-bottom: 1px solid var(--border);
}
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel.is-open { display: block; }

/* Buttons */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: 999px;
    border: 1px solid transparent; text-decoration: none; font-weight: 650; font-size: 0.96rem;
    cursor: pointer; background: transparent; white-space: nowrap;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--ink); color: white;
    box-shadow: 0 10px 24px -12px rgba(10, 15, 31, 0.7), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: #1B2342; transform: translateY(-1px); }
.btn-glow {
    background: var(--glow); color: white; border: 0;
    box-shadow: 0 14px 30px -12px rgba(81, 70, 240, 0.75), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-glow:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-google { background: #fff; border-color: var(--border-strong); color: #1f2430; }
.btn-google:hover { border-color: #1f2430; }
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(10, 15, 31, 0.05); }
.btn-light { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.2); }
.btn-light:hover { background: rgba(255,255,255,0.14); }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: progress; }
.icon-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--ink); color: white; display: grid; place-items: center; cursor: pointer;
    transition: transform 0.18s var(--ease);
}
.icon-btn:hover { transform: scale(1.05); }

/* AI orb */
.orb {
    --size: 132px;
    position: relative; width: var(--size); height: var(--size); border-radius: 50%;
    display: grid; place-items: center; isolation: isolate; flex-shrink: 0;
}
.orb::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9) 0 7%, transparent 26%),
        radial-gradient(circle at 70% 75%, rgba(20, 184, 212, 0.95), transparent 55%),
        radial-gradient(circle at 25% 75%, rgba(139, 92, 246, 0.95), transparent 58%),
        radial-gradient(circle at 50% 50%, #5146F0, #2B1F9E 75%);
    box-shadow: 0 20px 60px -14px rgba(81, 70, 240, 0.75), inset 0 -10px 30px rgba(10, 6, 60, 0.45);
    animation: orb-breathe 5s ease-in-out infinite;
}
.orb::after {
    content: ""; position: absolute; inset: -10px; border-radius: 50%; z-index: -2;
    background: conic-gradient(from 0deg, rgba(81,70,240,0), rgba(139,92,246,0.55), rgba(20,184,212,0.55), rgba(81,70,240,0));
    filter: blur(14px); opacity: 0.7;
    animation: orb-spin 9s linear infinite;
}
.orb svg { color: white; opacity: 0.95; }
.orb.sm { --size: 44px; }
.orb.sm::after { inset: -4px; filter: blur(6px); }
.orb.md { --size: 88px; }
.orb.lg { --size: 168px; }
.orb-ring {
    position: absolute; inset: -14px; border-radius: 50%;
    border: 1.5px solid rgba(81, 70, 240, 0.35); opacity: 0;
}
[data-state="listening"] .orb-ring { animation: ring 1.6s var(--ease) infinite; }
[data-state="listening"] .orb-ring + .orb-ring { animation-delay: 0.55s; }
[data-state="listening"] .orb::before { animation-duration: 1.4s; }
[data-state="processing"] .orb::after, [data-state="connecting"] .orb::after { animation-duration: 1.6s; opacity: 1; }
[data-state="speaking"] .orb::before { animation: orb-talk 0.55s ease-in-out infinite alternate; }
[data-state="failed"] .orb::before { filter: grayscale(0.7) brightness(0.9); }

@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes orb-talk { from { transform: scale(0.97); } to { transform: scale(1.07); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 30%; border-radius: 3px; background: currentColor; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.12s; } .wave i:nth-child(3) { animation-delay: 0.24s; }
.wave i:nth-child(4) { animation-delay: 0.36s; } .wave i:nth-child(5) { animation-delay: 0.48s; }
.wave i:nth-child(6) { animation-delay: 0.6s; } .wave i:nth-child(7) { animation-delay: 0.72s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Landing */
.landing-dark {
    position: relative; overflow: hidden; color: #E6E8F2;
    background: var(--ink);
    margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.landing-dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 380px at 85% 10%, rgba(139, 92, 246, 0.35), transparent 70%),
        radial-gradient(520px 360px at 10% 90%, rgba(20, 184, 212, 0.22), transparent 70%),
        radial-gradient(700px 400px at 50% 120%, rgba(81, 70, 240, 0.4), transparent 70%);
}
.landing-dark::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
}
.landing-dark > * { position: relative; z-index: 1; }
.landing-dark h1, .landing-dark h2, .landing-dark h3 { color: white; }
.landing-dark .muted { color: #A9B0C6; }
.hero { padding: 40px 0 56px; display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.1rem); max-width: 13ch; letter-spacing: -0.045em; line-height: 1.02; }
.lede { font-size: 1.1rem; color: #B7BED3; max-width: 44ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem; font-weight: 600; color: #DADDF0; margin-bottom: 20px;
}
.eyebrow b {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    background: var(--glow); color: white; font-size: 0.75rem; font-weight: 700;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: #A9B0C6; font-size: 0.92rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: #7DE3F2; }

.device {
    position: relative; border-radius: 30px; padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
}
.device-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.device-top strong { color: white; font-size: 0.95rem; }
.live-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px;
    background: rgba(16, 185, 129, 0.14); color: #6EE7B7; font-size: 0.8rem; font-weight: 700;
}
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
.device-stage { display: grid; place-items: center; gap: 14px; padding: 14px 0 10px; }
.device-stage .wave { color: #A5B4FC; height: 26px; }
.bubble { border-radius: 18px; padding: 12px 14px; margin-top: 10px; max-width: 90%; font-size: 0.95rem; line-height: 1.45; }
.bubble.coach { background: rgba(255,255,255,0.08); color: #ECEEF8; border: 1px solid rgba(255,255,255,0.08); border-top-left-radius: 6px; }
.bubble.you { background: var(--glow); color: white; margin-left: auto; border-top-right-radius: 6px; }
.float-note {
    margin-top: 12px; border-radius: 16px; padding: 12px 14px;
    background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(110, 231, 183, 0.25); color: #D1FAE5; font-size: 0.9rem;
}
.float-note b { display: flex; align-items: center; gap: 6px; color: #6EE7B7; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.device-caption { text-align: center; color: #8790AA; font-size: 0.8rem; margin-top: 12px; }

.section { padding: 56px 0; }
.page-landing .section { padding: 28px 0; }
.section-head { margin-bottom: 26px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: -0.035em; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.04rem; }
.kicker {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.grid-3, .grid-2, .grid-4 { display: grid; gap: 14px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
a.card, button.card { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s; }
a.card:hover, button.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary);
}
.feature-icon.cyan { background: #E3F8FB; color: #0E7C90; }
.feature-icon.violet { background: #F1EBFF; color: #6D3FD8; }
.feature-icon.mint { background: #E3F7EF; color: #0D7A55; }
.benefit h3, .step h3 { margin: 14px 0 6px; }
.step { position: relative; overflow: hidden; }
.step-no {
    font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
    background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9;
}
.loop {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.loop span {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600;
}
.loop span::after { content: "→"; color: var(--muted); margin-left: 4px; }
.loop span:last-child::after { content: "↺"; }

.split-note { display: grid; gap: 14px; }
.scene-card { position: relative; overflow: hidden; padding: 24px; min-height: 220px; display: grid; align-content: space-between; gap: 18px; }
.scene-card.dark { background: var(--ink); border-color: var(--ink); color: #D5D9E8; }
.scene-card.dark h2 { color: white; }
.scene-card.dark .muted { color: #A3AAC0; }
.scene-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-tags span { padding: 6px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); }
.scene-card.dark .scene-tags span { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #E3E6F3; }

.sample { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.report-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.correction {
    border-radius: 14px; padding: 12px 14px; margin-top: 10px;
    background: var(--success-soft); border: 1px solid #BFE8D2;
}
.correction .was { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1.5px; font-size: 0.92rem; }

.price { display: grid; gap: 10px; align-content: start; position: relative; }
.price strong.amount { font-family: var(--display); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.price.featured { border: 0; background: var(--ink); color: #D7DBEA; box-shadow: var(--shadow-lg); }
.price.featured h3, .price.featured strong.amount { color: white; }
.price.featured .muted { color: #A3AAC0; }
.price.featured::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: var(--glow);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.price ul { margin: 6px 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.94rem; }
.price li::before {
    content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
    background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235146F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.2 17 19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price.featured li::before { background-color: rgba(255,255,255,0.12); }
.price.featured .btn-primary { background: white; color: var(--ink); }

.faq details {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px;
    transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 10px; }
.faq summary {
    cursor: pointer; font-weight: 650; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 16px; color: var(--muted); }

.cta-band {
    position: relative; overflow: hidden; background: var(--ink); color: white;
    border-radius: 30px; padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 12px;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px 220px at 50% 0%, rgba(139, 92, 246, 0.45), transparent 70%), radial-gradient(360px 200px at 50% 110%, rgba(20, 184, 212, 0.3), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: white; font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: -0.035em; }
.cta-band p { color: #B7BED3; max-width: 44ch; }
.cta-band .hero-actions { justify-content: center; margin-top: 10px; }

.site-footer { padding: 32px 0 48px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 24px; }
.page-landing .site-footer { margin-top: 0; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 550; }
.site-footer a:hover { color: var(--text); }

/* App shell */
.app-shell { width: min(var(--max), 100%); margin: 0 auto; }
.app-main { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 calc(var(--nav-h) + 40px); }
.sidebar { display: none; }
.bottom-nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
    background: rgba(10, 15, 31, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 6px;
    box-shadow: 0 18px 40px -16px rgba(10, 15, 31, 0.6);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-decoration: none; color: #9AA2BA; font-size: 0.62rem; font-weight: 650; letter-spacing: -0.01em;
    min-height: 52px; border-radius: 16px; transition: color 0.2s, background 0.2s;
}
.bottom-nav a.active { color: white; background: rgba(255,255,255,0.1); }
.bottom-nav a.active svg { color: #A5B4FC; }
.side-link {
    display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted);
    font-weight: 600; font-size: 0.95rem; min-height: 46px; padding: 0 14px; border-radius: 14px;
    border: 0; background: none; width: 100%; cursor: pointer; text-align: left;
    transition: background 0.2s, color 0.2s;
}
.side-link:hover { background: rgba(10, 15, 31, 0.04); color: var(--text); }
.side-link.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.side-link.active svg { color: var(--primary); }
.side-label { font-size: 0.75rem; font-weight: 700; color: #8A93A8; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 14px; margin: 6px 0 2px; }

.page-head { display: grid; gap: 6px; margin-bottom: 4px; }
.page-head p { color: var(--muted); max-width: 60ch; }
.page-kicker { color: var(--muted); font-size: 0.9rem; font-weight: 550; }

/* Dashboard */
.hero-card {
    position: relative; overflow: hidden; border-radius: 28px; padding: 24px;
    background: var(--ink); color: #D5D9E8; display: grid; gap: 18px;
    box-shadow: var(--shadow-lg);
}
.hero-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(380px 260px at 100% 0%, rgba(139, 92, 246, 0.5), transparent 70%), radial-gradient(320px 220px at 0% 100%, rgba(20, 184, 212, 0.28), transparent 70%);
}
.hero-card > * { position: relative; }
.hero-card h1, .hero-card h2 { color: white; }
.hero-card .muted, .hero-card .page-kicker { color: #A3AAC0; }
.hero-card .btn-primary { background: white; color: var(--ink); }
.hero-card .btn-primary:hover { background: #EEF0FF; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.today-box {
    border-radius: 20px; padding: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    display: grid; gap: 6px;
}
.today-box .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #A5B4FC; }
.today-box h2 { font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.hero-card .chip, .auth-aside .chip { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: #E3E6F3; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { display: grid; gap: 8px; align-content: start; }
.stat-grid.three .stat-card.wide { grid-column: 1 / -1; }
.stat-card .label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stat-card .label svg { color: var(--primary); }

.ring-meter {
    --pct: 0;
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--primary) calc(var(--pct) * 1%), #E7E9F4 0);
}
.ring-meter span {
    width: 50px; height: 50px; border-radius: 50%; background: var(--surface);
    display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
}
.meter { height: 8px; background: #E7E9F4; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--glow); border-radius: 99px; }

.action-tile {
    display: grid; gap: 12px; text-decoration: none; color: inherit; padding: 20px;
}
.action-tile .tile-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.list-card { display: flex; justify-content: space-between; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.list-card > span:first-child { min-width: 0; }
.list-card svg:last-child { color: var(--muted); transition: transform 0.2s var(--ease); }
.list-card:hover svg:last-child { transform: translateX(3px); color: var(--primary); }
.btn-card { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.topic-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.topic-card .grow { flex: 1; min-width: 0; }
.session-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 12px 14px; }
.session-row .grow { flex: 1; min-width: 0; }
.session-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-rejoin { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.session-row form { margin: 0; flex-shrink: 0; }
.mini-act {
    display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.mini-act.ok { color: #0D7A55; background: var(--success-soft); border-color: #BFE8D2; }
.mini-act.danger { color: var(--danger); background: var(--danger-soft); border-color: #F7C9C5; }
.mini-act:hover { filter: brightness(0.98); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.dot.live { background: var(--primary); box-shadow: 0 0 0 4px rgba(81, 70, 240, 0.15); }

.tag {
    display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border-radius: 99px;
    background: var(--primary-soft); color: var(--primary-strong); font-size: 0.76rem; font-weight: 700; white-space: nowrap;
}
.tag.warn { background: var(--warning-soft); color: var(--warning); }
.tag.ok { background: var(--success-soft); color: var(--success); }
.tag.sim { background: var(--warning-soft); color: #7A4E00; }
.tag.ai { background: var(--glow); color: white; }

.flash, .banner, .notice {
    display: flex; gap: 10px; align-items: flex-start;
    border-radius: 18px; padding: 12px 14px; background: var(--surface); color: var(--text);
    border: 1px solid var(--border); box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.55);
    font-size: 0.94rem;
}
.banner svg, .notice-icon svg { flex-shrink: 0; }
.flash.error, .banner.error, .notice.error { background: #FFF6F5; border-color: #F3C7C2; }
.flash.success, .notice.success { background: #F3FBF6; border-color: #BFE8D2; }
.flash.info, .banner.info, .notice.info { background: #FFF9EE; border-color: #F3E2B0; }
.banner.info svg { color: #B45309; }
.banner.error svg { color: #E11D48; }
.banner.ai svg { color: #4F46E5; }
.notice-stack {
    position: fixed; z-index: 80; top: calc(var(--header-h) + 12px); left: 50%;
    transform: translateX(-50%); width: min(440px, calc(100% - 24px));
    display: grid; gap: 8px; pointer-events: none;
}
.notice {
    pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 10px; margin: 0; padding: 10px 10px 10px 12px;
    animation: notice-in 0.28s var(--ease);
}
.notice p { margin: 0; line-height: 1.4; }
.notice-icon {
    width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: white;
}
.notice.error .notice-icon { background: #E11D48; }
.notice.success .notice-icon { background: #0D9F6E; }
.notice.info .notice-icon { background: #D97706; }
.notice-x {
    width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
    color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.notice-x:hover { background: rgba(15, 23, 42, 0.06); color: var(--text); }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.in-call .notice-stack { top: auto; bottom: 24px; z-index: 90; }
body.nav-public:has(.notice):not(.page-landing) main { padding-top: 72px; }
body:has(.notice) .app-main { padding-top: 78px; }

/* Forms */
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.94rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; border: 1.5px solid var(--border); background: var(--surface);
    border-radius: 14px; padding: 11px 14px; transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(81, 70, 240, 0.14);
}
.field input:disabled { background: var(--surface-2); color: var(--muted); }
.field textarea { min-height: 104px; resize: vertical; }
.form-error { color: var(--danger); font-weight: 650; }
.help { color: var(--muted); font-size: 0.88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 10px; padding: 0; font-size: 0.98rem; }
.choices { display: grid; gap: 8px; }
.choices.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
    position: relative; display: flex; gap: 10px; align-items: center; cursor: pointer;
    border: 1.5px solid var(--border); background: var(--surface);
    border-radius: 16px; padding: 13px 14px; min-height: 54px; font-weight: 550; font-size: 0.94rem;
    transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
}
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(81, 70, 240, 0.1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }

.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stepper .s {
    display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--muted);
}
.stepper .s b {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem;
    background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--muted);
}
.stepper .s.on b { background: var(--ink); border-color: var(--ink); color: white; }
.stepper .s.done b { background: var(--glow); border: 0; color: white; }
.stepper .s.on { color: var(--text); }
.stepper .line { flex: 1; height: 2px; border-radius: 2px; background: var(--border); min-width: 12px; }
.stepper .line.on { background: var(--glow); }
.stepper .s span { display: none; }
.progress-dots { display: flex; gap: 8px; }
.progress-dots span { height: 6px; flex: 1; border-radius: 99px; background: #E1E5EF; }
.progress-dots span.on { background: var(--glow); }
.form-card { padding: 22px; display: grid; gap: 18px; }
.sticky-actions {
    position: sticky; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 5;
    display: grid; gap: 8px; padding: 12px; margin: 0 -12px;
    background: linear-gradient(180deg, rgba(244,245,250,0), var(--bg) 35%);
}

/* Auth */
.auth-layout { display: grid; min-height: calc(100dvh - var(--header-h)); }
.auth-aside { display: none; }
.auth-card {
    width: min(440px, calc(100% - 32px)); margin: 28px auto 48px; padding: 26px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.85rem; }
.auth-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Practice room */
.room { display: grid; gap: 14px; }
.room-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.room-head h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.coach-stage {
    position: relative; overflow: hidden; border-radius: 28px; padding: 28px 18px 22px;
    background: var(--ink); color: #D5D9E8; display: grid; justify-items: center; gap: 14px; text-align: center;
}
.coach-stage::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(300px 200px at 50% 30%, rgba(81, 70, 240, 0.45), transparent 70%), radial-gradient(260px 160px at 80% 100%, rgba(20, 184, 212, 0.22), transparent 70%);
}
.coach-stage > * { position: relative; }
.coach-stage .orb-wrap { position: relative; display: grid; place-items: center; padding: 14px; transform: scale(calc(1 + var(--level, 0) * 0.14)); transition: transform 0.12s linear; }
.coach-stage .stage-chips { justify-content: center; }
.coach-stage .stage-chips .chip { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); color: #E3E6F3; text-decoration: none; }
.coach-stage .stage-chips a.chip:hover { background: rgba(255,255,255,0.14); }
.coach-stage .state-line { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: white; }
.coach-stage .muted, .coach-stage .small { color: #A3AAC0; }
.coach-stage .btn-secondary { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.18); }
.coach-stage .btn-ghost { color: #D5D9E8; }
.coach-stage .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.status-pill {
    display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 99px;
    background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: block; }
.status-pill.listening i, .status-pill.speaking i { background: var(--primary); animation: blink 1s ease-in-out infinite; }
.status-pill.processing i, .status-pill.connecting i { background: #E3A008; animation: blink 0.7s ease-in-out infinite; }
.status-pill.failed i { background: var(--danger); }
@keyframes blink { 50% { opacity: 0.35; } }
.net-line { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.transcript { display: grid; gap: 12px; min-height: 160px; padding: 4px 0; align-content: start; }
.msg {
    max-width: min(88%, 560px); padding: 12px 15px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    animation: rise 0.28s var(--ease);
}
.msg.coach { border-top-left-radius: 6px; }
.msg.user { margin-left: auto; background: var(--ink); color: #EEF0F8; border-color: var(--ink); border-top-right-radius: 6px; }
.msg.user .who { color: #A3AAC0; }
.msg .who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.75rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer {
    position: sticky; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); z-index: 6;
    display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end;
    background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 8px;
    box-shadow: 0 16px 40px -18px rgba(10, 15, 31, 0.35);
}
.composer .field textarea {
    min-height: 48px; max-height: 120px; border: 0; padding: 12px 6px; resize: none; box-shadow: none; background: transparent;
}
.composer .field textarea:focus { box-shadow: none; }
.mic {
    position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; color: white;
    background: var(--glow); display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(81, 70, 240, 0.8);
    transition: transform 0.18s var(--ease);
}
.mic:hover { transform: scale(1.05); }
.mic.live, .mic[aria-pressed="true"] { box-shadow: 0 0 0 6px rgba(81, 70, 240, 0.18), 0 0 0 12px rgba(81, 70, 240, 0.08); }
.typing { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.typing .wave { color: var(--primary); height: 16px; }
.room-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Role-play */
.scenario-card { display: grid; gap: 14px; }
.scenario-card:not([open]) { gap: 0; }
.scenario-card summary { list-style: none; cursor: pointer; }
.scenario-card summary::-webkit-details-marker { display: none; }
.scenario-head { display: flex; align-items: flex-start; gap: 14px; }
.scenario-head .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.role-avatar {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary);
}
.scenario-card.locked .role-avatar { background: var(--surface-2); color: var(--muted); }
.scenario-card[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.category-title { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.category-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 140px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.bars b { display: block; width: 100%; max-width: 36px; border-radius: 10px 10px 6px 6px; background: var(--glow); min-height: 4px; }
.bars span { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.bars .today span { color: var(--primary); }
.bars b { transform-origin: bottom; animation: grow-up 0.7s var(--ease) both; }
@keyframes grow-up { from { transform: scaleY(0); } }

/* Progress */
.progress-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); max-width: 22ch; }
.plan-ring {
    --pct: 0; width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: conic-gradient(#A78BFA 0%, #22D3EE calc(var(--pct) * 1%), rgba(255,255,255,0.1) 0);
    box-shadow: 0 0 40px -6px rgba(139, 92, 246, 0.6);
}
.plan-ring > div { width: 82px; height: 82px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; text-align: center; }
.plan-ring strong { font-family: var(--display); font-size: 1.5rem; color: white; line-height: 1; }
.plan-ring span { font-size: 0.72rem; color: #A3AAC0; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card .streak-chip { background: linear-gradient(90deg, rgba(251, 146, 60, 0.25), rgba(244, 63, 94, 0.2)); border-color: rgba(251, 146, 60, 0.4); color: #FFD7B0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px;
    box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; }
.metric-icon.violet { background: #F1EBFF; color: #6D3FD8; }
.metric-icon.cyan { background: #E3F8FB; color: #0E7C90; }
.metric-icon.mint { background: #E3F7EF; color: #0D7A55; }
.metric-icon.amber { background: #FFF3E0; color: #B45309; }
.metric-value { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.metric-label { font-size: 0.85rem; color: var(--muted); font-weight: 550; }
.progress-split { display: grid; gap: 16px; }
.heatmap { display: grid; grid-template-columns: repeat(7, minmax(0, 32px)); gap: 6px; }
.heat-label { font-size: 0.72rem; color: var(--muted); text-align: center; font-weight: 600; }
.heat-cell { display: inline-block; aspect-ratio: 1; border-radius: 6px; background: #ECEEF6; width: 100%; }
.heat-cell.blank { background: transparent; }
.heat-cell.l1 { background: #D9D5FF; }
.heat-cell.l2 { background: #A99FFB; }
.heat-cell.l3 { background: #7A6AF5; }
.heat-cell.l4 { background: var(--primary); box-shadow: 0 0 0 2px rgba(81, 70, 240, 0.18); }
.heat-legend { display: flex; align-items: center; gap: 4px; }
.heat-legend .heat-cell { width: 14px; }
.plan-path { list-style: none; margin: 0; padding: 4px 0 0; display: flex; gap: 0; overflow-x: auto; }
.plan-path li { flex: 1 0 84px; display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; padding: 0 4px; }
.plan-path li::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.plan-path li:first-child::before { display: none; }
.plan-path li.done::before, .plan-path li.now::before { background: var(--primary); }
.plan-path .node {
    position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted);
}
.plan-path .done .node { background: var(--glow); border-color: transparent; color: white; }
.plan-path .now .node { border-color: var(--primary); color: var(--primary); animation: pulse-ring 2s infinite; }
.plan-path .small { color: var(--muted); line-height: 1.3; }
.plan-path .now .small { color: var(--text); font-weight: 600; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(81, 70, 240, 0.35); } 70% { box-shadow: 0 0 0 10px rgba(81, 70, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(81, 70, 240, 0); } }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge {
    display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px dashed var(--border-strong);
}
.badge strong { font-family: var(--display); font-size: 0.98rem; }
.badge .meter { margin-top: 6px; height: 6px; }
.badge-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #EEF0F6; color: #9AA2B5; margin-bottom: 6px; }
.badge.earned { border-style: solid; border-color: #DCD9FF; background: linear-gradient(160deg, #FFFFFF 40%, #F3F0FF); box-shadow: var(--shadow-sm); }
.badge.earned .badge-icon { background: var(--glow); color: white; box-shadow: 0 8px 20px -8px rgba(81, 70, 240, 0.7); }
.pattern-grid { display: grid; gap: 12px; }
.pattern-card { display: grid; gap: 10px; align-content: start; }
.freq { display: inline-flex; gap: 3px; }
.freq i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.freq i.on { background: var(--primary); }
.fix { display: grid; gap: 6px; }
.fix p { padding: 10px 12px; border-radius: 12px; font-size: 0.95rem; }
.fix .before { background: var(--danger-soft); color: #8A1C12; }
.fix .after { background: var(--success-soft); color: #0D5F33; font-weight: 600; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.note-row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 14px 16px; transition: border-color 0.2s, transform 0.2s var(--ease); }
.note-row:hover { border-color: #CFCBFF; transform: translateX(2px); }
.note-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.note-row > svg:last-child { color: var(--muted); }

/* Session report */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.back-link svg { transform: rotate(180deg); }
.back-link:hover { color: var(--primary); }
.report-hero h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.report-summary { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.report-summary p { color: #E3E6F3; font-size: 1.02rem; line-height: 1.6; }
.orb-mini { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 30% 30%, #C4B5FD, #5146F0 55%, #14B8D4); box-shadow: 0 0 22px rgba(139, 92, 246, 0.7); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 34px rgba(20, 184, 212, 0.7); } }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.score { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.score strong { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.score small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pips { display: flex; gap: 4px; }
.pips i { flex: 1; height: 6px; border-radius: 99px; background: var(--border); }
.pips i.on { background: var(--glow); }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); box-shadow: inset 0 0 0 5px var(--primary-soft), inset 0 0 0 9px var(--primary); }
.tick-list.good li::before { background: var(--success-soft); box-shadow: inset 0 0 0 5px var(--success-soft), inset 0 0 0 9px var(--mint); }
.fix-grid { display: grid; gap: 12px; }
.fix-card { display: grid; gap: 12px; position: relative; padding-top: 22px; }
.fix-card .cluster { flex-wrap: nowrap; align-items: flex-end; }
.fix-card .grow { flex: 1; min-width: 0; }
.fix-num { position: absolute; top: -10px; left: 18px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: white; font-weight: 700; font-size: 0.8rem; box-shadow: 0 6px 14px -6px rgba(81, 70, 240, 0.8); }
.fix-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.75; text-decoration: none; margin-bottom: 2px; }
.say-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary);
    display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform 0.15s var(--ease), background 0.15s;
}
.say-btn:hover { background: var(--primary-soft); transform: scale(1.06); }
.say-btn.playing { background: var(--glow); color: white; border-color: transparent; animation: pulse-ring 1.4s infinite; }
.phrase-grid { display: grid; gap: 10px; }
.phrase { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.phrase p { display: grid; gap: 2px; }
.banner.watch { background: linear-gradient(90deg, #FFF5E0, #FFEFE6); border-color: #F5DFA8; }
.banner.watch svg { color: #B45309; }
.pay-nudge {
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto;
    gap: 12px; align-items: center; margin: 4px 0 16px; padding: 14px;
    border-radius: 22px; text-decoration: none; color: white;
    background:
        radial-gradient(140px 90px at 0% 0%, rgba(139, 92, 246, 0.55), transparent 72%),
        radial-gradient(160px 100px at 100% 120%, rgba(20, 184, 212, 0.4), transparent 70%),
        linear-gradient(135deg, #16142e, #12182c 55%, #102033);
    box-shadow: 0 18px 40px -24px rgba(81, 70, 240, 0.9);
}
.pay-nudge::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.05) 40%, rgba(20,184,212,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.pay-orb {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(circle at 32% 30%, #E9D5FF, #7C3AED 42%, #14B8D4 78%);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.75);
    animation: breathe 3.2s ease-in-out infinite;
}
.pay-nudge-copy { display: grid; gap: 2px; min-width: 0; position: relative; }
.pay-nudge-copy b { font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.03em; line-height: 1.2; }
.pay-nudge-copy small { color: #C9D0E6; font-size: 0.82rem; line-height: 1.35; }
.pay-nudge-cta {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    min-height: 36px; padding: 0 12px; border-radius: 999px; background: white; color: var(--ink);
    font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
.plan-hero {
    position: relative; overflow: hidden; display: grid; gap: 8px; padding: 22px;
    border-radius: 28px; color: white;
    background:
        radial-gradient(280px 160px at 100% 0%, rgba(139, 92, 246, 0.5), transparent 70%),
        radial-gradient(240px 160px at 0% 100%, rgba(20, 184, 212, 0.35), transparent 70%),
        linear-gradient(160deg, #1a1440, #101628 60%, #0d2230);
    box-shadow: 0 22px 50px -28px rgba(81, 70, 240, 0.85);
}
.plan-hero .kicker { color: #C4B5FD; }
.plan-hero h1 { color: white; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.plan-hero p { color: #D5DBEE; max-width: 46ch; }
.next-card {
    position: relative; overflow: hidden; display: grid; gap: 14px; padding: 24px; border-radius: 24px; color: white;
    background: linear-gradient(135deg, #3A2FD1, #7C3AED 55%, #0E9DB8);
    box-shadow: var(--shadow-lg);
}
.next-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: rgba(255,255,255,0.12); pointer-events: none; }
.next-card > * { position: relative; }
.next-card .page-kicker { color: rgba(255,255,255,0.75); }
.next-text { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; max-width: 52ch; }
.next-card .btn-glow { background: white; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }
.btn-ghost-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: white; }
.transcript-box summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; font-family: var(--display); list-style: none; }
.transcript-box summary::-webkit-details-marker { display: none; }
.transcript-box summary::after { content: "Show"; margin-left: auto; font-family: var(--font); font-size: 0.85rem; color: var(--primary); }
.transcript-box[open] summary::after { content: "Hide"; }
.transcript-box[open] summary { margin-bottom: 14px; }
.transcript-box .transcript { max-height: 560px; overflow-y: auto; padding-right: 4px; }
.delete-row { display: flex; justify-content: center; }
.link-danger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 0.88rem; cursor: pointer; padding: 8px; }
.link-danger:hover { color: var(--danger); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.admin-nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; }
.admin-nav a.active, .admin-nav a[aria-current] { background: var(--ink); color: white; }

.empty { padding: 26px 20px; display: grid; gap: 10px; justify-items: start; }
.empty-art { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.offline-banner { display: none; background: #FFF9EE; border-bottom: 1px solid #F3E2B0; padding: 10px 16px; text-align: center; font-weight: 650; font-size: 0.9rem; }
.offline-banner.show { display: block; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

@media (min-width: 560px) {
    .stepper .s span { display: inline; }
    .stat-grid.three { grid-template-columns: repeat(3, 1fr); }
    .stat-grid.three .stat-card.wide { grid-column: auto; }
    .metric-grid { grid-template-columns: repeat(4, 1fr); }
    .badge-grid { grid-template-columns: repeat(3, 1fr); }
    .pattern-grid { grid-template-columns: repeat(2, 1fr); }
    .fix-grid, .phrase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .progress-split { grid-template-columns: 1.2fr 1fr; }
    .badge-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1200px) {
    .stat-grid.four { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 800px) {
    .nav-links { display: flex; }
    .nav-toggle, .nav-panel { display: none !important; }
    .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 72px 0 96px; gap: 56px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .split-note { grid-template-columns: 1fr 1fr; }
    .section { padding: 80px 0; }
    .page-landing .section { padding: 36px 0; }
    .hero-card { padding: 30px; }
    .choices.grid-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { padding: 64px 32px; }
    .coach-stage { padding: 36px 24px 26px; }
}

@media (min-width: 1020px) {
    .app-shell { display: grid; grid-template-columns: 240px 1fr; gap: 12px; min-height: calc(100dvh - var(--header-h)); }
    .sidebar {
        display: flex; flex-direction: column; gap: 4px;
        padding: 22px 12px; position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h));
    }
    .bottom-nav { display: none; }
    .app-main { padding: 30px 0 64px; }
    body:has(.notice) .app-main { padding-top: 86px; }
    .composer { bottom: 20px; }
    .sticky-actions { bottom: 0; }
    .auth-layout { grid-template-columns: 1fr 1fr; }
    .auth-aside {
        display: grid; align-content: center; gap: 22px; padding: 56px;
        position: relative; overflow: clip; background: var(--ink); color: #C9CEE0;
    }
    .auth-aside::before {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background: radial-gradient(420px 300px at 80% 10%, rgba(139, 92, 246, 0.45), transparent 70%), radial-gradient(380px 260px at 10% 95%, rgba(20, 184, 212, 0.26), transparent 70%);
    }
    .auth-aside > * { position: relative; }
    .auth-aside h2 { color: white; font-size: 2.2rem; letter-spacing: -0.04em; max-width: 14ch; }
    .auth-aside .muted { color: #A3AAC0; }
    .auth-layout .auth-card { align-self: center; margin: 48px auto; }
}

/* Voice call */
body.in-call { overflow: hidden; }
.orb.xl { --size: clamp(150px, 34vmin, 230px); }
.call {
    position: fixed; inset: 0; z-index: 70; overflow: hidden; isolation: isolate;
    display: grid; grid-template-rows: auto 1fr auto auto; color: white;
    background: radial-gradient(120% 90% at 50% 38%, #141A3A 0%, #070A16 60%, #04050C 100%);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.call-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.call-bg .aura {
    position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: 0.35;
    left: 50%; top: var(--orb-y, 40%); transform: translate(-50%, -50%);
    transition: opacity 0.6s var(--ease), background 0.6s var(--ease);
}
.call-bg .a1 { background: radial-gradient(circle, rgba(81, 70, 240, 0.9), transparent 60%); animation: drift-a 16s ease-in-out infinite; }
.call-bg .a2 { background: radial-gradient(circle, rgba(20, 184, 212, 0.7), transparent 60%); animation: drift-b 19s ease-in-out infinite; opacity: 0.22; }
.call-bg .a3 {
    width: 90vmax; height: 90vmax; opacity: 0; filter: blur(50px);
    background: conic-gradient(from 0deg, rgba(81,70,240,0), rgba(139,92,246,0.5), rgba(20,184,212,0.45), rgba(81,70,240,0));
}
.call-bg .ripple {
    position: absolute; left: 50%; top: var(--orb-y, 40%); width: 220px; height: 220px; margin: -110px 0 0 -110px;
    border-radius: 50%; border: 2px solid rgba(167, 139, 250, 0.55); opacity: 0;
}
@keyframes drift-a { 0%, 100% { transform: translate(-58%, -54%) scale(1); } 50% { transform: translate(-42%, -46%) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate(-40%, -40%) scale(1.05); } 50% { transform: translate(-60%, -58%) scale(0.92); } }
@keyframes ripple-out { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(7); opacity: 0; } }
@keyframes ripple-in { 0% { transform: scale(4); opacity: 0; } 60% { opacity: 0.35; } 100% { transform: scale(0.9); opacity: 0; } }
@keyframes spin-slow { to { transform: translate(-50%, -50%) rotate(360deg); } }

.call[data-state="listening"] .a2 { opacity: calc(0.35 + var(--level, 0) * 0.6); transform: translate(-50%, -50%) scale(calc(0.9 + var(--level, 0) * 0.5)); animation: none; }
.call[data-state="listening"] .a1 { opacity: 0.2; }
.call[data-state="listening"] .ripple { border-color: rgba(20, 184, 212, 0.5); animation: ripple-in 2.6s ease-out infinite; }
.call[data-state="speaking"] .a1 { opacity: 0.65; animation-duration: 6s; }
.call[data-state="speaking"] .ripple { animation: ripple-out 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.call[data-state="processing"] .a3, .call[data-state="connecting"] .a3 { opacity: 0.55; animation: spin-slow 3.5s linear infinite; }
.call-bg .ripple:nth-child(5) { animation-delay: 0.8s !important; }
.call-bg .ripple:nth-child(6) { animation-delay: 1.6s !important; }
.call[data-state="failed"] .a1 { background: radial-gradient(circle, rgba(180, 35, 24, 0.6), transparent 60%); }

.call-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.call-title { flex: 1; min-width: 0; display: grid; text-align: center; }
.call-title span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #9AA3C7; font-weight: 650; }
.call-title strong { font-family: var(--display); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-icon {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: white; cursor: pointer;
}
.call-icon:hover { background: rgba(255,255,255,0.16); }
.call .status-pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: white; }

.call-center { display: grid; align-content: safe center; justify-items: center; gap: 14px; padding: 8px 22px; text-align: center; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.call .orb-wrap { position: relative; display: grid; place-items: center; padding: 18px; transform: scale(calc(1 + var(--level, 0) * 0.16)); transition: transform 0.12s linear; }
.call .orb-ring { border-color: rgba(167, 139, 250, 0.45); inset: -20px; }
.call-who { font-size: 0.92rem; color: #B9C0DE; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.call .state-line { font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 650; letter-spacing: -0.03em; }
.caption { max-width: 680px; min-height: 4.6em; display: grid; gap: 6px; align-content: start; }
.caption-who { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: #A78BFA; }
.call[data-speaker="you"] .caption-who { color: #5EEAD4; }
.caption p { font-size: clamp(1.02rem, 2.6vw, 1.25rem); line-height: 1.5; color: #E8EBF7; }
.call-hint { font-size: 0.86rem; color: #8F98BC; max-width: 520px; }

.call-controls { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 7vw, 48px); padding: 10px 16px 6px; }
.ctl {
    display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: #C9CEE6; cursor: pointer; font-size: 0.78rem; font-weight: 600;
}
.ctl svg { width: 54px; height: 54px; padding: 15px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); box-sizing: border-box; transition: background 0.2s; }
.ctl:hover svg, .ctl[aria-expanded="true"] svg { background: rgba(255,255,255,0.18); }
.call-btn {
    display: grid; justify-items: center; gap: 8px; background: none; border: 0; color: white; cursor: pointer; font-weight: 650; font-size: 0.9rem;
}
.call-btn svg {
    width: 84px; height: 84px; padding: 25px; border-radius: 50%; box-sizing: border-box;
    background: var(--glow); box-shadow: 0 18px 50px -12px rgba(81, 70, 240, 0.9), 0 0 0 8px rgba(139, 92, 246, 0.14);
    transition: transform 0.2s var(--ease);
}
.call-btn:hover svg { transform: scale(1.05); }
.call-btn.end svg { background: linear-gradient(135deg, #F04438, #B42318); box-shadow: 0 18px 50px -12px rgba(240, 68, 56, 0.8), 0 0 0 8px rgba(240, 68, 56, 0.14); }
.call-btn[aria-pressed="true"] svg { animation: orb-talk 0.7s ease-in-out infinite alternate; }
.call-btn:disabled { opacity: 0.5; cursor: default; }
.exit-pop {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
    padding: 24px 16px; overflow: auto;
    background: rgba(4, 6, 16, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.exit-pop[hidden] { display: none; }
.exit-card {
    width: min(420px, 100%); display: grid; gap: 10px; padding: 22px;
    border-radius: 28px; color: white; margin: auto;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(139, 92, 246, 0.45), transparent 70%),
        linear-gradient(180deg, #1c2344, #101426);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}
.exit-card h2 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 0; color: white; }
.exit-card p { color: #C5CCE4; margin: 0 0 6px; }
.exit-card .btn { width: 100%; }
.exit-card .btn-secondary { background: #fff; color: #12172B; border-color: transparent; }
.exit-card .btn-light { color: #F4F6FB; background: transparent; border-color: rgba(255,255,255,0.32); }
.exit-card .btn-light:hover { background: rgba(255,255,255,0.1); }
.call-finish { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 8px 16px 18px; color: #6F789C; font-size: 0.86rem; }
.call-finish form { margin: 0; }
.link-btn { background: none; border: 0; color: #AEB5D3; cursor: pointer; font-size: 0.86rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 4px; }
.link-btn:hover { color: white; }
.link-btn.strong { color: white; }

.call-sheet {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3;
    width: min(720px, 100%); background: rgba(14, 18, 38, 0.94); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1); border-bottom: 0; border-radius: 26px 26px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: rise 0.25s var(--ease);
}
.call-sheet .composer { position: static; display: flex; gap: 8px; align-items: flex-end; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: none; }
.call-sheet .composer .field { flex: 1; }
.call-sheet .composer textarea { color: white; }
.call-sheet .composer textarea::placeholder { color: #8F98BC; }
.call-sheet .icon-btn { background: white; color: var(--ink); }
.transcript-sheet { max-height: 72vh; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.transcript-sheet h2 { color: white; font-size: 1.1rem; }
.transcript-sheet .transcript { overflow-y: auto; min-height: 0; padding-right: 4px; scrollbar-color: rgba(255,255,255,0.22) transparent; scrollbar-width: thin; }
.transcript-sheet .msg { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); color: #E3E6F3; }
.transcript-sheet .msg .who { color: #9AA3C7; }
.transcript-sheet .msg.user { background: rgba(81, 70, 240, 0.35); border-color: transparent; }
.transcript-sheet .typing { color: #9AA3C7; }

.builder { border: 1px solid rgba(81, 70, 240, 0.25); background: linear-gradient(180deg, #FFFFFF 0%, #F6F5FF 100%); box-shadow: 0 24px 60px -36px rgba(81, 70, 240, 0.6); }
.builder-head { display: flex; gap: 14px; align-items: flex-start; }

@media (max-height: 820px) {
    .orb.xl { --size: clamp(110px, 20vh, 160px); }
    .call-center { gap: 8px; }
    .call .orb-wrap { padding: 10px; }
    .caption { min-height: 3em; }
    .call-btn svg { width: 72px; height: 72px; padding: 21px; }
    .ctl svg { width: 48px; height: 48px; padding: 13px; }
    .call-finish { padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
