/* Light only (owner, 2026-10-12): the site does not follow a visitor's dark setting. The brand's deep cyan, its pale
   tint, the ink and the hero's backdrop are the app's light theme (src/theme.ts in learner-smart-app, colours chosen
   from the logo on 2026-10-15), copied here because the two are published apart. The direction is
   Duolingo's site: the characters carry the page, the words are few, and buttons are chunky. Sections run the full
   width of the window, every other one tinted, so that the page is never a white sheet. */
:root {
  --ink: #14171A;
  --muted: #5D6672;
  --canvas: #FFFFFF;
  --line: #E2E6EA;
  --primary: #0B7285;
  /* The ledge under a main button: the cyan a shade darker. This site's own; the app has no such ledge. */
  --primary-deep: #07505E;
  --primary-soft: #DDF3F7;
  --on-primary: #FFFFFF;
  /* For each part of the exam: the colour behind its character, a paler one behind its section, and its ink. */
  --reading: #FFE3A8;
  --reading-tint: #FFF8E8;
  --reading-ink: #A16207;
  --listening: #F0D9BE;
  --listening-ink: #8A5A30;
  --writing: #D5D9E8;
  --writing-tint: #F3F4F9;
  --writing-ink: #4A5270;
  --speaking: #C9E6FA;
  --speaking-ink: #1F6FA8;
  --data: #FFEE99;
  --data-tint: #FFFBE3;
  --data-ink: #8A6D00;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }

.band { width: 100%; }
/* The app's light backdrop: a faint blue from the top right and a faint cyan from the bottom left. */
.hero-band { background: radial-gradient(circle at 100% 0%, #DCE9F8 0%, rgba(220, 233, 248, 0) 46%), radial-gradient(circle at 0% 100%, #D3F0F5 0%, rgba(211, 240, 245, 0) 50%), #F5F7F6; }
.inner { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.centre { text-align: center; }

/* Buttons sit on a darker edge and sink onto it when pressed. */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.05s, box-shadow 0.05s;
}
.button.main { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 0 var(--primary-deep); }
.button.quiet { background: #FFFFFF; color: var(--primary); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.button.light { background: #FFFFFF; color: var(--primary); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.button.small { padding: 8px 18px; border-radius: 12px; font-size: 14px; }
.button:hover { filter: brightness(1.04); }
.button:active { transform: translateY(4px); box-shadow: none; }

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.home { display: flex; align-items: center; }
.brand { display: block; height: 40px; width: auto; }

/* Small rounded labels that float beside the characters. */
.chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.chip b { color: var(--primary); font-size: 18px; font-weight: 900; }

.hero {
  /* Fills the first screen, with the exams showing below it, and no more than that on a tall screen. */
  min-height: min(calc(100vh - 68px - 96px), 660px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
/* The four leads gathered in a square on clean white, each tilted a little, with two labels in front. */
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 320px; justify-self: center; }
.hero-art img { position: relative; width: 100%; }
.hero-art .c1 { transform: rotate(-6deg); }
.hero-art .c2 { transform: rotate(5deg) translateY(18px); }
.hero-art .c3 { transform: rotate(4deg); }
.hero-art .c4 { transform: rotate(-5deg) translateY(18px); }
.chip-band { left: -14%; bottom: 4%; transform: rotate(-4deg); }
.chip-streak { right: -16%; top: -2%; transform: rotate(5deg); }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.06; font-weight: 900; letter-spacing: -0.02em; }
.lead { margin-top: 16px; color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
.actions { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; max-width: 340px; }

.exams {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.exam { padding: 8px 18px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 15px; font-weight: 800; }
.exam.soon { background: #F3F5F6; color: var(--muted); }

h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-bottom: 80px; }
.band > .inner > h2.centre { padding-top: 80px; }
.step { position: relative; padding: 28px 24px 32px; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line); text-align: center; background: #FFFFFF; }
.step img { width: 112px; margin: 0 auto 12px; }
.number { position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 900; }
h3 { font-size: 22px; font-weight: 900; color: var(--primary); }
.step p { margin-top: 6px; color: var(--muted); font-size: 16px; font-weight: 700; }

.tint-reading { background: var(--reading-tint); }
.tint-writing { background: var(--writing-tint); }
.tint-data { background: var(--data-tint); }

.skill { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.skill.flip .stage { order: 2; }
/* A character in its circle, with three labels pinned round it. */
.stage { position: relative; width: min(340px, 78vw); aspect-ratio: 1; justify-self: center; }
.blob { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; }
.blob img { width: 72%; }
.blob-reading { background: var(--reading); }
.blob-listening { background: var(--listening); }
.blob-writing { background: var(--writing); }
.blob-speaking { background: var(--speaking); }
.blob-data { background: var(--data); }
.chip-1 { left: -8%; top: 12%; transform: rotate(-5deg); }
.chip-2 { right: -10%; top: 30%; transform: rotate(4deg); }
.chip-3 { left: 2%; bottom: 6%; transform: rotate(3deg); }
.chip-up { background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 0 var(--primary-deep); color: var(--on-primary); }
.tag { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.tag-reading { color: var(--reading-ink); }
.tag-listening { color: var(--listening-ink); }
.tag-writing { color: var(--writing-ink); }
.tag-speaking { color: var(--speaking-ink); }
.tag-data { color: var(--data-ink); }
.skill-copy h2 { margin-top: 8px; color: var(--primary); }
.skill-copy p:last-child { margin-top: 14px; color: var(--muted); font-size: 19px; font-weight: 700; max-width: 420px; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 80px; text-align: center; }
.numbers b { display: block; color: var(--primary); font-size: clamp(40px, 7vw, 64px); line-height: 1; font-weight: 900; }
.numbers span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; font-weight: 800; }

.promise { margin: 56px 0 80px; padding: 48px 24px; border-radius: 32px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.promise-art { width: 120px; flex: none; }
.promise h2 { color: var(--primary); }
.promise ul { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.promise li { padding: 10px 20px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 17px; font-weight: 800; }
/* What the learner gets, under what they never get: the same chips, filled in the brand colour. */
.promise ul.gains { margin-top: 12px; }
.promise .gains li { background: var(--primary); color: var(--on-primary); }

.closing-band { background: var(--primary); color: var(--on-primary); }
.closing { padding-top: 80px; padding-bottom: 88px; text-align: center; }
.closing-art { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; }
.closing-art img { width: min(96px, 14vw); }
.closing h2 { margin-bottom: 28px; }
.closing .button { min-width: 260px; }

.foot { padding: 40px 0; color: var(--muted); font-size: 13px; }
.foot .home { margin-bottom: 16px; }
.foot p { margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.foot a:not(.home), .consent a { color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.trademark { max-width: 720px; font-size: 12px; font-weight: 600; }

/* The question about the cookie: a card at the foot of the window until it is answered. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20, 23, 26, 0.12);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; font-size: 15px; }
.consent-actions { display: flex; gap: 10px; }
.consent button { font-family: inherit; cursor: pointer; }
.consent button.main { border: 0; }

@media (max-width: 760px) {
  .bar { height: 60px; padding: 0 16px; }
  .bar .brand { height: 34px; }
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 32px; padding-bottom: 40px; text-align: center; }
  .hero-art { max-width: 210px; }
  .actions { margin: 28px auto 0; }
  .steps { grid-template-columns: 1fr; padding-bottom: 56px; }
  .band > .inner > h2.centre { padding-top: 56px; }
  .skill { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 56px; text-align: center; }
  .skill.flip .stage { order: 0; }
  .stage { width: min(230px, 62vw); }
  .chip { font-size: 12px; padding: 6px 10px; }
  .skill-copy p:last-child { margin-left: auto; margin-right: auto; }
  .numbers { padding-top: 56px; gap: 8px; }
  .numbers span { font-size: 13px; }
  .promise { margin: 40px 0 56px; }
  .promise-art { display: none; }
  .closing { padding-top: 56px; padding-bottom: 64px; }
}

/* The privacy policy and the terms (built by scripts/build-legal.mjs): one readable column of text. */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal section { padding: 20px 0; border-top: 2px solid var(--line); scroll-margin-top: 84px; }
.legal h2 { font-size: 20px; margin-bottom: 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin: 0 0 10px; }
.legal .other { padding-top: 24px; border-top: 2px solid var(--line); }
.legal a { color: var(--primary); font-weight: 800; }
.todo { background: #FFF1C2; color: #7A5200; padding: 0 3px; border-radius: 4px; }

/* The page shown for an address that does not exist. */
.missing { max-width: 560px; margin: 0 auto; padding: 72px 24px 96px; text-align: center; }
.missing img { width: 140px; margin: 0 auto 16px; }
.missing p { color: var(--muted); margin: 12px 0 28px; }

/* Questions: each opens on a tap, with no script. */
.faq { max-width: 760px; padding-top: 0; padding-bottom: 88px; }
.faq-art { width: 96px; margin: 0 auto 12px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 4px 0 var(--line); background: #FFFFFF; margin-bottom: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 18px; font-weight: 800; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; font-weight: 900; }
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 18px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq details a { color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.band > .inner.faq > h2.centre { padding-top: 0; }
