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

/* ─── Design Tokens (from app Colors.ts & theme.ts) ─── */
:root {
  --bg: #FFFFFF;
  --bg-elevated: #F5F5F7;
  --brand: #1740C6;
  --text-primary: #000000;
  --text-secondary: #3C3C43;
  --text-muted: #8E8E93;
  --border: #D1D1D6;
  --pill-bg: #007AFF;
  --record-red: #FF3B30;
  --dot-orange: #FF9500;
  --accent-orange: #FF8C00;
  --gradient-blue-1: #0160FF;
  --gradient-blue-2: #02CDFF;
  --gradient-blue-3: #80E4FF;
  --green: #34C759;
  --radius-pill: 27px;
  --radius-card: 24px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ─── Layout ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ─── Header (glassmorphism nav like app's sticky top) ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── Hero: two columns — copy + app mockup ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

/* Soft blue glow behind the phone, echoing the app's gradient */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 70%;
  height: 120%;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse 55% 50% at 70% 50%,
    rgba(1, 96, 255, 0.55) 0%,
    rgba(2, 205, 255, 0.30) 35%,
    rgba(128, 228, 255, 0.12) 55%,
    rgba(255, 255, 255, 0) 75%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
  min-width: 0;
}

.hero-phone { min-width: 0; }

.hero-heading {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Keep the spinning logo + "articulate." together as one unit when wrapping */
.hero-heading .logo-inline { white-space: nowrap; }

.hero-heading .logo-inline {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px;
  animation: spin 6s linear infinite;
}

.hero-heading .logo-inline svg {
  width: 40px;
  height: 40px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  letter-spacing: 0;
  max-width: 480px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* ─── App mockup (recreates the in-app record screen) ─── */
.hero-phone {
  display: flex;
  justify-content: center;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  opacity: 0;
  transform: translateY(24px);
}

.phone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(1, 40, 120, 0.30), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}

.phone-grad {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 78% 55% at 50% 100%,
    rgba(1, 96, 255, 1) 0%,
    rgba(2, 160, 255, 0.85) 28%,
    rgba(2, 205, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 78%
  );
}

.phone-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 54px 22px 26px;
}

.phone-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #000;
  line-height: 1.1;
}

.phone-card {
  margin-top: 22px;
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.phone-q {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.phone-hint {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.phone-spacer { flex: 1; }

.phone-record {
  height: 52px;
  border-radius: 26px;
  background: #34C759;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(52, 199, 89, 0.4);
}

.phone-record svg { width: 22px; height: 22px; }

/* ─── Bento grid ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 158px;
  gap: 14px;
}

.bento-tile {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.bento-tile .feature-badge { margin-bottom: 10px; }

.bento-tile h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bento-tile p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tile spans */
.tile-feedback { grid-column: span 2; grid-row: span 2; }
.tile-prompt   { grid-column: span 2; }
.tile-word     { grid-column: span 1; }
.tile-streak   { grid-column: span 1; }
.tile-rank     { grid-column: span 2; }
.tile-progress { grid-column: span 2; }

/* Big gradient feedback tile */
.tile-feedback {
  background: linear-gradient(135deg, #0160FF 0%, #0A84FF 55%, #34C8FF 100%);
  box-shadow: 0 16px 36px rgba(1, 96, 255, 0.28);
  border: none;
  justify-content: space-between;
}

.tile-feedback h3 {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.5px;
  max-width: 85%;
}

.score-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.score-num {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}

.score-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 10px;
  border-radius: 20px;
}

/* Streak stat tile */
.tile-streak { align-items: flex-start; justify-content: center; gap: 2px; }
.streak-fire { margin-bottom: 6px; }
.streak-num {
  font-size: 40px;
  font-weight: 800;
  color: #000;
  line-height: 1;
  letter-spacing: -1px;
}
.streak-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Leaderboard tile */
.tile-rank { justify-content: flex-start; }
.rank-big {
  font-size: 34px;
  font-weight: 800;
  color: #0160FF;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 2px;
}

/* ─── Pill Button (matches PillButton.tsx) ─── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Apple-style shadow from PillButton */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.btn-pill:active {
  transform: translateY(0);
}

.btn-pill-white {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-pill-dark {
  background-color: #000000;
  color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-pill-secondary {
  background-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-pill-disabled {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border-color: rgba(0, 0, 0, 0.06);
  cursor: default;
  box-shadow: none;
}

.btn-pill-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ─── Cards (matches todayCard style: borderRadius 24, white, shadow) ─── */
.card {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 22px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ─── Animated gradient border wrapper (matches AnimatedGradientBorder.tsx) ─── */
.gradient-border-wrap {
  border-radius: var(--radius-card);
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-orange), #FFFFFF, var(--accent-orange));
  background-size: 200% 200%;
  animation: gradientShift 2.5s ease-in-out infinite alternate;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

.gradient-border-wrap .feature-card {
  border-radius: calc(var(--radius-card) - 2px);
  box-shadow: none;
}

/* ─── Features Section ─── */
.features {
  padding: 100px 0;
  background-color: var(--bg);
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 24px 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Match gradient-border-wrap's 2px padding so all cards are equal height */
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Cards inside gradient wrap don't need their own border */
.gradient-border-wrap .feature-card {
  border: none;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.feature-badge-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Heat map section ─── */
.heatmap-section {
  padding: 20px 0 100px;
  background: var(--bg);
}

.heatmap-panel {
  position: relative;
  border-radius: 28px;
  padding: 26px;
  background: radial-gradient(120% 130% at 50% 0%, #13234E 0%, #0A1226 55%, #070B18 100%);
  box-shadow: 0 24px 60px rgba(2, 20, 60, 0.30);
  overflow: hidden;
}

.heatmap-map {
  width: 100%;
  height: auto;
  display: block;
}

/* World land masses — faint fill so the heat dots pop on top */
.heatmap-land {
  fill: rgba(120, 170, 255, 0.14);
  stroke: rgba(150, 190, 255, 0.22);
  stroke-width: 0.6;
}

.heat-dot {
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.7); }
  50% { opacity: calc(var(--o, 0.7) * 0.4); }
}

.ping {
  fill: none;
  stroke: #FE9929;
  stroke-width: 2;
  opacity: 0;
  animation: ping 3.2s ease-out infinite;
}

@keyframes ping {
  0% { r: 3; opacity: 0.7; }
  80% { opacity: 0; }
  100% { r: 28; opacity: 0; }
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.heatmap-legend span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.legend-bar {
  width: 180px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #67A9CF, #6DCDA3, #FDDB45, #FE9929, #E34A33, #B10026);
}

.heatmap-live {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 8px #34C759;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── CTA Section — uses blue gradient like home screen ─── */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 140%;
  background: radial-gradient(
    ellipse 60% 55% at 50% 20%,
    rgba(1, 96, 255, 1) 0%,
    rgba(1, 128, 255, 0.9) 15%,
    rgba(2, 205, 255, 0.7) 35%,
    rgba(128, 228, 255, 0.3) 55%,
    rgba(255, 255, 255, 0) 75%
  );
  z-index: 0;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-heading {
  font-size: 35px;
  line-height: 38px;
  letter-spacing: -0.75px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Social Proof strip (leaderboard strip style) ─── */
.proof-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 18px 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.proof-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proof-icon.blue { background: rgba(1, 96, 255, 0.08); }
.proof-icon.orange { background: rgba(255, 140, 0, 0.08); }
.proof-icon.green { background: rgba(52, 199, 89, 0.08); }

.proof-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proof-value {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
}

/* ─── Footer (matches app bg-elevated style) ─── */
.footer {
  background-color: var(--bg-elevated);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-dot {
  font-size: 11px;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Legal Pages ─── */
.legal-page {
  padding: 48px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 35px;
  line-height: 38px;
  letter-spacing: -0.75px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content ul {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    gap: 24px;
  }

  .phone {
    width: 248px;
    height: 512px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .tile-feedback { grid-column: span 2; grid-row: span 2; }
  .tile-prompt,
  .tile-rank,
  .tile-progress { grid-column: span 2; }
  .tile-word,
  .tile-streak { grid-column: span 1; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  /* Header */
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    padding: 44px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-copy .hero-heading,
  .hero-copy .hero-sub,
  .hero-copy .hero-note {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .hero::before {
    right: 50%;
    top: auto;
    bottom: -10%;
    transform: translateX(50%);
    width: 130%;
    height: 70%;
  }

  .hero-heading {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -1px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-tile,
  .tile-feedback,
  .tile-prompt,
  .tile-rank,
  .tile-progress,
  .tile-word,
  .tile-streak {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tile-feedback { min-height: 230px; }
  .tile-streak { min-height: 150px; }

  .hero-heading .logo-inline svg {
    width: 28px;
    height: 28px;
  }

  .hero-sub {
    font-size: 15px;
    max-width: 100%;
  }

  /* Proof */
  .proof-section {
    padding: 40px 0 60px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading {
    font-size: 22px;
  }

  .section-sub {
    margin-bottom: 28px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-heading {
    font-size: 28px;
    line-height: 32px;
  }

  /* Buttons */
  .btn-pill {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    padding: 12px 24px;
  }

  /* Legal */
  .legal-content h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .legal-content h2 {
    font-size: 18px;
  }
}

/* ─── Responsive: Small phones ─── */
@media (max-width: 400px) {
  .container {
    padding: 0 20px;
  }

  .hero-heading {
    font-size: 28px;
    line-height: 32px;
  }

  .hero-heading .logo-inline svg {
    width: 22px;
    height: 22px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .proof-card {
    padding: 14px 18px;
  }

  .cta-heading {
    font-size: 24px;
    line-height: 28px;
  }
}

/* ─── Blog: listing ─── */
.blog-head {
  padding: 64px 0 8px;
  text-align: center;
}

.blog-head h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-head p {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.blog-list {
  padding: 40px 0 80px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.blog-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gradient-blue-1);
  background: rgba(1, 96, 255, 0.08);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.blog-card h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.blog-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.blog-meta .read {
  color: var(--gradient-blue-1);
}

/* ─── Blog: single post ─── */
.post {
  padding: 48px 0 24px;
}

.post .container {
  max-width: 720px;
}

.breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--gradient-blue-1);
}

.post-header .blog-cat {
  margin-bottom: 18px;
}

.post-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.post-byline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post-body {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.post-body > p:first-of-type {
  font-size: 19px;
  color: var(--text-primary);
}

.post-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 44px 0 14px;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 10px;
}

.post-body p {
  margin-bottom: 22px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 22px 0;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body a {
  color: var(--gradient-blue-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.post-body blockquote {
  margin: 0 0 26px;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gradient-blue-1);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
}

.post-tip {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 26px;
  font-size: 16px;
}

.post-tip strong { color: var(--gradient-blue-1); }

.post-more {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-more h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-more a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
}

.post-more a:hover { color: var(--gradient-blue-1); }

/* ─── Homepage "From the blog" teaser ─── */
.blog-teaser {
  padding: 20px 0 80px;
}

.blog-teaser .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-teaser-more {
  text-align: center;
  margin-top: 30px;
}

.blog-teaser-more a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gradient-blue-1);
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-teaser .blog-grid { grid-template-columns: 1fr; }
  .blog-head h1 { font-size: 32px; letter-spacing: -1px; }
  .blog-head p { font-size: 15px; }
  .post-title { font-size: 30px; letter-spacing: -0.8px; }
  .post-body { font-size: 17px; }
  .post-body > p:first-of-type { font-size: 17px; }
  .post-body h2 { font-size: 22px; }
}
