/* ============================================
   TalentOS — Landing site
   Brand: CMPL dark editorial
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-elev-2: #1a1a1a;
  --fg: #fafafa;
  --fg-mute: #a1a1a1;
  --fg-dim: #6b6b6b;
  --border: #1f1f1f;
  --border-soft: #161616;
  --accent: #dfdacd;
  --accent-dim: rgba(223, 218, 205, 0.12);
  --success: #7dd99e;
  --info: #9bb8ff;
  --warning: #f0c674;
  --danger: #e58f8f;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-w: 1120px;
  --max-w-narrow: 720px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: opacity 0.18s; }
a:hover { opacity: 0.7; }

/* ============================================
   Top nav
   ============================================ */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topnav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mark-c {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #141415;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.mark-label {
  letter-spacing: 0.03em;
  color: var(--fg);
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 13px;
}

.topnav-links a {
  color: var(--fg-mute);
}

.topnav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}

.topnav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
  opacity: 1;
}

@media (max-width: 640px) {
  .topnav-links a:not(.topnav-cta) { display: none; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--pad-x) clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}

.hero-sub {
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0 0 2rem;
  font-weight: 300;
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   Hero preview card (mini live demo)
   ============================================ */

.hero-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.hero-preview:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.hero-preview:hover .preview-card {
  border-color: rgba(223, 218, 205, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(223, 218, 205, 0.08);
}

.hero-preview:hover .preview-hint {
  color: var(--accent);
}

.preview-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.preview-c-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #141415;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.preview-titles { flex: 1; }

.preview-product {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.preview-org {
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 1px;
}

.preview-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

.preview-tier i { font-size: 11px; }

.preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.preview-tab {
  padding: 7px 11px;
  font-size: 11px;
  color: var(--fg-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.preview-tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.preview-tab-locked { margin-left: auto; }
.preview-tab-locked i { font-size: 12px; }

.preview-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.preview-metric {
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.preview-metric-label {
  font-size: 10px;
  color: var(--fg-mute);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.preview-metric-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.preview-metric-delta {
  font-size: 10px;
  color: var(--success);
}

.preview-metric-sub {
  font-size: 10px;
  color: var(--fg-mute);
}

.preview-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-mute);
  transition: color 0.25s;
}

.preview-hint i {
  font-size: 14px;
  animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .preview-hint i { animation: none; }
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-num {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-label {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

.hero-proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 540px) {
  .hero-proof-divider { display: none; }
  .hero-proof { gap: 1.25rem; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #141415;
  border-color: var(--accent);
}
.btn-primary:hover { background: #efe9d8; border-color: #efe9d8; opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: #2d2d2d;
}
.btn-ghost:hover { background: var(--bg-elev); border-color: #444; opacity: 1; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================
   Section structure
   ============================================ */

.section {
  padding: clamp(4rem, 10vw, 7rem) var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--max-w-narrow);
}

.section-number {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.section-number.light { color: rgba(20, 20, 21, 0.55); }

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  max-width: 720px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--fg-mute);
  max-width: 600px;
  margin: -1rem 0 2.5rem;
  font-weight: 300;
}

/* ============================================
   Positioning section
   ============================================ */

.section-positioning .prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-mute);
}

.section-positioning .prose p { margin: 0 0 1.25rem; }

.section-positioning .prose em {
  font-style: italic;
  color: var(--fg);
}

/* ============================================
   Values grid
   ============================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.value-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
}

.value-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.value-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.value-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-mute);
  margin: 0;
}

/* ============================================
   Demo frame
   ============================================ */

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-c-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #141415;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 17px;
  font-weight: 900;
}

.demo-product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.demo-org {
  font-size: 12px;
  color: var(--fg-mute);
}

.demo-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

.demo-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.demo-frame {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  overflow: hidden;
}

.demo-tab {
  background: transparent;
  border: none;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.18s;
}

.demo-tab:hover { color: var(--fg); }
.demo-tab.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 500; }

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

/* Demo: metric cards */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.75rem;
}

@media (max-width: 700px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }

.metric-card {
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.metric-label {
  font-size: 12px;
  color: var(--fg-mute);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.metric-delta {
  font-size: 11px;
}
.metric-delta.up { color: var(--success); }
.metric-sub { font-size: 11px; color: var(--fg-mute); }

.demo-section-label {
  font-size: 12px;
  color: var(--fg-mute);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Demo: activity */

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.activity-icon { font-size: 16px; }
.activity-icon.success { color: var(--success); }
.activity-icon.info { color: var(--info); }
.activity-icon.warning { color: var(--warning); }
.activity-text { flex: 1; color: var(--fg); }
.activity-text strong { font-weight: 500; }
.activity-time { font-size: 11px; color: var(--fg-dim); }

/* Demo: team */

.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.demo-select {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-mute);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-row {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 1.3fr 1.3fr 70px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
}

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

.name-primary { font-size: 13px; font-weight: 500; color: var(--fg); }
.name-secondary { font-size: 11px; color: var(--fg-mute); margin-top: 2px; }
.team-tenure { font-size: 12px; color: var(--fg-mute); }
.team-progress { display: flex; flex-direction: column; gap: 5px; }
.progress-label { font-size: 11px; color: var(--fg-mute); }
.progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }

.team-activity { font-size: 11px; color: var(--fg-mute); }
.team-activity.warning { color: var(--warning); }

.role-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-align: center;
  justify-self: end;
}
.role-pill.role-mgr { background: rgba(155, 184, 255, 0.14); color: var(--info); }
.role-pill.role-lead { background: rgba(125, 217, 158, 0.14); color: var(--success); }
.role-pill.role-assoc { background: var(--border); color: var(--fg-mute); }
.role-pill.role-new { background: var(--accent-dim); color: var(--accent); }

/* Demo: lessons */

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

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

.lesson-card {
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lesson-theme {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--border);
  color: var(--fg-mute);
  border-radius: 100px;
}

.lesson-num {
  font-size: 11px;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lesson-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}

.lesson-sub {
  font-size: 11px;
  color: var(--fg-mute);
  margin-bottom: 14px;
}

.mastery-bar {
  display: flex;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mastery-segment.success { background: var(--success); }
.mastery-segment.info { background: var(--info); }

.mastery-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-mute);
}

.lessons-note {
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--fg-mute);
  text-align: center;
}
.lessons-note i { margin-right: 4px; }

/* Demo: locked panel */

.locked-card {
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.locked-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-icon { font-size: 26px; color: var(--fg-dim); }

.locked-title {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--fg);
}

.locked-sub {
  font-size: 13px;
  color: var(--fg-mute);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.locked-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 500px) { .locked-features { grid-template-columns: 1fr; } }

.locked-feature {
  padding: 12px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-mute);
}
.locked-feature i { font-size: 18px; color: var(--fg-dim); display: block; margin-bottom: 4px; }

.demo-footnote {
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
  margin: 1.5rem 0 0;
  font-style: italic;
}

/* ============================================
   How it works
   ============================================ */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-steps { grid-template-columns: 1fr; } }

.how-step {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.how-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.how-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.how-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-mute);
  margin: 0;
}

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

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

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card-featured {
  border-color: var(--accent);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #141415;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-tier {
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.price-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-unit { font-size: 13px; color: var(--fg-mute); }

.price-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fg-mute);
  line-height: 1.5;
}

.price-features i {
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-footnote {
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
  margin: 1rem 0 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--fg-mute);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}

.faq-answer {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-mute);
}

.faq-answer a { color: var(--accent); }

/* ============================================
   Waitlist
   ============================================ */

.section-waitlist {
  background: var(--accent);
  color: #141415;
}

.waitlist-card {
  padding: 1rem 0;
}

.section-waitlist .section-title { color: #141415; }

.waitlist-sub {
  font-size: 1.05rem;
  color: rgba(20, 20, 21, 0.7);
  max-width: 540px;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 20, 21, 0.2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: #141415;
}

.waitlist-input::placeholder { color: rgba(20, 20, 21, 0.4); }

.waitlist-input:focus {
  outline: none;
  border-color: #141415;
  background: white;
}

.section-waitlist .btn-primary {
  background: #141415;
  color: var(--accent);
  border-color: #141415;
}

.section-waitlist .btn-primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.waitlist-meta {
  font-size: 12px;
  color: rgba(20, 20, 21, 0.6);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  padding: 3rem var(--pad-x) 2rem;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-product {
  font-size: 14px;
  font-weight: 500;
}

.footer-by {
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 2px;
}
.footer-by a { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 13px;
}

.footer-links a { color: var(--fg-mute); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  font-size: 12px;
  color: var(--fg-dim);
}

.footer-bottom a { color: var(--fg-mute); }

/* ============================================
   Motion (respectful)
   ============================================ */

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

/* Subtle fade-in on scroll for sections */

.section, .hero-text > *, .hero-preview, .hero-proof {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible, .hero-text > *.visible, .hero-preview.visible, .hero-proof.visible {
  opacity: 1;
  transform: none;
}

/* Stagger hero children */
.hero-text > .eyebrow { transition-delay: 0ms; }
.hero-text > .hero-headline { transition-delay: 80ms; }
.hero-text > .hero-sub { transition-delay: 160ms; }
.hero-text > .hero-cta-row { transition-delay: 240ms; }
.hero-preview { transition-delay: 200ms; }
.hero-proof { transition-delay: 400ms; }

/* Focus styles */

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================
   Scroll target offset (sticky nav clearance)
   ============================================ */
section[id],
[id] {
  scroll-margin-top: 96px;
}


/* ============================================
   Demo: Setup wizard
   ============================================ */

.setup-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-elev-2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 12px;
  color: var(--fg-mute);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.setup-step.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(223, 218, 205, 0.25);
}

.setup-step.done { color: var(--success); }

.setup-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a2a2a;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.setup-step.active .setup-step-num { background: var(--accent); color: #141415; }
.setup-step.done .setup-step-num { background: rgba(125, 217, 158, 0.18); color: var(--success); }

.setup-step-divider {
  width: 18px;
  height: 1px;
  background: var(--border);
}

.setup-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--fg);
}

.setup-sub {
  font-size: 13px;
  color: var(--fg-mute);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.setup-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 1rem;
}

.setup-input,
.setup-select {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  min-width: 0;
}

.setup-input::placeholder { color: var(--fg-dim); }
.setup-input:focus,
.setup-select:focus { outline: none; border-color: var(--accent); }

.setup-add-btn {
  background: var(--accent);
  color: #141415;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.18s;
}

.setup-add-btn:hover { background: #efe9d8; }

.setup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.setup-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 32px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.setup-row-name { font-weight: 500; color: var(--fg); }
.setup-row-meta { font-size: 12px; color: var(--fg-mute); }

.setup-row-remove {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}

.setup-row-remove:hover {
  color: var(--danger);
  background: rgba(229, 143, 143, 0.08);
}

.setup-meta { font-size: 12px; color: var(--fg-dim); }

.setup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  gap: 12px;
  flex-wrap: wrap;
}

.setup-btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid #2d2d2d;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s;
}

.setup-btn-ghost:hover { background: var(--bg-elev); }

.setup-btn-primary {
  background: var(--accent);
  color: #141415;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s;
}

.setup-btn-primary:hover { background: #efe9d8; border-color: #efe9d8; }

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

.setup-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1.25rem 0;
}

.setup-summary-card {
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.setup-summary-label { font-size: 12px; color: var(--fg-mute); margin-bottom: 6px; }

.setup-summary-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.setup-launch-msg {
  padding: 1.25rem 1rem;
  background: rgba(125, 217, 158, 0.05);
  border: 1px solid rgba(125, 217, 158, 0.18);
  border-radius: var(--radius-md);
  text-align: center;
}

.setup-launch-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.setup-launch-sub { font-size: 13px; color: var(--fg-mute); }

.setup-empty {
  font-size: 12px;
  color: var(--fg-dim);
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Hide Setup tab once user has navigated away (mimics real onboarding) */
.demo-tabs.setup-done [data-tab="setup"] { display: none; }

.demo-restart {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  cursor: pointer;
}
.demo-restart:hover { opacity: 0.7; }
.demo-restart[hidden] { display: none; }

/* Mobile polish for the demo + setup wizard */
@media (max-width: 700px) {
  .section-demo .demo-frame { padding: 1rem; }
  .demo-tabs .demo-tab { padding: 10px 12px; font-size: 12px; }
  .setup-stepper { gap: 4px; }
  .setup-step { padding: 6px 10px; font-size: 11px; }
  .setup-step-divider { width: 8px; }
  .setup-title { font-size: 17px; }
  .setup-form { grid-template-columns: 1fr; }
  .setup-row {
    grid-template-columns: 1fr;
    gap: 2px;
    position: relative;
    padding-right: 40px;
  }
  .setup-row-remove {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .setup-summary-grid { grid-template-columns: 1fr; }
  .setup-summary-value { font-size: 22px; }
  .setup-footer { gap: 8px; }
}
