@font-face {
  font-family: 'Momo Trust Sans';
  src: url('/fonts/MomoTrustSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Momo Trust Display';
  src: url('/fonts/MomoTrustDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Assets are served directly; PHP fingerprints this file with its modification time. */
  /* Keep this stylesheet build-free so ordinary visual edits are immediately publishable. */
  --canvas: #fff;
  --ink: #111;
  --muted: #666;
  --faint: #f5f5f5;
  --soft: #e7e7e7;
  --line: #c9c9c9;
  --strong-line: #222;
  --focus: #111;
  --danger: #202020;
  --success: #333;
  --warning: #777;
  --radius-sm: 0.35rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.15rem;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --display: 'Momo Trust Display', Georgia, serif;
  --sans: 'Momo Trust Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
audio[data-remote-audio] {
  display: none;
}
html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
svg {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 1.7;
}
.page-gutter {
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-150%);
  background: #111;
  color: #fff;
  padding: 0.7rem 1rem;
}
.skip-link:focus-visible {
  transform: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -0.045em;
}
.brand > span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1rem;
}
.button {
  min-height: 3.25rem;
  border: 1px solid var(--ink);
  padding: 0.8rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.16s,
    background 0.16s,
    color 0.16s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-dark:hover {
  background: #333;
}
.button-outline {
  background: #fff;
}
.button-light {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.button-small {
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
}
.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: none;
  padding: 0.25rem 0;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  cursor: pointer;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.section-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 750;
  margin: 0 0 0.65rem;
}
.field {
  display: grid;
  gap: 0.5rem;
  font-weight: 650;
}
.field input,
.field select,
.field textarea,
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem;
  min-height: 3rem;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}

/* Marketing */
.marketing-header,
.app-header {
  height: 5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marketing-header nav,
.app-header nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.marketing-header nav a:not(.button),
.app-header nav a {
  text-decoration: none;
}
.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: 5rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 7.7vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  max-width: 11ch;
  margin-bottom: 2rem;
}
.hero > div > p {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  max-width: 42rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}
.hero-assurance {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
}
.hero-demo {
  border: 1px solid var(--strong-line);
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}
.hero-demo-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}
.hero-demo-top span:last-child::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #333;
  margin-right: 0.5rem;
}
.hero-demo p {
  font-family: var(--display);
  font-size: 1.7rem;
  text-align: center;
  margin: 2rem 0 0.5rem;
}
.hero-demo > span {
  color: var(--muted);
}
.mini-wave,
.wave-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 7rem;
}
.mini-wave i,
.wave-mark i {
  display: block;
  width: 2px;
  background: currentColor;
}
.how {
  border-top: 1px solid var(--line);
  padding-block: 7rem;
}
.how > h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.95;
  max-width: 13ch;
  margin-bottom: 4rem;
}
.how-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.how-list article {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.how-list article + article {
  padding-left: 2rem;
}
.how-list article:last-child {
  border: 0;
}
.how-list article > svg {
  width: 2rem;
  height: 2rem;
}
.how-list article > span {
  position: absolute;
  right: 1.5rem;
  top: 2rem;
  color: var(--muted);
}
.how-list h3 {
  font-size: 1.3rem;
  margin: 3rem 0 0.5rem;
}
.how-list p {
  color: var(--muted);
  max-width: 22rem;
}
.marketing-footer {
  min-height: 9rem;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Auth/onboarding */
.auth-page > header,
.onboarding-page > header {
  height: 5rem;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.onboarding-progress i {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--line);
}
.onboarding-progress i.active {
  background: var(--ink);
}
.onboarding-progress span {
  margin-left: 0.5rem;
}
.auth-page main {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-page main > section {
  padding: clamp(3rem, 8vw, 8rem);
  align-self: center;
  max-width: 48rem;
}
.auth-page h1,
.onboarding-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.auth-page main > section > p,
.onboarding-page main section > p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 35rem;
}
.auth-page aside {
  background: #111;
  color: #fff;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-page blockquote {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.04;
  margin: 0 0 3rem;
}
.auth-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.auth-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
}
.auth-form small {
  color: var(--muted);
}
.auth-switch {
  font-size: 0.95rem !important;
  margin-top: 1.5rem;
}
.onboarding-page main {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 4rem var(--gutter);
}
.onboarding-page main section {
  width: min(42rem, 100%);
}
.onboarding-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.5rem;
}
.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
.language-options button {
  min-height: 5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.language-options button:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.language-options button.selected {
  background: #111;
  color: #fff;
}
.intent-options,
.correction-options {
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.intent-options button,
.correction-options button {
  width: 100%;
  min-height: 4.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}
.intent-options button:hover,
.correction-options button:hover {
  background: var(--faint);
}
.intent-options button.selected,
.correction-options button.selected {
  box-shadow: inset 3px 0 0 var(--ink);
  background: var(--faint);
}
.intent-options button span,
.correction-options button span {
  display: grid;
  gap: 0.15rem;
}
.intent-options small,
.correction-options small {
  color: var(--muted);
}
.correction-options > span {
  display: block;
  padding: 1rem 0 0.5rem;
  font-weight: 700;
}
.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.first-conversation-note {
  border-left: 2px solid var(--ink);
  padding: 0.25rem 0 0.25rem 1.2rem;
  margin-top: 2rem;
}
.first-conversation-note p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.onboarding-page .field {
  margin: 1.5rem 0;
}
.onboarding-page .text-button {
  margin-left: 1.5rem;
}

/* Shell/dashboard */
.app-header {
  position: relative;
}
.app-header nav a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  width: 2.8rem;
  height: 2.8rem;
}
.mobile-menu {
  display: none;
}
.dashboard {
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.dashboard-intro h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.dashboard-intro > p {
  color: var(--muted);
  font-size: 1.2rem;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.8rem 1rem;
  min-width: 13rem;
  font-weight: 750;
  margin: 1.5rem 0 2.5rem;
}
.language-switch span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.next-lesson {
  border: 1px solid var(--line);
  background: var(--faint);
  display: grid;
  grid-template-columns: 11rem 1.5fr 1fr;
  align-items: center;
  min-height: 13rem;
}
.lesson-symbol {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}
.lesson-symbol svg {
  width: 4rem;
  height: 4rem;
}
.next-lesson > div:nth-child(2) {
  padding: 2rem 2.5rem;
}
.next-lesson h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  max-width: 17ch;
}
.next-lesson p {
  color: var(--muted);
  max-width: 35rem;
  margin: 0;
}
.lesson-action {
  border-left: 1px solid var(--line);
  padding: 2rem;
  height: 80%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.focus {
  margin-top: 1.6rem;
}
.focus ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.focus li {
  padding: 1rem 1.5rem 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.focus li + li {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.recent {
  margin-top: 1.8rem;
}
.recent > div {
  border-top: 1px solid var(--line);
}
.recent a {
  display: grid;
  grid-template-columns: 1fr auto 7rem auto;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.recent a:hover {
  background: var(--faint);
}
.recent small,
.recent time {
  color: var(--muted);
}
.dashboard-all {
  margin-top: 1.5rem;
}

/* Content */
.content-page {
  padding-block: 4rem;
  max-width: 100rem;
  margin: auto;
}
.content-page > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}
.content-page > header h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}
.content-page > header p {
  color: var(--muted);
  font-size: 1.2rem;
}
.progress-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.progress-layout h2,
.timeline h2,
.settings-page h2 {
  font-family: var(--display);
  font-size: 2rem;
}
.evidence-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.timeline {
  margin-top: 5rem;
}
.timeline p {
  display: grid;
  grid-template-columns: 8rem 1fr;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  margin: 0;
}
.timeline time {
  color: var(--muted);
}
.session-list > a {
  display: grid;
  grid-template-columns: 8rem 1fr auto auto;
  gap: 2rem;
  align-items: center;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.session-list > a:last-child {
  border-bottom: 1px solid var(--line);
}
.session-list h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.session-list p {
  color: var(--muted);
  margin: 0;
}
.settings-page form {
  max-width: 50rem;
}
.settings-page form section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
}
.settings-page .field {
  margin: 1.2rem 0;
}
.check-field {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.check-field input {
  width: 1.2rem;
  height: 1.2rem;
}

/* Live lesson */
.lesson-page {
  height: 100dvh;
  overflow: hidden;
}
.lesson-header {
  height: 5rem;
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lesson-header > div {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.lesson-header i {
  display: block;
  height: 1.8rem;
  width: 1px;
  background: var(--line);
}
.lesson-layout {
  height: calc(100dvh - 5rem);
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.conversation-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  position: relative;
  padding: clamp(1rem, 2vh, 2rem) 2rem;
  min-height: 0;
  overflow-y: auto;
}
.lesson-status {
  text-align: center;
}
.lesson-status > svg {
  border: 1px solid;
  border-radius: 50%;
  padding: 0.7rem;
  width: 3.4rem;
  height: 3.4rem;
}
.lesson-status h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, min(4vw, 6vh), 4.4rem);
  font-weight: 400;
  margin: 0.8rem 0 0.2rem;
}
.lesson-status p {
  color: var(--muted);
}
.voice-field {
  /* Leave room for the complete control stack even in a short browser window. */
  width: clamp(10rem, min(30vw, calc(100dvh - 31rem)), 28rem);
  aspect-ratio: 1;
  border: 1px dotted var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: clamp(0.5rem, 1.5vh, 1rem);
}
.wave-mark {
  width: 75%;
  height: 65%;
}
.wave-mark i {
  transition: height 0.5s ease;
}
.wave-mark.active i:nth-child(odd) {
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.conversation-stage > time {
  font-size: 1.5rem;
}
.lesson-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
@media (min-width: 801px) and (max-height: 700px) {
  .lesson-header {
    height: 4rem;
  }
  .lesson-layout {
    height: calc(100dvh - 4rem);
  }
  .lesson-status > svg {
    height: 2.7rem;
    width: 2.7rem;
    padding: 0.5rem;
  }
  .lesson-status h1 {
    font-size: 2.35rem;
    margin-top: 0.35rem;
  }
  .lesson-status p {
    margin: 0.25rem 0;
  }
  .lesson-actions {
    gap: 0.35rem;
    margin-top: 0.5rem;
  }
}
.lesson-rail {
  overflow-y: auto;
}
.lesson-rail > section {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 2rem;
}
.rail-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: #fff;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 750;
  cursor: pointer;
}
.transcript-list article {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.transcript-list article header {
  display: flex;
  gap: 1rem;
}
.transcript-list time {
  color: var(--muted);
}
.transcript-list p {
  font-size: 1.15rem;
  margin: 0.6rem 0 0;
}
.notebook {
  padding-top: 1.5rem;
}
.notebook small {
  color: var(--muted);
}
.notebook p {
  margin: 1.2rem 0 0.2rem;
}
.notebook strong {
  font-size: 1.1rem;
}
.notebook hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.notebook dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.7rem 0;
}
.notebook dd {
  margin: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 10;
}
.modal {
  background: #fff;
  width: min(31rem, 100%);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.modal h2 {
  font-family: var(--display);
  font-size: 2.5rem;
}
.modal > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Debrief */
.debrief {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.debrief > header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.debrief > header h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 1rem;
}
.debrief > header h2 {
  font-size: 1rem;
}
.debrief > header p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.debrief-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}
.debrief-grid > section {
  padding: 2rem 2.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
}
.debrief-grid > section:nth-child(even) {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}
.debrief-grid h2 {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 400;
}
.win {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.win h3 {
  font-size: 1rem;
  margin: 0;
}
.win p {
  color: var(--muted);
  margin: 0.25rem 0;
}
.correction-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.correction {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}
.correction small {
  display: block;
  color: var(--muted);
}
.vocab div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.vocab dt {
  font-weight: 700;
}
.vocab dd {
  margin: 0;
  color: var(--muted);
}
.next-time {
  background: #111;
  color: #fff;
  min-height: 11rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.next-time > span {
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  min-width: 4rem;
  height: 4rem;
  font-family: var(--display);
  font-size: 2rem;
}
.next-time h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.next-time p {
  color: #ccc;
  margin: 0;
}
.debrief > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

/* First conversation profile */
.guest-profile-header {
  height: 5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guest-profile-header > a:last-child {
  font-weight: 650;
  text-underline-offset: 0.3rem;
}
.learner-profile {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.learner-profile > header {
  max-width: 64rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.learner-profile > header > span {
  display: block;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.learner-profile > header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}
.learner-profile > header p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.profile-review {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 0.9fr;
  border-bottom: 1px solid var(--line);
}
.profile-review > section {
  padding: 2.5rem 2.5rem 3rem 0;
}
.profile-review > section + section {
  border-left: 1px solid var(--line);
  padding-left: 2.5rem;
}
.profile-review h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
}
.profile-review > section > p {
  color: var(--muted);
}
.profile-observations {
  border-top: 1px solid var(--line);
}
.profile-observations label {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.profile-observations input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}
.profile-observations span {
  display: grid;
  gap: 0.25rem;
}
.profile-observations small,
.profile-explanation {
  color: var(--muted);
}
.learner-profile > footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
}
.learner-profile > footer small {
  color: var(--muted);
}
.first-plan {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.first-plan > svg {
  border: 1px solid #fff;
  border-radius: 50%;
  padding: 0.8rem;
  width: 4rem;
  height: 4rem;
}
.first-plan span {
  color: #bbb;
}
.first-plan h2 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0.25rem 0;
}
.first-plan p {
  color: #ccc;
  margin: 0;
  max-width: 44rem;
}
.first-plan-actions {
  display: grid;
  justify-items: stretch;
  gap: 0.75rem;
  text-align: center;
}
.first-plan-actions > a:last-child {
  color: #ccc;
  font-size: 0.9rem;
  text-underline-offset: 0.25rem;
}

@keyframes pulse {
  to {
    transform: scaleY(0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 850px) {
  .marketing-header nav a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem;
  }
  .hero h1 {
    font-size: clamp(4rem, 17vw, 7rem);
  }
  .hero-demo {
    min-height: 25rem;
  }
  .how-list {
    grid-template-columns: 1fr;
  }
  .how-list article,
  .how-list article + article {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-page main {
    grid-template-columns: 1fr;
  }
  .auth-page aside {
    display: none;
  }
  .mobile-menu {
    display: grid;
  }
  .app-header nav {
    display: none;
    position: absolute;
    z-index: 4;
    top: 5rem;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter);
    flex-direction: column;
    align-items: flex-start;
  }
  .app-header nav.open {
    display: flex;
  }
  .next-lesson {
    grid-template-columns: 7rem 1fr;
  }
  .lesson-symbol {
    grid-row: 1/3;
  }
  .lesson-action {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    height: auto;
  }
  .focus ul {
    grid-template-columns: 1fr;
  }
  .focus li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .progress-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .session-list > a {
    grid-template-columns: 5rem 1fr auto;
  }
  .session-list > a > span {
    display: none;
  }
  .lesson-page {
    height: auto;
    overflow: visible;
  }
  .lesson-header {
    padding: 0 1rem;
  }
  .lesson-header > div span:last-child,
  .lesson-header > div i {
    display: none;
  }
  .lesson-layout {
    height: auto;
    grid-template-columns: 1fr;
  }
  .conversation-stage {
    min-height: calc(100dvh - 5rem);
    border-right: 0;
  }
  .lesson-rail {
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .debrief-grid {
    grid-template-columns: 1fr;
  }
  .profile-review {
    grid-template-columns: 1fr;
  }
  .profile-review > section,
  .profile-review > section + section {
    padding: 2rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .first-plan {
    grid-template-columns: 4rem 1fr;
  }
  .first-plan .button {
    grid-column: 1 / -1;
  }
  .first-plan-actions {
    grid-column: 1 / -1;
  }
  .debrief-grid > section,
  .debrief-grid > section:nth-child(even) {
    padding: 2rem 0;
    border-left: 0;
  }
  .debrief > footer {
    gap: 2rem;
  }
  .language-options {
    grid-template-columns: 1fr;
  }
  .language-options button:nth-child(odd) {
    border-right: 0;
  }
}
@media (max-width: 520px) {
  .marketing-header nav > a:not(.button) {
    display: none;
  }
  .brand {
    font-size: 1.35rem;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-demo {
    min-height: 22rem;
  }
  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }
  .dashboard-intro h1 {
    font-size: 3.4rem;
  }
  .next-lesson {
    display: block;
  }
  .lesson-symbol {
    height: 7rem;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .next-lesson > div:nth-child(2) {
    padding: 1.5rem;
  }
  .lesson-action {
    padding: 1.5rem;
  }
  .recent a {
    grid-template-columns: 1fr auto;
  }
  .recent a small,
  .recent a time {
    display: none;
  }
  .timeline p {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .session-list > a {
    grid-template-columns: 1fr auto;
  }
  .session-list > a > time,
  .session-list > a > span {
    display: none;
  }
  .lesson-status h1 {
    font-size: 2.8rem;
  }
  .voice-field {
    width: min(78vw, 19rem);
  }
  .lesson-rail > section {
    padding: 1.3rem;
  }
  .modal > div {
    flex-direction: column;
  }
  .debrief > header h1 {
    font-size: 4rem;
  }
  .correction {
    grid-template-columns: 1fr;
  }
  .correction > svg {
    transform: rotate(90deg);
  }
  .correction-head {
    display: none;
  }
  .debrief > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .auth-page main > section {
    padding: 3rem 1.25rem;
  }
  .onboarding-page main {
    padding-inline: 1.25rem;
  }
  .onboarding-progress i {
    width: 1rem;
  }
  .onboarding-progress span {
    display: none;
  }
  .learner-profile > header h1 {
    font-size: 4rem;
  }
  .learner-profile > footer {
    align-items: stretch;
    flex-direction: column;
  }
}
