/* Same look as the app: src/theme.ts (colours), EB Garamond ExtraBold titles, Rubik text. */

@font-face { font-family: 'Garamond'; src: url('/fonts/garamond-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --background: #E6E7EA;
  --surface: #F5F5F7;
  --ink: #17131F;
  --muted: #5C5966;
  --line: #D2D2DA;
  --primary: #2B1458;
  --on-primary: #FFFFFF;
  --danger: #B3124E;
  --ok: #0A5236;
  --radius-control: 8px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font: 400 17px/1.5 'Rubik', system-ui, sans-serif;
  overflow-x: hidden;
}

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

.top, .foot, main { position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.brand { font: 800 26px/1 'Garamond', Georgia, serif; color: var(--ink); text-decoration: none; }
.lang { font-weight: 600; font-size: 15px; text-decoration: none; }
.lang:hover, .foot a:hover { text-decoration: underline; }

main { flex: 1; display: flex; align-items: center; }

.hero { width: 100%; min-width: 0; max-width: 620px; padding: 64px 0; }
.eyebrow { margin: 0 0 12px; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font: 800 clamp(44px, 8vw, 80px)/1.02 'Garamond', Georgia, serif; letter-spacing: -0.01em; }
.lead { margin: 24px 0 32px; font-size: 19px; color: var(--muted); max-width: 520px; }

.signup { max-width: 520px; }
.row { display: flex; gap: 8px; padding: 6px; background: var(--surface); border-radius: calc(var(--radius-control) + 4px); box-shadow: 0 1px 0 var(--line); }
.row input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 12px;
  font: inherit; color: var(--ink); border-radius: var(--radius-control);
}
.row input:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.row button {
  border: 0; border-radius: var(--radius-control); padding: 12px 20px; cursor: pointer;
  background: var(--primary); color: var(--on-primary); font: 600 16px 'Rubik', system-ui, sans-serif; white-space: nowrap;
}
.row button:hover { filter: brightness(1.15); }
.row button:disabled { opacity: 0.6; cursor: wait; }
.row button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); font-size: 19px; }
.consent { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.text { width: 100%; min-width: 0; max-width: 640px; padding: 48px 0; }
.text h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 24px; }
.text h2 { font-size: 24px; margin: 28px 0 8px; }
.text ul { padding-left: 1.2em; margin: 0 0 16px; }
.text li { margin-bottom: 8px; }

.foot { display: flex; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The orbs: the app's lesson colours, drifting slowly behind the text. */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; animation: drift 18s ease-in-out infinite alternate; }
.orb svg { width: 100%; height: 100%; display: block; }
.orb-1 { width: 380px; height: 380px; right: -60px; top: 8%; }
.orb-2 { width: 300px; height: 300px; right: 22%; top: 46%; animation-duration: 22s; animation-delay: -6s; }
.orb-3 { width: 180px; height: 180px; right: 8%; bottom: 4%; animation-duration: 16s; animation-delay: -3s; }
.orb-4 { width: 140px; height: 140px; right: 36%; top: 10%; animation-duration: 20s; animation-delay: -9s; }
.orb-5 { width: 110px; height: 110px; left: -30px; bottom: 12%; animation-duration: 24s; animation-delay: -12s; }

/* Seth and Pleunie: round photos with a soft halo, drifting like the orbs. */
.teachers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.teacher { position: absolute; margin: 0; text-align: center; animation: float 14s ease-in-out infinite alternate; }
.teacher img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.35), 0 18px 40px rgba(43, 20, 88, 0.18);
}
.teacher figcaption { margin-top: 10px; font: 600 14px 'Rubik', system-ui, sans-serif; color: var(--muted); }
.teacher-seth { width: 168px; right: 14%; top: 22%; }
.teacher-pleunie { width: 148px; right: 4%; top: 56%; animation-duration: 17s; animation-delay: -7s; }

@keyframes float {
  from { transform: translate(0, 0) rotate(-1deg); }
  to { transform: translate(10px, -16px) rotate(1.5deg); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 22px) scale(1.06); }
}

@media (max-width: 720px) {
  .orb-1 { width: 240px; height: 240px; right: -80px; top: 4%; opacity: 0.85; }
  .orb-2 { width: 180px; height: 180px; right: -40px; top: auto; bottom: 6%; }
  .orb-3, .orb-4 { display: none; }
  .orb-5 { width: 90px; height: 90px; }
  .teachers { position: absolute; height: 210px; inset: 64px 0 auto 0; }
  .teacher-seth { width: 104px; right: auto; left: 24px; top: 20px; }
  .teacher-pleunie { width: 92px; right: auto; left: 150px; top: 56px; }
  .teacher figcaption { font-size: 12px; margin-top: 6px; }
  .hero { padding: 236px 0 48px; }
  .row { flex-direction: column; }
  .row button { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .teacher { animation: none; }
}
