/* ── Kahvor.com Design System ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root, [data-theme="light"] {
  --color-bg: #F7F5F0;
  --color-surface: #FDFCF9;
  --color-surface-2: #F0EDE8;
  --color-border: #D4D1CA;
  --color-text: #1C1B19;
  --color-text-muted: #65635E;
  --color-text-faint: #BAB9B4;
  --color-primary: #01696F;
  --color-primary-hover: #0C4E54;
  --color-emerald: #1B4D3E;
  --color-copper: #A05A2C;
  --color-teal-light: #E5F4F4;
  --color-copper-light: #FEF3EC;
  --shadow-sm: 0 1px 3px rgba(28,27,25,0.06);
  --shadow-md: 0 4px 16px rgba(28,27,25,0.08);
  --shadow-lg: 0 16px 48px rgba(28,27,25,0.12);
  --radius: 0.75rem;
  --nav-height: 64px;
}

[data-theme="dark"] {
  --color-bg: #171614;
  --color-surface: #1C1B19;
  --color-surface-2: #201F1D;
  --color-border: #393836;
  --color-text: #CDCCCA;
  --color-text-muted: #9E9C98;
  --color-text-faint: #5A5957;
  --color-primary: #4F98A3;
  --color-primary-hover: #227F8B;
  --color-emerald: #2D6B5A;
  --color-copper: #BB653B;
  --color-teal-light: #1A2E2E;
  --color-copper-light: #2A1E14;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Type scale ────────────────────────────────────────────────────────────── */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  --text-2xl: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --text-hero: clamp(2.5rem, 1rem + 6vw, 5.5rem);
}

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: var(--text-base); }

/* ── Eyebrow ───────────────────────────────────────────────────────────────── */
.section-eyebrow, .eyebrow-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-teal-light);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}
.eyebrow-badge .dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 200ms ease, box-shadow 200ms ease;
  background: var(--color-bg);
}
.nav.scrolled {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-emerald);
}
.logo-mark { width: 40px; height: 40px; object-fit: contain; display: block; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: auto;
}
.nav-links a:hover { color: var(--color-text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--color-bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-preview { display: none; }
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-emerald);
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.avatars { display: flex; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* ── App frame / mockup ─────────────────────────────────────────────────────── */
.hero-preview { position: relative; }
.app-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
.app-frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-frame-bar .dot.red { background: #FF5F57; }
.app-frame-bar .dot.yellow { background: #FEBC2E; }
.app-frame-bar .dot.green { background: #28C840; }
.app-frame-title {
  margin-left: 0.5rem;
  font-size: 11px;
  color: var(--color-text-faint);
}
.app-mockup { display: flex; height: 360px; overflow: hidden; }

/* Sidebar mock */
.mock-sidebar {
  width: 140px;
  background: #1B4D3E;
  color: #c8ddd8;
  padding: 0.75rem 0;
  flex-shrink: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mock-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.25rem;
}
.mock-compose {
  margin: 0.25rem 0.75rem 0.5rem;
  background: rgba(79,152,163,0.3);
  color: #9dd;
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}
.mock-nav-group { padding: 0 0.5rem; margin-bottom: 0.5rem; }
.mock-nav-label {
  display: block;
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  padding: 0.35rem 0.375rem 0.25rem;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  cursor: pointer;
}
.mock-nav-item.active {
  background: rgba(79,152,163,0.25);
  color: #9dd;
  font-weight: 600;
}
.badge {
  background: rgba(79,152,163,0.3);
  color: #9dd;
  border-radius: 3px;
  padding: 0 4px;
  font-size: 9px;
}
.badge.copper { background: rgba(160,90,44,0.3); color: #d4845a; }
.mock-profile {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-avatar {
  width: 22px; height: 22px;
  background: rgba(79,152,163,0.4);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-name { font-size: 10px; color: rgba(255,255,255,0.9); font-weight: 600; }
.mock-mode { font-size: 8px; color: rgba(255,255,255,0.35); }

/* Main mock */
.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.625rem;
  gap: 0.5rem;
  background: var(--color-bg);
}
.mock-header { }
.mock-eyebrow { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; color: var(--color-primary); text-transform: uppercase; }
.mock-title { font-size: 13px; font-weight: 700; color: var(--color-emerald); line-height: 1.2; }
.mock-mode-tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.375rem;
  background: var(--color-surface-2);
  border-radius: 4px;
  padding: 2px;
  width: fit-content;
}
.mock-tab {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.mock-tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.mock-command-band {
  background: linear-gradient(135deg, #1B4D3E 0%, #01696F 100%);
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  color: white;
}
.mock-band-label { font-size: 8px; font-weight: 700; opacity: 0.7; margin-bottom: 0.2rem; }
.mock-band-text { font-size: 9px; opacity: 0.9; line-height: 1.4; margin-bottom: 0.35rem; }
.mock-band-stats { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.mock-stat {
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.mock-stat.teal { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.mock-stat.copper { background: rgba(160,90,44,0.4); color: #f4a070; }
.mock-stat.muted { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }

.mock-cols { display: flex; gap: 0.5rem; flex: 1; overflow: hidden; }
.mock-col { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; overflow: hidden; }
.mock-col.rail { flex: 0 0 120px; }
.mock-col-title, .mock-rail-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.25rem;
}
.mock-rail-title.mt { margin-top: 0.5rem; }
.mock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 0.4rem 0.5rem;
}
.mock-card.teal { border-left: 2px solid var(--color-primary); }
.mock-card.high { border-left: 2px solid var(--color-copper); }
.mock-card-tag {
  font-size: 7px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-card-tag.copper { color: var(--color-copper); }
.mock-card-tag.teal { color: var(--color-primary); }
.mock-card-text {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0.2rem 0;
  line-height: 1.3;
}
.mock-card-actions { display: flex; gap: 0.25rem; margin-top: 0.3rem; }
.mock-btn {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
}
.mock-btn.primary {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
}

.mock-rail-item {
  font-size: 9px;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.2rem 0;
  line-height: 1.4;
}
.mock-rail-item .muted { color: var(--color-text-faint); margin-left: auto; }
.mock-rail-item.ai { color: var(--color-primary); font-style: italic; }

/* ── Problem section ─────────────────────────────────────────────────────────── */
.problem {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.problem .section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: 20ch;
}
.problem .section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 3rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.problem-card.visible { opacity: 1; transform: none; }
.problem-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.problem-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.5rem; color: var(--color-text); }
.problem-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ── How it works ────────────────────────────────────────────────────────────── */
.how {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.how .section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.15;
  margin-bottom: 3rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.how-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 200ms ease, transform 200ms ease;
  opacity: 0;
  transform: translateY(16px);
}
.how-card.visible { opacity: 1; transform: none; }
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.how-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.how-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.how-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.5rem; color: var(--color-text); }
.how-card > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.how-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }
.how-card li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: 1rem;
  position: relative;
}
.how-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* -- Morning Briefing Section ------------------------------------------------- */
.morning-briefing {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.briefing-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.briefing-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.briefing-frame-wrap { position: relative; }
.briefing-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05),
    0 8px 32px rgba(0,0,0,0.10),
    0 32px 80px rgba(0,0,0,0.08);
  overflow: hidden;
}
.briefing-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
.bbar-dot { width: 10px; height: 10px; border-radius: 50%; }
.bbar-dot.red { background: #FF5F57; }
.bbar-dot.yellow { background: #FEBC2E; }
.bbar-dot.green { background: #28C840; }
.bbar-title { margin-left: 0.5rem; font-size: 11px; color: var(--color-text-faint); }
.briefing-layout { display: flex; height: 480px; overflow: hidden; }
.briefing-sidebar {
  width: 148px;
  background: #1B4D3E;
  color: #c8ddd8;
  padding: 0.75rem 0;
  flex-shrink: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bsb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem 0.625rem;
  color: white;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.25rem;
}
.bsb-nav { padding: 0 0.5rem; display: flex; flex-direction: column; gap: 2px; }
.bsb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  cursor: pointer;
}
.bsb-item.active { background: rgba(79,152,163,0.25); color: #9dd; font-weight: 600; }
.bsb-badge { background: rgba(79,152,163,0.3); color: #9dd; border-radius: 3px; padding: 0 4px; font-size: 9px; }
.bsb-badge.copper { background: rgba(160,90,44,0.3); color: #d4845a; }
.bsb-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 0.375rem 0.5rem; }
.bsb-readiness { margin-top: auto; padding: 0.625rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.bsb-readiness-label {
  font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.bsb-meter-row { display: flex; align-items: center; gap: 0.375rem; font-size: 8px; color: rgba(255,255,255,0.5); margin-bottom: 0.35rem; }
.bsb-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.1); border-radius: 9999px; overflow: hidden; }
.bsb-fill { height: 100%; background: rgba(79,152,163,0.7); border-radius: 9999px; }
.bsb-fill.copper { background: rgba(160,90,44,0.7); }
.briefing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem;
  gap: 0.5rem;
  background: var(--color-bg);
}
.briefing-eyebrow { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; color: var(--color-primary); text-transform: uppercase; }
.briefing-greeting { font-size: 14px; font-weight: 700; color: var(--color-emerald); line-height: 1.2; margin: 0.125rem 0 0.375rem; }
.briefing-tabs { display: flex; gap: 0.25rem; background: var(--color-surface-2); border-radius: 4px; padding: 2px; width: fit-content; }
.briefing-tab { font-size: 8px; padding: 2px 7px; border-radius: 3px; color: var(--color-text-muted); font-weight: 500; }
.briefing-tab.active { background: var(--color-surface); color: var(--color-text); font-weight: 600; box-shadow: var(--shadow-sm); }
.briefing-ai-brief {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  background: var(--color-teal-light);
  border: 1px solid rgba(1,105,111,0.15);
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  font-size: 9px;
  color: var(--color-primary);
  font-style: italic;
  line-height: 1.5;
}
.briefing-ai-icon { flex-shrink: 0; font-style: normal; margin-top: 1px; }
.briefing-band {
  background: linear-gradient(135deg, #1B4D3E 0%, #01696F 100%);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: white;
}
.briefing-band-label { font-size: 8px; font-weight: 700; opacity: 0.75; margin-bottom: 0.15rem; }
.briefing-band-sub { font-size: 9px; opacity: 0.85; line-height: 1.3; }
.briefing-band-stats { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.bstat { font-size: 8px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.bstat.teal { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.bstat.copper { background: rgba(160,90,44,0.4); color: #f4a070; }
.bstat.muted { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.briefing-cols { display: flex; gap: 0.5rem; flex: 1; overflow: hidden; }
.briefing-col { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; overflow: hidden; }
.briefing-col.rail { flex: 0 0 140px; }
.bcol-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.25rem; border-bottom: 1px solid var(--color-border); margin-bottom: 0.125rem;
}
.bcol-title { font-size: 9px; font-weight: 700; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.06em; }
.bcol-count { font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: var(--color-teal-light); color: var(--color-primary); }
.bcol-count.copper { background: var(--color-copper-light); color: var(--color-copper); }
.bcol-count.teal { background: var(--color-teal-light); color: var(--color-primary); }
.bcol-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 5px; padding: 0.4rem 0.5rem; }
.bcol-card.urgent { border-left: 2px solid var(--color-copper); }
.bcol-card.teal-accent { border-left: 2px solid var(--color-primary); }
.bcol-tag { font-size: 7px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.bcol-tag.copper { color: var(--color-copper); }
.bcol-tag.teal { color: var(--color-primary); }
.bcol-text { font-size: 9px; font-weight: 600; color: var(--color-text); line-height: 1.3; margin-bottom: 0.15rem; }
.bcol-meta { font-size: 7px; color: var(--color-text-faint); margin-bottom: 0.25rem; }
.bcol-preview {
  font-size: 7.5px; color: var(--color-text-muted); font-style: italic;
  line-height: 1.4; margin-bottom: 0.25rem; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bcol-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.bcol-btn { font-size: 7.5px; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--color-border); color: var(--color-text-muted); font-weight: 500; cursor: pointer; }
.bcol-btn.primary { background: var(--color-primary); color: white; border-color: transparent; }
.bcol-btn.ghost { background: transparent; color: var(--color-text-faint); }
.bcol-rail-item { display: flex; align-items: flex-start; gap: 0.375rem; padding: 0.25rem 0; border-bottom: 1px solid var(--color-border); }
.bcol-rail-item:last-child { border-bottom: none; }
.bcol-rail-item.ai .rail-insight { font-size: 8px; color: var(--color-primary); font-style: italic; line-height: 1.4; }
.rail-icon { font-size: 9px; flex-shrink: 0; margin-top: 1px; }
.rail-label { font-size: 8.5px; font-weight: 600; color: var(--color-text); line-height: 1.3; }
.rail-time { font-size: 7.5px; color: var(--color-text-faint); }
.bcol-section-label { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); margin-top: 0.375rem; margin-bottom: 0.125rem; }
.briefing-caption {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1.25rem; padding: 0.75rem 1rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.briefing-caption-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.briefing-caption-sub { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 900px) {
  .briefing-layout { height: auto; flex-direction: column; }
  .briefing-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0.5rem 0.75rem; }
  .bsb-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 0; }
  .bsb-readiness { display: none; }
  .briefing-main { min-height: 340px; }
  .briefing-col.rail { display: none; }
  .briefing-caption { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
[data-theme="dark"] .morning-briefing { background: var(--color-bg); }
[data-theme="dark"] .briefing-frame {
  background: var(--color-surface); border-color: var(--color-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 32px 80px rgba(0,0,0,0.4);
}
[data-theme="dark"] .briefing-bar { background: var(--color-surface-2); border-color: var(--color-border); }
[data-theme="dark"] .briefing-main { background: var(--color-bg); }
[data-theme="dark"] .briefing-tabs { background: var(--color-surface-2); }
[data-theme="dark"] .briefing-tab.active { background: var(--color-surface); }
[data-theme="dark"] .briefing-ai-brief { background: var(--color-teal-light); border-color: rgba(79,152,163,0.2); }
[data-theme="dark"] .bcol-card { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .briefing-caption { background: var(--color-surface); border-color: var(--color-border); }

/* ── Trust ────────────────────────────────────────────────────────────────────── */
.trust {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) { .trust-inner { grid-template-columns: 1fr; } }
.trust .section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.trust .section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.trust-points { display: flex; flex-direction: column; gap: 1.25rem; }
.trust-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.trust-point.visible { opacity: 1; transform: none; }
.trust-check {
  width: 24px; height: 24px;
  background: var(--color-teal-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-point strong { display: block; font-weight: 700; margin-bottom: 0.2rem; font-size: var(--text-sm); }
.trust-point p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }

/* Trust card */
.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trust-card-header {
  background: linear-gradient(135deg, #1B4D3E 0%, #01696F 100%);
  padding: 0.875rem 1.25rem;
}
.trust-badge {
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.06em;
}
.trust-card-body { padding: 1.5rem; }
.trust-card-title { font-size: var(--text-base); font-weight: 700; margin-bottom: 1rem; }
.trust-draft {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.draft-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.draft-preview { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; font-style: italic; }
.trust-actions { display: flex; gap: 0.75rem; margin-bottom: 0.875rem; }
.trust-note { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ── Waitlist ─────────────────────────────────────────────────────────────────── */
.waitlist {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(160deg, #1B4D3E 0%, #01696F 60%, #0C4E54 100%);
  text-align: center;
}
.waitlist-inner { max-width: 560px; margin: 0 auto; }
.section-eyebrow.light { color: rgba(255,255,255,0.6); }
.waitlist-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.waitlist-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}
@media (max-width: 520px) { .waitlist-form { flex-direction: column; } }
.waitlist-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: var(--text-sm);
  font-family: inherit;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.8); }
.waitlist-input:focus { outline: 2px solid rgba(255,255,255,0.4); }
.waitlist-note { font-size: var(--text-xs); color: rgba(255,255,255,0.8); }

/* ── Footer ───────────────────────────────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-emerald);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── Pricing Section ───────────────────────────────────────────────────────── */
.pricing {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg);
}
.pricing-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-emerald);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.pricing-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.25rem;
  margin-bottom: 2.5rem;
}
.billing-opt {
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.billing-opt.active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.billing-save {
  background: var(--color-teal-light);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Pricing card */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pricing-featured {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 4px hsl(183 98% 22% / 0.07);
}
.pricing-featured:hover {
  box-shadow: 0 0 0 4px hsl(183 98% 22% / 0.07), var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.pricing-featured .pricing-tier {
  color: var(--color-primary);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.price-amount {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-emerald);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-per {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 10ch;
}
.pricing-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  min-height: 3.5em;
}
.pricing-cta {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 1.25rem;
}
.pricing-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 1.25rem;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.4;
  max-width: 100%;
}
.feat-check {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat-muted {
  color: var(--color-text-faint);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li:has(.feat-muted) {
  color: var(--color-text-muted);
}

.pricing-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  background: var(--color-teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pricing-note::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Teams card scroll animation ──────────────────────────────────────────── */
.pricing-animate {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms ease;
}

.pricing-animate.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtle pulse on the badge once in view */
.pricing-animate.in-view .pricing-badge {
  animation: badge-pop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 500ms both;
}

@keyframes badge-pop {
  from { transform: translateX(-50%) scale(0.7); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* ══ Page / section entry transitions ════════════════════════════════════════ */

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero content — animates immediately on load */
.hero-content {
  animation: section-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-preview {
  animation: section-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

/* Scroll-triggered — starts invisible, JS adds .enter class */
.scroll-enter {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-enter.enter {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a scroll-enter parent */
.scroll-enter-stagger > * {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-enter-stagger.enter > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.scroll-enter-stagger.enter > *:nth-child(2) { transition-delay: 60ms;  opacity: 1; transform: none; }
.scroll-enter-stagger.enter > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: none; }
.scroll-enter-stagger.enter > *:nth-child(4) { transition-delay: 180ms; opacity: 1; transform: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-preview,
  .scroll-enter,
  .scroll-enter-stagger > * {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Kahvor.com Polish Pass 3 ─────────────────────────────────────────────── */

/* Hero app frame — more premium shadow + refined border */
.app-frame {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 8px 32px rgba(0,0,0,0.12),
    0 32px 80px rgba(0,0,0,0.10) !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
}

/* Tighter section spacing — sections were too spread */
.problem, .how, .trust, .pricing {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Section title tracking */
.section-title,
.pricing-title,
.waitlist-title {
  letter-spacing: -0.02em;
}

/* Eyebrow — tighter spacing above */
.section-eyebrow {
  margin-bottom: 0.5rem;
}

/* How-cards — taller, better proportioned */
.how-card {
  padding: 2rem 1.75rem;
}

/* Problem cards — add left accent */
.problem-card {
  border-left: 3px solid var(--color-border);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.problem-card:hover {
  border-left-color: var(--color-primary);
}

/* Trust section — tighter inner layout */
.trust-inner {
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* Waitlist section — richer gradient */
.waitlist {
  background: linear-gradient(155deg, #0e3328 0%, #01696F 55%, #0a3d42 100%);
}

/* Nav refinement — tighter, more premium */
.nav-links a {
  font-weight: 500;
  transition: color 150ms ease;
}

/* Footer — slightly more breathing room */
.footer {
  padding: 2.5rem 0;
}

/* ══ Kahvor.com Dark Mode ═════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --color-bg: #171614;
  --color-surface: #1C1B19;
  --color-surface-2: #201F1D;
  --color-border: #393836;
  --color-text: #CDCCCA;
  --color-text-muted: #65635E;
  --color-text-faint: #5A5957;
  --color-primary: #4F98A3;
  --color-primary-hover: #227F8B;
  --color-emerald: #3a7a68;
  --color-copper: #BB653B;
  --color-teal-light: #1A2E2E;
  --color-copper-light: #2A1E14;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

/* Smooth color transitions on theme change */
*, *::before, *::after {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
/* Exclude layout-affecting properties */
img, svg, button { transition: none; }
.btn, .nav-logo, .pricing-card, .how-card, .problem-card { 
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 200ms ease, transform 200ms ease;
}

/* Dark nav */
[data-theme="dark"] .nav {
  background: var(--color-bg);
}
[data-theme="dark"] .nav.scrolled {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Dark hero */
[data-theme="dark"] .hero {
  background: var(--color-bg);
}
[data-theme="dark"] .hero-title {
  color: var(--color-emerald);
}
[data-theme="dark"] .app-frame {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 32px 80px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .app-frame-bar {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="dark"] .mock-main {
  background: var(--color-bg);
}
[data-theme="dark"] .mock-mode-tabs {
  background: var(--color-surface-2);
}
[data-theme="dark"] .mock-tab.active {
  background: var(--color-surface);
}
[data-theme="dark"] .mock-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .mock-card-text { color: var(--color-text); }

/* Dark sections */
[data-theme="dark"] .problem { background: var(--color-surface); }
[data-theme="dark"] .how { background: var(--color-bg); }
[data-theme="dark"] .trust { background: var(--color-surface); }
[data-theme="dark"] .pricing { background: var(--color-bg); }

[data-theme="dark"] .problem-card,
[data-theme="dark"] .how-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .trust-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .pricing-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px hsl(188 35% 47% / 0.15);
}
[data-theme="dark"] .trust-card-body { background: var(--color-surface); }
[data-theme="dark"] .trust-draft {
  background: var(--color-bg);
  border-color: var(--color-border);
}

/* Dark footer */
[data-theme="dark"] .footer {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Dark billing toggle */
[data-theme="dark"] .billing-toggle {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="dark"] .billing-opt.active {
  background: var(--color-surface);
}
[data-theme="dark"] .billing-save {
  background: var(--color-teal-light);
  color: var(--color-primary);
}

/* Dark pricing note */
[data-theme="dark"] .pricing-note {
  background: var(--color-teal-light);
}

/* Dark waitlist — keep the gradient but shift it darker */
[data-theme="dark"] .waitlist {
  background: linear-gradient(155deg, #081f14 0%, #024a4f 55%, #052830 100%);
}
[data-theme="dark"] .waitlist-input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

/* ── Dark mode toggle button for Kahvor.com ─────────────────────────────── */
.site-theme-toggle {
  width: 34px;
  height: 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 3px;
}
[data-theme="dark"] .site-theme-toggle {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.site-theme-knob {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 230ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
[data-theme="dark"] .site-theme-knob {
  transform: translateX(14px);
}
.site-theme-icon {
  position: absolute;
  font-size: 8px;
  pointer-events: none;
  transition: opacity 200ms ease !important;
}
.icon-sun { right: 4px; opacity: 1; }
.icon-moon { left: 4px; opacity: 0; }
[data-theme="dark"] .icon-sun { opacity: 0; }
[data-theme="dark"] .icon-moon { opacity: 1; }

/* ── Mobile Nav Hamburger ──────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  color: var(--color-text);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    margin-left: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn-ghost { display: none; }
}

/* ── Focus-Visible Rings (WCAG 2.4.7) ────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

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