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

:root {
  --brand:        #16a34a;
  --brand-dark:   #15803d;
  --brand-light:  #f0fdf4;
  --brand-border: #bbf7d0;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted:   #9ca3af;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow:       0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

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

section { padding: 96px 0; }

/* ─── Navigation ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

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

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

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 96px;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Overlay mockup */
.overlay-mockup {
  margin: 56px auto 0;
  max-width: 620px;
  background: rgba(30, 30, 30, 0.92);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
  text-align: left;
}

.overlay-breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-family: monospace;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.overlay-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
}

.key-badge .key {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
  background: rgba(255,255,255,0.15);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.key-badge .label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.2;
}

/* ─── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 48px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-icon {
  font-size: 1.25rem;
}

.stat-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── How It Works ───────────────────────────────────────────── */
.how-it-works { background: var(--bg-subtle); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-icon.sheets { background: #e8f5e9; color: #2e7d32; }
.app-icon.slides { background: #fff3e0; color: #e65100; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card h3 small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

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

.tab-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tab-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 2px 6px;
  flex-shrink: 0;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 8px;
  margin-top: 12px;
}

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing { background: var(--bg-subtle); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.price-note.savings {
  color: var(--brand);
  font-weight: 600;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

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

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  max-width: 680px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg-subtle); }

.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Inner pages (Privacy / Terms) ─────────────────────────── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-content {
  padding: 64px 0 96px;
  max-width: 720px;
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text-primary);
}

.page-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-content ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-content a { color: var(--brand); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }

  .steps { grid-template-columns: 1fr; }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-inner {
    flex-direction: column;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    justify-content: center;
  }

  .stat:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .footer-links { justify-content: center; }

  .overlay-mockup { margin-top: 40px; }
}
