/* Vobi's public site. Colours, type and button shapes come from docs/design/brand.md (Lapis Round). */
:root {
  --ground: #F6F4EE;
  --surface: #FFFFFF;
  --ink: #14213D;
  --muted: #566079;
  --line: #E3DFD3;
  --primary: #1E4F9C;
  --primary-lip: #133A78;
  --primary-soft: #E6EDF8;
  --reward: #E0A526;
  --ready: #0B7480;
  --ready-soft: #DDF1F1;
  --highlight: #FBEBC2;
  --silent: #ECEAE2;
  --title: "Nunito", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--reward); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--title); margin: 0; letter-spacing: -0.015em; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.04; }
h2 { font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }

.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 24px; }
.note { color: var(--muted); font-size: 0.9375rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 1.5rem var(--title); }
.brand img { width: 38px; height: 38px; }

/* The 3D button: a solid face on a solid lip, and only on what you tap */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 16px;
  padding: 13px 22px;
  background: var(--primary);
  box-shadow: 0 4px 0 var(--primary-lip);
  color: #fff;
  font: 800 1.0625rem/1.25 var(--title);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
}
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn.quiet { background: var(--surface); box-shadow: 0 4px 0 var(--line); color: var(--ink); }
.btn.small { padding: 9px 16px; min-height: 42px; font-size: 1rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:disabled:active { transform: none; box-shadow: 0 4px 0 var(--primary-lip); }
.link-btn { background: none; border: 0; padding: 8px 2px; color: var(--muted); font: 600 0.9375rem var(--body); text-decoration: underline; cursor: pointer; }

/* Hero: a voice bubble holding the student's own sentence */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 40px 72px; }
.hero .lead { margin-top: 20px; max-width: 30em; font-size: 1.1875rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.bubble-stage { position: relative; padding-bottom: 110px; }
.bubble {
  position: relative;
  background: var(--surface);
  border-radius: 28px;
  padding: 26px 28px 24px;
  box-shadow: 0 2px 0 var(--line);
}
.bubble::after {
  content: "";
  position: absolute;
  right: 92px;
  bottom: -20px;
  width: 34px;
  height: 22px;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}
.bubble-who { font: 800 0.9375rem var(--title); color: var(--muted); min-height: 1.4em; }
.bubble-text { margin-top: 8px; font: 800 clamp(1.3rem, 2.5vw, 1.6rem)/1.45 var(--title); }
.bubble-why { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; min-height: 3em; }
.bubble-switch { display: flex; gap: 8px; margin-top: 16px; }
.pill {
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 40px;
  font: 800 0.9375rem var(--title);
  cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-lip); }
.bubble-stage > img { position: absolute; right: 0; bottom: 0; width: 132px; height: 132px; }

.fix { background: var(--highlight); border-radius: 5px; padding: 1px 3px; }
.silent { background: var(--silent); border-radius: 5px; padding: 1px 3px; }
.gone { text-decoration: line-through; text-decoration-color: #B8860B; text-decoration-thickness: 2px; }

/* Sections */
.band { padding-block: 64px; border-top: 2px solid var(--line); }
.band > .wrap > h2 { max-width: 20em; }
.band .sub { margin-top: 12px; max-width: 38em; color: var(--muted); }

.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; max-width: 760px; }
.proof b { display: block; font: 900 2.75rem/1.1 var(--title); color: var(--primary); }

.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-lip);
  font: 900 1.25rem var(--title);
}
.steps p { margin-top: 6px; color: var(--muted); }

/* The path: one line of stops, like the app's map */
.path-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 32px; }
.path { list-style: none; margin: 0; padding: 0; }
.path li { position: relative; display: flex; align-items: center; gap: 16px; padding-block: 11px; font-weight: 700; }
.path li::before {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 0 var(--primary-lip);
  position: relative;
  z-index: 1;
}
.path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -14px;
  width: 4px;
  background: var(--line);
}
.path li.milestone::before {
  background: var(--reward);
  box-shadow: 0 4px 0 #A97A12;
  clip-path: polygon(50% 0, 62% 15%, 85% 15%, 85% 38%, 100% 50%, 85% 62%, 85% 85%, 62% 85%, 50% 100%, 38% 85%, 15% 85%, 15% 62%, 0 50%, 15% 38%, 15% 15%, 38% 15%);
}
.facts { display: grid; gap: 22px; }
.facts p { margin-top: 4px; color: var(--muted); }

.ladder { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 28px; max-width: 800px; }
.ladder ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.ladder li::marker { font: 900 1.05rem var(--title); color: var(--primary); }

.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.status ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }

.end { padding-block: 72px; background: var(--primary); color: #fff; }
.end .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.end h2 { max-width: 16em; }
.end p { margin-top: 10px; color: #D7E2F4; }
.end .btn { background: #fff; color: var(--primary-lip); box-shadow: 0 4px 0 #A9BEDF; }

footer { padding-block: 28px; color: var(--muted); font-size: 0.875rem; }

/* Demo page */
.demo { width: min(640px, 100%); margin-inline: auto; padding: 0 20px 72px; }
.demo-note { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.tabs { display: flex; gap: 8px; margin-top: 18px; }
.card { background: var(--surface); border-radius: 22px; padding: 20px 22px; margin-top: 16px; box-shadow: 0 2px 0 var(--line); }
.card h3 { font-size: 1rem; color: var(--muted); }
.card > p, .card > div { margin-top: 8px; }
.q-label { font: 800 0.9375rem var(--title); color: var(--muted); }
.question { margin-top: 6px; font: 800 1.5rem/1.3 var(--title); }
.bullets { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); }
.player { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bar { height: 8px; margin-top: 16px; border-radius: 99px; background: var(--primary-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--primary); }
.said { line-height: 1.75; }
.better { font-size: 1.0625rem; line-height: 1.95; }
.shape { color: var(--muted); font-size: 0.9375rem; }
.tip-fix { font-weight: 800; }
.fixes { list-style: none; margin: 14px 0 0; padding: 0; }
.fixes li { padding-block: 10px; border-top: 2px solid var(--ground); }
.fixes .why { display: block; color: var(--muted); font-size: 0.9375rem; }
.wait { color: var(--muted); font-style: italic; margin-top: 16px; }
.wins { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wins li { background: var(--ready-soft); border-radius: 12px; padding: 10px 14px; color: #07505A; font-weight: 700; }
.points { margin: 8px 0 0; padding-left: 1.3em; }
.phrase b { font-weight: 800; }
.mascot-line { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.mascot-line img { width: 92px; height: 92px; flex: none; }
.mascot-line p { font: 800 1.125rem/1.35 var(--title); }
.next-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 56px; gap: 32px; }
  .steps, .path-grid, .status, .proof { grid-template-columns: 1fr; gap: 28px; }
  .band { padding-block: 48px; }
  .ladder { grid-template-columns: 1fr; }
  .ladder img { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
