/* Edulever — shared styles
   Brand blue #2858D8 sampled from the existing logo. */

:root {
  --blue: #2858d8;
  --blue-dark: #1c3fa4;
  --blue-tint: #eaf0ff;
  --ink: #0a1020;
  --ink-soft: #414a63;
  --ground: #f4f6fb;
  --card: #ffffff;
  --line: #dde3f0;
  --amber: #f2a93b;
  --green: #14804a;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 16, 32, .06), 0 8px 24px -16px rgba(10, 16, 32, .28);
  --shadow-lg: 0 24px 60px -28px rgba(20, 40, 110, .45);
  --maxw: 1140px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0; }

a { color: var(--blue); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--card); }

.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  margin-right: auto;
}

.brand img { height: 36px; width: auto; display: block; }

@media (max-width: 560px) { .brand img { height: 30px; } }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}

.nav a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #17864a; }
.btn--block { width: 100%; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(40, 88, 216, .45);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 8%, #e6ecff 0%, rgba(230, 236, 255, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--ground) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 84px);
}

.hero h1 span { color: var(--blue); }

.hero__lede { margin-top: 20px; font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: .95rem;
  color: var(--ink-soft);
}

.hero__proof b { color: var(--ink); font-family: var(--display); }

/* 3D scene */

.scene {
  position: relative;
  height: clamp(320px, 38vw, 430px);
  perspective: 1200px;
  perspective-origin: 55% 45%;
}

.scene__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg));
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.card3d {
  position: absolute;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
  border: 1px solid var(--line);
}

.card3d--sanction {
  left: 8%;
  top: 14%;
  width: 66%;
  padding: 22px;
  transform: translateZ(70px);
}

.card3d--emi {
  right: 2%;
  bottom: 12%;
  width: 54%;
  padding: 18px 20px;
  transform: translateZ(140px);
  animation-delay: -2.4s;
}

.card3d--bank {
  left: 2%;
  bottom: 6%;
  width: 40%;
  padding: 14px 16px;
  transform: translateZ(30px);
  animation-delay: -4.1s;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.cap3d {
  position: absolute;
  right: 6%;
  top: 4%;
  width: 124px;
  transform: translateZ(190px) rotate(-8deg);
  animation: float 6s ease-in-out infinite;
  animation-delay: -1.2s;
  filter: drop-shadow(0 22px 26px rgba(20, 40, 110, .32));
}

.mini-label {
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mini-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 128, 74, .1);
  color: var(--green);
  font-weight: 700;
  font-size: .78rem;
  font-family: var(--display);
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--blue-tint);
  overflow: hidden;
  margin-top: 8px;
}

.bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

.rows { display: grid; gap: 9px; margin-top: 14px; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.row b { color: var(--ink); }

/* ---------- trust strip ---------- */

.strip {
  background: var(--ink);
  color: #fff;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding-block: 30px;
}

.strip__item { display: grid; gap: 4px; }
.strip__item b { font-family: var(--display); font-size: 1.45rem; }
.strip__item span { color: #aeb9d6; font-size: .92rem; }

/* ---------- cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.card p { color: var(--ink-soft); font-size: .98rem; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-tint);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.card__icon svg { width: 23px; height: 23px; }

.steps { counter-reset: step; display: grid; gap: 2px; margin-top: 40px; }

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
  counter-increment: step;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  background: var(--blue-tint);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.step__num::before { content: counter(step); }
.step p { color: var(--ink-soft); margin-top: 6px; font-size: .98rem; }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; margin-top: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }

table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .95rem; }

th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }

th {
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #f8faff;
}

td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.note { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- form ---------- */

.lead {
  background: linear-gradient(160deg, #16224a 0%, #1c3fa4 100%);
  color: #fff;
}

.lead__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; }
.lead h2 { color: #fff; }
.lead .lede { color: #c8d3f2; }
.lead .eyebrow { color: #8fb0ff; }

.checks { display: grid; gap: 12px; margin-top: 26px; }
.check { display: flex; gap: 11px; align-items: start; color: #d8e1fb; font-size: .98rem; }
.check svg { flex: none; width: 21px; height: 21px; color: #7ce0a8; margin-top: 2px; }

.form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.field { display: grid; gap: 6px; }

.field label {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fbfcff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}

.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; }

.consent {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

.form__status { font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form__status[data-state="error"] { color: #b42318; }
.form__status[data-state="ok"] { color: var(--green); }

/* ---------- faq ---------- */

.faq { margin-top: 34px; display: grid; gap: 0; }

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink-soft); font-size: .98rem; max-width: 70ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #aeb9d6; padding-block: 52px 30px; }
.site-footer a { color: #d8e1fb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer__links { display: grid; gap: 9px; font-size: .96rem; }
.footer__brand { color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #23304f; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__inner, .lead__inner, .grid-3, .grid-2, .footer__grid { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .scene { order: -1; height: 300px; }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
  .site-header__inner { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr; gap: 16px; }
  .cap3d { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
