/* Landing page of the Portal de Aprendizaje Fraijanes (demo). */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --teal: #02474d;
  --teal-2: #035a61;
  --teal-deep: #01363b;
  --lime: #e2fa04;
  --lime-soft: #f4ffb0;
  --ink: #0f2426;
  --ink-2: #4b5f61;
  --paper: #f4f8f7;
  --line: rgba(2, 71, 77, .12);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); margin: 0; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--teal); z-index: 50; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 15px/1 var(--font); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-lime { background: var(--lime); color: var(--teal); box-shadow: 0 10px 30px rgba(226, 250, 4, .25); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(226, 250, 4, .35); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(2, 71, 77, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.lockup img { width: 44px; height: 44px; }
.lockup strong { display: block; font: 800 16px/1.1 var(--font); }
.lockup small { display: block; margin-top: 3px; color: var(--lime); font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: rgba(255, 255, 255, .82); text-decoration: none; font: 600 14px/1 var(--font); }
.topnav a:hover { color: var(--lime); }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 85% 20%, #04656d 0%, transparent 60%), linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); padding: 72px 0 120px; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 250, 4, .16), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(226, 250, 4, .12); color: var(--lime); font: 700 13px/1 var(--font); letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(226, 250, 4, .2); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.hero h1 mark { background: none; color: var(--lime); }
.lead { margin-top: 22px; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-facts strong { display: block; color: var(--lime); font: 800 28px/1 var(--font); }
.hero-facts span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.45; }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.seal { width: min(380px, 80%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); box-shadow: 0 0 0 1px rgba(226, 250, 4, .18), 0 0 0 28px rgba(226, 250, 4, .04), 0 0 0 56px rgba(226, 250, 4, .025); }
.seal img { width: 82%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25)); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 20, 22, .35); font-size: 13px; }
.float-card strong { display: block; font: 700 14px/1.2 var(--font); }
.float-card span { color: var(--ink-2); }
.fc-task { left: -8px; top: 40px; }
.fc-streak { right: -6px; bottom: 54px; }
.fc-grade { right: 6px; top: 6px; display: grid; gap: 6px; min-width: 170px; }
.fc-label { font-size: 12px; font-weight: 600; }
.fc-big { font: 800 34px/1 var(--font) !important; color: var(--teal); }
.fc-big small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.fc-bar { height: 8px; border-radius: 99px; background: #e8efee; overflow: hidden; }
.fc-bar i { display: block; width: 92%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-2), #1fa597); }
.fc-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; font: 800 17px/1 var(--font); }
.fc-ok { background: var(--lime); color: var(--teal) !important; }
.fc-fire { background: #fff1e6; color: #e2672b !important; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: bob 7s ease-in-out infinite; }
  .fc-grade { animation-delay: -2.3s; }
  .fc-streak { animation-delay: -4.6s; }
  @keyframes bob { 50% { transform: translateY(-10px); } }
}

/* pillars */
.pillars { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -40px; }
.pillars article { padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(2, 71, 77, .08); }
.p-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--lime); }
.p-icon svg { width: 26px; height: 26px; }
.pillars h2 { margin-top: 18px; font-size: 20px; }
.pillars p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* sections */
.section-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow { color: var(--teal-2); font: 700 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-lime { color: var(--lime); }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

.spaces { padding: 100px 0 40px; }
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.space { position: relative; padding: 28px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.space::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.space h3 { font-size: 21px; font-weight: 800; color: var(--teal); }
.space > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; min-height: 48px; }
.space ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.space li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.space li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in oklab, var(--c) 22%, white); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--c); }
.space-students { --c: #1fa597; }
.space-teachers { --c: #02474d; }
.space-families { --c: #b8cc00; }
.space-admin { --c: #0f2426; }

.how { padding: 70px 0 100px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--r); border: 1px dashed rgba(2, 71, 77, .25); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--teal); font: 800 18px/1 var(--font); }
.steps h3 { margin-top: 16px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.assistant { padding: 90px 0; background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; }
.assistant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.assistant h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.assistant p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 17px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--teal); font: 800 12px/1 var(--font); }
.chat { display: grid; gap: 12px; padding: 26px; border-radius: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.bubble { max-width: 82%; padding: 13px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble-me { justify-self: end; background: var(--lime); color: var(--teal); border-bottom-right-radius: 6px; font-weight: 600; }
.bubble-ai { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; }

.cta { padding: 90px 0; }
.cta-card { display: flex; align-items: center; gap: 28px; padding: 36px 40px; border-radius: 30px; background: var(--teal); color: #fff; box-shadow: 0 30px 70px rgba(2, 71, 77, .25); }
.cta-card img { width: 96px; height: 96px; flex: none; }
.cta-card div { flex: 1; }
.cta-card h2 { font-size: 30px; font-weight: 800; color: var(--lime); }
.cta-card p { margin-top: 6px; color: rgba(255, 255, 255, .8); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.footer-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); opacity: .5; }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin-inline: auto; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .assistant-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .lockup strong { font-size: 14px; }
  .lockup small { font-size: 9.5px; }
  .hero { padding: 44px 0 100px; }
  .lead { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { display: flex; align-items: baseline; gap: 12px; }
  .hero-facts span { margin-top: 0; }
  .hero-visual { min-height: 340px; }
  .fc-task { left: 0; top: 10px; }
  .fc-grade { right: 0; top: auto; bottom: 0; min-width: 150px; }
  .fc-streak { display: none; }
  .pillars, .steps, .space-grid { grid-template-columns: 1fr; }
  .space > p { min-height: 0; }
  .spaces { padding-top: 70px; }
  .cta-card { flex-direction: column; text-align: center; padding: 32px 24px; }
}
