/* v3 palette — light theme, teal #0D9488 locked in. Shared by start.html,
   terms.html, privacy.html, welcome.html. The v3 landing page
   (public/index.html) carries its own inline copy of these tokens and does
   not load this file. */
:root {
  --bg: #FAFAF9;
  --bg-raised: #FFFFFF;
  --bg-alt: #F5F5F4;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --text: #1C1917;
  --text-dim: #57534E;
  --text-faint: #A8A29E;
  --accent: #0D9488;
  --accent-dark: #0B8076;
  --accent-tint: #F0FDFA;
  --danger: #DC2626;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

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

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-raised);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
  text-align: center;
}

p {
  color: var(--text-dim);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 4px 12px rgba(28, 25, 23, 0.06);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
}

.trust-line {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
}

.testimonial-card footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
  font-size: 20px;
}

/* Sample brief mockup */
.email-mockup {
  max-width: 560px;
  margin: 40px auto 0;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.email-mockup-header {
  background: #f3f4f6;
  padding: 14px 20px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #e5e7eb;
}

.email-mockup-body {
  padding: 24px;
  font-size: 14px;
  white-space: pre-wrap;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}

/* Growth is the default/recommended plan — thicker accent border, a slight
   scale-up, and a soft glow so it visually wins against Starter without
   needing to shrink or grey out the other card. */
.price-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.18);
  z-index: 1;
}

.badge-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-value {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 20px;
}

.price-highlight {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: -12px 0 20px;
}

.price-value span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}

.price-card li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  max-width: 720px;
  margin: 0 auto;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: var(--text-dim);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-dim);
  margin: 0 8px;
}

/* Exit intent popup */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.exit-popup-overlay.visible {
  display: flex;
}

.exit-popup {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  position: relative;
  text-align: center;
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

.exit-popup input[type='email'] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  margin: 16px 0;
}

/* Forms (shared with start.html) */
input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 15px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 14px 0 6px;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}
