:root {
  --bg: linear-gradient(165deg, #ffd6eb 0%, #c7b3ff 45%, #d6ecff 100%);
  --surface: #ffffff;
  --text: #111111;
  --muted: #5c5c66;
  --accent: #0a84ff;
  --accent-soft: #e8f2ff;
  --border: #e5e5ea;
  --shadow: 0 12px 40px rgba(0, 30, 80, 0.1);
  --radius: 18px;
  --max: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site-header {
  text-align: center;
  padding: 32px 0 24px;
}

.site-header img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 16px 0 8px;
  letter-spacing: -0.02em;
}

.site-header .tagline {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badge.free {
  background: #e8f8ee;
  color: #1f8b4c;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.card p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  padding: 16px;
  border-radius: 14px;
  background: #f6f7fb;
}

.feature .icon { font-size: 1.75rem; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-secondary:hover { text-decoration: none; }

.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.site-footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a { margin: 0 10px; }

.prose h2 { margin-top: 1.75em; }
.prose h3 { margin-top: 1.25em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 0.35em 0; }

@media (max-width: 600px) {
  .card { padding: 18px; }
}

/* --- Direct web checkout (checkout.html) --- */
.plan-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.plan-card {
  flex: 1 1 220px; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; text-align: center; background: var(--surface);
}
.plan-featured { border-color: var(--accent); box-shadow: 0 4px 18px rgba(10,132,255,0.15); }
.plan-price { font-size: 1.5rem; font-weight: 700; margin: 8px 0; }
.plan-note { color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.checkout-status { min-height: 1.4em; color: var(--muted); margin-top: 10px; }
.checkout-note .fine-print { color: var(--muted); font-size: 0.85rem; }
