/* METRIX — Design tokens */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #121216;
  --bg-card: #16161b;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-muted: rgba(99, 102, 241, 0.15);
  --border: #27272a;
  --gradient-start: #6366f1;
  --gradient-end: #a855f7;
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.stat strong {
  color: var(--text);
  margin-right: 4px;
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
}

/* Features */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Plans */
.plans {
  padding: 80px 0 100px;
}

.plan-option {
  display: block;
  text-decoration: none;
  color: inherit;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.toggle-label.active {
  color: var(--text);
}

.toggle-label em {
  font-style: normal;
  color: var(--accent);
  margin-left: 4px;
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transition: 0.25s;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.25s;
}

.toggle input:checked + .slider {
  background: var(--accent-muted);
}

.toggle input:checked + .slider::before {
  transform: translateX(22px);
  background: var(--accent);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  border-color: var(--accent);
}

.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.plan-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.plan-price {
  margin-bottom: 24px;
}

.plan-price .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
}

.plan-price .period {
  font-size: 1rem;
  color: var(--text-muted);
}


.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.plan-cta {
  width: 100%;
}

/* FAQ */
.faq {
  padding: 80px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Checkout page */
.checkout-page {
  min-height: 100vh;
  padding: 40px 0 80px;
}

.checkout-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-inner {
    grid-template-columns: 1fr;
  }
}

.checkout-main h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.checkout-main .subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 32px;
}

.checkout-form .form-section {
  margin-bottom: 32px;
}

.checkout-form .form-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.checkout-form input::placeholder {
  color: var(--text-muted);
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group {
  margin-bottom: 16px;
}

.checkout-summary {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.checkout-summary h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 20px;
}

.summary-plan {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.summary-plan strong {
  font-size: 1rem;
}

.summary-plan .change-link {
  font-size: 0.875rem;
  color: var(--accent);
}

.summary-plan .change-link:hover {
  text-decoration: underline;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  margin-top: 8px;
  padding-top: 16px;
  border-top-width: 2px;
}

.checkout-summary .btn-primary {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.plan-option:hover {
  border-color: var(--accent);
}

.plan-option.selected {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option span {
  display: block;
}

.plan-option .name {
  font-weight: 600;
  display: block;
}

.plan-option .desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-option .price {
  font-family: var(--font-display);
  color: var(--text-muted);
  flex-shrink: 0;
}

.plan-option.selected .price {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }
}

