/* ===== Design tokens ===== */
:root {
  --bg: #0a0e1a;
  --bg-elevated: #0f1428;
  --surface: #141a33;
  --surface-2: #1a2140;
  --border: rgba(255,255,255,0.09);
  --text: #f5f6fb;
  --text-muted: #a6adc8;
  --accent: #7c6cff;
  --accent-2: #4fd1ff;
  --accent-contrast: #ffffff;
  --success: #34d399;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f7fc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0fb;
  --border: rgba(10,14,26,0.09);
  --text: #0d1126;
  --text-muted: #4d5372;
  --accent: #5b45ff;
  --accent-2: #0091c9;
  --accent-contrast: #ffffff;
  --shadow: 0 20px 50px -20px rgba(20,20,50,0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7fc;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f0fb;
    --border: rgba(10,14,26,0.09);
    --text: #0d1126;
    --text-muted: #4d5372;
    --accent: #5b45ff;
    --accent-2: #0091c9;
    --accent-contrast: #ffffff;
    --shadow: 0 20px 50px -20px rgba(20,20,50,0.18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { font-size: 1.05rem; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,108,255,0.6); }
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(124,108,255,0.75); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn.is-live { background: linear-gradient(135deg, var(--success), var(--accent-2)); color: #fff; border-color: transparent; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 500; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.94rem; transition: color 0.15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.nav-toggle {
  display: flex; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-panel {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  padding: 12px 6px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 8px;
}
.mobile-panel a:hover { background: var(--surface); }

@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }

.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.aurora-1 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; top: -14%; left: -8%; background: radial-gradient(circle, var(--accent), transparent 70%); }
.aurora-2 { width: 38vw; height: 38vw; max-width: 480px; max-height: 480px; top: 8%; right: -10%; background: radial-gradient(circle, var(--accent-2), transparent 70%); }
.aurora-3 { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; bottom: -16%; left: 30%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.3; }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .aurora-1 { animation: drift1 22s ease-in-out infinite; }
  .aurora-2 { animation: drift2 26s ease-in-out infinite; }
  .aurora-3 { animation: drift1 30s ease-in-out infinite reverse; }
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%,6%) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%,4%) scale(1.05); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 20px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge-dot { animation: badgepulse 2s ease-in-out infinite; }
}
@keyframes badgepulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 50%, transparent); } 50% { opacity: 0.7; box-shadow: 0 0 0 5px transparent; } }

.text-gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .text-gradient { animation: textshimmer 5s ease-in-out infinite; }
}
@keyframes textshimmer { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* Staggered hero entrance: the parent's own reveal fade is disabled in favor of per-child cascade */
.hero-copy.reveal { opacity: 1; transform: none; transition: none; }
.hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hero-copy.is-visible > * { opacity: 1; transform: translateY(0); }
.hero-copy.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.hero-copy.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.hero-copy.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.hero-copy.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.hero-copy.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { opacity: 1; transform: none; transition: none; }
}

.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
.hero-copy .lede { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 36px -12px rgba(124,108,255,0.75); }
.btn-glow::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-glow::after { animation: sheen 4s ease-in-out infinite; }
}
@keyframes sheen { 0% { left: -60%; } 45% { left: 130%; } 100% { left: 130%; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; font-size: 0.86rem; color: var(--text-muted); }
.hero-meta span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; transition: transform 0.2s ease-out; will-change: transform; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .glow {
  position: absolute; inset: -20%; z-index: -1; filter: blur(60px); opacity: 0.55;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%);
}
.hero-orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--border); pointer-events: none; }
.orbit-1 { inset: 6%; }
.orbit-2 { inset: 16%; border-style: solid; border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .orbit-1 { animation: spin 50s linear infinite; }
  .orbit-2 { animation: spin 36s linear infinite reverse; }
  .hero-art .node { animation: pulse 3.2s ease-in-out infinite; }
  .hero-art .link-line { stroke-dasharray: 6 6; animation: dash 18s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.55; r: 4; } 50% { opacity: 1; r: 6; } }
@keyframes dash { to { stroke-dashoffset: -300; } }

.hero-float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow);
  font-size: 0.82rem; white-space: nowrap;
}
.hero-float-card strong { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--text); }
.hero-float-card .hfc-icon { font-size: 1.3rem; line-height: 1; }
.card-top { top: 6%; left: -6%; }
.card-bottom { bottom: 8%; right: -8%; }
@media (max-width: 560px) {
  .card-top { left: 0; }
  .card-bottom { right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-top { animation: float 6s ease-in-out infinite; }
  .card-bottom { animation: float 6s ease-in-out infinite 1.4s; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Page header (utility pages like Free Tools) ===== */
.page-header { padding: 72px 0 8px; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-header .lede { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-note {
  max-width: 700px; margin: 28px auto 48px; text-align: center; font-size: 0.85rem; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); padding: 14px 22px; border-radius: var(--radius-md);
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Trust bar ===== */
.trust-bar { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); overflow: hidden; }
.trust-bar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 48px 0; text-align: center; }
.trust-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-md); transition: transform 0.25s ease;
}
.trust-item:hover { transform: translateY(-4px); }
@media (min-width: 640px) {
  .trust-item:not(:last-child)::after {
    content: ""; position: absolute; right: -8px; top: 15%; bottom: 15%; width: 1px; background: var(--border);
  }
}
.trust-icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent));
  color: var(--accent); margin-bottom: 2px;
}
.trust-icon svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .trust-item:hover .trust-icon { animation: iconpulse 0.8s ease-in-out; }
}
@keyframes iconpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.trust-num { font-family: var(--font-head); font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 700; }
.trust-label { font-size: 0.9rem; color: var(--text-muted); }
.trust-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.trust-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.trust-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; } }
.about-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.about-photo {
  width: 220px; height: 220px; border-radius: 50%; border: 4px solid var(--surface);
  box-shadow: var(--shadow); background: var(--surface-2);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
}
.badge svg { width: 14px; height: 14px; color: var(--accent); }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ===== Steps ===== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 28px; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-family: var(--font-head);
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.15rem; }

/* ===== Learning paths ===== */
.paths-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .paths-grid { grid-template-columns: repeat(3, 1fr); } }
.path-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 28px;
  display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease;
}
.path-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.path-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.path-card, .tool-card, .resource-card, .step-card, .testimonial-card { will-change: transform; }
/* Cascading entrance: siblings within these grids reveal in sequence instead of all at once */
.paths-grid > .reveal:nth-child(1), .tool-grid > .reveal:nth-child(1), .resource-grid > .reveal:nth-child(1),
.steps-grid > .reveal:nth-child(1), .replay-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.paths-grid > .reveal:nth-child(2), .tool-grid > .reveal:nth-child(2), .resource-grid > .reveal:nth-child(2),
.steps-grid > .reveal:nth-child(2), .replay-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.paths-grid > .reveal:nth-child(3), .tool-grid > .reveal:nth-child(3), .resource-grid > .reveal:nth-child(3),
.steps-grid > .reveal:nth-child(3), .replay-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.tool-grid > .reveal:nth-child(4), .replay-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
.tool-grid > .reveal:nth-child(5), .replay-grid > .reveal:nth-child(5) { transition-delay: 0.4s; }
.tool-grid > .reveal:nth-child(6), .replay-grid > .reveal:nth-child(6) { transition-delay: 0.5s; }
.path-level {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--accent); margin-bottom: 16px;
}
.path-card h3 { font-size: 1.3rem; }
.path-topics { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.path-topics li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-muted); }
.path-topics svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.path-card .btn { margin-top: auto; }

/* ===== Next class countdown ===== */
.next-class-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 36px; margin-bottom: 48px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.next-class-info .eyebrow { margin-bottom: 6px; }
.next-class-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.next-class-readable { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.countdown { display: flex; gap: 12px; }
.countdown-unit {
  display: flex; flex-direction: column; align-items: center; background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 10px 14px; min-width: 58px;
}
.countdown-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.countdown-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
@media (max-width: 760px) {
  .next-class-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ===== Schedule ===== */
.schedule-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.schedule-item {
  display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px;
}
.schedule-date {
  flex-shrink: 0; width: 74px; height: 74px; border-radius: 14px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.schedule-date .dow { font-size: 0.7rem; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.schedule-date .dom { font-size: 1.4rem; font-weight: 700; font-family: var(--font-head); }
.schedule-date .mon { font-size: 0.72rem; color: var(--text-muted); }
.schedule-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.schedule-info p { margin: 0; font-size: 0.88rem; }
.schedule-tag {
  margin-left: auto; flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--success);
  background: color-mix(in srgb, var(--success) 15%, transparent); padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 560px) {
  .schedule-item { flex-wrap: wrap; }
  .schedule-tag { margin-left: 0; }
}

/* ===== Pre-class question ===== */
.preclass-question {
  max-width: 640px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.preclass-question h3 { font-size: 1.2rem; }
.preclass-question form { text-align: left; margin-top: 20px; }
.preclass-success { display: none; padding: 20px 0; }
.preclass-success.show { display: block; }
.preclass-success .check {
  width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.preclass-success .check svg { width: 22px; height: 22px; color: var(--success); }
#preclassForm.hide { display: none; }

/* ===== Replays ===== */
.replay-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .replay-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .replay-grid { grid-template-columns: repeat(3, 1fr); } }
.replay-card { border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.replay-card.is-hidden { display: none; }
.replay-embed {
  position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg-elevated));
  cursor: pointer; border: 0; width: 100%; padding: 0; display: block;
}
.replay-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.4); transition: transform 0.2s ease;
}
.replay-embed:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.replay-info { padding: 18px 20px; }
.replay-info h3 { font-size: 1rem; margin-bottom: 4px; }
.replay-download {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none;
  transition: color 0.15s ease;
}
.replay-download:hover { color: var(--accent); text-decoration: underline; }
.replay-download svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-2); }
.replay-info p { font-size: 0.85rem; margin: 0; }

/* ===== Testimonials ===== */
.testimonial-wrap { position: relative; }
.testimonial-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start; flex: 0 0 min(340px, 82vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column;
}
.quote-mark { font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.testimonial-card p.quote { color: var(--text); font-size: 1rem; flex-grow: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar-dot {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.82rem; color: var(--text-muted); }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.carousel-btn svg { width: 18px; height: 18px; }

/* ===== Testimonial submission ===== */
.testimonial-submit {
  max-width: 640px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.testimonial-submit h3 { font-size: 1.2rem; }
.testimonial-submit form { text-align: left; margin-top: 20px; }
.testimonial-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-top: 16px; }
.testimonial-consent input { margin-top: 3px; flex-shrink: 0; }
.testimonial-submit-success { display: none; padding: 20px 0; }
.testimonial-submit-success.show { display: block; }
.testimonial-submit-success .check {
  width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.testimonial-submit-success .check svg { width: 22px; height: 22px; color: var(--success); }
#testimonialForm.hide { display: none; }

/* ===== Resources ===== */
.resource-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } }
.resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.resource-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: var(--accent);
}
.resource-icon svg { width: 22px; height: 22px; }
.resource-card h3 { font-size: 1.05rem; }
.resource-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.resource-form input[type="email"] {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); font-size: 0.92rem; width: 100%;
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }
.form-success { display: none; font-size: 0.88rem; color: var(--success); font-weight: 600; margin-top: 10px; }
.form-success.show { display: block; }

/* ===== Newsletter ===== */
.newsletter-panel {
  max-width: 760px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 24px;
}
.newsletter-copy { flex: 1 1 260px; }
.newsletter-copy h3 { font-size: 1.1rem; margin-bottom: 4px; }
.newsletter-copy p { margin: 0; font-size: 0.88rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 320px; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 180px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 0.92rem; font-family: inherit;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.newsletter-form button { flex-shrink: 0; }
.newsletter-success { display: none; font-size: 0.85rem; color: var(--success); font-weight: 600; margin-top: 8px; width: 100%; }
.newsletter-success.show { display: block; }
.newsletter-form.hide { display: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--accent); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 20px; margin: 0; color: var(--text-muted); }

/* ===== Registration ===== */
.register-panel {
  max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .register-panel { padding: 26px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field .optional-tag { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); font-size: 0.95rem; font-family: inherit; width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input[type="file"] { padding: 10px 14px; font-size: 0.86rem; color: var(--text-muted); }
.field input[type="file"]::file-selector-button {
  padding: 8px 14px; margin-right: 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.84rem; cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field-error { font-size: 0.8rem; color: #ff8a8a; min-height: 1.1em; }
.field.has-error input, .field.has-error select { border-color: #ff8a8a; }
.register-success {
  display: none; text-align: center; padding: 20px 0;
}
.register-success.show { display: block; }
.register-success .check {
  width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.register-success .check svg { width: 26px; height: 26px; color: var(--success); }
#registerForm.hide, #assignmentForm.hide { display: none; }
.privacy-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Accountability partner carousel ===== */
.partner-card {
  scroll-snap-align: start; flex: 0 0 min(300px, 82vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.partner-card-top { display: flex; align-items: center; gap: 12px; }
.partner-card .avatar-dot { flex-shrink: 0; }
.partner-card-name { font-weight: 700; font-size: 0.98rem; }
.partner-card-meta { font-size: 0.8rem; color: var(--text-muted); }
.partner-card-notes { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; }
.partner-request-form { display: none; flex-direction: column; gap: 8px; margin-top: 8px; }
.partner-request-form.open { display: flex; }
.partner-request-form input, .partner-request-form textarea {
  padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); font-size: 0.84rem; font-family: inherit;
}
.partner-request-form textarea { min-height: 56px; resize: vertical; }
.partner-request-status { font-size: 0.8rem; margin-top: 4px; }
.partner-status-lookup { display: flex; gap: 10px; flex-wrap: wrap; }
.partner-status-lookup input {
  flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 0.92rem; font-family: inherit;
}
.partner-status-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 12px; font-size: 0.88rem;
}
.partner-status-item strong { display: block; margin-bottom: 4px; }
.partner-status-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; margin-left: 8px;
}
.partner-status-badge.pending { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.partner-status-badge.accepted { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.partner-status-badge.declined { background: color-mix(in srgb, var(--text-muted) 18%, transparent); color: var(--text-muted); }
.partner-contact-reveal { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 0.85rem; }

/* ===== Community CTA ===== */
.community-panel {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center; color: #fff;
}
@media (max-width: 560px) { .community-panel { padding: 40px 22px; } }
.community-panel h2 { color: #fff; }
.community-panel p { color: rgba(255,255,255,0.9); max-width: 520px; margin-left: auto; margin-right: auto; }
.community-panel .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }
.community-panel .btn-primary:hover { background: #f2f2ff; }

/* ===== Free Tools directory ===== */
.tools-controls { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.filter-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.filter-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent;
}
.tools-search { width: 100%; max-width: 360px; }
.tools-search input {
  width: 100%; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 0.92rem; font-family: inherit;
}
.tools-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tools-count { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: 0 0 40px; }
.tool-category { margin-bottom: 56px; }
.tool-category:last-child { margin-bottom: 0; }
.tool-category.is-hidden { display: none; }
.tool-category-head { margin-bottom: 22px; }
.tool-category-head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tool-category-head p { margin: 0; font-size: 0.9rem; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tool-card.is-hidden { display: none; }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-name { font-size: 1.05rem; font-weight: 700; font-family: var(--font-head); }
.tool-free-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--success);
  background: color-mix(in srgb, var(--success) 15%, transparent); padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0; white-space: nowrap;
}
.tool-task { font-size: 0.9rem; color: var(--text-muted); margin: 0; flex-grow: 1; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.tool-link svg { width: 14px; height: 14px; }
.tools-empty { display: none; text-align: center; padding: 40px 0; color: var(--text-muted); }
.tools-empty.show { display: block; }

/* ===== Footer ===== */
.footer { position: relative; border-top: 1px solid var(--border); padding: 0 0 32px; background: var(--bg-elevated); overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 48px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.footer-top .logo { font-size: 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 0.85fr 1fr 0.85fr; } }
.footer-brand p { max-width: 300px; }
.footer-brand p strong { color: var(--text); font-weight: 700; }
.footer-live-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
}
.footer-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .footer-live-dot { animation: badgepulse 2s ease-in-out infinite; }
}
.footer h4 {
  font-size: 0.78rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer a:hover { color: var(--text); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; color: var(--text-muted); background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.social-row a:hover {
  color: #fff; border-color: transparent; transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px rgba(124,108,255,0.6);
}
.social-row svg { width: 17px; height: 17px; }
.footer-stat-list { gap: 14px; }
.footer-stat {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.15s ease, transform 0.15s ease;
}
.footer-stat:hover { border-color: var(--accent); transform: translateX(2px); }
.footer-stat svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }
.footer-stat span { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--text-muted); }
.footer-stat strong { font-family: var(--font-head); font-size: 0.98rem; color: var(--text); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted);
}

/* ===== Chat widget (Ask Dr. Daniel) ===== */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 60px; height: 60px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--surface); box-shadow: var(--shadow); padding: 0;
}
.chat-launcher-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.chat-launcher-dot {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--bg);
}
.chat-panel {
  position: fixed; z-index: 950; bottom: 96px; right: 24px; width: 360px; height: 520px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.chat-header-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); object-fit: cover; }
.chat-header-titles { flex-grow: 1; min-width: 0; }
.chat-header-title { font-weight: 700; font-size: 0.95rem; }
.chat-header-sub { font-size: 0.76rem; opacity: 0.85; }
.chat-close { background: transparent; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-row { display: flex; gap: 8px; max-width: 88%; }
.chat-row.assistant { align-self: flex-start; }
.chat-row.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar-mini { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; white-space: pre-wrap; }
.chat-row.assistant .chat-bubble { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; color: var(--text); }
.chat-row.user .chat-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-top-right-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chip { font-size: 0.78rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.chat-chip:hover { border-color: var(--accent); color: var(--text); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-input textarea {
  flex: 1; resize: none; max-height: 90px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 10px 12px; font-family: inherit; font-size: 0.88rem;
}
.chat-input textarea:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chat-input button:disabled { opacity: 0.5; cursor: default; }
.chat-input button svg { width: 18px; height: 18px; }
.chat-typing { display: flex; gap: 4px; padding: 4px 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .chat-typing span { animation: chatdot 1.2s ease-in-out infinite; }
  .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes chatdot { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 480px) {
  .chat-panel { left: 12px; right: 12px; bottom: 88px; width: auto; height: min(70vh, 560px); }
  .chat-launcher { bottom: 16px; right: 16px; }
}
