/* LearnBuddy – website. Same "workbook sticker" look as the app:
   cream squared paper, chunky ink outlines, hard offset shadows. No external resources. */

@font-face {
  font-family: "Baloo 2";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  --paper: #fbf5e8;
  --grid: rgba(28, 37, 58, 0.06);
  --card: #fffdf8;
  --ink: #1c253a;
  --muted: #5b6478;
  --tomato: #e9543a;
  --tomato-soft: #fde1d8;
  --sun: #f9c846;
  --sun-soft: #fdf0c4;
  --teal: #2bb3a3;
  --teal-soft: #d4f2ee;
  --green-soft: #dcf5e1;
  --radius: 22px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
}
h3 {
  font-size: 1.45rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--card);
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  z-index: 10;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  text-decoration: none;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.logo b {
  color: var(--tomato);
  font-weight: 800;
}
.nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
}
.nav a {
  text-decoration: none;
}
.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--sun);
}

/* ---------- stickers & buttons ---------- */
.sticker {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  background: var(--card);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-primary {
  background: var(--tomato);
  color: #fff;
}
.btn-sun {
  background: var(--sun);
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun-soft);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 70px;
}
.hero h1 .hl {
  color: var(--tomato);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--sun);
  z-index: -1;
  border-radius: 6px;
}
.hero .lead {
  font-size: 1.3rem;
  max-width: 34ch;
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 18px;
}
.hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.phones {
  position: relative;
  min-height: 560px;
}
.phone {
  position: absolute;
  width: 250px;
  border: 4px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper);
}
.phone img {
  width: 100%;
  height: auto;
}
.phone.one {
  left: 0;
  top: 30px;
  transform: rotate(-5deg);
}
.phone.two {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}
.burst {
  position: absolute;
  right: 6px;
  bottom: 18px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

/* ---------- sections ---------- */
section {
  padding: 70px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 26px;
}
.card .emoji {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-size: 2rem;
  margin-bottom: 14px;
}
.tone-tomato {
  background: var(--tomato-soft);
}
.tone-sun {
  background: var(--sun-soft);
}
.tone-teal {
  background: var(--teal-soft);
}
.tone-green {
  background: var(--green-soft);
}
.card p:last-child {
  margin-bottom: 0;
}

/* subjects */
.subjects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.subject {
  padding: 22px 18px;
  text-align: center;
}
.subject .big {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 10px;
}
.subject h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.subject p {
  font-size: 0.95rem;
  margin: 0;
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}
.shots figure {
  margin: 0;
}
.shots .frame {
  border: 4px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.shots .frame img {
  width: 100%;
  aspect-ratio: 600 / 1080;
  object-fit: cover;
  object-position: top;
}
.shots figcaption {
  margin-top: 12px;
  font-weight: 700;
  text-align: center;
}

/* privacy */
.privacy {
  background: var(--ink);
  color: var(--paper);
  border-radius: 34px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 8px 8px 0 var(--tomato);
}
.privacy h2 {
  color: var(--paper);
}
.privacy .lead {
  font-size: 1.25rem;
}
.privacy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.privacy li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
}
.privacy li span {
  font-size: 1.5rem;
  line-height: 1.2;
}
.privacy a {
  color: var(--sun);
  font-weight: 800;
}

/* steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}

/* faq */
.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.faq details {
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 800;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 12px 0 0;
}

/* cta band */
.cta-band {
  text-align: center;
  padding: 46px 30px;
  background: var(--sun);
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto 22px;
}

/* footer */
.site-footer {
  padding: 40px 0 50px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 700;
}

/* ---------- text pages (privacy, help) ---------- */
.doc {
  max-width: 780px;
  margin: 10px auto 60px;
  padding: 44px;
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.doc h2 {
  font-size: 1.7rem;
  margin-top: 1.6em;
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin-bottom: 0.4em;
}
.doc .summary {
  background: var(--green-soft);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 20px 0 10px;
}
.doc .summary p:last-child {
  margin: 0;
}
.updated {
  font-size: 0.9rem;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .phones {
    min-height: 520px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .subjects {
    grid-template-columns: repeat(3, 1fr);
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy {
    grid-template-columns: 1fr;
    padding: 36px 26px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  .nav {
    display: none;
  }
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .subjects {
    grid-template-columns: repeat(2, 1fr);
  }
  .phones {
    min-height: 440px;
  }
  .phone {
    width: 200px;
    border-radius: 30px;
  }
  .doc {
    padding: 28px 22px;
  }
  section {
    padding: 50px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ---------- language picker (no JavaScript) ---------- */
.site-header .nav {
  margin-left: auto;
}
.langs {
  position: relative;
}
.langs summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.langs summary::-webkit-details-marker {
  display: none;
}
.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.langs a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.langs a:hover,
.langs a:focus-visible {
  background: var(--sun-soft);
}
.langs a[aria-current] {
  background: var(--sun);
}
.grid-3.more {
  margin-top: 24px;
}
/* Long German and Nordic compound words must not push the page sideways on phones. */
h1,
h2,
.doc {
  hyphens: auto;
  overflow-wrap: break-word;
}
