/* ============================================================
   Learn Permission AI — brand-aligned landing styles
   Palette mirrors permission.ai: violet field + lime accent.
   ============================================================ */

:root {
  color-scheme: light;
  --violet: #6c4ae0;
  --violet-deep: #5a39c9;
  --lime: #c8f24e;
  --lime-deep: #b6e338;
  --ink: #141026;
  --ink-2: #5b5570;
  --paper: #ffffff;
  --tint: #f4f1fb;
  --line: #e7e3f3;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(20, 16, 38, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
svg { display: block; }

.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

/* ── Floating nav ──────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: var(--violet);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  box-shadow: 0 10px 30px rgba(20, 16, 38, .18);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--lime), #8be0c0);
  box-shadow: inset 0 0 0 3px rgba(20,16,38,.85);
}
.brand-name { font-weight: 900; font-size: 20px; letter-spacing: -.3px; }
.brand-name sup { font-size: 9px; font-weight: 700; top: -.8em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: var(--violet); color: #fff; padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero-grid {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow { margin: 0 0 18px; color: var(--lime); font-weight: 800; letter-spacing: 1.5px; font-size: 14px; }
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
}
.lede { margin: 22px 0 0; max-width: 460px; color: rgba(255,255,255,.88); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-panel { display: grid; gap: 16px; }
.panel-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.panel-card--alt { margin-left: clamp(0px, 5vw, 48px); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-bottom: 12px; }
.dot--lime { background: var(--lime); }
.panel-kicker { margin: 0; font-weight: 800; font-size: 17px; }
.panel-line { margin: 6px 0 0; color: rgba(255,255,255,.80); font-size: 15px; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }
.section-title { margin: 0; text-align: center; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.6px; }
.section-sub { margin: 12px auto 44px; max-width: 560px; text-align: center; color: var(--ink-2); font-size: 17px; }

/* ── Cards ─────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #c9bcf0; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--violet); margin-bottom: 16px; position: relative; }
.card-ic::after { content: ""; position: absolute; inset: 13px; border-radius: 5px; background: var(--lime); }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); }

/* ── Paths ─────────────────────────────────────────────────── */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.path--feature { background: var(--ink); color: #fff; border-color: transparent; transform: translateY(-8px); }
.path--feature p { color: rgba(255,255,255,.82); }
.path--feature .path-no { color: var(--lime); }
.path-no { display: block; font-size: 34px; font-weight: 900; color: var(--violet); line-height: 1; }
.path h3 { margin: 12px 0 8px; font-size: 24px; font-weight: 800; }
.path p { margin: 0; color: var(--ink-2); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--violet);
  color: #fff;
  border-radius: 28px;
  padding: clamp(34px, 5vw, 60px);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -.5px; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 18px; max-width: 520px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #b9b2cf; padding: 46px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.brand--light { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #b9b2cf; text-decoration: none; font-weight: 700; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; margin: 6px 0 0; color: #807a96; font-size: 14px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .cards, .paths { grid-template-columns: 1fr 1fr; }
  .path--feature { transform: none; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .cards, .paths { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Legacy utility classes — keep 404 and nested sample pages
   rendering with the same brand.
   ============================================================ */
.page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.page .eyebrow { color: var(--violet); letter-spacing: 1px; }
.page h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.8px; }
.page .lede { margin: 18px auto 0; max-width: 520px; color: var(--ink-2); }
.page .btn { margin-top: 32px; }
