/* Noctua — shared site styles
   Brand: indigo #5B5BD6, purple #9747FF, amber #F97316 */

:root {
  --indigo: #5B5BD6;
  --indigo-dark: #4040B0;
  --indigo-pale: #EEF0FF;
  --purple: #9747FF;
  --amber: #F97316;
  --green: #16A34A;

  --text: #111827;
  --text-2: #374151;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  --bg: #F9FAFB;
  --white: #ffffff;
  --border: #E5E7EB;

  --shadow-card: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-hero: 0 20px 60px rgba(91, 91, 214, 0.25);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }
.nav-cta {
  background: var(--text);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.nav-cta:hover { background: var(--indigo); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(151, 71, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% -20%, rgba(91, 91, 214, 0.20), transparent 60%),
    var(--white);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo);
  background: var(--indigo-pale);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 740px;
  margin: 0 auto 18px;
  text-align: center;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--indigo), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--white); }
.btn-primary:hover { background: var(--indigo); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--indigo); color: var(--indigo); }

/* Hero phone mockup */
.hero-mock {
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1C1C1E, #0B0B0E);
  border-radius: 36px;
  padding: 20px 18px;
  box-shadow: var(--shadow-hero);
}
.notch {
  width: 60px;
  height: 5px;
  background: #333;
  border-radius: var(--radius-pill);
  margin: 0 auto 16px;
}
.notif {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}
.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.notif-icon img { width: 100%; height: 100%; display: block; }
.notif-meta { color: rgba(255, 255, 255, 0.55); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 3px; }
.notif-title { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.notif-body { color: rgba(255, 255, 255, 0.6); font-size: 12px; margin-top: 2px; }

/* ── Section ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.55;
}
.section-alt { background: var(--bg); }

/* ── Feature grid ───────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--indigo-pale);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon.amber { background: #FFF7ED; color: var(--amber); }
.feature-icon.green { background: #F0FDF4; color: var(--green); }
.feature-icon.purple { background: #F5F3FF; color: var(--purple); }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── How it works ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.step h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 280px; margin: 0 auto; }

/* ── Topics grid ────────────────────────────────────────── */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details > div {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Final CTA ──────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-hero);
}
.cta-band h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 16px; max-width: 480px; margin: 0 auto 22px; }
.cta-band .btn { background: #fff; color: var(--text); }
.cta-band .btn:hover { background: #f1f5f9; }
.cta-band-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-weight: 600; }
.footer-links a:hover { color: var(--indigo); text-decoration: none; }
.footer-copy { color: var(--muted-2); font-size: 13px; margin-top: 28px; text-align: center; }

/* ── Legal pages ────────────────────────────────────────── */
.legal {
  padding: 64px 0 96px;
  background: var(--bg);
}
.legal-inner {
  background: var(--white);
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.legal h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal .legal-meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.legal h3 { font-size: 17px; font-weight: 700; margin-top: 22px; margin-bottom: 8px; }
.legal p { color: var(--text-2); margin-bottom: 14px; line-height: 1.7; font-size: 15.5px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { color: var(--text-2); margin-bottom: 8px; line-height: 1.7; font-size: 15.5px; }
.legal a { font-weight: 600; }
.legal-toc {
  background: var(--indigo-pale);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 36px;
}
.legal-toc h4 { font-size: 12px; font-weight: 800; color: var(--indigo); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; }
.legal-toc ol { padding-left: 20px; margin: 0; }
.legal-toc li { color: var(--text-2); font-size: 14px; margin-bottom: 4px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .features, .steps { grid-template-columns: 1fr; }
  .legal-inner { padding: 36px 24px; }
  .legal h1 { font-size: 30px; }
  .footer-inner { flex-direction: column; }
}
