/* Lernspeak website. Same look as the app: sky blue, white rounded cards, Nunito. */
:root {
  --sky-1: #8ccbfa;
  --sky-2: #bfe3fc;
  --sky-3: #eaf6ff;
  --ink: #111318;
  --muted: #5b6574;
  --line: #e6ebf1;
  --card: #ffffff;
  --blue: #1a8cff;
  --blue-deep: #1468e8;
  --red: #ff4d5e;
  --green: #22a83f;
  --yellow: #ffc61a;
  --purple: #8b5cf6;
  --radius: 28px;
  --shadow: 0 14px 34px rgba(20, 80, 160, 0.13);
  --shadow-soft: 0 6px 18px rgba(20, 80, 160, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky-3);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(234, 246, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(20, 80, 160, 0.06);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; gap: 22px; margin-left: 14px; }
.nav-links a { text-decoration: none; font-weight: 800; color: var(--muted); font-size: 15.5px; }
.nav-links a:hover { color: var(--ink); }
.nav .spacer { flex: 1; }
.lang { display: flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow-soft); }
.lang a { text-decoration: none; font-weight: 900; font-size: 13px; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang a.on { background: var(--ink); color: #fff; }

/* ---------- Buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-weight: 700; font-size: 12px; opacity: .85; }
.store b { font-weight: 900; font-size: 22px; letter-spacing: -0.2px; }
.store.small { padding: 8px 14px 8px 12px; border-radius: 12px; box-shadow: none; }
.store.small svg { width: 20px; height: 20px; }
.store.small b { font-size: 15px; }
.store.small small { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(255, 255, 255, .6), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  padding: 56px 0 40px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
h1 {
  font-weight: 900; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02;
  letter-spacing: -2px; margin: 0 0 20px;
}
.hl { display: inline-block; color: #fff; padding: 0 .18em .04em; border-radius: .22em; transform: rotate(-1.5deg); }
.hl.blue { background: var(--blue); box-shadow: 0 10px 24px rgba(26, 140, 255, .35); }
.hl.yellow { background: var(--yellow); box-shadow: 0 10px 24px rgba(240, 170, 0, .35); transform: rotate(1.5deg); }
.lead { font-size: clamp(18px, 2vw, 21px); color: #2a3a52; font-weight: 700; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-weight: 800; color: #3a5a80; font-size: 14.5px; }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 800; color: #1d4f8f; font-size: 15px; }
.trust .shield { width: 34px; height: 34px; flex: none; }

.hero-art { position: relative; }
.friends {
  border-radius: 34px; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff; background: #fff;
}
.bubble {
  position: absolute; background: #fff; border-radius: 22px; padding: 12px 16px;
  box-shadow: var(--shadow); font-weight: 800; font-size: 16px; max-width: 290px;
  animation: float 6s ease-in-out infinite;
}
.bubble .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.bubble .who img { width: 22px; height: 22px; border-radius: 50%; }
.bubble.me { background: var(--blue); color: #fff; }
.bubble .tr { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; display: flex; gap: 6px; }
.bubble .fix { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.35); font-weight: 800; font-size: 14px; display: flex; gap: 6px; }
.b1 { top: -18px; left: -26px; animation-delay: -1s; }
.b2 { top: 34%; right: -22px; animation-delay: -3s; }
.b3 { bottom: -22px; left: 8%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Flags ---------- */
.hero .wrap.flagrow { display: block; }
.flags { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 20px; padding: 34px 0 10px; }
.flag { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: #2a3a52; }
.flag img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(20, 80, 160, .15); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.eyebrow { font-weight: 900; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px; }
h2 { font-weight: 900; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -1.2px; margin: 0 0 16px; }
.sub { font-size: 19px; color: var(--muted); font-weight: 700; max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 19px; margin-bottom: 16px; }
.step h3, .feature h3 { font-weight: 900; font-size: 21px; margin: 0 0 6px; letter-spacing: -0.3px; }
.step p, .feature p { margin: 0; color: var(--muted); font-weight: 700; font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 28px; height: 28px; }
.t-blue { background: linear-gradient(135deg, #e6f0ff, #cfe2ff); color: var(--blue-deep); }
.t-green { background: linear-gradient(135deg, #e5f8e9, #cdefd5); color: var(--green); }
.t-orange { background: linear-gradient(135deg, #fff1e0, #ffe0c2); color: #f07a12; }
.t-purple { background: linear-gradient(135deg, #f1ebff, #e2d6ff); color: var(--purple); }
.t-red { background: linear-gradient(135deg, #ffe8ea, #ffd3d8); color: #e5384a; }
.t-yellow { background: linear-gradient(135deg, #fff7da, #ffeba8); color: #c48a00; }

/* Safety */
.safety {
  background: linear-gradient(160deg, #1468e8 0%, #1a8cff 60%, #4aa8ff 100%);
  color: #fff; border-radius: 40px; padding: 60px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  box-shadow: 0 24px 50px rgba(20, 104, 232, .3);
}
.safety .eyebrow { color: #cfe6ff; }
.safety .sub { color: #e2efff; }
.safe-list { display: grid; gap: 14px; }
.safe-item { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 16px 18px; }
.safe-item .ic { margin: 0; width: 48px; height: 48px; border-radius: 15px; background: #fff; flex: none; }
.safe-item .ic svg { width: 24px; height: 24px; }
.safe-item b { display: block; font-weight: 900; font-size: 17.5px; }
.safe-item span { font-weight: 700; color: #e2efff; font-size: 15px; }

/* Gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 20px 26px; margin: 0 -20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 250px; flex: none; border-radius: 30px; box-shadow: var(--shadow); scroll-snap-align: center; background: #fff; }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* Pro */
.pro { background: #fff; border-radius: 40px; padding: 52px; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.crown { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 14px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 17px; background: var(--sky-3); padding: 14px 16px; border-radius: 18px; }
.perks svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
details { background: #fff; border-radius: 22px; box-shadow: var(--shadow-soft); padding: 4px 22px; }
summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 18px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue-deep); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); font-weight: 700; font-size: 16.5px; }

/* Final CTA */
.final { text-align: center; position: relative; overflow: hidden; border-radius: 40px; padding: 70px 24px; background: linear-gradient(180deg, #ffffff, #f1f8ff); box-shadow: var(--shadow-soft); }
.final img.app { width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.final .store { margin-top: 26px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 12px; height: 22px; border-radius: 3px; opacity: .9; }

/* Footer */
footer { padding: 44px 0 60px; color: var(--muted); font-weight: 700; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer a { text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--ink); }
footer .brand { font-size: 18px; color: var(--ink); }
footer .brand img { width: 30px; height: 30px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bubble { animation: none; } }

/* Legal pages */
.legal { max-width: 820px; margin: 40px auto 80px; background: #fff; border-radius: 32px; padding: 44px; box-shadow: var(--shadow-soft); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -1px; margin-bottom: 14px; }
.legal h2 { font-size: 23px; letter-spacing: -0.3px; margin: 34px 0 8px; }
.legal p, .legal li { color: #2f3846; font-size: 16.5px; }
.legal .meta { background: var(--sky-3); border-radius: 18px; padding: 14px 18px; font-size: 15px; color: var(--muted); }
.legal .note { background: #fff7da; border-radius: 18px; padding: 16px 18px; margin: 18px 0; }
.legal a { color: var(--blue-deep); }
.legal .footer { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero .wrap, .safety, .pro { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .hero-art { margin: 20px 10px 30px; }
  .steps, .features { grid-template-columns: 1fr; }
  .safety, .pro { padding: 34px 24px; border-radius: 32px; }
  section { padding: 60px 0; }
  .b1 { left: -8px; } .b2 { right: -8px; }
  .bubble { font-size: 14.5px; max-width: 230px; }
  .legal { padding: 28px 22px; margin: 20px 16px 60px; }
}
@media (max-width: 520px) {
  .nav .store.small { display: none; }
  .lang a { padding: 5px 8px; }
  h1 { letter-spacing: -1.2px; }
}
