/* Gerok's website: the app's warm palette and rounded system type, no web fonts, no tracking. */

:root {
  --bg: #faf6ec;
  --surface: #ffffff;
  --surface-2: #f3ede0;
  --text: #2b2116;
  --muted: #6b5739;
  --brand: #6b5739;
  --line: rgba(43, 33, 22, 0.12);
  --learn: #d2561f;
  --review: #2d9a68;
  --speak: #9358c8;
  --review-text: #1f7a50;
  --speak-text: #7a43ae;
  --rec: #ff3b30;
  --success: #226347;
  --ring-learn: #e4642a;
  --ring-review: #2d9a68;
  --ring-speak: #9358c8;
  --radius: 22px;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130e;
    --surface: #221c15;
    --surface-2: #2c251c;
    --text: #faf6ec;
    --muted: #cabaa1;
    --brand: #a38b63;
    --line: rgba(250, 246, 236, 0.14);
    --learn: #ff8747;
    --review: #5ad495;
    --speak: #c692f3;
    --review-text: #5ad495;
    --speak-text: #c692f3;
    --rec: #ff453a;
    --success: #89d4ac;
    --ring-learn: #ff8747;
    --ring-review: #5ad495;
    --ring-speak: #c692f3;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--speak);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* Header */

.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

/* Landing */

/* The first screen: the hero fills the window, whatever its height, with a cue to scroll. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 0 104px;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 24px -14px rgba(43, 33, 22, 0.5);
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 40ch;
}

.hero-art {
  margin-bottom: 32px;
}

.hero-art img {
  display: block;
  width: min(220px, 50vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 30px 60px -20px rgba(43, 33, 22, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.badge:hover {
  color: var(--bg);
  opacity: 0.9;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}

section {
  padding: 56px 0;
}

section > .wrap > h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}

section > .wrap > p.sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

.steps,
.cards,
.plans {
  display: grid;
  gap: 16px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.plans {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.dot-learn {
  background: var(--learn);
}

.dot-review {
  background: var(--review);
  color: #1b2a00;
}

.dot-speak {
  background: var(--speak);
  color: #00262e;
}

.plan .price {
  font-family: ui-rounded, -apple-system, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 6px 0 2px;
}

.plan ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.plan li + li {
  margin-top: 6px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan.plus {
  border: 2px solid var(--brand);
}

.kicker {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker + h2 {
  margin-top: 0;
}

.plan .tagline {
  margin: 0 0 10px;
}

.plan .price-note {
  font-size: 0.9rem;
}

.plan .badge-plan {
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
}

.plan .trial {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.9rem;
}

/* The value behind every plan, centred between the plans and the questions. */
.promise {
  max-width: 34rem;
  margin: 48px auto 0;
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-lead {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.promise-text {
  margin: 8px auto 0;
  max-width: 30rem;
  color: var(--muted);
}

.promise-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.promise-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

.promise-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ring-learn);
}

.promise-points .review::before {
  background: var(--ring-review);
}

.promise-points .speak::before {
  background: var(--ring-speak);
}

.faq {
  max-width: 44rem;
  margin: 48px auto 0;
}

.faq-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  text-align: center;
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
}

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

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

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

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.fineprint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 24px auto 0;
}

/* How it works: small look-alikes of the app's own screens. Each plays its part of the flow
   while it's on screen; without scripts, or with Reduce Motion, each holds one still frame. */

.how-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.how-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}

.how-head .sub {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.how-pause {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.how-group {
  margin-top: 44px;
}

.how-copy h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.how-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.how-copy .eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.eyebrow.learn {
  color: var(--learn);
}

.eyebrow.review {
  color: var(--review-text);
}

.eyebrow.speak {
  color: var(--speak-text);
}

/* The widgets sit like photos on a table: each tilted a little, alternating sides and
   overlapping on a phone, staggered in two columns on wider screens. */

.how {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.how-group {
  position: relative;
  --glow: var(--learn);
}

.how-group[data-tone="review"] {
  --glow: var(--ring-review);
}

.how-group[data-tone="speak"] {
  --glow: var(--ring-speak);
}

.how-group::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% -20% -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 16%, transparent), transparent);
  pointer-events: none;
}

.widgets {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.shot {
  --tilt: 0deg;
  position: relative;
  margin: 0;
  transform: rotate(var(--tilt));
}

.shot:nth-child(4n + 1) {
  --tilt: -1.8deg;
  margin-right: 20px;
}

.shot:nth-child(4n + 2) {
  --tilt: 1.6deg;
  margin-left: 24px;
}

.shot:nth-child(4n + 3) {
  --tilt: -0.9deg;
  margin: 0 12px 0 6px;
}

.shot:nth-child(4n + 4) {
  --tilt: 2.2deg;
  margin-left: 14px;
}

.widgets.solo .shot {
  --tilt: -2.4deg;
  margin: 0 16px;
}

.sticker {
  --tone: var(--learn);
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tone);
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: 0 8px 16px -8px rgba(43, 33, 22, 0.5);
}

.shot:nth-child(even) .sticker {
  left: auto;
  right: 18px;
  transform: rotate(3deg);
}

.shot[data-tone="review"] .sticker {
  --tone: var(--ring-review);
  color: #1b2a00;
}

.shot[data-tone="speak"] .sticker {
  --tone: var(--ring-speak);
  color: #00262e;
}

.js .shot {
  opacity: 0;
  transform: translateY(40px) rotate(calc(var(--tilt) * 4));
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.5s ease;
}

.js .shot.in {
  opacity: 1;
  transform: rotate(var(--tilt));
}

@media (prefers-reduced-motion: reduce) {
  .js .shot {
    opacity: 1;
    transform: rotate(var(--tilt));
    transition: none;
  }
}

@media (min-width: 640px) {
  .widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
    align-items: start;
  }

  .widgets .shot {
    margin: 0;
  }

  .widgets .shot:nth-child(even) {
    margin-top: 80px;
  }

  .widgets.solo {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
}

@media (min-width: 960px) {
  .how-group {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-top: 72px;
  }

  .how-group.flip {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .how-group.flip .how-copy {
    order: 2;
  }

  .how-copy {
    position: sticky;
    top: 40px;
  }

  .widgets {
    margin-top: 0;
  }
}

.widget {
  --dim: rgba(250, 246, 236, 0.62);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: 18px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(43, 33, 22, 0.5);
}

:where(.widget) p {
  margin: 0;
}

.widget svg {
  display: block;
}

.widget.dark {
  background: #332e2b;
  color: #faf6ec;
  border-color: transparent;
}

.widget.paused,
.widget.paused * {
  animation-play-state: paused !important;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Recording, as the sheet the red button opens */

.w-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 340px;
  padding-top: 10px;
  text-align: center;
}

.grabber {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  margin-bottom: 16px;
}

.rec-prompt {
  font-size: 1.3rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.rec-time {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.rec-wave {
  position: relative;
  width: 100%;
  height: 92px;
  margin: 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 2.5px;
}

.rec-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.rec-wave span {
  position: relative;
  flex: 1;
  height: 6%;
  min-height: 2px;
  border-radius: 2px;
  background: var(--rec);
}

.rec-wave span:nth-child(n + 12) {
  height: 30%;
}

.rec-wave span:nth-child(3n + 12) {
  height: 62%;
}

.rec-wave span:nth-child(5n + 14) {
  height: 86%;
}

.rec-wave span:nth-child(7n + 13) {
  height: 18%;
}

/* After recording, the memo turns into a story: the German writes itself out, then the finished
   story arrives. */
.rec-make {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

.w-record.creating .rec-make {
  display: flex;
}

.w-record.creating .rec-wave,
.w-record.creating .rec-time,
.w-record.creating .rec-button {
  display: none;
}

.make-memo {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rec) 12%, transparent);
  color: var(--rec);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  animation: enter 0.4s ease-out;
}

.make-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.make-wave span {
  width: 2px;
  height: 45%;
  border-radius: 1px;
  background: currentColor;
}

.make-wave span:nth-child(3n) {
  height: 90%;
}

.make-wave span:nth-child(4n + 1) {
  height: 65%;
}

.make-wave span:nth-child(5n + 2) {
  height: 100%;
}

.make-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.make-status::before {
  content: "✦";
  color: var(--learn);
}

.make-text {
  min-height: 4.2em;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.js .make-text .w {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.js .make-text .w.shown {
  opacity: 1;
}

.make-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.js .make-ready:not(.ready) {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
}

.make-ready img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}

.make-title {
  font-weight: 700;
}

.make-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.rec-button {
  margin-top: auto;
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--text) 18%, transparent);
  display: grid;
  place-items: center;
}

.rec-button span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rec);
  transition: all 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.w-record.recording .rec-button span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

/* Blurred story art behind the player and the podcast */

.w-player::before,
.w-podcast::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -2;
  background: url("/assets/story-morning.jpg") center / cover;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.3);
}

.w-player::after,
.w-podcast::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.45);
}

/* Karaoke player */

.w-player {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}

.player-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-head img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.player-sub {
  font-size: 0.8rem;
  color: var(--dim);
}

.lyrics {
  flex: 1;
  height: 170px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 6%, #000 78%, transparent);
}

.lyrics-track {
  padding-top: 8px;
  transition: transform 0.6s ease;
}

.lyrics .line,
.pod-lines .line {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.3s ease, filter 0.3s ease;
}

.lyrics .line {
  margin-bottom: 14px;
}

.lyrics .line.current,
.pod-lines .line.current {
  color: #fff;
}

.lyrics .line.far,
.pod-lines .line.far {
  filter: blur(0.8px);
}

.line .w {
  opacity: 0.62;
  transition: opacity 0.25s ease;
}

.line .w.heard {
  opacity: 1;
}

.scrub {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.scrub span {
  display: block;
  height: 100%;
  width: 22%;
  background: #fff;
  transition: width 0.3s linear;
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: #fff;
}

.speed {
  font-size: 0.9rem;
  font-weight: 600;
}

.ctl svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ctl svg[fill="none"] {
  fill: none;
}

.ctl.play {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.ctl.play svg {
  width: 32px;
  height: 32px;
}

.w-player.playing .ctl.play svg {
  display: none;
}

.w-player.playing .ctl.play::before {
  content: "";
  width: 22px;
  height: 26px;
  background: linear-gradient(to right, #fff 0 34%, transparent 34% 66%, #fff 66%);
  border-radius: 3px;
}

/* Role play */

.w-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
}

.chat-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mono {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(rgba(250, 246, 236, 0.45), rgba(250, 246, 236, 0.25));
}

.chat-name {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
}

.chat-ring {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(250, 246, 236, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chat-log {
  flex: 1;
  height: 222px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
}

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.bubble.enter {
  animation: enter 0.35s ease-out;
}

.bubble.them {
  align-self: flex-start;
  background: rgba(250, 246, 236, 0.08);
  border-bottom-left-radius: 6px;
}

.bubble.me {
  align-self: flex-end;
  background: rgba(137, 212, 172, 0.16);
  border-bottom-right-radius: 6px;
}

.bubble.typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}

.voice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.voice-play {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 246, 236, 0.14);
}

.voice-play svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.voice-wave,
.composer-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  flex: 1;
}

.voice-wave span,
.composer-wave span {
  width: 2.5px;
  height: 40%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.voice-wave span:nth-child(3n),
.composer-wave span:nth-child(3n) {
  height: 80%;
}

.voice-wave span:nth-child(4n + 1),
.composer-wave span:nth-child(4n + 1) {
  height: 60%;
}

.voice-wave span:nth-child(5n + 2),
.composer-wave span:nth-child(5n + 2) {
  height: 100%;
}

.voice-wave span.heard {
  background: #fff;
}

.voice-time,
.composer-time {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.composer {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  background: rgba(250, 246, 236, 0.1);
  font-size: 0.9rem;
  color: rgba(250, 246, 236, 0.5);
}

.composer-rec {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.w-chat.recording .composer-field {
  display: none;
}

.w-chat.recording .composer-rec {
  display: flex;
}

.composer-wave span {
  background: var(--rec);
}

.composer-time {
  color: var(--rec);
}

.composer-stop {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--rec);
}

/* Picture exercise */

.w-picture {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pic {
  position: relative;
}

.pic img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.ai-label {
  position: absolute;
  right: 14px;
  bottom: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.pic-task {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 18px 18px;
}

.task-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

.pic-prompt {
  font-size: 1.05rem;
  font-weight: 600;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.1);
  font-size: 0.85rem;
  transition: filter 0.4s ease;
}

.w-picture.hinting .pill:not(.shown) {
  filter: blur(5px);
}

.pic-result {
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.w-picture.answering .pic-result {
  opacity: 0;
}

.score {
  font-size: 1.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.score-label {
  color: var(--dim);
  font-size: 0.85rem;
}

.passed {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #89d4ac;
  font-size: 0.9rem;
  font-weight: 600;
}

.passed svg,
.choice.correct svg {
  width: 17px;
  height: 17px;
  fill: #89d4ac;
}

/* Podcast */

.w-podcast {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 330px;
}

.pod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pod-title {
  font-weight: 700;
}

.pod-quiz {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
}

.pod-lines .speaker {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
}

.quiz {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.w-podcast.quizzing .pod-lines {
  display: none;
}

.w-podcast.quizzing .quiz {
  display: flex;
  animation: enter 0.35s ease-out;
}

.quiz-q {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(250, 246, 236, 0.25);
  background: rgba(250, 246, 236, 0.05);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.choice::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 246, 236, 0.5);
}

.choice.picked {
  border-color: rgba(250, 246, 236, 0.8);
  background: rgba(250, 246, 236, 0.12);
}

.choice.correct {
  border-color: #89d4ac;
}

.choice.correct::before {
  border-color: #89d4ac;
  background: #89d4ac;
  box-shadow: inset 0 0 0 3px #332e2b;
}

/* Word cards */

.w-cards {
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 18px 18px 30px;
}

.stack {
  position: relative;
  width: 100%;
  height: 262px;
  perspective: 900px;
}

.under {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.under.one {
  transform: translateY(10px) scaleX(0.92);
  background: #413a35;
}

.under.two {
  transform: translateY(20px) scaleX(0.84);
  background: #3a3430;
}

.card-throw {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.card-throw.instant,
.card-throw.instant .card-flip {
  transition: none;
}

.card-throw.thrown {
  transform: translateX(125%) rotate(16deg);
  opacity: 0;
}

.card-throw.entering {
  animation: card-in 0.45s ease-out;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}

.card-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card-flip.turned {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: 24px;
  background: #4a423c;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face.back {
  transform: rotateY(180deg);
}

.card-throw.rated .face {
  box-shadow: inset 0 0 0 3px #89d4ac, 0 6px 12px rgba(0, 0, 0, 0.25);
}

.face-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.kind {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.1);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.face-hint {
  margin-top: 22px;
  color: var(--dim);
  font-size: 0.85rem;
}

.face-big {
  margin-top: 4px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.12;
}

.face.back .face-big {
  margin-top: 22px;
}

.face-example {
  margin-top: 14px;
  font-size: 1rem;
}

.face-english {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.85rem;
}

.face-foot {
  margin-top: auto;
  color: var(--dim);
  font-size: 0.75rem;
  text-align: center;
}

.throw-label {
  position: absolute;
  top: 42%;
  left: 50%;
  padding: 4px 16px;
  border-radius: 999px;
  background: #226347;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.25s ease;
}

.card-throw.rated .throw-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Today's rings, as on Summary */

.w-rings {
  min-height: 250px;
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
}

.rings-title {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
}

.rings-title span {
  color: var(--muted);
  font-weight: 400;
}

.rings-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.rings-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.gauges {
  width: 128px;
  height: 128px;
  flex: none;
}

.gauges circle {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 64px 64px;
}

.gauges .track {
  opacity: 0.2;
}

.gauges .arc {
  transition: stroke-dasharray 1.1s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.gauges .learn {
  stroke: var(--ring-learn);
}

.gauges .review {
  stroke: var(--ring-review);
}

.gauges .speak {
  stroke: var(--ring-speak);
}

.gauges .arc.learn {
  stroke-dasharray: 66.7 100;
}

.gauges .arc.review {
  stroke-dasharray: 75 100;
}

.gauges .arc.speak {
  stroke-dasharray: 80 100;
}

.ring-stats {
  margin: 0;
}

.ring-stats dt {
  font-size: 0.85rem;
  font-weight: 600;
}

.ring-stats dd {
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

.ring-stats dt.learn {
  color: var(--ring-learn);
}

.ring-stats dt.review {
  color: var(--review-text);
}

.ring-stats dt.speak {
  color: var(--speak-text);
}

/* Three points under the demos, set straight on the page; only the plans get white cards. */
.how-more {
  display: grid;
  gap: 32px;
  margin-top: 72px;
}

.more-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-more h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.how-more p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 760px) {
  .how-more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Documents */

.doc {
  padding: 24px 0 72px;
}

.doc article {
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 12px 0 8px;
}

.doc h2 {
  font-size: 1.4rem;
  margin: 40px 0 10px;
}

.doc h3 {
  font-size: 1.1rem;
  margin: 26px 0 6px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 28px;
}

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 12px;
}

.doc .summary ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.doc th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.doc address {
  font-style: normal;
}

.placeholder {
  background: #ffe9a8;
  color: #3b2d00;
  padding: 0 4px;
  border-radius: 4px;
}

/* Footer */

/* Footer: a warm dark block that closes every page, its content inset well clear of the
   rounded corners. */
.site-footer {
  margin-top: 56px;
  padding: 56px 0 32px;
  border-radius: 32px 32px 0 0;
  background: #2b2116;
  color: rgba(250, 246, 236, 0.66);
  font-size: 0.95rem;
}

.site-footer a {
  color: #faf6ec;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .wrap {
  width: min(1080px, 100% - 56px);
}

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

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.site-footer .footer-logo:hover {
  text-decoration: none;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-slogan {
  margin: 22px 0 10px;
  color: #faf6ec;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.footer-note {
  margin: 0;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 236, 0.14);
  font-size: 0.85rem;
}

@media (min-width: 760px) {
  .site-footer {
    padding-top: 72px;
    border-radius: 40px 40px 0 0;
  }

  .site-footer .wrap {
    width: min(1080px, 100% - 112px);
  }
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 32px;
  }

  .hero-art {
    margin-bottom: 24px;
  }

  .hero-art img {
    width: 140px;
    border-radius: 30px;
  }

  .steps,
  .cards,
  .plans {
    grid-template-columns: 1fr;
  }


  .site-header nav {
    display: none;
  }
}

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

  .scroll-cue {
    animation: nudge 2.2s ease-in-out infinite;
  }

  @keyframes nudge {
    0%,
    100% {
      transform: translate(-50%, 0);
    }
    50% {
      transform: translate(-50%, 7px);
    }
  }

  .bubble.typing span {
    animation: typing 1s ease-in-out infinite;
  }

  .bubble.typing span:nth-child(2) {
    animation-delay: 0.15s;
  }

  .bubble.typing span:nth-child(3) {
    animation-delay: 0.3s;
  }

  .make-status::before {
    animation: pulse 1.2s ease-in-out infinite;
  }

  .composer-wave span {
    animation: speaking 0.7s ease-in-out infinite alternate;
  }

  .composer-wave span:nth-child(2n) {
    animation-duration: 0.5s;
  }

  @keyframes typing {
    50% {
      opacity: 0.3;
      transform: translateY(-2px);
    }
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes speaking {
    from {
      transform: scaleY(0.35);
    }
    to {
      transform: scaleY(1);
    }
  }

  .hero-art img {
    transition: transform 0.4s ease;
  }

  .hero-art img:hover {
    transform: rotate(-2deg) scale(1.02);
  }
}
