/* EduGo landing page. Colours and type follow brand/identity/BRAND.md */
@font-face { font-family: 'Baloo 2'; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/baloo2.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url(/assets/fonts/nunito.woff2) format('woff2'); }

:root {
  --paper: #f5ead6; --paper-2: #efe0c4; --card: #fffaf0;
  --ink: #2b1a10; --ink-2: #6b5442; --ink-rgb: 43 26 16;
  --nile: #1f6fa6; --nile-d: #134c74; --river: #3d9be0;
  --sun: #f0893a; --sun-d: #c2601b; --gold: #f4c542;
  --turq: #22a99a; --turq-d: #147a6f; --night: #17110c;
  --r: 20px;
  --shadow: 0 2px 0 rgb(var(--ink-rgb) / .12), 0 18px 40px -22px rgb(var(--ink-rgb) / .45);
  --frieze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14'%3E%3Cpath d='M0 14 9 0l9 14z' fill='%23f0893a'/%3E%3Cpath d='M18 0h18L27 14z' fill='%2322a99a'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Nunito, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nile); }
h1, h2, h3 { font-family: 'Baloo 2', Nunito, sans-serif; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--nile); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { --c: var(--sun); --cd: var(--sun-d); display: inline-flex; align-items: center; justify-content: center;
  font: 800 17px/1 Nunito, sans-serif; color: #fff; background: var(--c); text-decoration: none;
  padding: 16px 26px; border-radius: 14px; box-shadow: 0 4px 0 var(--cd); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--cd); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cd); }
.btn.ghost { --c: var(--card); --cd: #d8c6a6; color: var(--ink); }
.btn.sm { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.btn.big { padding: 20px 36px; font-size: 19px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(245 234 214 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(var(--ink-rgb) / .08); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo img { height: 44px; width: auto; }
nav { display: flex; align-items: center; gap: 26px; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
nav a:not(.btn):hover { color: var(--sun-d); }

.eyebrow { font-weight: 900; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-d); margin-bottom: 12px; }
.sub, .lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; }

/* hero */
.hero { position: relative; padding: 64px 0 0; background:
  radial-gradient(900px 500px at 85% 10%, #fff6e3 0, transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgb(61 155 224 / .12) 0, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.hl { color: var(--nile); white-space: nowrap; text-decoration: underline var(--gold) .14em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { margin: 0; position: relative; }
.hero-art img { border-radius: 28px; box-shadow: var(--shadow); border: 8px solid var(--card); transform: rotate(1.2deg); }
.hero-art figcaption { position: absolute; left: -18px; bottom: -22px; background: var(--card); padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); max-width: 300px; transform: rotate(-1.5deg); }
.hero-art figcaption b { display: block; color: var(--ink); font-size: 15px; }
.frieze { height: 14px; background: var(--frieze) repeat-x; background-size: 36px 14px; }
.frieze.small { height: 10px; background-size: 26px 10px; }

.now { background: var(--nile); color: #fff; }
.now-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; font-size: 16px; }
.pill { background: var(--gold); color: var(--ink); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }

/* sections */
.section { padding: 96px 0; }
.cards { display: grid; gap: 24px; margin-top: 44px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.sun { background: var(--sun); } .ic.nile { background: var(--nile); } .ic.turq { background: var(--turq); }

.story { background: var(--paper-2); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story-grid > div > p { color: var(--ink-2); font-size: 18px; }
.cast { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.cast li { display: flex; align-items: center; gap: 14px; }
.cast img { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--card); box-shadow: var(--shadow); }
.cast b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 19px; line-height: 1.1; }
.cast span { color: var(--ink-2); font-size: 15px; }
.filmstrip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.filmstrip figure { margin: 0; position: relative; }
.filmstrip figure:first-child { grid-column: 1 / -1; }
.filmstrip img { border-radius: 16px; box-shadow: var(--shadow); }
.filmstrip figcaption { position: absolute; left: 12px; bottom: 12px; background: rgb(23 17 12 / .72); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; }

.flow { background: var(--night); color: #f3e7d3; }
.flow .eyebrow { color: var(--gold); }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: #261d15; border-radius: var(--r); padding: 26px 24px 24px; color: #c4ae94; position: relative; border-top: 4px solid var(--c, var(--sun)); }
.steps li:nth-child(3n+2) { --c: var(--river); } .steps li:nth-child(3n) { --c: var(--turq); }
.steps li::before { content: counter(s); font: 800 40px/1 'Baloo 2', sans-serif; color: var(--c, var(--sun)); display: block; margin-bottom: 8px; }
.steps b { display: block; font-family: 'Baloo 2', sans-serif; color: #f3e7d3; font-size: 21px; margin-bottom: 4px; }

.lesson { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lesson img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.lbody { padding: 22px 24px 26px; }
.num { font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--nile); }
.lbody h3 { margin-top: 4px; }
.lesson .topics { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--turq-d); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border-radius: 28px; padding: 44px; box-shadow: var(--shadow); }
.panel.dark { background: var(--nile); color: #fff; }
.panel.dark .eyebrow { color: var(--gold); }
.panel h2 { font-size: clamp(26px, 2.8vw, 36px); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--turq)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.panel.dark .ticks li::before { background-color: var(--sun); }

.cta { padding-top: 40px; }
.cta-box { background: var(--card); border-radius: 32px; box-shadow: var(--shadow); text-align: center; padding: 64px 32px; display: flex; flex-direction: column; align-items: center;
  background-image: radial-gradient(600px 260px at 50% 0, #fff1d6 0, transparent 70%); }
.cta-box img { margin-bottom: 20px; }
.cta-box h2 { max-width: none; }
.cta-box > p { color: var(--ink-2); font-size: 19px; max-width: 56ch; margin-bottom: 30px; }
.cta-box .mail { font-size: 16px; margin: 18px 0 0; }

.foot { background: var(--night); color: #c4ae94; font-size: 15px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 0; flex-wrap: wrap; }
.foot-row p { margin: 0; }
.foot a { color: #f4c542; }

@media (max-width: 960px) {
  .hero-grid, .story-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .cards.three, .steps { grid-template-columns: 1fr 1fr; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding-top: 36px; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .panel { padding: 30px 24px; }
  .logo img { height: 36px; }
  .hero-art figcaption { position: static; transform: none; margin-top: 14px; max-width: none; }
  .hero-art img { transform: none; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
