:root {
  --bg: #0a0f1a;
  --bg-soft: #111827;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --white: #ffffff;
  --violet: #8b5cf6;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(10, 15, 26, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand, .nav-links, .hero-actions, .hero-proof, .score-row, .mini-grid, .tag-row, .footer-links, .logo-strip, .credibility-strip {
  display: flex;
  align-items: center;
}

.brand { gap: .85rem; font-weight: 700; align-items: center; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: .15rem;
}
.brand-name {
  font-size: .95rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
.brand-tagline {
  font-size: .68rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links { gap: 1.25rem; color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .footer-links a:hover, .text-link:hover { color: var(--white); }
.sign-in-link {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  margin-right: .5rem;
  transition: color .15s ease;
}
.sign-in-link:hover { color: var(--white); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 20px 60px rgba(37, 99, 235, 0.45); }
.button-secondary, .button-ghost {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}
.button-small { padding: .7rem 1rem; font-size: .95rem; }
.button-block { width: 100%; }
.text-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: #93c5fd;
  font-weight: 700;
}

.hero {
  padding: 6.5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: .96;
  letter-spacing: -0.05em;
  max-width: 12ch;
}
.hero-text {
  max-width: 43rem;
  color: #cbd5e1;
  font-size: 1.08rem;
  margin: 1.2rem 0 0;
}
.eyebrow {
  margin: 0 0 .9rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
}
.hero-actions { gap: .9rem; flex-wrap: wrap; margin: 2rem 0 1.4rem; }
.hero-proof, .credibility-strip { gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-proof span, .credibility-strip span {
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
}

.hero-panel, .trust-panel, .dashboard-card, .feature-card, .trait-card, .step-card, .archetype-card, .audience-card, .price-card, .framework-card, .archetype-card-marketing, .final-cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dashboard-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.dashboard-header { display: flex; gap: .45rem; margin-bottom: 1rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; background: rgba(148, 163, 184, 0.35); }
.label { margin: 0 0 .3rem; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.score-row { justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.score { margin: 0; font-size: 2.8rem; font-weight: 800; }
.pill {
  padding: .55rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.electric { background: var(--blue-soft); color: #bfdbfe; }
.bar-group { display: grid; gap: .65rem; }
.bar-label { display: flex; justify-content: space-between; color: #dbeafe; font-size: .92rem; }
.bar { height: .62rem; border-radius: 999px; background: rgba(51, 65, 85, 0.65); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.mini-grid { gap: .8rem; margin-top: 1.2rem; }
.mini-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}
.mini-card p:last-child { margin: 0; font-weight: 600; }

.section { padding: 5rem 0; }
.muted { background: rgba(255, 255, 255, 0.02); }
.section-heading { max-width: 52rem; margin-bottom: 2.3rem; }
.section-heading.narrow { max-width: 42rem; }
.section-heading h2 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.section-heading p:last-child { margin: 0; color: var(--muted); }

.problem-grid, .traits-grid, .steps-grid, .archetype-grid, .pricing-grid, .split-grid, .framework-grid, .archetype-spotlight-grid {
  display: grid;
  gap: 1rem;
}
.feature-card, .trait-card, .step-card, .archetype-card, .audience-card, .price-card, .framework-card, .archetype-card-marketing {
  background: rgba(15, 23, 42, 0.52);
  padding: 1.4rem;
}
.feature-card h3, .trait-card h3, .step-card h3, .archetype-card h3, .audience-card h2, .price-card h3, .framework-card h3, .archetype-card-marketing h3 { margin: 0 0 .55rem; }
.feature-card p, .trait-card p, .step-card p, .archetype-card p, .audience-card ul, .price-card ul, .price-note, .framework-card p, .archetype-card-marketing p { margin: 0; color: var(--muted); }
.icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--blue-soft);
  margin-bottom: 1rem;
}
.icon svg { width: 1.3rem; height: 1.3rem; fill: #93c5fd; }
.trait-badge, .step-number, .tag-row span, .category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 .75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  font-weight: 800;
  margin-bottom: .9rem;
}
.trait-card small { display: inline-block; margin-top: .8rem; color: #93c5fd; font-weight: 700; }
.trait-card-highlight {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.8));
  border-color: rgba(96, 165, 250, 0.3);
}
.step-number { font-size: .88rem; }
.tag-row { gap: .45rem; margin-top: 1rem; flex-wrap: wrap; }

.framework-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.framework-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
}
.framework-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}
.framework-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent); }
.framework-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent); }
.framework-card:nth-child(4)::before { background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent); }

.researcher-tag {
  display: inline-flex;
  margin-bottom: .9rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.1);
}
.framework-card:nth-child(2) .researcher-tag { color: #67e8f9; border-color: rgba(6, 182, 212, 0.25); background: rgba(6, 182, 212, 0.1); }
.framework-card:nth-child(3) .researcher-tag { color: #fcd34d; border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.1); }
.framework-card:nth-child(4) .researcher-tag { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.1); }

.science-cta {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.72));
  align-items: center;
}
.science-cta h3 {
  font-size: 1.4rem;
  margin: 0 0 .75rem;
  letter-spacing: -0.01em;
}
.science-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pyramid architecture diagram */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
}
.arch-layer {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  transition: transform .15s ease;
}
.arch-layer:hover { transform: translateY(-1px); }
.arch-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  background: transparent;
  border: 0;
  padding: 0;
  width: 100%;
}
.arch-top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .4rem;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.arch-top span:nth-child(1) { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.28); }
.arch-top span:nth-child(2) { background: rgba(6, 182, 212, 0.14); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.28); }
.arch-top span:nth-child(3) { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.28); }
.arch-top span:nth-child(4) { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.28); }

.arch-connector {
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0.1));
  margin: 0;
}

.arch-mid {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #dbeafe;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  width: 85%;
}
.arch-base {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
  width: 100%;
}

/* Credibility strip — cleaner layout */
.credibility-strip {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 1.5rem 0 2rem;
}
.credibility-strip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
.credibility-strip span::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
}

.archetype-card-marketing {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.56));
  position: relative;
  overflow: hidden;
}
.archetype-card-marketing::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
}
.category-badge {
  min-height: auto;
  padding: .45rem .8rem;
  font-size: .76rem;
}
.archetype-card-marketing .essence {
  color: #dbeafe;
  margin-bottom: 1rem;
}
.archetype-card-marketing ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .55rem;
  color: var(--muted);
}

.split-section { padding-top: 2rem; }
.audience-card ul, .price-card ul { padding-left: 1.1rem; display: grid; gap: .55rem; }
.audience-card-dark {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.82));
}

.plan {
  margin: 0 0 .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
}
.price-card h3 {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
}
.price-card h3 span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-note { margin: .6rem 0 1rem; }
.price-card-featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.9));
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: var(--shadow);
}

.trust-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.62));
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.logo-strip { gap: .8rem; flex-wrap: wrap; }
.logo-strip span {
  padding: .8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.08);
  min-width: 9rem;
  text-align: center;
}

.final-cta-panel {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}
.final-cta-panel p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
  max-width: 42rem;
}
.final-cta-panel h2 {
  margin: 0 0 .9rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.faq-list { display: grid; gap: .8rem; }
details {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: .75rem 0 0; color: var(--muted); }

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.footer-grid {
  display: grid;
  gap: 1rem;
  color: var(--muted);
}
.footer-brand, .footer-copy { margin: 0; }
.footer-brand { color: var(--white); font-weight: 800; }
.footer-links { gap: 1rem; flex-wrap: wrap; }

@media (min-width: 720px) {
  .hero-grid, .trust-panel, .science-cta { grid-template-columns: 1.1fr .9fr; }
  .problem-grid, .pricing-grid, .split-grid, .archetype-spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archetype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framework-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr auto; align-items: center; }
}

@media (min-width: 980px) {
  .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .traits-grid .trait-card:nth-child(5) { grid-column: span 2; }
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archetype-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .framework-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archetype-spotlight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  .hero { padding-top: 5rem; }
  .brand-text { display: none; }
  .button, .button-small { width: 100%; }
  .hero-actions { align-items: stretch; }
  .mini-grid, .score-row { flex-direction: column; align-items: stretch; }
  .credibility-strip span, .hero-proof span { width: 100%; }
}

/* ============================================
   UNIFIED CARD POLISH — match Science section
   ============================================ */

/* All card variants get hover lift + gradient */
.trait-card,
.step-card,
.archetype-card,
.archetype-card-marketing,
.feature-card,
.audience-card,
.price-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.trait-card:hover,
.step-card:hover,
.archetype-card:hover,
.archetype-card-marketing:hover,
.feature-card:hover,
.audience-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Top accent bar — subtle gradient line on all content cards */
.trait-card::before,
.step-card::before,
.archetype-card-marketing::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.trait-card:hover::before,
.step-card:hover::before,
.archetype-card-marketing:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

/* ----- 7-trait cards with per-trait color identity ----- */
.traits-grid .trait-card:nth-child(1) .trait-badge { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }  /* D - Drive - red */
.traits-grid .trait-card:nth-child(2) .trait-badge { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.35); color: #f9a8d4; }  /* C - Connection - pink */
.traits-grid .trait-card:nth-child(3) .trait-badge { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #6ee7b7; }  /* S - Steadiness - emerald */
.traits-grid .trait-card:nth-child(4) .trait-badge { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.35); color: #67e8f9; }  /* P - Precision - cyan */
.traits-grid .trait-card:nth-child(5) .trait-badge { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.35); color: #c4b5fd; }  /* R - Reasoning - violet */
.traits-grid .trait-card:nth-child(6) .trait-badge { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }  /* E - Energy - amber */
.traits-grid .trait-card:nth-child(7) .trait-badge { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }  /* PA - Protocol - blue */

/* Dental-specific trait cards get a subtle glow */
.trait-card-highlight {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.82)) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}
.trait-card-highlight::after {
  content: "DENTAL-SPECIFIC";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .62rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: #fcd34d;
  padding: .25rem .5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
}
.trait-card-highlight small { display: none; }

/* ----- Step cards: numbered with gradient badges ----- */
.step-card {
  padding-top: 1.5rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-weight: 700;
  font-size: .85rem !important;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}

/* ----- Featured archetype cards: category badge + richer layout ----- */
.archetype-card-marketing .category-badge {
  display: inline-flex;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  margin-bottom: 1rem;
  min-height: auto;
}
.archetype-card-marketing h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.archetype-card-marketing .essence {
  font-size: .92rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 1.1rem;
}
.archetype-card-marketing ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.archetype-card-marketing ul li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .85rem;
  color: #94a3b8;
  line-height: 1.45;
}
.archetype-card-marketing ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--blue);
  opacity: .6;
}

/* ----- Pricing cards: more presence ----- */
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card h3 {
  font-size: 2rem !important;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.price-card h3 span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: .4rem;
}
.price-note {
  font-size: .85rem !important;
  color: #93c5fd !important;
  margin-bottom: 1.25rem !important;
}
.price-card ul {
  flex: 1;
  margin-bottom: 1.5rem !important;
  gap: 0 !important;
  display: block !important;
  padding-left: 0 !important;
  list-style: none !important;
}
.price-card ul li {
  padding-left: 1.75rem;
  position: relative;
  margin: 0 0 .25rem;
  font-size: .92rem;
  line-height: 1.4;
}
.price-card ul li:last-child { margin-bottom: 0; }
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Featured price card (practice tier) gets a glow */
.price-card.featured,
.price-card.price-card-featured {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.82)) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: visible !important;  /* let the MOST POPULAR pill extend above the card */
}
.price-card.featured::after,
.price-card.price-card-featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: -.75rem;
  right: 1.25rem;
  font-size: .62rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: #fff;
  padding: .35rem .7rem;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* ----- Problem section feature cards: warmer identity ----- */
.problem-grid .feature-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
}
.problem-grid .feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 1rem;
}
.problem-grid .feature-card .icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: #93c5fd;
}

/* Section spacing breathing room */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (max-width: 767px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ======================== Pricing compare + add-ons ======================== */
.pricing-compare {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.pricing-compare-inner { padding: 2rem 2.25rem; }
.pricing-compare-inner h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.compare-table thead th {
  text-align: left;
  padding: .75rem 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3) { text-align: center; width: 22%; }
.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.compare-table tbody td {
  text-align: center;
  padding: .85rem 1rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(59, 130, 246, .04); }

.pricing-addons {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.addon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.addon-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}
.addon-card h4 {
  margin: 0;
  font-size: 1.05rem;
}
.addon-price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.addon-price span {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
}
.addon-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.pricing-billing-notes {
  margin-top: 2rem;
  background: rgba(59, 130, 246, .06);
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}
.pricing-billing-notes h4 {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: var(--text);
}
.pricing-billing-notes ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .5rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.pricing-billing-notes strong { color: var(--text); }

@media (max-width: 820px) {
  .pricing-addons { grid-template-columns: 1fr; }
  .pricing-compare-inner { padding: 1.5rem 1.25rem; }
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td { padding: .65rem .5rem; font-size: .88rem; }
}

/* ======================== Checkout modal ======================== */
.checkout-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.checkout-modal[hidden] { display: none; }
.checkout-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.checkout-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  display: grid;
  gap: .85rem;
}
.checkout-modal-card .eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .78rem;
}
.checkout-modal-card h2 {
  margin: 0;
  font-size: 1.4rem;
}
.checkout-modal-sub {
  margin: 0 0 .25rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.checkout-modal-card label {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}
.checkout-modal-card input {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .6);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.checkout-modal-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.checkout-modal-card .button {
  width: 100%;
  margin-top: .25rem;
}
.checkout-modal-close {
  position: absolute;
  top: .85rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.checkout-modal-close:hover { color: var(--text); }
.checkout-modal-footer {
  margin: .25rem 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.checkout-modal-footer a { color: var(--accent); text-decoration: none; }
.checkout-modal-error {
  margin: 0;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fca5a5;
  font-size: .85rem;
}

/* ======================== Checkout / Success pages ======================== */
.page-checkout { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.page-checkout main { flex: 1; padding: 3rem 0 4rem; }
.narrow-container { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.checkout-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2rem 1.75rem;
  display: grid;
  gap: 1.25rem;
  position: sticky; top: 1.5rem;
}
.checkout-summary .eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .78rem; }
.checkout-summary h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.checkout-summary .muted-text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.order-summary {
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: .55rem;
}
.order-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--text); }
.order-row span:last-child { color: var(--muted); }
.order-row-muted { color: var(--muted); font-size: .82rem; font-style: italic; }
.order-row-muted span { color: var(--muted) !important; }
.order-total {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .35rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}

.signup-details { display: grid; gap: .75rem; }
.signup-details label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.signup-details input {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .65);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.signup-details input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.signup-details input:disabled { opacity: .6; cursor: not-allowed; }

.checkout-error {
  margin: 0;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fca5a5;
  font-size: .85rem;
}
.checkout-trust { font-size: .8rem; color: var(--muted); display: grid; gap: .25rem; }
.checkout-trust p { margin: 0; }

.checkout-payment {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.checkout-pre {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
  color: var(--muted);
}
.checkout-pre-icon { font-size: 2.6rem; margin-bottom: .75rem; opacity: .8; }
.checkout-pre h3 { margin: 0 0 .35rem; color: var(--text); font-size: 1.05rem; }
.checkout-pre p { margin: 0; font-size: .9rem; }
.stripe-mount { width: 100%; min-height: 600px; }

/* Success page */
.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: white;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(34, 197, 94, .3);
}
.success-card .eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .78rem; }
.success-card h1 { margin: 0; font-size: 1.7rem; }
.success-sub { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 460px; }

.success-status { display: grid; gap: .55rem; margin: 1rem 0 .25rem; width: 100%; max-width: 380px; text-align: left; }
.success-step {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, .5);
  border: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
  transition: all .25s ease;
}
.success-step .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted); opacity: .5;
  transition: all .25s ease;
}
.success-step.active { color: var(--text); border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .06); }
.success-step.active .dot { background: #22c55e; opacity: 1; box-shadow: 0 0 10px rgba(34, 197, 94, .6); }

.success-cta-note { margin: 0; color: var(--text); font-size: .95rem; max-width: 420px; }
.success-cta-note strong { color: var(--accent); }
.success-actions { display: flex; gap: .75rem; margin-top: .25rem; flex-wrap: wrap; justify-content: center; }
.success-help { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }
.success-help a { color: var(--accent); }

/* ================================================================
   MOBILE CLEANUP — comprehensive overhaul (≤640px)
   ================================================================ */

/* Prevent any element from causing horizontal scroll. */
html, body { overflow-x: hidden; }
img, svg, video, iframe, canvas, table { max-width: 100%; }

/* Force long text to wrap rather than overflow on narrow viewports. */
@media (max-width: 640px) {
  body, p, span, h1, h2, h3, h4, h5, h6, li, a, dt, dd {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Override anything that explicitly disables wrapping in mobile */
  .credibility-strip span,
  .hero-proof span,
  .proof-row span,
  .tag-row span,
  .logo-strip span {
    white-space: normal !important;
    width: auto !important;
    flex: 1 1 auto;
  }
  /* Trait "sparks" rows in archetype cards: wrap them */
  .archetype-card-marketing ul,
  .archetype-card ul,
  .feature-card ul,
  .audience-card ul {
    flex-wrap: wrap !important;
  }
}

/* Tighter container padding on mobile so cards aren't cramped */
@media (max-width: 640px) {
  .container { width: calc(100% - 1.75rem); }

  /* --- HEADER: single tight row --- */
  .nav { gap: .55rem; min-height: 64px; }
  .brand { gap: .55rem; flex-shrink: 1; min-width: 0; }
  .brand-mark { width: 2rem; height: 2rem; border-radius: 10px; font-size: .85rem; flex-shrink: 0; }
  /* Show compact brand on mobile */
  .brand-text { display: flex !important; min-width: 0; }
  .brand-name { font-size: 0; white-space: nowrap; }
  .brand-name::before { content: "PCI"; font-size: 1rem; font-weight: 700; color: #e2e8f0; letter-spacing: -0.01em; }
  .brand-tagline { display: none; }
  /* Show Log in link on mobile (was previously hidden) */
  .sign-in-link {
    display: inline-flex !important;
    font-size: .82rem;
    color: var(--muted);
    padding: .4rem .55rem;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
  }
  .sign-in-link:hover { color: var(--text); }
  .nav .button, .nav .button-small {
    width: auto;
    padding: .55rem .85rem;
    font-size: .82rem;
    box-shadow: none;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* --- HERO --- */
  .hero { padding: 4.5rem 0 3rem; }
  .hero h1 { font-size: 2.05rem !important; line-height: 1.15; }
  .hero p, .hero-text { font-size: 1rem; }
  .hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-proof { flex-wrap: wrap; gap: .4rem; }
  .hero-proof span {
    width: auto;
    flex: 1 1 auto;
    font-size: .78rem;
    padding: .45rem .7rem;
    text-align: center;
  }

  /* --- DASHBOARD MOCK CARD --- */
  .dashboard-card { padding: 1.25rem !important; }
  .dashboard-card h3, .dashboard-card .score-num { font-size: 2rem !important; }

  /* --- SECTIONS --- */
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .section-heading h2, h2 { font-size: 1.55rem !important; line-height: 1.2; }
  .section-heading p { font-size: .98rem; }
  .eyebrow { font-size: .72rem; }

  /* All cards: tighter padding so text doesn't cut off */
  .feature-card, .trait-card, .step-card, .archetype-card,
  .archetype-card-marketing, .audience-card, .framework-card,
  .price-card, .addon-card {
    padding: 1.25rem !important;
  }
  .price-card h3 { font-size: 1.8rem; }

  /* --- COMPARISON TABLE: hide on mobile in favor of stacked tier summary --- */
  .pricing-compare { overflow: hidden; }
  .pricing-compare-inner { padding: 1.25rem 1rem !important; }
  /* Convert table to a stacked, mobile-friendly layout. */
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .compare-table tr {
    padding: .65rem .25rem;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
  }
  .compare-table tr:last-child { border-bottom: none; }
  .compare-table tbody th {
    text-align: left;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    padding: 0 0 .35rem;
    border: none;
  }
  .compare-table tbody td {
    text-align: left;
    padding: .15rem 0;
    font-size: .82rem;
    color: var(--muted);
    border: none;
  }
  .compare-table tbody td:first-of-type::before {
    content: "Individual: ";
    color: var(--muted); font-weight: 600; margin-right: .35rem;
  }
  .compare-table tbody td:last-of-type::before {
    content: "Practice: ";
    color: var(--accent); font-weight: 700; margin-right: .35rem;
  }

  /* --- BILLING NOTES --- */
  .pricing-billing-notes { padding: 1.1rem 1.1rem; }
  .pricing-billing-notes ul { font-size: .88rem; }

  /* --- TRUST PANEL --- */
  .trust-panel { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .logo-strip { flex-wrap: wrap; gap: .75rem; }

  /* --- FOOTER --- */
  .site-footer { padding: 2rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
  .footer-links { flex-wrap: wrap; gap: .75rem 1.25rem; }

  /* --- CHECKOUT PAGE --- */
  .checkout-page { padding: 1.5rem 0 3rem; }
  .checkout-summary { padding: 1.5rem 1.25rem; position: static; }
  .checkout-summary h1 { font-size: 1.4rem !important; }
  .order-summary { padding: .85rem 1rem; }
  .order-row, .order-total { font-size: .88rem; }
  .checkout-payment { padding: .5rem; min-height: 320px; }
  .checkout-pre { padding: 2rem 1rem; }
  .stripe-mount { min-height: 500px; }

  /* --- SUCCESS PAGE --- */
  .success-card { padding: 2rem 1.25rem; }
  .success-card h1 { font-size: 1.45rem !important; }

  /* --- FAQ details --- */
  details {
    padding: 1rem 1.1rem;
  }
  details summary { font-size: .98rem; }

  /* --- FINAL CTA panel --- */
  .final-cta-panel { padding: 1.75rem 1.25rem !important; }
  .final-cta-panel h2 { font-size: 1.55rem !important; }
}

/* Extra-small phones (≤380px): squeeze even more */
@media (max-width: 380px) {
  .container { width: calc(100% - 1.25rem); }
  .hero h1 { font-size: 1.85rem !important; }
  .brand-name { font-size: .8rem; }
  .nav .button { padding: .5rem .7rem; font-size: .8rem; }
}

/* ================================================================
   "Get Started" primary-bold variant — makes nav CTA pop
   ================================================================ */
.button-primary-bold {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff !important;
  border: 1px solid rgba(99, 102, 241, 0.55);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.button-primary-bold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.05);
}

/* ================================================================
   Mobile: keep key number rows HORIZONTAL (override earlier stack)
   ================================================================ */
@media (max-width: 640px) {
  /* Dashboard mock card: 94% PCI Match beside "Dental-specific fit" pill */
  .score-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: .75rem;
  }
  .score-row .pill { flex-shrink: 0; font-size: .72rem; padding: .35rem .6rem; }
  .score-row .score { font-size: 2.2rem !important; margin: 0; }

  /* Mini-grid: Archetype | Best Role Fit side-by-side */
  .mini-grid {
    flex-direction: row !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    align-items: stretch;
  }
  .mini-card { padding: .65rem .7rem; }
  .mini-card p { font-size: .85rem; margin: 0; }
  .mini-card .label { font-size: .65rem; }

  /* Bar labels stay on one line (number to the right of label) */
  .bar-label { display: flex !important; justify-content: space-between; gap: .5rem; font-size: .8rem; }

  /* Order summary rows (checkout page): keep label + price horizontal */
  .order-row, .order-total {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
  }
  .order-row > :last-child, .order-total > :last-child {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
  }
}

/* ================================================================
   How It Works — 2x2 step cards (uniform aesthetic)
   ================================================================ */
.steps-flow.steps-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .steps-flow.steps-2x2 { grid-template-columns: 1fr; }
}

/* Use the same panel chrome as every other card on the page —
   no bright top bar, no radial halo. The numbered badge IS the visual hook. */
.step-card-fancy {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step-card-fancy:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: var(--shadow);
}

/* Unified step number badge — also used by .tc-step-num below */
.step-card-fancy .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.40);
  color: #dbeafe;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 14px rgba(37, 99, 235, 0.18);
  margin-bottom: 1rem;
}
.step-card-fancy h3 {
  margin: 0 0 .55rem;
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.step-card-fancy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}

/* ================================================================
   TC Example walkthrough
   ================================================================ */
.tc-walkthrough {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.tc-step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  align-items: flex-start;
}
.tc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.40);
  color: #dbeafe;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 14px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}
.tc-step h3 { margin: .25rem 0 .45rem; color: #f8fafc; font-size: 1.2rem; }
.tc-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.tc-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

/* Footer log-in: subtle link-style styling */
.footer-login {
  color: #93c5fd !important;
  font-weight: 600;
}
.footer-login:hover { color: #dbeafe !important; }

/* Header "Log in" link — desktop styling (mobile rules are in the 640px block) */
.sign-in-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.sign-in-link:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, .08);
}

/* Mobile polish for TC walkthrough */
@media (max-width: 640px) {
  .tc-step {
    padding: 1rem 1.1rem;
    grid-template-columns: 2.25rem 1fr;
    gap: .85rem;
  }
  .tc-step-num { width: 2.5rem; height: 2.5rem; border-radius: 12px; font-size: .95rem; }
  .tc-step h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
  .tc-step p { font-size: .88rem; line-height: 1.5; }
  .tc-cta .button { width: 100%; }
}

/* ================================================================
   Checkout plan toggle
   ================================================================ */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding: .35rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
}
.plan-toggle-btn {
  display: grid;
  gap: .15rem;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  text-align: center;
}
.plan-toggle-btn strong {
  color: #e2e8f0;
  font-size: .95rem;
  font-weight: 700;
}
.plan-toggle-btn span {
  font-size: .78rem;
  color: var(--muted);
}
.plan-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
}
.plan-toggle-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(99, 102, 241, 0.18));
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}
.plan-toggle-btn.active strong { color: #fff; }
.plan-toggle-btn.active span { color: #bfdbfe; }

/* Checkout: Log in hint below signup form */
.checkout-login-hint {
  margin: .85rem 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.checkout-login-hint a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  margin-left: .25rem;
}
.checkout-login-hint a:hover { color: #dbeafe; text-decoration: underline; }

/* ================================================================
   Footer logo lockup
   ================================================================ */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.footer-logo-text {
  display: grid;
  gap: .1rem;
  line-height: 1.2;
}
.footer-logo-text strong {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-logo-text span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .02em;
}

/* ================================================================
   Contact form (marketing site)
   ================================================================ */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .4rem;
  font-weight: 600;
  color: #e2e8f0;
  font-size: .9rem;
}
.contact-form .req { color: #60a5fa; margin-left: .15rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .notice {
  padding: .8rem 1rem;
  border-radius: 14px;
  font-size: .92rem;
}
.contact-form .notice.success {
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
}
.contact-form .notice.error {
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fecaca;
}
@media (max-width: 640px) {
  .contact-form { padding: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: .75rem; }
}

/* Contact modal (footer-triggered) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 12, 24, 0.82);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 9999; padding: 4rem 1rem; overflow-y: auto;
  backdrop-filter: blur(8px);
}
.modal-backdrop.open { display: flex; }
.modal-backdrop .modal-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.82));
  color: var(--text-on-dark, #e5eefc);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  max-width: 640px; width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.modal-backdrop .modal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
}
.modal-backdrop .modal-card h2,
.modal-backdrop .modal-card h3,
.modal-backdrop .modal-card label {
  color: #f8fbff;
}
.modal-backdrop .modal-card .muted-text {
  color: #a9bdd9;
}
.modal-backdrop .modal-card a {
  color: #93c5fd;
}
.modal-backdrop .modal-card input,
.modal-backdrop .modal-card textarea {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fbff;
  border: 1px solid rgba(96, 165, 250, 0.18);
}
.modal-backdrop .modal-card input::placeholder,
.modal-backdrop .modal-card textarea::placeholder {
  color: #8fa5c3;
}
.modal-backdrop .modal-card input:focus,
.modal-backdrop .modal-card textarea:focus {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.modal-close {
  position: absolute; top: .85rem; right: .95rem;
  background: transparent; border: 0; color: #8fa5c3;
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .25rem .5rem;
}
.modal-close:hover { color: #f8fbff; }
@media (max-width: 640px) {
  .modal-backdrop { padding: 1rem; }
  .modal-backdrop .modal-card { padding: 1.5rem 1.1rem; border-radius: 20px; }
}

/* Science page enhancements */
.science-tags { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1rem; }
.science-tags span, .science-formula {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.45rem .7rem; border-radius:999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color:#bfdbfe; font-size:.83rem; line-height:1.25;
}
.science-formula { margin-top:1rem; }
.science-list { margin:.9rem 0 0; padding-left:1.1rem; color:var(--muted); }
.science-list li + li { margin-top:.45rem; }
.science-compare-highlight {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}
.science-step-card { align-items:flex-start; }
.science-step-card .step-number { flex: 0 0 auto; }
.science-trust-panel { align-items:start; }
@media (min-width: 900px) {
  .science-hero-grid { grid-template-columns: 1.05fr .95fr; }
}

/* Science page spacing + equal heights */
.science-trait-grid,
.science-process-grid,
.science-compare-grid,
.framework-map-grid {
  gap: 1.15rem;
}

/* Add visible vertical rhythm between stacked card rows on science page */
#top .section .grid.cards > .feature-card,
#top .section .grid.cards > .trait-card,
#top .section .grid.cards > .framework-card,
#top .section .grid.cards > .step-card {
  height: 100%;
}

.science-trust-panel .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.science-trust-panel .mini-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .science-trait-grid,
  .science-process-grid,
  .science-compare-grid,
  .framework-map-grid {
    gap: .9rem;
  }

  .science-trust-panel .mini-grid {
    grid-template-columns: 1fr;
  }
}
.science-boundary-grid {
  gap: 1.15rem;
  align-items: stretch;
}
@media (max-width: 640px) {
  .science-boundary-grid { gap: .9rem; }
}

/* Science page grids must be real CSS grids (not just gap declarations) */
.framework-map-grid,
.science-trait-grid,
.science-process-grid,
.science-compare-grid,
.science-boundary-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .framework-map-grid,
  .science-trait-grid,
  .science-process-grid,
  .science-compare-grid,
  .science-boundary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .framework-map-grid,
  .science-trait-grid,
  .science-process-grid,
  .science-compare-grid,
  .science-boundary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
  }
}

/* Inline login block on checkout page (replaces the old login-hint paragraph) */
.checkout-login-block {
  margin-top: 1.5rem;
}
.checkout-login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.checkout-login-divider::before,
.checkout-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, .18);
}
.checkout-login-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.checkout-login-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}
.checkout-login-form input {
  width: 100%;
  padding: .75rem .9rem;
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  -webkit-appearance: none;
}
.checkout-login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.checkout-success {
  margin: 0;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .35);
  color: #86efac;
  font-size: .85rem;
}

/* ============================================
   SINGLE-FORM CHECKOUT (inline card)
   ============================================ */
.checkout-single {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.checkout-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
}
.checkout-card .eyebrow { margin: 0 0 .25rem; color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .78rem; }
.checkout-card h1 { margin: 0 0 .35rem; font-size: 1.5rem; line-height: 1.2; }
.checkout-card .muted-text { margin: 0 0 1.25rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.checkout-form {
  display: grid;
  gap: 1rem;
}
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}
.checkout-form input {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  -webkit-appearance: none;
}
.checkout-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

/* Stripe Card Element wrapper — match our input styling */
.stripe-card-input {
  padding: .85rem 1rem;
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stripe-card-input.StripeElement--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.stripe-card-input.StripeElement--invalid {
  border-color: #f87171;
}

.checkout-form button[type="submit"] {
  margin-top: .5rem;
}

.checkout-single .checkout-trust {
  margin-top: 1.25rem;
  text-align: center;
}
.checkout-single .checkout-login-block {
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  .checkout-single { padding: 1rem 0 2.5rem; }
  .checkout-card { padding: 1.5rem 1.15rem; border-radius: 14px; }
  .checkout-card h1 { font-size: 1.3rem !important; }
  .checkout-single .plan-toggle { flex-direction: column; }
  .checkout-single .plan-toggle-btn { width: 100%; }
}

/* ===== Weekly Loop section (Pulse / Compass / Share-Cards) ===== */
.loop-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.loop-card {
  position: relative;
  padding: 1.75rem 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.loop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: var(--shadow);
}
.loop-head { display: flex; flex-direction: column; gap: .5rem; }
.loop-tag {
  align-self: flex-start;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.28);
}
.loop-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.01em;
}
.loop-sub {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.loop-body {
  margin: 0;
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.55;
}
.loop-visual {
  margin-top: auto;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--line);
}

/* Pulse mini heat map */
.pulse-row {
  display: grid;
  grid-template-columns: 60px repeat(8, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 5px;
}
.pulse-name {
  font-size: .8rem;
  color: #e2e8f0;
  font-weight: 500;
}
.pulse-row .p {
  height: 14px;
  border-radius: 3px;
  display: block;
}
.p1 { background: #34d399; }
.p2 { background: #60a5fa; }
.p3 { background: #fbbf24; }
.p4 { background: #ef4444; }
.pulse-key {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  font-size: .72rem;
  color: var(--muted);
}
.pulse-key span { display: inline-flex; align-items: center; gap: .4rem; }
.pulse-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Compass brief */
.compass-meta {
  margin: 0 0 .85rem;
  font-size: .85rem;
  color: #e2e8f0;
  font-weight: 600;
}
.compass-arch {
  display: inline-block;
  font-weight: 700;
  color: #93c5fd;
  font-size: .78rem;
  margin-left: .25rem;
}
.compass-line {
  margin: 0 0 .55rem;
  font-size: .87rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.compass-line:last-child { margin-bottom: 0; }
.compass-label {
  display: block;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: .2rem;
}

/* Share cards mini */
.share-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .75rem;
}
.share-card {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.share-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 0%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}
.sc-eyebrow {
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
  font-weight: 600;
}
.sc-name {
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -.005em;
}
.sc-traits {
  font-size: .58rem;
  letter-spacing: .08em;
  opacity: .85;
  font-weight: 500;
  text-transform: uppercase;
}
.sc-trusted { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.sc-driver { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

@media (max-width: 640px) {
  .pulse-row { grid-template-columns: 50px repeat(8, 1fr); }
  .pulse-row .p { height: 11px; }
  .share-visual { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .share-card { padding: .65rem; }
  .sc-name { font-size: .85rem; }
}

/* Loop card icons */
.loop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93c5fd;
  margin-bottom: .25rem;
}
.loop-icon svg { width: 22px; height: 22px; }
.icon-compass { background: rgba(59, 130, 246, 0.16); }
.icon-share { background: rgba(59, 130, 246, 0.10); }

/* Mobile: hide example visuals, tighten spacing — give each card a single-screen feel */
@media (max-width: 720px) {
  .loop-grid { gap: .9rem; }
  .loop-card {
    padding: 1.4rem 1.3rem 1.3rem;
    gap: .8rem;
  }
  .loop-card h3 { font-size: 1.25rem; }
  .loop-body { font-size: .92rem; }
  .loop-visual { display: none; }
  .loop-icon { width: 40px; height: 40px; border-radius: 10px; }
  .loop-icon svg { width: 20px; height: 20px; }
  .loop-tag { font-size: .62rem; padding: .25rem .5rem; }
}


/* ================================================================
   How It Works — 4-step connected flow
   ================================================================ */
.steps-flow {
  display: flex;
  align-items: stretch;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.steps-flow .step-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.steps-flow .step-card h3 { font-size: 1.1rem; }
.steps-flow .step-card p { font-size: .95rem; line-height: 1.55; }
.steps-flow .step-connector {
  align-self: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(59,130,246,0.55), rgba(96,165,250,0.15));
  position: relative;
}
.steps-flow .step-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid rgba(96,165,250,0.55);
  border-right: 2px solid rgba(96,165,250,0.55);
  transform: translateY(-50%) rotate(45deg);
}

/* Tablet: 2x2 grid, no connectors */
@media (max-width: 1100px) and (min-width: 641px) {
  .steps-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .steps-flow .step-connector { display: none; }
}

/* Mobile: vertical stack */
@media (max-width: 640px) {
  .steps-flow {
    display: flex;
    flex-direction: column;
    gap: .85rem;
  }
  .steps-flow .step-connector { display: none; }
}
