/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f1f0f6;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: rgba(209,213,219,0.6);
  --accent-from: #3b82f6;
  --accent-to: #9333ea;
  --card-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --card-hover-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

html.dark {
  --bg: #0a0a0a;
  --card-bg: #1c1c1e;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;
  --border: rgba(55,65,81,0.5);
  --card-shadow: 0 4px 16px rgba(0,0,0,0.4);
  --card-hover-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

html {
  background-color: var(--bg);
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

@media (min-width: 768px) {
  body {
    padding: 1rem;
  }
}

/* ===== CARD WRAPPER ===== */
.page-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--card-bg);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page-card {
    border-radius: 28px;
    min-height: unset;
    box-shadow: 0 24px 80px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
  }
}

/* ===== HERO ===== */
.hero {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-logo img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-logo .logo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(59,130,246,0.4);
}

.hero-logo .logo-placeholder svg {
  color: #fff;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 1rem;
}

.hero p .accent-blue  { font-weight: 600; color: #60a5fa; }
.hero p .accent-purple{ font-weight: 600; color: #c084fc; }
.hero p .accent-green { font-weight: 600; color: #34d399; }

/* ===== FEATURES GRID ===== */
.features {
  padding: 0 1.5rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feature-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-icon svg {
  color: #fff;
  width: 24px;
  height: 24px;
}

.feature-icon.blue   { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.feature-icon.purple { background: linear-gradient(135deg, #9333ea, #ec4899); }
.feature-icon.green  { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon.orange { background: linear-gradient(135deg, #f97316, #ef4444); }

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 0 1.5rem 2rem;
}

.benefits-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid rgba(59,130,246,0.3);
  box-shadow: var(--card-shadow);
}

html.dark .benefits-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(147,51,234,0.12));
  border-color: rgba(59,130,246,0.25);
}

.benefits-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}

.check-icon svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* ===== CTA ===== */
.cta {
  padding: 0 1.5rem 1.5rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  transition: box-shadow 0.3s, transform 0.2s;
}

.cta-btn:hover {
  box-shadow: 0 8px 32px rgba(59,130,246,0.55);
  transform: translateY(-1px);
}

.cta-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cta-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  padding: 0 1.5rem 1.5rem;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
}

.footer-links-row + .footer-links-row {
  margin-top: 0.5rem;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-row a:hover {
  color: #60a5fa;
}

/* ===== LEGAL ===== */
.legal {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  margin: 0 1.5rem;
}

.legal p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 1rem;
  line-height: 1.6;
}

/* ===== SUBPAGE (terms, privacy, prices, etc.) ===== */
.subpage-header {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subpage-header a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.subpage-header a:hover { color: #60a5fa; }
.subpage-header a svg { width: 18px; height: 18px; }

.subpage-content {
  padding: 0 1.5rem 2.5rem;
  flex: 1;
}

.subpage-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.subpage-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.subpage-content p,
.subpage-content li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.subpage-content ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* ===== CONTACT CARD ===== */
.contact-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { color: #fff; width: 24px; height: 24px; }

.contact-info strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.contact-info span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ===== PRICE CARDS ===== */
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.price-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.price-card.popular {
  border-color: #3b82f6;
  box-shadow: 0 4px 24px rgba(59,130,246,0.25);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-card .price {
  text-align: right;
}

.price-card .price .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-card .price .per {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-card .price .old {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}

.price-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.price-card-features li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  flex-shrink: 0;
}

/* ===== UNSUB ===== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.step-text span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
