/* ============================================================
   BetterSkillsMD — landing page styles
   Design tokens mirror lib/ui/tokens.ts in the extension so the
   brand feels continuous across site → extension.
   ============================================================ */

:root {
  --bg: #0b0c10;
  --bg-elevated: #0e1015;
  --surface: #15171d;
  --surface-raised: #1c1f27;
  --surface-hover: #222630;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f2f6;
  --text-muted: rgba(241, 242, 246, 0.62);
  --text-subtle: rgba(241, 242, 246, 0.42);
  --accent: #6c8eff;
  --accent-2: #a78bfa;
  --accent-text: #0b0c10;
  --grad: linear-gradient(135deg, #6c8eff 0%, #a78bfa 100%);
  --grad-soft: radial-gradient(
      1200px 600px at 50% -10%,
      rgba(108, 142, 255, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(900px 500px at 80% 0%, rgba(167, 139, 250, 0.14) 0%, transparent 65%);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-pop: 0 6px 18px rgba(108, 142, 255, 0.28);
  --container: 1120px;
  --pad: clamp(20px, 4vw, 48px);
  --font:
    -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover {
  color: var(--accent-2);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--r-sm);
}

/* ---------- Containers + helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-title.center {
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.eyebrow.center {
  text-align: center;
}
.grad {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 120ms ease,
    box-shadow 160ms ease,
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--grad);
  color: var(--accent-text);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--accent-text);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface-raised);
  color: var(--text);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
  margin-top: 22px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand:hover {
  color: var(--text);
}
.brand-name {
  font-size: 15px;
}
.logo {
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 22px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) var(--pad) clamp(48px, 7vw, 90px);
  background: var(--grad-soft), var(--bg);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.05), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 8px 0 18px;
}
.hero-copy .lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-subtle);
}
.hero-shot {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* ---------- PROBLEM ---------- */
.problem {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--bg);
}
.problem .section-title {
  text-align: center;
  margin-bottom: 40px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.problem-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.problem-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 12px;
}
.problem-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.bridge {
  text-align: center;
  margin-top: 56px;
}
.bridge h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}
.bridge p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how .eyebrow {
  margin-bottom: 8px;
}
.how .section-title {
  margin-bottom: 60px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.step-reverse {
  direction: rtl;
}
.step-reverse > * {
  direction: ltr;
}
@media (max-width: 880px) {
  .step,
  .step-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}
.step-text h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 8px 0 12px;
  letter-spacing: -0.015em;
}
.step-text p {
  margin: 0;
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.65;
}
.step-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent);
  background: rgba(108, 142, 255, 0.1);
  border: 1px solid rgba(108, 142, 255, 0.22);
  padding: 4px 9px;
  border-radius: 999px;
}
.step-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.step-shot img {
  width: 100%;
  display: block;
}

/* ---------- FEATURES ---------- */
.features {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg);
}
.features .section-title {
  margin-bottom: 50px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-raised);
}
.feature-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(108, 142, 255, 0.12);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.features-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 920px) {
  .features-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .features-secondary {
    grid-template-columns: 1fr;
  }
}
.feature-bullet {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.feature-bullet strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* ---------- PRICING ---------- */
.pricing {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing .section-title {
  margin-bottom: 40px;
}
.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}
.price-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}
.price-amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  color: var(--text-muted);
  font-size: 14px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 14px;
}
.price-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background: rgba(108, 142, 255, 0.15);
  border-radius: 50%;
}
.price-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-fineprint {
  color: var(--text-subtle);
  font-size: 12.5px;
  text-align: center;
  margin: 14px 0 0;
}

/* ---------- TRUST ---------- */
.trust {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(108, 142, 255, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-item strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}
.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.faq .section-title {
  margin-bottom: 40px;
}
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color 160ms ease, background 160ms ease;
}
.faq details:hover {
  border-color: var(--border-strong);
}
.faq details[open] {
  background: var(--surface-raised);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- FINAL CTA ---------- */
.cta {
  padding: clamp(72px, 9vw, 130px) 0;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
}
.cta .container {
  position: relative;
}
.cta h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cta > .container > p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 28px;
}
.cta-fineprint {
  margin-top: 18px !important;
  color: var(--text-subtle);
  font-size: 13px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 48px 0 36px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-tag {
  margin: 8px 0 0;
  color: var(--text-subtle);
}
.footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer nav a {
  color: var(--text-muted);
}
.footer nav a:hover {
  color: var(--text);
}
.footer-meta {
  text-align: right;
  color: var(--text-subtle);
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .footer-meta {
    text-align: left;
  }
}
.footer-mini {
  margin-top: 4px;
  font-size: 11.5px;
}
