/* Steady Learners website: the app's look (Nunito, the brand indigo and orange, soft cards). */
:root {
  --indigo: #4a55a2;
  --indigo-soft: #e8eaf6;
  --orange: #ff9f1c;
  --gold: #f2b33d;
  --ink: #2b2d42;
  --muted: #5b6275;
  --bg: #f9f9fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #2d936c;
  --error: #c0392b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); }

.hero { max-width: 640px; margin: 0 auto; padding: 56px 20px 32px; text-align: center; }
.app-icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 12px 32px rgba(74, 85, 162, 0.28); }
h1 { font-size: 44px; font-weight: 800; color: var(--indigo); margin: 22px 0 0; letter-spacing: -0.5px; }
h1 .accent { color: var(--orange); }
.tagline { font-size: 20px; font-weight: 700; color: var(--muted); margin: 8px 0 28px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 auto 28px; max-width: 560px; }

.signup { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px; box-shadow: 0 6px 20px rgba(43, 45, 66, 0.06); }
.signup h2 { margin: 0; font-size: 26px; font-weight: 800; }
.signup p { margin: 6px 0 16px; color: var(--muted); }
form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
input[type='email'] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink);
}
input[type='email']:focus { outline: none; border-color: var(--indigo); }
button {
  flex: 0 0 auto; font: inherit; font-size: 17px; font-weight: 800; padding: 14px 24px;
  border: 0; border-radius: 14px; background: var(--indigo); color: #fff; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: default; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.message { min-height: 24px; margin: 12px 0 0 !important; font-weight: 700; }
.message.ok { color: var(--success); }
.message.error { color: var(--error); }
.signup.done form { display: none; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.store {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #111; color: #fff; opacity: 0.85; cursor: default; user-select: none;
}
.store span { display: flex; flex-direction: column; text-align: left; font-size: 19px; font-weight: 800; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.85; }

/* The intro slides: swipe (or the arrows), one at a time. */
.tour { max-width: 640px; margin: 0 auto; padding: 8px 0 16px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 8px 20px; text-align: center; }
.phone {
  position: relative; width: 260px; aspect-ratio: 9 / 19.5; margin: 0 auto 20px; border-radius: 34px;
  border: 8px solid var(--ink); background: var(--indigo-soft); overflow: hidden;
  box-shadow: 0 14px 34px rgba(43, 45, 66, 0.18);
}
.phone .art { position: absolute; inset: 0; margin: auto; width: 55%; }
.phone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide h3 { margin: 0; font-size: 26px; font-weight: 800; color: var(--indigo); }
.slide p { margin: 6px auto 0; max-width: 420px; font-size: 17px; color: var(--muted); }
.tour-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.arrow {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1;
  background: var(--card); color: var(--indigo); border: 2px solid var(--border);
}
.arrow:disabled { opacity: 0.35; }
.dots { display: flex; gap: 8px; }
.dots button {
  flex: 0 0 auto; width: 8px; height: 8px; padding: 0; border-radius: 4px; background: var(--border);
  transition: width 0.2s, background 0.2s;
}
.dots button[aria-current='true'] { width: 24px; background: var(--indigo); }

/* Social pages with the lesson videos. */
.follow { max-width: 640px; margin: 0 auto; padding: 32px 20px 8px; text-align: center; }
.follow h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--indigo); }
.follow p { margin: 6px 0 18px; color: var(--muted); }
.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  font-weight: 800; color: #fff; text-decoration: none;
}
.social:hover { filter: brightness(1.08); }
.social.youtube { background: #ff0000; }
.social.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.social.tiktok { background: #111; }

footer { text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* Policy pages. */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
.doc header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doc header img { width: 48px; height: 48px; border-radius: 12px; }
.doc header a { text-decoration: none; font-size: 22px; font-weight: 800; color: var(--indigo); }
.doc h1 { font-size: 34px; text-align: left; margin: 18px 0 4px; }
.doc h2 { font-size: 21px; margin: 28px 0 6px; color: var(--ink); }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .hero { padding-top: 40px; }
  button { flex: 1 1 100%; }
}

/* The join page (join.html): a friend's code, big, tap to copy. */
.invite { margin-bottom: 8px; }
.code {
  display: inline-block; margin: 4px 0 0; padding: 14px 26px; font: 800 30px/1 Nunito, sans-serif; letter-spacing: 2px;
  color: var(--indigo); background: var(--indigo-soft); border: 2px dashed var(--indigo); border-radius: 16px; cursor: pointer;
}
a.store { text-decoration: none; color: inherit; }
a.store[href] { cursor: pointer; }
.open-app { margin: 4px 0 20px; font-weight: 700; }
