@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka_700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito_700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito_800ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Biro's own brand (theme/tokens.ts), set out the way Duolingo sets out its page: white paper, one colour. */
  --brand: #2f5bff;
  --brand-lip: #1d3fd1;
  --brand-wash: #e8edff;
  --brand-deep: #1530a8;
  --correct: #12804a;
  --correct-wash: #ddf5e5;
  --miss: #c2410c;
  --miss-wash: #ffeadf;
  --ink: #0a0a0a;
  --heading: #3c3c3c;
  --text: #4b4b4b;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --paper: #ffffff;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --section: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 600 18px/1.55 var(--body); overflow-x: hidden; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--brand-lip); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---- section headings: Duolingo's lowercase display line, in Biro blue ---- */
.row h2, .plans h2, .faq h2, .get h2 { font: 700 clamp(36px, 4.4vw, 50px)/1.08 var(--display); color: var(--brand); letter-spacing: -0.01em; margin-bottom: 16px; }

/* ---- buttons: Duolingo's sticker buttons, with the lip the app's buttons have ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 16px; border: 2px solid transparent;
  font: 800 15px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.15s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-lip); }
.btn-primary:hover { background: #4570ff; color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-ghost:hover { background: #f7f8ff; color: var(--brand); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.btn-block { width: 100%; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-bottom: 2px solid var(--line); box-shadow: 0 6px 16px -14px rgba(20, 30, 80, 0.35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font: 700 32px/1 var(--display); letter-spacing: -0.02em; }
.logo:hover { color: var(--brand); }
.biro-mark { width: 38px; height: 38px; display: block; }
.biro-mark svg { width: 100%; height: 100%; display: block; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.plain { font: 800 14px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 12px; border-radius: 12px; }
.top nav a.plain:hover { color: var(--heading); background: #f5f5f5; }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 13px; margin-left: 8px; }

/* ---- Biro ---- */
.biro { position: relative; aspect-ratio: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.biro-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.biro-ball { fill: var(--ink); }
.biro-eyes { fill: #fff; }
.biro-shadow { fill: rgba(10, 10, 10, 0.14); }
.biro-puff { fill: #d9d9d9; }

/* ---- hero: Biro and his things on one floor ---- */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.stage { position: relative; height: 380px; }
.stage .biro { position: absolute; width: 250px; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 3; }
.prop { position: absolute; pointer-events: none; user-select: none; }
.prop-paper { width: 186px; left: -4%; bottom: 26px; transform: rotate(-9deg); z-index: 4; }
.prop-book { width: 160px; right: -4%; bottom: 22px; z-index: 4; }
.floor { position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); z-index: 0; }
.hero h1 { font: 700 clamp(42px, 5.8vw, 68px)/1.04 var(--display); color: #2b2b2b; letter-spacing: -0.01em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lede { font-size: 20px; max-width: 30ch; margin-bottom: 30px; }
.cta { display: grid; gap: 14px; max-width: 380px; }
.cta .soon { font-size: 15px; color: var(--muted); text-align: center; }

/* ---- subjects strip ---- */
.strip { border-block: 2px solid var(--line); }
.strip .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 40px; padding-block: 20px; }
.subject { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.subject img { width: 40px; height: 40px; }
.boards { width: 100%; text-align: center; font-size: 15px; color: var(--muted); }

/* ---- feature rows: one rhythm, one illustration box ---- */
.row { padding: var(--section) 0; }
.row .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.row.flip .art { order: 2; }
.row p { max-width: 42ch; }
.row .note { font-size: 16px; color: var(--muted); }
.row p + p { margin-top: 14px; }
.art { position: relative; display: grid; place-items: center; }
.art-img { width: 320px; position: relative; z-index: 2; }

/* the marking demo */
.art-marked { display: block; padding-right: 64px; }
.picker { display: flex; gap: 8px; margin-bottom: 14px; }
.picker button { flex: 1; min-height: 44px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--muted); font: 800 13px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, color 0.15s; }
.picker button:hover { color: var(--heading); }
.picker button[aria-checked="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); box-shadow: 0 3px 0 var(--brand); }
.picker button:active { transform: translateY(3px); box-shadow: none; }
.marked { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 14px 36px -20px rgba(20, 30, 80, 0.4); position: relative; z-index: 2; min-height: 452px; }
.marked .q { font: 800 18px/1.4 var(--body); color: var(--heading); }
.marked .q b { color: var(--muted); font-weight: 700; white-space: nowrap; }
.marked .ans { margin: 14px 0 16px; padding: 14px 16px; background: #f6f6f6; border-radius: 14px; font-size: 17px; line-height: 1.5; color: var(--heading); }
.marked ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.marked li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 17px; line-height: 1.4; color: var(--heading); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.marked li.in { opacity: 1; transform: none; }
.tick, .cross { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; }
.tick { background: var(--correct-wash); color: var(--correct); }
.cross { background: var(--miss-wash); color: var(--miss); }
.tick svg, .cross svg { width: 16px; height: 16px; }
.marked .score { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line); opacity: 0; transition: opacity 0.35s ease-out; }
.marked.done .score { opacity: 1; }
.marked .verdict { font-size: 15px; color: var(--text); }
.marked .num { flex: none; font: 700 28px/1 var(--display); color: var(--miss); white-space: nowrap; }
.marked .num[data-total="2"], .marked .num[data-total="1"] { color: var(--heading); }
.marked .num[data-total="3"] { color: var(--correct); }
.art-marked .biro { position: absolute; width: 132px; right: -74px; bottom: -6px; z-index: 3; }

/* a question set, as the app shows one */
.set { position: relative; width: min(440px, 100%); background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; box-shadow: 0 14px 36px -20px rgba(20, 30, 80, 0.4); }
.set-prop { position: absolute; width: 132px; right: -36px; top: -58px; transform: rotate(10deg); }
.set-label { font: 800 14px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.set-title { font: 700 34px/1.1 var(--display); color: var(--heading); margin: 6px 0 20px; }
.set-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.set-dots li { height: 14px; border-radius: 7px; background: #ececec; }
.set-dots li.ok { background: #3cbf73; }
.set-dots li.no { background: #f08a4b; }
.set-dots li.now { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.set-q { margin-top: 14px; font-size: 16px; color: var(--muted); }
.set-more { display: inline-flex; margin-top: 18px; padding: 10px 16px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-lip); font: 800 14px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }

/* the camera: Biro sets it off */
.art-snap .snap { position: relative; }
.flash { position: absolute; inset: 8% 10% 30% 10%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0) 70%); opacity: 0; z-index: 3; pointer-events: none; }
.flash.go { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: scale(0.6); } 12% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.4); } }
.art-snap .biro { position: absolute; width: 140px; left: 2%; bottom: 0; z-index: 3; }

/* the grade estimate: Biro sits on it */
.grade { width: min(440px, 100%); position: relative; z-index: 2; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px 22px 20px; box-shadow: 0 14px 36px -20px rgba(20, 30, 80, 0.4); }
.grade-label { font: 800 14px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 64px; }
.scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.scale > span { position: relative; height: 56px; border-radius: 12px; background: #f2f2f2; display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--muted); }
.scale > span.in { background: #d4ddff; color: var(--brand-lip); }
.scale > span.mid { background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-lip); }
.scale .biro.sit { position: absolute; width: 74px; left: 50%; bottom: calc(100% - 7px); transform: translateX(-50%); }
.grade .cap { margin-top: 16px; text-align: center; font-size: 15px; color: var(--muted); }

/* the week: each day lights up as he walks past */
.art-week { padding-block: 8px; }
.week { position: relative; width: min(460px, 100%); padding-top: 104px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days li { display: grid; justify-items: center; align-content: center; gap: 6px; height: 92px; border-radius: 16px; background: #f2f2f2; font: 800 13px/1 var(--body); color: var(--muted); transition: background-color 0.25s ease-out; }
.days img { width: 70%; max-width: 44px; aspect-ratio: 1; filter: grayscale(1) opacity(0.3); transform: scale(0.8); transition: filter 0.25s ease-out, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.6); }
.days li.lit { background: #fff1dc; color: #9a4a00; box-shadow: 0 4px 0 #f4c98f; }
.days li.lit img { filter: none; transform: scale(1); }
.week .biro { position: absolute; width: 116px; right: -4px; top: 0; z-index: 2; }
.week .cap { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---- plans ---- */
.plans { padding: var(--section) 0; background: #eef2ff; }
.plans h2 { text-align: center; }
.plans .sub { text-align: center; max-width: 46ch; margin: 0 auto 44px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin-inline: auto; align-items: start; }
.plan { background: #fff; border: 2px solid #d9e0fb; border-radius: 24px; padding: 30px 28px; }
.plan.pro { border-color: var(--brand); box-shadow: 0 6px 0 var(--brand-lip); }
.plan h3 { font: 800 15px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan.pro h3 { color: var(--brand); }
.plan .plus { font-weight: 800; color: var(--heading); margin-bottom: 10px; }
.plan .price { margin: 10px 0 20px; font-size: 16px; }
.nw { white-space: nowrap; }
.plan .price strong { font: 700 44px/1 var(--display); color: var(--heading); margin-right: 4px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; color: var(--heading); }
.plan li svg { width: 22px; height: 22px; margin-top: 1px; color: var(--correct); }
.plan .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.plans .small-print { max-width: 64ch; margin: 28px auto 0; font-size: 14px; text-align: center; color: var(--muted); }

/* ---- questions ---- */
.faq { padding: var(--section) 0; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.qs { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.qs details { border: 2px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 0 var(--line); }
.qs details[open] { border-color: #cfd8fb; box-shadow: 0 3px 0 #cfd8fb; }
.qs summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 800 18px/1.3 var(--body); color: var(--heading); border-radius: 16px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary svg { flex: none; width: 20px; height: 20px; color: var(--brand); transition: transform 0.2s ease-out; }
.qs details[open] summary svg { transform: rotate(45deg); }
.qs details p { padding: 0 22px 20px; max-width: 64ch; }
.faq .ask { text-align: center; margin-top: 28px; }

/* ---- the last call, on a full blue band (Duolingo ends on its colour) ---- */
.get { background: var(--brand); color: #e3e9ff; padding: 88px 0 96px; text-align: center; }
.get h2 { color: #fff; font-size: clamp(44px, 6vw, 68px); }
.get p { max-width: 44ch; margin: 0 auto 28px; font-size: 20px; }
.get .biro { width: 150px; margin: 0 auto 26px; }
.get .biro-shadow { fill: rgba(0, 0, 40, 0.28); }
.get .biro-puff { fill: #7f9bff; }
.get .soon-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; white-space: nowrap; font: 800 15px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; }
.soon-badge svg { width: 20px; height: 20px; }

/* ---- footer ---- */
.foot { background: var(--brand-deep); color: #d5ddff; padding: 56px 0 36px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot h3 { font: 800 14px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #d5ddff; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot p { font-size: 15px; }
.foot .legal { grid-column: 1 / -1; border-top: 2px solid rgba(255, 255, 255, 0.16); padding-top: 22px; margin-top: 8px; font-size: 14px; color: #c3cdfa; max-width: none; }
.foot .biro-mark { width: 34px; height: 34px; }

/* ---- small screens ---- */
@media (max-width: 860px) {
  :root { --section: 64px; }
  body { font-size: 17px; }
  .hero { padding: 24px 0 56px; }
  .hero .wrap, .row .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .text { text-align: center; }
  .hero p.lede { margin-inline: auto; font-size: 18px; }
  .cta { margin-inline: auto; }
  .stage { height: 270px; max-width: 400px; width: 100%; margin-inline: auto; }
  .stage .biro { width: 170px; bottom: 30px; }
  .prop-paper { width: 132px; bottom: 22px; }
  .prop-book { width: 116px; bottom: 18px; }
  .floor { bottom: 28px; }
  .row.flip .art { order: 0; }
  .art { min-height: 0; }
  .art-img { width: 220px; }
  .set-prop { width: 92px; right: -8px; top: -44px; }
  .marked .score { flex-direction: column; align-items: flex-start; gap: 8px; }
  :root { --section: 52px; }
  .art-marked { padding-right: 0; padding-bottom: 96px; }
  .art-marked .biro { width: 110px; right: 6px; bottom: 0; }
  .marked { min-height: 0; padding: 20px 18px 18px; }
  .art-snap { padding-bottom: 8px; }
  .art-snap .biro { width: 110px; }
  .grade-label { margin-bottom: 56px; }
  .scale { gap: 4px; }
  .scale > span { height: 46px; font-size: 19px; border-radius: 10px; }
  .scale .biro.sit { width: 62px; }
  .week .biro { width: 92px; right: -2px; }
  .week { padding-top: 83px; }
  .days li { height: 76px; border-radius: 12px; }
  .demo .text { order: -1; }
  .plan-grid { grid-template-columns: 1fr; }
  .plans .small-print { text-align: left; }
  .qs summary { padding: 16px 18px; font-size: 17px; }
  .qs details p { padding: 0 18px 18px; }
  .foot .wrap { grid-template-columns: 1fr; gap: 28px; }
  .top nav a.plain { display: none; }
  .logo { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marked li, .marked .score, .days img { transition: none; }
  .flash.go { animation: none; }
}

/* the marking section reads top-down: the claim level with the card's tabs */
@media (min-width: 861px) {
  .demo .wrap { align-items: start; }
  .demo .text { padding-top: 64px; }
}
