/* Dependency-free styling for the public home, features, and pricing pages. */
:root {
  color-scheme: light;
  --background: #f6f8fb;
  --surface: #ffffff;
  --elevated: #ffffff;
  --text: #101828;
  --muted: #5b6474;
  --border: #e3e8ef;
  --primary: #3457dc;
  --primary-soft: rgba(52, 87, 220, 0.09);
}

/* theme.js sets data-theme from the remembered preference; without it, follow the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #0d1320;
    --surface: #131b2c;
    --elevated: #1a2338;
    --text: #eef2fa;
    --muted: #9aa6bd;
    --border: #263048;
    --primary: #7b96f4;
    --primary-soft: rgba(123, 150, 244, 0.14);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0d1320;
  --surface: #131b2c;
  --elevated: #1a2338;
  --text: #eef2fa;
  --muted: #9aa6bd;
  --border: #263048;
  --primary: #7b96f4;
  --primary-soft: rgba(123, 150, 244, 0.14);
}

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

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

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  min-height: 70px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 900; letter-spacing: -0.4px; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 800; }
.site-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 13px; }
.sign-in { font-size: 14px; font-weight: 700; }
.sign-in:hover { color: var(--primary); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-toggle [data-theme-icon] { font-size: 15px; line-height: 1; }

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 9px;
  padding: 10px 15px;
}
.button-primary:hover { filter: brightness(1.08); }

.button-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 19px;
  font-size: 15px;
  font-weight: 800;
}
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 28px;
  display: flex;
  align-items: center;
  gap: 55px;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 420px; min-width: 280px; }

.pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.hero-title { font-size: clamp(42px, 6vw, 58px); line-height: 1.07; letter-spacing: -2px; font-weight: 900; margin-top: 22px; max-width: 600px; }
.hero-lead { font-size: 19px; line-height: 29px; color: var(--muted); margin-top: 20px; max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-actions .button-primary { border-radius: 11px; padding: 14px 19px; font-size: 15px; }
.fine-print { font-size: 12px; color: var(--muted); margin-top: 15px; }

/* Decorative product preview */
.product-preview {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 480px;
  background: #17243d;
  border: 1px solid #314468;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 18px 40px rgba(23, 36, 61, 0.25);
}

.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 9px; height: 9px; border-radius: 5px; display: block; }
.preview-label { color: #8192b3; font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }

.preview-item { background: #202f4b; border-radius: 14px; padding: 15px; display: flex; align-items: center; gap: 12px; }
.preview-item.active { background: #263a5d; }
.preview-check { width: 23px; height: 23px; border-radius: 8px; border: 1px solid #546786; flex: none; display: flex; align-items: center; justify-content: center; color: #16243c; font-size: 13px; font-weight: 900; }
.preview-item.active .preview-check { background: #81dfa9; border-color: #81dfa9; }
.preview-item-title { color: #f2f5fb; font-weight: 800; font-size: 15px; }
.preview-item-detail { color: #93a1bb; font-size: 12px; margin-top: 3px; }

.preview-limit { border: 1px solid #344a70; border-radius: 14px; padding: 15px; display: flex; gap: 11px; align-items: center; margin-top: 4px; }
.preview-limit-title { color: #e9effd; font-weight: 700; }
.preview-limit-detail { color: #93a1bb; font-size: 12px; margin-top: 2px; }
.preview-limit-icon { color: #9eb6ff; font-size: 18px; }

/* Content sections */
.value-band { max-width: 1120px; margin: 0 auto; padding: 54px 28px; }
.content-page { max-width: 1050px; margin: 0 auto; padding: 65px 28px; min-height: 620px; }

.section-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 1.8px; color: var(--primary); text-align: center; }
.section-title { font-size: 34px; font-weight: 900; letter-spacing: -1px; text-align: center; margin-top: 12px; }
.page-title { font-size: clamp(36px, 5vw, 46px); line-height: 1.13; font-weight: 900; letter-spacing: -1.6px; text-align: center; max-width: 780px; margin: 15px auto 0; }
.page-lead { font-size: 17px; line-height: 27px; color: var(--muted); text-align: center; max-width: 720px; margin: 17px auto 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 30px; }

.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.feature-tile .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.feature-tile h3 { font-size: 16px; font-weight: 800; margin-top: 13px; }
.feature-tile p { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 6px; }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 17px; margin-top: 40px; }

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  width: 320px;
  display: flex;
  flex-direction: column;
}
.plan-card.highlighted { border-color: var(--primary); box-shadow: 0 12px 34px rgba(52, 87, 220, 0.16); }
.plan-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: 1.6px; color: var(--primary); }
.plan-name { font-size: 22px; font-weight: 900; margin-top: 9px; }
.plan-price { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-top: 6px; }
.plan-description { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 10px; }
.plan-features { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.plan-features li { font-size: 13px; color: var(--text); padding-left: 22px; position: relative; }
.plan-features li::before { content: "\2713"; color: var(--primary); font-weight: 900; position: absolute; left: 0; }
.plan-card .button-primary, .plan-card .button-secondary { margin-top: 20px; justify-content: center; }

.pricing-note { font-size: 12px; line-height: 18px; color: var(--muted); text-align: center; max-width: 690px; margin: 20px auto 0; }

/* Footer */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { font-weight: 900; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
