/* =========================================================
   Theme variables (light / dark)
   ========================================================= */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #444444;
  --border: #e5e5e5;
  --accent: #0b5cff;
  --accent-hover: #0848c4;
  --soft-bg: #f8f9fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text: #e6e6e6;
    --muted: #b5b5b5;
    --border: #262a33;
    --accent: #6b8cff;
    --accent-hover: #8fa7ff;
    --soft-bg: #161922;
  }
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* =========================================================
   Header & navigation
   ========================================================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-nav {
  display: flex;
}

.site-nav a {
  margin-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text);
}

/* Mobile nav toggle */
#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
}

/* Mobile layout */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
  }

  .site-nav a {
    padding: 1rem;
    margin: 0;
    border-top: 1px solid var(--border);
  }

  #nav-toggle:checked + .nav-toggle-label + .site-nav {
    display: flex;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
}

/* =========================================================
   Buttons
   ========================================================= */

.cta {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-right: 0.6rem;
}

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

.btn.primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--soft-bg);
  text-decoration: none;
}

/* =========================================================
   Sections
   ========================================================= */

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* =========================================================
   Trust section
   ========================================================= */

.trust {
  background: var(--soft-bg);
}

.trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust li {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================================
   Profiles
   ========================================================= */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.profile {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.profile h3 {
  margin-top: 0;
}

/* =========================================================
   How it works
   ========================================================= */

.how ol {
  max-width: 500px;
  padding-left: 1.2rem;
}

.how li {
  margin-bottom: 0.8rem;
}

/* =========================================================
   Final CTA
   ========================================================= */

.final-cta {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1.2rem;
}

.final-cta .btn.primary {
  background: #ffffff;
  color: var(--accent);
}

.final-cta .btn.primary:hover {
  background: #e6ebff;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
}

.site-footer a {
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.pricing-card h2 {
  margin-top: 0;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card li {
  padding: 0.4rem 0;
}
