/* SkoolNotes — marketing + legal site */
:root {
  --bg: #000000;
  --card: #1C1C1E;
  --card-2: #2C2C2E;
  --accent: #E5B800;
  --accent-soft: rgba(229, 184, 0, 0.12);
  --text: #F5F5F7;
  --muted: #A1A1A6;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #000; }

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

img, svg { display: block; }

/* ---------- i18n visibility ----------
   The active language is set on <html data-lang-active="en|fr">
   by an inline script in <head> (no flash of wrong language). */
html[data-lang-active="fr"] [data-lang="en"],
html[data-lang-active="en"] [data-lang="fr"],
html:not([data-lang-active]) [data-lang="fr"] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.active { background: var(--accent); color: #000; }
.lang-toggle button:not(.active):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(229, 184, 0, 0.16), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 184, 0, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero .sub {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 19px;
  color: var(--muted);
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* App Store button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #000;
  border-radius: 14px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-store:hover { text-decoration: none; background: #fff; transform: translateY(-1px); }
.btn-store svg { width: 24px; height: 24px; fill: #000; }
.btn-store .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1.2; }
.btn-store .big { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
}
.btn-ghost:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.2); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}
.chip {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ---------- Section headers ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(229, 184, 0, 0.35); }
.card .step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- App window mockup ---------- */
.hero-visual { margin-top: 64px; }
.app-window {
  width: min(980px, 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(229, 184, 0, 0.05);
}
.aw-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.aw-dot { width: 11px; height: 11px; border-radius: 50%; }
.aw-dot:nth-child(1) { background: #FF5F57; }
.aw-dot:nth-child(2) { background: #FEBC2E; }
.aw-dot:nth-child(3) { background: #28C840; }
.aw-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 10px; }
.aw-ready {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 11px;
}
.aw-body { display: grid; grid-template-columns: 270px 1fr; }
.aw-side {
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 16px 12px;
}
.aw-side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 10px 12px;
}
.aw-note {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.aw-note.active { background: var(--accent-soft); border-color: rgba(229, 184, 0, 0.28); }
.aw-note-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.aw-note-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.aw-main { padding: 26px 30px; }
.ap-title { font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.ap-meta { font-size: 12.5px; color: var(--muted); }
.ap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 18px 0 6px;
}
.ap-text { font-size: 14px; color: #D1D1D6; line-height: 1.6; }
.ap-list { list-style: none; font-size: 14px; color: #D1D1D6; }
.ap-list li { padding: 3px 0 3px 18px; position: relative; }
.ap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ap-callout {
  margin-top: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 184, 0, 0.3);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  color: #F5E9BF;
}
.ap-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ap-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-2);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ---------- Sources & outputs grids ---------- */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(229, 184, 0, 0.35); }
.mini-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mini-card .icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.mini-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  padding: 19px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); font-size: 15px; padding-bottom: 19px; }

/* ---------- Final CTA ---------- */
.cta-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(229, 184, 0, 0.12), rgba(229, 184, 0, 0.03)), var(--card);
  border: 1px solid rgba(229, 184, 0, 0.3);
  border-radius: 28px;
  padding: 68px 32px;
}
.cta-card h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-card p {
  color: var(--muted);
  margin: 14px auto 32px;
  max-width: 540px;
  font-size: 17px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.copyright { color: var(--muted); font-size: 13.5px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 72px 0 0; }
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 14px;
}
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p { color: #D1D1D6; margin-bottom: 14px; font-size: 16px; }
.legal ul, .legal ol { color: #D1D1D6; margin: 0 0 14px 24px; font-size: 16px; }
.legal li { margin-bottom: 8px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.legal th { background: var(--card); font-weight: 600; }
.legal td { color: #D1D1D6; }
.legal strong { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--text); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .sources, .outputs { grid-template-columns: repeat(2, 1fr); }
  .aw-body { grid-template-columns: 1fr; }
  .aw-side { display: none; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 88px 0 64px; }
  .hero .sub { font-size: 17px; }
  .sources, .outputs { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn-store { transition: none; }
  .card:hover { transform: none; }
}
