/* ========================================================================
   MCRB Labs — shared design system
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --accent: #2a78d6;
  --accent-strong: #1f5fae;
  --accent-soft: rgba(42, 120, 214, 0.12);

  --productive: #3B6D11;
  --productive-soft: rgba(59, 109, 17, 0.14);
  --distracted: #BA7517;
  --distracted-soft: rgba(186, 117, 23, 0.14);
  --neutral: #8a8f98;
  --neutral-soft: rgba(138, 143, 152, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1160px;
  --nav-h: 76px;

  --shadow-soft: 0 1px 2px rgba(15, 15, 20, 0.04), 0 8px 24px rgba(15, 15, 20, 0.06);
  --shadow-lift: 0 4px 12px rgba(15, 15, 20, 0.08), 0 16px 40px rgba(15, 15, 20, 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* light theme — the site's only theme */
  --bg: #fbfbfa;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-border: rgba(20, 20, 25, 0.08);
  --text-primary: #14141a;
  --text-secondary: #55565f;
  --text-tertiary: #8a8b93;
  --divider: rgba(20, 20, 25, 0.08);
  --nav-bg: rgba(251, 251, 250, 0.78);
}

/* ---- always-dark surface, for product mockups regardless of page theme ---- */
.mockup {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --card: #16161a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f3f5;
  --text-secondary: #a6a7b0;
  --text-tertiary: #6f707a;
  --divider: rgba(255, 255, 255, 0.08);
  /* brighten status colors for legibility on this always-dark surface */
  --productive-fg: #6fae3a;
  --distracted-fg: #e0993f;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; line-height: 1.6; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(42, 120, 214, 0.2), 0 8px 20px rgba(42, 120, 214, 0.25);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--card-border);
}
.btn-secondary:hover { border-color: var(--text-tertiary); transform: translateY(-1px); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-block { width: 100%; }

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--divider);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6ea6e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: var(--card-border); }
.nav-links a.active { color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 12px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
}

/* ---------------------------------------------------------------------- */
/* Sections / generic layout                                              */
/* ---------------------------------------------------------------------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 14px;
}
.section-head p { font-size: 17px; color: var(--text-secondary); }

.divider { height: 1px; background: var(--divider); border: none; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.card-hover { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--text-tertiary); }

/* ---------------------------------------------------------------------- */
/* Status colour system                                                    */
/* ---------------------------------------------------------------------- */

.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-productive { background: var(--productive); }
.dot-distracted { background: var(--distracted); }
.dot-neutral { background: var(--neutral); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
}
.tag-productive { background: var(--productive-soft); color: var(--productive); }
.tag-distracted { background: var(--distracted-soft); color: var(--distracted); }
.tag-neutral { background: var(--neutral-soft); color: var(--text-secondary); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.mockup .tag-productive { color: var(--productive-fg, var(--productive)); }
.mockup .tag-distracted { color: var(--distracted-fg, var(--distracted)); }
.mockup .dot-productive { background: var(--productive-fg, var(--productive)); }
.mockup .dot-distracted { background: var(--distracted-fg, var(--distracted)); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-secondary); font-size: 14.5px; }
.footer-col a:hover { color: var(--text-primary); }

.footer-brand p { color: var(--text-secondary); font-size: 14.5px; margin-top: 14px; max-width: 280px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
  color: var(--text-tertiary);
  font-size: 13.5px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Badge / status pill for "in development" etc.                          */
/* ---------------------------------------------------------------------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}
.status-pill .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(42,120,214,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42,120,214,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(42,120,214,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,120,214,0); }
}

/* ---------------------------------------------------------------------- */
/* Placeholder-content notice (used on unfinished pages)                  */
/* ---------------------------------------------------------------------- */

.placeholder-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid rgba(42, 120, 214, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 48px;
}
.placeholder-note svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.placeholder-note p { font-size: 14.5px; color: var(--text-secondary); }
.placeholder-note strong { color: var(--text-primary); }

/* ---------------------------------------------------------------------- */
/* Utility                                                                 */
/* ---------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }

::selection { background: var(--accent-soft); color: var(--text-primary); }

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                           */
/* ---------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="1"] { transition-delay: 0.05s; }
[data-reveal="2"] { transition-delay: 0.12s; }
[data-reveal="3"] { transition-delay: 0.19s; }
[data-reveal="4"] { transition-delay: 0.26s; }

/* ---------------------------------------------------------------------- */
/* Hero (generic, reused across pages)                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 88px 0 40px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 7px 14px 7px 8px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-kicker .pip {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}
.hero .lede {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--text-secondary);
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 24px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------------------------------------------------------------------- */
/* Grids                                                                   */
/* ---------------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Metric / feature cards (mirrors the app's own metric-card style)       */
/* ---------------------------------------------------------------------- */

.metric-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.metric-icon svg { width: 19px; height: 19px; }
.metric-icon.accent { background: var(--accent-soft); color: var(--accent); }
.metric-icon.productive { background: var(--productive-soft); color: var(--productive-fg, var(--productive)); }
.metric-icon.distracted { background: var(--distracted-soft); color: var(--distracted-fg, var(--distracted)); }
.metric-icon.neutral { background: var(--neutral-soft); color: var(--text-secondary); }

.metric-card h3 { font-size: 16px; margin-bottom: 8px; }
.metric-card p { font-size: 14px; color: var(--text-secondary); }

/* Numbered step cards */
.step-card { position: relative; }
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--text-secondary); }

.step-connector {
  display: none;
}
@media (min-width: 901px) {
  .steps-row { position: relative; }
}

/* ---------------------------------------------------------------------- */
/* App device frame + mockups (always dark)                               */
/* ---------------------------------------------------------------------- */

.device-frame {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.25);
  overflow: hidden;
}
.device-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--divider);
}
.device-titlebar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.app-shell {
  display: flex;
  min-height: 380px;
}
.app-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--divider);
  padding: 18px 14px;
}
.app-sidebar .brand { font-size: 14px; margin-bottom: 22px; padding-left: 4px; }
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.app-nav-item svg { width: 15px; height: 15px; opacity: 0.8; }
.app-nav-item.active { background: rgba(42,120,214,0.16); color: #dce9fb; }
.app-main { flex: 1; padding: 24px 26px; }

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.score-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--productive-fg, var(--productive)) 0% 78%, rgba(255,255,255,0.08) 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--card, #16161a);
}
.score-ring .score-num {
  position: relative;
  font-size: 26px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.score-meta .score-label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 4px; }
.score-meta .score-streak { font-size: 14.5px; font-weight: 600; }

.mini-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 14px;
}
.mini-metric .mm-label { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 6px; }
.mini-metric .mm-value { font-size: 17px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* Timeline bar (foreground-app usage strip) */
.usage-strip {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 22px;
}
.usage-strip span { height: 100%; }

/* Tabs preview strip */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs-nav button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.tabs-nav button.active { background: rgba(255,255,255,0.08); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Heatmap (History tab) */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 3px;
}
.heatmap-grid .cell { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,0.06); }
.heatmap-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-tertiary); }
.heatmap-legend .cell { width: 11px; height: 11px; border-radius: 3px; }

/* Goals tab */
.goal-row { margin-bottom: 18px; }
.goal-row:last-child { margin-bottom: 0; }
.goal-row-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.goal-row-top .g-name { color: var(--text-primary); font-weight: 500; }
.goal-row-top .g-val { color: var(--text-tertiary); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.goal-bar-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.07); overflow: hidden; }
.goal-bar-fill { height: 100%; border-radius: 100px; }

/* Leaderboard tab */
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-rank {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.lb-row.top .lb-rank { background: var(--accent-soft); color: var(--accent); }
.lb-date { flex: 1; color: var(--text-secondary); }
.lb-score { font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* Share tab */
.share-card {
  background: linear-gradient(155deg, rgba(59,109,17,0.16), rgba(42,120,214,0.10));
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 22px;
}
.share-card .sc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.share-card .sc-score { font-size: 34px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.share-card .sc-date { font-size: 12.5px; color: var(--text-tertiary); }
.share-card .sc-bars { display: flex; gap: 4px; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.share-card .sc-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); }

/* Settings tab */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--divider);
}
.settings-row:last-child { border-bottom: none; }
.settings-row .sr-label { font-size: 14px; }
.settings-row .sr-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.switch {
  width: 38px; height: 22px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  position: relative;
  flex-shrink: 0;
}
.switch.on { background: var(--accent); }
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s var(--ease);
}
.switch.on::after { left: 19px; }

/* ---------------------------------------------------------------------- */
/* Smart detection split feature                                          */
/* ---------------------------------------------------------------------- */

.detect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.detect-card {
  padding: 32px;
}
.detect-card .metric-icon { margin-bottom: 22px; }
.detect-card h3 { font-size: 19px; margin-bottom: 10px; }
.detect-card p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 20px; }

.mini-demo {
  border-radius: 12px;
  border: 1px solid var(--divider);
  overflow: hidden;
}

@media (max-width: 860px) {
  .detect-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Privacy strip                                                          */
/* ---------------------------------------------------------------------- */

.privacy-strip {
  border-radius: var(--radius-xl);
  padding: 56px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-strip .pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 860px) {
  .privacy-strip { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ---------------------------------------------------------------------- */
/* Final CTA band                                                         */
/* ---------------------------------------------------------------------- */

.cta-band {
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  background: linear-gradient(160deg, var(--card), var(--bg-elevated));
  border: 1px solid var(--card-border);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); font-size: 16px; max-width: 480px; margin: 0 auto; }
.cta-band .hero-ctas { margin-top: 30px; }

/* ---------------------------------------------------------------------- */
/* Project cards (Projects page)                                          */
/* ---------------------------------------------------------------------- */

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.project-card .pc-visual {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.project-card .pc-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.project-card .pc-body .tag { margin-bottom: 16px; align-self: flex-start; }
.project-card h3 { font-size: 24px; margin-bottom: 12px; }
.project-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.project-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.project-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.project-card li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Team cards (About page)                                                */
/* ---------------------------------------------------------------------- */

.team-card { text-align: center; padding: 36px 28px; }
.team-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  color: #fff;
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.team-card p.bio { font-size: 14.5px; color: var(--text-secondary); }

/* Value cards */
.value-card { padding: 28px; }
.value-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--text-secondary); }

/* Story timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 24px 1fr;
  gap: 0;
}
.timeline-item .t-date { font-size: 13px; color: var(--text-tertiary); font-family: 'JetBrains Mono', monospace; padding-top: 3px; }
.timeline-item .t-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-item .t-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: 4px; flex-shrink: 0; }
.timeline-item .t-line { flex: 1; width: 1px; background: var(--divider); margin-top: 4px; }
.timeline-item:last-child .t-line { display: none; }
.timeline-item .t-body { padding-bottom: 36px; }
.timeline-item .t-body h4 { font-size: 16px; margin-bottom: 6px; }
.timeline-item .t-body p { font-size: 14.5px; color: var(--text-secondary); }

@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 70px 20px 1fr; }
}

/* ---------------------------------------------------------------------- */
/* FAQ accordion (Support page)                                           */
/* ---------------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--divider);
}
.faq-item:first-child { border-top: 1px solid var(--divider); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}
.faq-q .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--text-tertiary); transition: transform 0.2s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
}
.faq-a p { padding: 0 4px 22px; color: var(--text-secondary); font-size: 14.5px; max-width: 640px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------------------------------------------------------------------- */
/* Contact page                                                            */
/* ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-single {
  max-width: 480px;
  margin: 0 auto;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--text-primary); border-color: var(--text-tertiary); transform: translateY(-2px); }
.contact-channel {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}
.contact-channel:last-child { border-bottom: none; }
.contact-channel .cc-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-channel .cc-icon svg { width: 18px; height: 18px; }
.contact-channel h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-channel p { font-size: 14px; color: var(--text-secondary); }
.contact-channel a.cc-link { color: var(--accent); font-weight: 600; font-size: 14px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text-primary);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------------------------------------------------------------------- */
/* Legal pages (Privacy / Terms)                                          */
/* ---------------------------------------------------------------------- */

.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; }
.legal-updated { font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 8px; }

/* ---------------------------------------------------------------------- */
/* Simple page hero (non-home pages)                                      */
/* ---------------------------------------------------------------------- */

.page-hero { padding: 64px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { max-width: 560px; margin: 18px auto 0; font-size: 16.5px; color: var(--text-secondary); }

/* Bg accent blobs for home hero */
.bg-glow {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,120,214,0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero-wrap { position: relative; }

