/* AimaginariA legal site styles. Minimal, accessible, no JS. */
:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: rgba(0,0,0,0.08);
  --primary: #6200ee;
  --primary-hover: #5000d1;
  --accent: #8B5CF6;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1f1f1f;
    --text: #f9fafb;
    --text-muted: #b8c0cc;
    --border: rgba(255,255,255,0.12);
    --primary: #bb86fc;
    --primary-hover: #a86efe;
    --accent: #bb86fc;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

nav { display: flex; gap: 18px; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
nav a:hover { color: var(--primary); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 600px;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 56px; }
.cta a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.cta a.primary { background: var(--primary); color: #fff; }
.cta a.primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.cta a.secondary { color: var(--primary); border: 1px solid var(--primary); }
.cta a.secondary:hover { background: rgba(98,0,238,0.06); }

.how, .plans {
  margin: 56px 0 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.how h2, .plans h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
}
.how ol { padding-left: 22px; margin: 0; }
.how li { margin: 8px 0; }

.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.plan {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(98,0,238,0.1);
}
.plan h3 { margin: 0 0 6px; font-size: 1.1rem; }
.plan p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.9rem; }
.plan ul { padding-left: 18px; margin: 0; font-size: 0.9rem; }
.plan li { margin: 4px 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--primary); text-decoration: underline; }

/* Legal pages: long-form, readable typography */
article.legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
article.legal h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
article.legal .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 32px;
}
article.legal h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
article.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
article.legal p, article.legal li { color: var(--text); }
article.legal ul, article.legal ol { padding-left: 24px; }
article.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.9rem;
}
article.legal th, article.legal td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
article.legal th { background: var(--surface); font-weight: 600; }
article.legal a { color: var(--primary); }
article.legal hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
