/* LingoPaso website. Colours come from the app's theme (ui/theme/Color.kt) and the logo. */
:root {
  --teal: #17717b;
  --teal-dark: #0f5760;
  --orange: #f26a21;
  --ink: #17354b;
  --ink-soft: #4b6478;
  --cream: #fffdf5;
  --white: #ffffff;
  --line: #e9e4d4;
  --yellow: #ffd84d;
  --green: #dff5d6;
  --green-a: #2f8f3b;
  --pink: #ffdfec;
  --pink-a: #c4366a;
  --purple: #e8ddff;
  --purple-a: #6a41cc;
  --blue: #dceeff;
  --blue-a: #2466b8;
  --mint: #e6f3f0;
  --radius: 24px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 20; }

/* Header */
.site-header { background: var(--white); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; }
.nav a:hover { color: var(--teal); }
.nav .btn { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 900; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 999px; background: var(--teal); color: var(--white);
  box-shadow: 0 5px 0 var(--teal-dark); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--teal-dark); }
.btn.small { padding: 9px 18px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--teal-dark); }
.btn.alt { background: var(--white); color: var(--teal); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 900; padding: 6px 16px; border-radius: 999px; font-size: 0.95rem; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 16px; }
.hero-art { position: relative; min-height: 380px; }
.hero-art .blob { position: absolute; inset: 6% 2% 4% 6%; background: var(--mint); border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; }
.hero-art img { position: absolute; bottom: 0; }
.hero-art .fox { left: 2%; width: 50%; }
.hero-art .ana { right: 2%; width: 46%; }

/* Sections */
section { padding: 64px 0; }
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 auto 36px; font-size: 1.15rem; }
.band { background: var(--white); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.steps li { background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 900; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { font-size: 0.92rem; color: var(--ink-soft); }

.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.level { border-radius: var(--radius); padding: 22px 20px 24px; text-align: center; }
.level img { height: 150px; width: auto; margin: 0 auto 12px; }
.level .grade { font-weight: 900; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.level p { margin: 0; font-size: 1rem; }
.level.early { background: var(--green); } .level.early .grade { color: var(--green-a); }
.level.little { background: var(--pink); } .level.little .grade { color: var(--pink-a); }
.level.growing { background: var(--purple); } .level.growing .grade { color: var(--purple-a); }
.level.indep { background: var(--blue); } .level.indep .grade { color: var(--blue-a); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature .icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.sing .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.video { position: relative; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.parents .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 900; font-size: 0.85rem; display: grid; place-items: center; }
.parents-art { background: var(--yellow); border-radius: var(--radius); padding: 28px; display: flex; justify-content: center; gap: 10px; align-items: flex-end; }
.parents-art img { width: 44%; }

.join { background: var(--teal); color: var(--white); text-align: center; }
.join h2 { color: var(--white); }
.join p { color: #d9eef0; max-width: 34em; margin: 0 auto 26px; }
.join .btn { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 #c9a400; }
.join .btn.alt { background: transparent; color: var(--white); border-color: #6fb1b8; box-shadow: none; }
.join .cta { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6de; padding: 40px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 800; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Text pages (privacy, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc .updated { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc .box { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }

@media (max-width: 900px) {
  .hero .wrap, .sing .wrap, .parents .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; max-width: 460px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 48px 0; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .level img { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
