/* ------------------------------
   TOKENS
   Colors come from the apps: fonoIOS util/Theme.swift and dopaIOS model/DopaColor.swift.
   Fono is the default product; data-product="dopa" switches a section to Dopa's colors.
--------------------------------*/
@font-face {
  font-family: "Karla";
  src: url("/fonts/Karla-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/fonts/Karla-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --canvas: #f7f7fb;
  --tint: #efeef6;
  --card: #ffffff;
  --ink: #1d1a33;
  --muted: #5c5873;
  --line: #e4e2ec;
  --house: #5135ff;

  --fono-coral: #ff985b;
  --fono-cyan: #4cc3d9;
  --fono-green: #9ccc65;
  --fono-purple: #9575cd;
  --fono-lavender: #b39ddb;
  --fono-pink: #fd9598;

  --dopa-coral: #f47672;
  --dopa-deep: #c8605c;
  --dopa-aqua: #72f0f4;

  --level-a: #7cb342;
  --level-b: #42a5f5;
  --level-c: #9575cd;

  --brand: var(--fono-cyan);
  --action: var(--fono-coral);

  --radius-card: 20px;
  --radius-control: 14px;
  --shadow-card: 0 4px 10px rgba(29, 26, 51, 0.06);

  --font: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
}

[data-product="dopa"] {
  --brand: var(--dopa-coral);
  --action: var(--dopa-aqua);
}

/* ------------------------------
   GLOBAL
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p,
figure {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--house);
}

:focus-visible {
  outline: 3px solid var(--house);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 88px;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(34px, 4.2vw, 52px);
}

.section-lead {
  max-width: 34em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------
   BUTTONS
--------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 700 17px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active,
.store-badge:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* Ink, not white, on coral and aqua: white on #FF985B is 2.1:1 */
.btn-action {
  background: var(--action);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--action) 85%, transparent);
}

.btn-quiet {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brand);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  border-color: var(--house);
  color: var(--house);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 148px;
  min-height: 56px;
  padding: 8px 20px 9px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.store-small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.store-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.store-badge.is-soon {
  border: 1.5px dashed currentColor;
  background: transparent;
  color: inherit;
}

.store-badge.is-soon:active {
  transform: none;
  opacity: 1;
}

/* QR code shown on desktop instead of opening the Mac App Store */
.qr-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px -12px rgba(29, 26, 51, 0.35);
  text-align: center;
}

.qr-dialog::backdrop {
  background: rgba(29, 26, 51, 0.45);
}

.qr-inner {
  position: relative;
  padding: 32px 28px 28px;
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink);
  font: 400 22px/1 var(--font);
  cursor: pointer;
}

.qr-title {
  padding: 0 28px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.qr-code {
  width: 208px;
  height: 208px;
  margin: 20px auto 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr-text {
  color: var(--muted);
  font-size: 16px;
}

/* ------------------------------
   HEADER
--------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.site-home {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px;
  height: 26px;
}

.logo-word {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--house);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.lang-menu {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font: 500 13px/1 var(--mono);
  cursor: pointer;
}

.lang-button:hover {
  background: color-mix(in srgb, var(--tint) 60%, var(--line));
}

.lang-button svg {
  width: 16px;
  height: 16px;
}

.lang-button .lang-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.lang-button[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 200px;
  max-height: min(360px, 70vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border-radius: var(--radius-control);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -8px rgba(29, 26, 51, 0.25);
  list-style: none;
}

.lang-list[hidden] {
  display: none;
}

.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.lang-list a:hover,
.lang-list a[aria-current="true"] {
  background: var(--tint);
}

.lang-list a[aria-current="true"] {
  color: var(--house);
}

.lang-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-left: auto;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink);
    font: 700 16px/1 var(--font);
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .nav-end {
    justify-content: space-between;
    margin-left: 0;
  }

  .lang-list {
    right: auto;
    left: 0;
  }
}

/* ------------------------------
   FOOTER
--------------------------------*/
.site-footer {
  padding: 64px 0 28px;
  background: var(--house);
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-cols h2 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cols ul,
.footer-langs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  display: inline-block;
  padding: 4px 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-cols a:hover,
.footer-langs a:hover,
.footer-langs a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-langs a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   TUTORS (shared)
--------------------------------*/
.tutor-eyes {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .tutor-eyes {
    animation: tutor-blink 5.5s infinite;
  }
}

@keyframes tutor-blink {
  0%,
  95%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.08);
  }
}

/* ------------------------------
   HOME: HERO
--------------------------------*/
.hero {
  padding: clamp(24px, 4vw, 48px) 0 var(--section-y);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-eyebrow {
  color: var(--house);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 31em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 32px;
}

/* Four blocks in the proportions of the Fono app icon */
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-rows: 1.45fr 1fr;
  gap: clamp(10px, 1.2vw, 14px);
  height: clamp(440px, 46vw, 560px);
}

.hero-block {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 24px);
}

.block-serif {
  background: var(--fono-coral);
}

.block-inna {
  background: var(--fono-cyan);
}

.block-levels {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  background: var(--fono-green);
}

.block-book {
  background: var(--fono-lavender);
}

.block-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
}

.hero-block .tutor {
  position: absolute;
  max-width: none;
  aspect-ratio: 1;
}

.bust-serif {
  bottom: -4%;
  left: 50%;
  width: 135%;
  transform: translateX(-50%);
}

.bust-inna {
  right: -10%;
  bottom: -3%;
  width: 78%;
}

.bust-book {
  right: -16%;
  bottom: -6%;
  height: 108%;
}

.hero-chat {
  position: absolute;
  top: 16px;
  right: 36%;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-chat p {
  padding: 9px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 26, 51, 0.08);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.hero-chat .chat-you {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: var(--fono-coral);
  font-weight: 700;
}

.levels-number {
  font-size: clamp(48px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.levels-word {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.levels-range {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
}

.book-label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 34%;
  line-height: 1.2;
}

.book-label strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.book-label span {
  font-size: 14px;
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-chat p {
    animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
  }

  .hero-chat .chat-tutor {
    animation-delay: 0.35s;
  }

  .hero-chat .chat-you {
    animation-delay: 1.15s;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    height: clamp(380px, 80vw, 520px);
  }
}

@media (max-width: 520px) {
  .hero-grid {
    grid-template-areas:
      "inna inna"
      "serif book"
      "levels levels";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 190px auto;
    height: auto;
  }

  .block-inna {
    grid-area: inna;
  }

  .block-serif {
    grid-area: serif;
  }

  .block-book {
    grid-area: book;
  }

  .block-levels {
    grid-area: levels;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .bust-serif {
    width: 118%;
  }

  .book-label {
    display: none;
  }

  .bust-book {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ------------------------------
   HOME: TUTORS
--------------------------------*/
.tutors {
  padding: var(--section-y) 0;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 64px;
  margin-bottom: 44px;
}

.tutor-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutor-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.tutor-stage {
  position: relative;
  height: clamp(220px, 24vw, 300px);
  overflow: hidden;
  background: var(--fono-coral);
}

.tutor-card-inna .tutor-stage {
  background: var(--fono-cyan);
}

.tutor-card-fono .tutor-stage {
  background: var(--fono-lavender);
}

.tutor-stage .tutor {
  position: absolute;
  bottom: -3%;
  left: 50%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.tutor-hover {
  opacity: 0;
}

@media (hover: hover) {
  .tutor-card:hover .tutor-rest {
    opacity: 0;
  }

  .tutor-card:hover .tutor-hover {
    opacity: 1;
  }
}

.tutor-body {
  padding: 20px 22px 24px;
}

.tutor-body h3 {
  font-size: 26px;
}

.tutor-body p {
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .split-head,
  .tutor-cards {
    grid-template-columns: 1fr;
  }

  .tutor-stage {
    height: 240px;
  }
}

/* ------------------------------
   HOME: HOW A LESSON WORKS
--------------------------------*/
.how {
  padding: var(--section-y) 0;
  background: var(--card);
}

.how-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.how-steps {
  display: grid;
  gap: 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fono-cyan);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}

.how-steps li:nth-child(2) .step-num {
  background: var(--fono-coral);
}

.how-steps li:nth-child(3) .step-num {
  background: var(--fono-green);
}

.how-steps h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.how-steps p {
  max-width: 30em;
  color: var(--muted);
}

.lesson-demo {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: var(--canvas);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.demo-head span {
  color: var(--muted);
  font-size: 14px;
}

.demo-avatar {
  flex: none;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--fono-cyan);
}

.demo-avatar .tutor {
  width: 140%;
  max-width: none;
  margin: -12% 0 0 -20%;
}

.demo-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-thread p {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 18px;
  font-weight: 500;
}

.demo-thread .demo-you {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--fono-coral);
  box-shadow: none;
  font-weight: 700;
}

.demo-fix {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--fono-pink);
}

.demo-fix-label {
  color: #a93f43;
  font-size: 14px;
  font-weight: 700;
}

.demo-fix p {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
}

.demo-fix mark {
  padding: 0 4px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--fono-green) 50%, transparent);
  color: inherit;
}

@media (max-width: 900px) {
  .how-inner {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   HOME: LEVELS
--------------------------------*/
.levels {
  padding: var(--section-y) 0;
}

.levels-head {
  max-width: 760px;
}

.levels-head .section-lead {
  margin-top: 16px;
}

.band-a {
  --band: var(--level-a);
}

.band-b {
  --band: var(--level-b);
}

.band-c {
  --band: var(--level-c);
}

.level-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin: 44px 0 24px;
}

.level-track span {
  height: 12px;
  border-radius: 999px;
  background: var(--band);
}

.level-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-band {
  padding: 20px 22px 10px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.band-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.band-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--band);
  font-size: 18px;
}

.level-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.level-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.level-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .level-bands {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   HOME: FEATURES
--------------------------------*/
.features {
  padding: var(--section-y) 0;
  background: var(--card);
}

.features-title {
  max-width: 14em;
  margin-bottom: 36px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.feature-list img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature-list h3 {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.feature-list p {
  max-width: 28em;
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   HOME: DOPA BAND
--------------------------------*/
.dopa-band {
  overflow: hidden;
  background: var(--dopa-coral);
}

.dopa-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
}

.dopa-band-copy {
  padding: var(--section-y) 0;
}

.dopa-band .section-title {
  font-size: clamp(32px, 4vw, 48px);
}

.dopa-band-text {
  max-width: 34em;
  margin-top: 16px;
  font-size: 19px;
}

.dopa-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.dopa-band-bear {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 760px) {
  .dopa-band-inner {
    grid-template-columns: 1fr;
  }

  .dopa-band-copy {
    padding-bottom: 0;
  }

  .dopa-band-bear {
    max-width: 260px;
  }
}

/* ------------------------------
   HOME: GET THE APP
--------------------------------*/
.get-app {
  padding: var(--section-y) 0;
}

.get-app-panel {
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--fono-cyan);
}

.get-app-copy {
  padding: clamp(32px, 5vw, 64px);
}

.get-app .section-title {
  margin-top: 0;
  font-size: clamp(34px, 4.2vw, 54px);
}

.get-app-text {
  max-width: 28em;
  margin-top: 14px;
  font-size: 19px;
}

.get-app-badges {
  margin-top: 28px;
}


/* ------------------------------
   DOPA PAGE
--------------------------------*/
.dopa-hero {
  overflow: hidden;
  background: var(--dopa-coral);
}

.dopa-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
}

.dopa-hero-copy {
  padding: clamp(40px, 6vw, 88px) 0;
}

.dopa-title {
  margin-top: 16px;
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.dopa-lead {
  max-width: 32em;
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 21px);
}

.dopa-badges {
  margin-top: 30px;
}

.dopa-hero-bear {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  height: auto;
}

.dopa-details {
  padding: var(--section-y) 0;
}

.dopa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.dopa-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.dopa-card h2 {
  font-size: clamp(26px, 2.6vw, 32px);
}

.dopa-card p {
  margin-top: 8px;
  color: var(--muted);
}

.dopa-card.dopa-understand {
  background: var(--dopa-deep);
  box-shadow: none;
  color: #fff;
}

.dopa-understand .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.dopa-understand .understand-number {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.dopa-understand .understand-text {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.understand-bar {
  height: 14px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.understand-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--dopa-aqua);
}

.rank-list,
.language-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rank-list li:not(:last-child)::after {
  content: "→";
  color: var(--muted);
}

.rank,
.language-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  font-weight: 700;
}

.rank img {
  width: 28px;
  height: 28px;
  margin: -4px 0 -4px -8px;
}

.language-list li {
  background: color-mix(in srgb, var(--dopa-coral) 16%, #fff);
  font-weight: 600;
}

.dopa-lessons {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 20px;
}

.dopa-lessons img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.back-to-fono-wrap {
  padding-bottom: var(--section-y);
}

.back-to-fono {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--fono-cyan);
}

.back-to-fono-copy {
  padding: clamp(28px, 4vw, 56px);
}

.back-to-fono h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.back-to-fono p {
  margin: 10px 0 24px;
  font-size: 19px;
}

.back-to-fono-tutor {
  width: 280px;
  height: 280px;
  margin-bottom: -12px;
}

@media (max-width: 760px) {
  .dopa-hero-inner,
  .dopa-grid,
  .back-to-fono {
    grid-template-columns: 1fr;
  }

  .dopa-hero-copy {
    padding-bottom: 0;
  }

  .dopa-hero-bear {
    max-width: 260px;
  }

  .back-to-fono-tutor {
    justify-self: end;
    width: 200px;
    height: 200px;
    margin-top: -40px;
  }
}

/* ------------------------------
   TEXT PAGES: SUPPORT, PRIVACY, TERMS, BLOG
--------------------------------*/
.page {
  padding: clamp(40px, 6vw, 80px) 0 var(--section-y);
}

.prose-wrap {
  max-width: 820px;
}

.page-title {
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.page-lead {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 20px;
}

.page-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.prose {
  margin-top: 32px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 40em;
  padding-bottom: 18px;
  color: var(--muted);
}

.info-card {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.support-heading {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.support-faq-heading {
  margin-top: 56px;
}

.info-card .page-lead {
  margin-top: 8px;
}

.post-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.post-list a {
  display: block;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
}

.post-list h2 {
  font-size: 24px;
}

.post-list p,
.post-list time,
.post-date {
  margin-top: 6px;
  color: var(--muted);
}

/* ------------------------------
   404
--------------------------------*/
.not-found {
  padding: clamp(40px, 8vw, 110px) 0;
}

.not-found-inner {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .not-found-inner {
    grid-template-columns: 1fr;
  }

  .not-found-tutor {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .store-badge {
    transition: none;
  }

  .btn:active,
  .store-badge:active {
    transform: none;
  }
}
