/* ============================================================
   Edutech — Design System (shared)
   Brand: preto + dourado. Single source of truth for all
   landing pages. Link with: <link rel="stylesheet" href="/styles.css">
   ============================================================ */

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

:root {
  --gold: #c9a84c;
  --gold-bright: #e8d080;
  --gold-ink: #9a7b22;          /* dark gold — WCAG AA on cream/white for small text */
  --gold-soft: rgba(201,168,76,0.14);
  --ink: #16150f;               /* warm near-black text */
  --dark: #131210;              /* hero ground, warm black */
  --dark-2: #0b0a09;
  --dark-3: #1d1b16;
  --cream: #faf7ef;             /* chosen warm neutral, not pure white */
  --cream-2: #f2ede0;
  --muted: #6f685a;             /* warm grey, biased to gold */
  --muted-dk: #a49a86;          /* muted on dark ground */
  --line: #e7e0d0;
  --white: #ffffff;
  --maxw: 1120px;
  --shadow: 0 10px 40px rgba(20,18,10,0.10);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19,18,16,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; user-select: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201,168,76,0.35);
}
.logo-icon span { color: var(--dark); font-weight: 900; font-size: 14px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: #fff; }
.logo-text .edu { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: #b8b1a1; transition: color .18s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--dark); padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  transition: transform .12s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.45); }

/* mobile menu (CSS-only, driven by #nav-toggle checkbox) */
#nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 1px solid rgba(201,168,76,0.22);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links a { padding: 15px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
  #nav-toggle:checked ~ .nav-links { max-height: 420px; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; order: 3;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .25s; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--dark); padding: 15px 32px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
  transition: transform .12s, box-shadow .22s; cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(201,168,76,0.52); }
.btn-primary svg { width: 17px; height: 17px; }
.btn-secondary {
  background: rgba(255,255,255,0.04); color: #fff; padding: 15px 30px; border-radius: 12px;
  font-size: 15.5px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.22);
  transition: border-color .18s, color .18s, transform .12s; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
/* dark-on-light variant for buttons placed on cream/white sections */
.btn-secondary.on-light { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-secondary.on-light:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ── HERO helpers ── */
.hero {
  background: var(--dark); position: relative; overflow: hidden; padding: 96px 24px 88px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 15%, rgba(201,168,76,0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(201,168,76,0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-bright); padding: 7px 15px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.35)} }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); font-weight: 900;
  line-height: 1.05; letter-spacing: -2px; color: #fff; margin-bottom: 22px;
}
.hero h1 .hl {
  color: var(--gold);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted-dk); max-width: 520px; margin-bottom: 34px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 10px; color: var(--muted-dk); font-size: 13.5px; }
.hero-trust .avatars { display: flex; }
.hero-trust .av {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--dark);
  background: linear-gradient(135deg, var(--gold), #7c6420); margin-left: -8px;
  display: grid; place-items: center; color: var(--dark); font-weight: 800; font-size: 11px;
}
.hero-trust .av:first-child { margin-left: 0; }
.hero-trust b { color: var(--gold); }
.hero-visual { position: relative; }
.hero-frame {
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(201,168,76,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.12); position: relative;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }
.hero-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(19,18,16,0.55));
}
.hero-chip {
  position: absolute; z-index: 2; background: rgba(19,18,16,0.9);
  border: 1px solid rgba(201,168,76,0.35); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 11px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.hero-chip .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.hero-chip .t { font-size: 13px; font-weight: 700; color: #fff; }
.hero-chip .s { font-size: 11.5px; color: var(--muted-dk); }
.hero-chip.c1 { top: 22px; left: -18px; }
.hero-chip.c2 { bottom: 24px; right: -14px; }
@media (max-width: 860px) {
  .hero { padding: 64px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-chip.c1 { left: 10px; }
  .hero-chip.c2 { right: 6px; }
}

/* ── STATS band ── */
.stats { background: var(--dark-2); border-top: 1px solid rgba(201,168,76,0.14); padding: 44px 24px; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat { padding: 8px; }
.stat .n { font-size: clamp(30px, 4vw, 40px); font-weight: 900; color: var(--gold); letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13.5px; color: var(--muted-dk); margin-top: 8px; }

/* ── SECTION shell ── */
.section { padding: 96px 24px; }
.section.cream { background: var(--cream); }
.section.cream-2 { background: var(--cream-2); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 14px; }
.section.dark .eyebrow { color: var(--gold); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; line-height: 1.7; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head p { color: var(--muted-dk); }

/* ── two-col media block (product / about) ── */
.split-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; position: relative; }
.shot .bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--dark-3); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(201,168,76,0.4); }
.copy .name { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.copy .name .zap { color: var(--gold); }
.copy .desc { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 22px; }
.tag-quote { font-size: 13.5px; font-style: italic; color: var(--gold-ink); font-weight: 500; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 4px; padding: 13px 16px; margin-bottom: 24px; line-height: 1.6; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.price-row .amt { font-size: 46px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.price-row .per { font-size: 15px; color: var(--muted); }
.feat-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.feat-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.feat-list li .ck { width: 20px; height: 20px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.feat-list li .ck svg { width: 12px; height: 12px; }

/* ── step / card grids ── */
.grid-auto { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(201,168,76,0.14); }
.card .num { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; font-weight: 900; background: var(--dark); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 23px; height: 23px; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── testimonials ── */
.ph-flag { max-width: var(--maxw); margin: -40px auto 34px; text-align: center; font-size: 12.5px; color: var(--gold-ink); background: var(--gold-soft); border: 1px dashed rgba(201,168,76,0.5); border-radius: 8px; padding: 8px 14px; display: block; }
.quotes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote .stars { display: flex; gap: 3px; color: var(--gold); }
.quote .stars svg { width: 16px; height: 16px; }
.quote .txt { font-size: 15px; color: var(--ink); line-height: 1.7; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7c6420); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.quote .who .nm { font-size: 14px; font-weight: 700; }
.quote .who .rl { font-size: 12.5px; color: var(--muted); }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--gold); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--gold); font-size: 22px; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ── final CTA ── */
.final { background: var(--dark); position: relative; overflow: hidden; text-align: center; padding: 100px 24px; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(201,168,76,0.22), transparent 65%); }
.final-in { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; color: #fff; letter-spacing: -1.4px; margin-bottom: 16px; }
.final p { color: var(--muted-dk); font-size: 18px; margin-bottom: 36px; line-height: 1.7; }
.final .assure { margin-top: 20px; font-size: 13.5px; color: var(--muted-dk); }

/* ── FOOTER ── */
footer { background: var(--dark-2); padding: 44px 24px; text-align: center; }
.footer-in { max-width: var(--maxw); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 22px 0; }
.footer-links a { font-size: 13px; color: #8a8272; transition: color .18s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: #5c554a; margin-top: 14px; line-height: 1.6; }

/* ── interior page header (legal / content pages) ── */
.page-hero { background: var(--dark); position: relative; overflow: hidden; padding: 72px 24px 56px; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(201,168,76,0.16), transparent 65%); }
.page-hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; letter-spacing: -1px; }
.page-hero p { color: var(--muted-dk); font-size: 15px; margin-top: 12px; }

/* ── prose (legal / long text pages) ── */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px; color: var(--ink); }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--gold-ink); font-weight: 600; }
.prose strong { color: var(--ink); }

/* ── scroll reveal (enhanced by /enhance.js) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── small responsive ── */
@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 15px; }
}
