/* Landing site styles. Tokens mirror the app's theme.ts (dark palette). */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --background: #0b1220;
  --surface: #172132;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #243246;
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
nav a { color: var(--text-muted); text-decoration: none; margin-left: 24px; font-size: 15px; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 88px 0 72px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 560px;
  margin: 20px auto 0;
}
/* Primary call to action */
.cta-row {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius);
  padding: 15px 38px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cta-note { color: var(--text-muted); font-size: 14px; }
.nav-cta {
  color: var(--primary);
  font-weight: 700;
}
.nav-cta:hover { color: var(--primary-dark); }

.badge {
  display: inline-block;
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
}
.badge .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 10px;
}

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 12px auto 44px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan.popular { border-color: var(--primary); position: relative; }
.plan .tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.plan h3 { font-size: 18px; font-weight: 800; }
.plan .price { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.plan .per { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 8px; }
.plan li {
  color: var(--text-muted);
  font-size: 15px;
  padding: 6px 0 6px 26px;
  position: relative;
}
.plan li::before {
  content: "✓";
  color: var(--success);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.plans-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 28px;
}

/* Email capture */
.signup { border-top: 1px solid var(--border); }
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.signup-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 14px 16px;
}
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.signup-form input:disabled { opacity: 0.5; }
.signup-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 14px 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.signup-form button:hover:not(:disabled) { background: var(--primary-dark); }
.signup-form button:disabled { opacity: 0.55; cursor: default; }
.signup-msg {
  text-align: center;
  font-size: 14px;
  margin-top: 14px;
  min-height: 20px;
  color: var(--text-muted);
}
.signup-msg.ok { color: var(--success); }
.signup-msg.warn { color: #fbbf24; }

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal pages */
.legal-page { padding: 56px 0 80px; }
.legal-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 4px; }
.legal-page .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal-page h2 {
  font-size: 21px;
  text-align: left;
  margin: 36px 0 10px;
}
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 16px; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 22px; }
.legal-page a { color: var(--primary); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--text-muted); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .features, .plans { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  nav a { margin-left: 16px; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }
}
