/* ============================================================
   Pacta Legal AI — Marketing Site
   Design system: dark theme, electric blue accent
   ============================================================ */

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

:root {
  --bg:           #0E1116;
  --bg-2:         #161B22;
  --bg-3:         #1C2128;
  --border:       #30363D;
  --border-2:     #21262D;
  --text:         #E5E7EB;
  --text-muted:   #9CA3AF;
  --text-faint:   #6B7280;
  --accent:       #5C9CFF;
  --accent-dim:   #3B7DE8;
  --accent-glow:  rgba(92, 156, 255, 0.15);
  --accent-glow2: rgba(92, 156, 255, 0.07);
  --green:        #3FB950;
  --amber:        #D29922;
  --red:          #F85149;
  --font-sans:    'Inter', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:    0 4px 24px rgba(0,0,0,0.5), 0 12px 48px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: #F0F6FC;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--text-muted); line-height: 1.75; }

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Nav --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-logo img, .nav-logo svg {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* --- Login dropdown --- */
.nav-login {
  position: relative;
}
.nav-login > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}
.nav-login-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-login:hover .nav-login-dropdown,
.nav-login:focus-within .nav-login-dropdown {
  display: block;
}
.nav-login-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}
.nav-login-dropdown a:hover {
  color: var(--text) !important;
  background: var(--surface-2);
}
.nav-login-dropdown .dropdown-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 8px 16px 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none !important;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92,156,255,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,17,22,0.2) 0%,
    rgba(14,17,22,0.5) 60%,
    rgba(14,17,22,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(92,156,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-eyebrow span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.hero-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* --- Section headers --- */
.section-header {
  margin-bottom: 56px;
}

.section-header .label { margin-bottom: 12px; }

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.1rem;
  max-width: 560px;
}

.section-header.centered {
  text-align: center;
}
.section-header.centered p {
  margin: 0 auto;
}

/* --- Problem section --- */
.problem {
  background: var(--bg);
  position: relative;
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-copy h2 { margin-bottom: 20px; }
.problem-copy p { font-size: 1.05rem; line-height: 1.85; }

.problem-callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.problem-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.problem-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 600;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

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

.step-card {
  background: var(--bg-2);
  padding: 32px 28px;
  position: relative;
  transition: background 0.2s;
}

.step-card:hover { background: var(--bg-3); }

.step-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #F0F6FC;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* --- Who It's For --- */
.who-for {
  background: var(--bg);
}

.icp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.icp-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.icp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.icp-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.icp-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.icp-card > p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.icp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.icp-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
}

/* --- Moat / Features --- */
.moat {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}

.moat::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow2) 0%, transparent 70%);
  pointer-events: none;
}

.moat-intro {
  max-width: 680px;
  margin-bottom: 56px;
}

.moat-intro h2 { margin-bottom: 16px; }
.moat-intro p { font-size: 1.05rem; line-height: 1.8; }

/* --- Features Bento Grid --- */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.fcard {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fcard--wide {
  grid-column: span 2;
}

.fcard--ops {
  background: linear-gradient(160deg, var(--bg-3) 0%, rgba(92, 156, 255, 0.05) 100%);
  border-color: rgba(92, 156, 255, 0.25);
}

.fcard--sm {
  padding: 22px 24px;
  gap: 8px;
}

.fcard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fcard-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.9;
}

.fcard h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F0F6FC;
}

.fcard--sm h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F0F6FC;
}

.fcard > p, .fcard--sm > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.fcard-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.fcard-checklist li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.fcard-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
  top: 1px;
}

.fcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.fcard-tags span {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Product Tour --- */
.product-tour {
  background: var(--bg);
  border-top: 1px solid var(--border-2);
}

.tour-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.tour-header h2 { margin-bottom: 12px; }
.tour-header p { color: var(--text-muted); font-size: 1rem; }

.tour-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tour-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.tour-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tour-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tour-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto 24px;
}

.tour-chrome {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chrome-dot--red    { background: #FF5F57; }
.chrome-dot--yellow { background: #FFBD2E; }
.chrome-dot--green  { background: #28CA41; }

.chrome-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.tour-screens {
  position: relative;
  background: var(--bg-2);
  line-height: 0;
}

.tour-screen {
  display: none;
  width: 100%;
  height: auto;
}

.tour-screen.active { display: block; }

.tour-captions {
  max-width: 960px;
  margin: 0 auto;
}

.tour-caption {
  display: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 4px;
  text-align: center;
}

.tour-caption.active { display: block; }
.tour-caption strong { color: var(--text); }

@media (max-width: 640px) {
  .tour-tabs { gap: 6px; }
  .tour-tab { font-size: 0.78rem; padding: 6px 14px; }
}

/* Legacy grid (kept for safety) */
.feature-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.feature-col {
  background: var(--bg-2);
  padding: 0;
}

.feature-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-2);
  background: var(--bg-3);
}

.feature-col-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-col-header h4 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.feature-col-items {
  list-style: none;
  padding: 16px 0;
}

.feature-col-items li {
  padding: 9px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-bottom: 1px solid var(--border-2);
}

.feature-col-items li:last-child { border-bottom: none; }

.moat-quote {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 800px;
  position: relative;
}

.moat-quote::before {
  content: '"';
  position: absolute;
  top: 16px; left: 32px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.moat-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.moat-quote cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Who Built This --- */
.built-by {
  background: var(--bg);
}

.built-by-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.built-by-copy h2 { margin-bottom: 20px; }
.built-by-copy p { font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.built-by-copy p:last-child { margin-bottom: 0; }

.founder-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.founder-card blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.founder-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* --- FAQ --- */
.faq {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #F0F6FC;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--bg);
  text-align: center;
}

.cta-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border-2);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-logo { height: 24px; width: auto; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* --- Pricing page --- */
.pricing-hero {
  padding: 100px 0 64px;
  text-align: center;
}

.pricing-hero h1 { margin-bottom: 16px; }
.pricing-hero p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 40px; }

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}

.toggle-switch.active { background: var(--accent); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.active::after { transform: translateX(16px); }

.save-badge {
  background: rgba(63,185,80,0.15);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-3);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pricing-card > p {
  font-size: 0.88rem;
  margin-bottom: 28px;
  min-height: 48px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #F0F6FC;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-faint);
}

.price-annual {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 28px;
  min-height: 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta { margin-top: auto; }

.pricing-cta .btn { width: 100%; justify-content: center; }

/* Compare table */
.compare-section { padding: 0 0 80px; }

.compare-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.4rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.88rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}

.compare-table thead th {
  background: var(--bg-3);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.compare-table thead th:first-child { color: var(--text-faint); }

.compare-table tbody tr:nth-child(even) { background: var(--bg-2); }
.compare-table tbody tr:nth-child(odd) { background: var(--bg); }

.compare-table tfoot td {
  background: var(--bg-3);
  font-weight: 600;
  border-bottom: none;
}

.check { color: var(--green); font-weight: 700; }
.dash { color: var(--text-faint); }

/* Disclaimer */
.pricing-disclaimer {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Legal pages */
.legal-hero {
  padding: 80px 0 40px;
}

.legal-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-hero p { font-size: 0.9rem; }

.legal-body {
  padding: 40px 0 96px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  color: #F0F6FC;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 12px 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content a { color: var(--accent); }

/* --- Mobile nav toggle --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-columns { grid-template-columns: repeat(2, 1fr); }
  .features-bento { grid-template-columns: repeat(2, 1fr); }
  .fcard--wide { grid-column: span 2; }
  .problem-inner,
  .built-by-inner,
  .icp-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .steps-grid { grid-template-columns: 1fr; }
  .feature-columns { grid-template-columns: 1fr; }
  .features-bento { grid-template-columns: 1fr; }
  .fcard--wide { grid-column: span 1; }
  .fcard { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cta-box { padding: 48px 24px; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
