@font-face {
  font-family: Crimson;
  src: url("/assets/CrimsonPro-Regular.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Crimson;
  src: url("/assets/CrimsonPro-Italic.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/assets/DMSans-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #fffdf7;
  --ink: #2c2b27;
  --muted: #706b63;
  --accent: #c15e25;
  --accent-dark: #95613f;
  --product-accent: #c15e25;
  --line: #2c2b271a;
  --serif: Crimson, Georgia, serif;
  --sans: DM, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 24px 70px #60432612, 0 3px 10px #60432609;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(43px, 5.5vw, 76px);
}
h2 {
  font-size: clamp(37px, 4.1vw, 56px);
}
h3 {
  font-size: 29px;
  letter-spacing: -0.025em;
}
em {
  font-weight: 400;
  color: var(--accent);
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  width: 23px;
  height: 23px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #285e99;
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.landing-header-slot {
  min-height: 108px;
}
.site-header.landing-header {
  width: 100%;
  max-width: none;
  padding-inline: max(48px, calc((100% - 1120px) / 2));
}
.landing-header .landing-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  padding-inline: max(48px, calc((100% - 1120px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px #60432609;
  animation: landing-header-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes landing-header-enter {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-header.is-sticky {
    animation: none;
  }
}
@media (max-width: 760px) {
  .landing-header-slot {
    min-height: 82px;
  }
  .site-header.landing-header {
    gap: 12px;
    padding-inline: 20px;
  }
  .landing-header .landing-navigation {
    gap: 8px;
  }
  .landing-header .button {
    padding-inline: 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .landing-header.is-sticky {
    min-height: 72px;
    padding-inline: 20px;
  }
}
.brand {
  width: 142px;
  flex-shrink: 0;
}
.brand img {
  width: 100%;
  height: auto;
}
.navigation summary {
  display: none;
}
.navigation nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13px;
}
.navigation:not([open]) > nav {
  display: flex;
}
.navigation a:not(.button):hover,
.site-footer a:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 12px 25px;
  min-height: 46px;
  border-radius: 99px;
  line-height: 1.35;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--accent);
  color: white;
  box-shadow: inset 0 1px 2px #ffffff24;
}
.primary:hover {
  background: color-mix(in srgb, var(--accent) 50%, #7c5034);
}
.secondary {
  border-color: #a8a7a0;
  background: #ffffff70;
}
.secondary:hover {
  background: color-mix(in srgb, #ffffff70 50%, #f5f1e8);
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero {
  text-align: center;
  padding: 57px 0 0;
}
.eyebrow {
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 19px auto 20px;
  max-width: 1030px;
  text-wrap: balance;
}
.hero .lede {
  max-width: 650px;
  margin-inline: auto;
  text-wrap: balance;
}
.lede {
  font-size: 17px;
  line-height: 1.6;
}
.hero .actions,
.final-cta .actions {
  justify-content: center;
  margin-top: 29px;
}
.hero .button {
  min-width: 196px;
}
.availability {
  font-size: 12px;
  margin-top: 17px;
}
.hero-composition {
  position: relative;
  text-align: left;
  margin: 54px auto 0;
  padding: 0 85px 28px 25px;
}
.product-window {
  background: #fffefb;
  border: 1px solid #dbd8d0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.window-bar {
  height: 37px;
  background: #f6f5f1;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 15px;
  font-size: 10px;
  color: var(--muted);
}
.window-bar > span:first-child {
  letter-spacing: 3px;
  color: #c78d6a;
}
.demo-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.app-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  min-height: 391px;
}
.app-sidebar {
  background: #fcfaf6;
  border-right: 1px solid var(--line);
  padding: 25px 12px;
}
.app-sidebar .brand {
  width: 104px;
  margin: 0 9px 23px;
}
.app-sidebar a {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: var(--muted);
  padding: 11px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.app-sidebar a.selected {
  color: var(--accent);
  background: #fcf0e5;
}
.app-sidebar a:hover {
  background: #f5eee4;
}
.app-sidebar svg {
  width: 19px;
  height: 19px;
}
.word-demo {
  padding: 24px 30px 16px;
  min-width: 0;
}
.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.demo-heading h2 {
  font-size: 29px;
  font-style: italic;
  letter-spacing: -0.035em;
}
.demo-heading p {
  font-size: 11px;
  margin-top: 4px;
}
.streak-icon {
  color: var(--accent);
}
.streak-icon svg {
  width: 28px;
  height: 28px;
}
.search-row {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #00000003;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  min-width: 0;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  font-size: 12px;
}
.search-row select {
  border: 1px solid var(--line);
  background: #fffefb;
  border-radius: 8px;
  font-size: 11px;
  padding: 8px;
  max-width: 88px;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin: 18px 0 10px;
}
.date-label span {
  border-bottom: 1px dashed var(--line);
  flex: 1;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-content: start;
}
.pill {
  display: inline-flex;
  border: 1px solid #e6aaaa40;
  background: #fceeee;
  padding: 8px 16px;
  line-height: 1.4;
  font-size: 13px;
  border-radius: 99px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pill:nth-child(5n + 2) {
  background: #f2efff;
  border-color: #d5caff60;
}
.pill:nth-child(5n + 3) {
  background: #edf4f2;
  border-color: #bcd5ce50;
}
.pill:nth-child(5n + 4) {
  background: #faf1e8;
  border-color: #e9ceaf50;
}
.pill:nth-child(5n) {
  background: #edf4ff;
  border-color: #c0d5f850;
}
button.pill:hover {
  filter: brightness(0.96);
}
.add-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.add-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  background: transparent;
}
.add-form .button {
  min-width: 110px;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 40px;
  background: #95613f;
}
.demo-note {
  font-size: 11px;
  margin-top: 12px;
  color: var(--muted);
}
.paper-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 15px 20px 19px;
  background: #fffef8;
  border: 1px solid #ebdfcd;
  border-radius: 16px;
  box-shadow:
    0 5px 0 -1px #f9f4eb,
    0 6px 0 #e8dfd3,
    0 11px 0 -1px #fffdf7,
    0 12px 0 #e8dfd3,
    0 20px 26px #69503617;
}
.paper-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.paper-card > span {
  font: italic 36px/1.1 var(--serif);
  color: var(--ink);
}
.hero-card {
  position: absolute;
  width: 210px;
  right: -12px;
  bottom: 5px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-card > span {
  font-size: 30px;
}
.section {
  padding-top: 98px;
  padding-bottom: 32px;
}
.section-heading {
  margin-bottom: 43px;
}
.centered {
  text-align: center;
}
.section-heading p:not(.eyebrow) {
  max-width: 530px;
  margin: 19px auto 0;
}
.section-heading .eyebrow {
  margin-bottom: 15px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps article {
  padding-right: 25px;
  border-right: 1px solid var(--line);
}
.steps article:last-child {
  border: 0;
  padding: 0;
}
.step-number {
  color: var(--accent);
  font-size: 12px;
}
.steps h3 {
  font-size: 26px;
  margin: 8px 0 10px;
}
.steps p {
  font-size: 13px;
  min-height: 50px;
}
.mini-preview {
  margin-top: 19px;
  min-height: 117px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  align-items: center;
}
.mini-preview .pill {
  font-size: 11px;
  padding: 7px 12px;
}
.confidence {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.confidence > span,
.confidence > button {
  flex: 1;
  text-align: center;
  background: #fbefed;
  border: 1px solid #edc5bb60;
  border-radius: 9px;
  padding: 9px 6px;
  color: #c64e40;
  font-size: 26px;
  line-height: 1.2;
}
.confidence > :nth-child(2) {
  background: #faf4eb;
  color: #b36d39;
}
.confidence > :nth-child(3) {
  background: #edf4ee;
  color: #438468;
}
.confidence small {
  display: block;
  font: 10px/1.5 var(--sans);
  color: var(--ink);
  margin-top: 6px;
}
.tally {
  background: linear-gradient(110deg, #fff3dc66, #eaf3ff99, #f4eeff99);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.tally i {
  font: italic 17px var(--serif);
}
.tally strong {
  font: 400 49px var(--serif);
  letter-spacing: -0.04em;
}
.tally small {
  font-size: 9px;
  color: var(--muted);
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 104px;
}
.feature-copy .eyebrow {
  margin-bottom: 19px;
}
.feature-copy h2 {
  margin-bottom: 23px;
}
.feature-copy > p:not(.eyebrow) {
  margin-bottom: 18px;
}
.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  padding-block: 8px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.flash-demo {
  max-width: 345px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.flip-card {
  position: relative;
  width: 100%;
  padding: 0;
  transition: transform 0.25s;
}
.flip-card:hover {
  transform: rotate(-2deg);
}
.flip-card .paper-card {
  padding: 15px 24px 22px;
  transform: rotate(-4deg);
}
.flip-card .paper-card img {
  max-height: 260px;
}
.flip-card[aria-pressed="true"] {
  transform: rotate(2deg);
}
.card-answer {
  position: absolute;
  inset: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffaf0;
  border: 1px solid #ebdfcd;
  border-radius: 16px;
  font: italic 48px var(--serif);
  box-shadow: var(--shadow);
}
.card-answer small {
  font: 13px var(--sans);
  margin-top: 20px;
}
.flash-demo > .demo-note {
  margin-top: 24px;
}
.rating {
  margin-top: 16px;
}
.rating button {
  min-height: 66px;
}
.rating button:hover {
  border-color: currentColor;
}
.soft-band {
  background: #f8f5ed;
  margin-top: 84px;
}
.soft-band .section {
  padding-top: 65px;
  padding-bottom: 65px;
}
.vocab-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 10px 25px #56462d06;
}
.vocab-note h3 {
  font-style: italic;
  font-size: 37px;
  margin: 17px 0 25px;
}
.word-detail {
  margin: 26px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.word-detail > span {
  font: italic 29px var(--serif);
}
.word-detail small {
  display: block;
  font-size: 11px;
  margin: 5px 0 8px;
  color: var(--muted);
}
.word-detail p {
  font-size: 14px;
}
.panel {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffefb;
}
.quiz-demo {
  box-shadow: var(--shadow);
}
.quiz-demo h3 {
  font-size: 35px;
  margin: 35px 0 10px;
  line-height: 1.15;
}
.quiz-demo > p {
  font-size: 13px;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 24px 0 20px;
}
.quiz-options button {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 52px;
  background: #fcfaf5;
  font-size: 13px;
}
.quiz-options button:not(:disabled):hover {
  border-color: var(--product-accent);
}
.quiz-options .correct {
  background: #e5f0e8;
  border-color: #438468;
  color: #235d40;
}
.quiz-options .incorrect {
  background: #f9e8e3;
  border-color: #bb533b;
}
.quiz-status {
  min-height: 42px;
}
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.progress-grid h3 {
  font-size: 26px;
}
.progress-grid .demo-heading {
  align-items: start;
  flex-wrap: wrap;
  gap: 7px;
}
.progress-grid .panel > p {
  font-size: 13px;
  margin-top: 18px;
}
.streak-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 15px;
}
.streak-total svg {
  color: var(--accent);
  width: 37px;
  height: 37px;
}
.streak-total strong {
  font: 54px var(--serif);
}
.streak-total > span {
  font-size: 13px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}
.week small {
  font-size: 10px;
  color: var(--muted);
}
.week span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #f7e4d4;
  border: 1px solid #edcfb8;
  border-radius: 50%;
  margin-top: 7px;
  color: #94633d;
}
.milestone {
  text-align: center;
}
.stats-tabs,
.topic-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 23px 0;
}
.stats-tabs button,
.topic-filters button {
  font-size: 12px;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.stats-tabs button[aria-pressed="true"],
.topic-filters button[aria-pressed="true"] {
  background: #ede5d7;
  border-color: #c9b99c;
}
.stats-number {
  display: flex;
  gap: 13px;
  align-items: baseline;
}
.stats-number strong {
  font: 49px var(--serif);
}
.stats-number span {
  font-size: 12px;
  color: var(--muted);
}
.bars {
  height: 125px;
  display: flex;
  gap: 14px;
  margin-top: 16px;
  align-items: end;
}
.bars > div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 7px;
}
.bars span {
  display: block;
  width: 100%;
  height: var(--height);
  background: #cda78988;
  border-radius: 5px 5px 0 0;
  transition: height 0.3s;
}
.bars small {
  font-size: 9px;
}
.stats-demo .text-link {
  font-size: 12px;
}
.device-scene {
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 45px;
}
.small-desktop {
  width: 100%;
  border: 1px solid #dbd8d0;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: var(--shadow);
}
.device-content {
  padding: 22px;
}
.device-content h3 {
  font-size: 25px;
  font-style: italic;
  margin-bottom: 20px;
}
.device-content .pill {
  font-size: 10px;
  padding: 6px 12px;
}
.device-content .tally {
  width: 70%;
  border-radius: 8px;
  margin-top: 20px;
  padding: 12px;
}
.device-content .tally i {
  font-size: 12px;
}
.device-content .tally strong {
  font-size: 36px;
}
.phone {
  position: absolute;
  height: 320px;
  width: auto;
  right: -7px;
  bottom: 0;
  border: 5px solid #302f2a;
  border-radius: 28px;
  box-shadow: 0 17px 25px #362c281a;
}
.devices-section .actions .button {
  font-size: 12px;
  padding: 12px 18px;
}
.editorial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.editorial-heading h2 {
  margin-top: 13px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.article-card {
  display: block;
}
.article-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 21px;
  overflow: hidden;
}
.article-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
  transition: transform 180ms ease;
}
.article-card .eyebrow {
  font-size: 9px;
}
.article-card h3 {
  font-size: 28px;
  margin: 10px 0 13px;
  line-height: 1.1;
}
.article-card p {
  font-size: 13px;
}
.article-card .text-link {
  margin-top: 13px;
  font-size: 12px;
}
.article-card:hover h3 {
  color: var(--accent-dark);
}
.article-card:hover .article-art img {
  transform: scale(1.015);
}
.final-cta {
  text-align: center;
  background: #fcf1e7;
  border-radius: 22px;
  padding: 45px 20px;
  margin-top: 86px;
  margin-bottom: 45px;
}
.final-cta h2 {
  font-size: 43px;
  margin-top: 14px;
}
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 20px 0 34px;
}
.site-footer .brand {
  width: 128px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  margin-left: auto;
}
.site-footer > p {
  width: 100%;
  font-size: 10px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.blog-index {
  padding: 62px 0 100px;
  min-height: 75vh;
}
.blog-index h1 {
  margin: 20px 0 22px;
}
.blog-index .topic-filters {
  margin: 40px 0 30px;
}
.article-header {
  padding: 40px 0 52px;
  max-width: 900px;
}
.article-header .eyebrow {
  margin: 35px 0 16px;
}
.article-header h1 {
  max-width: 850px;
}
.article-header .lede {
  margin: 23px 0;
}
.article-body .article-updated {
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
}
.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 700px);
  gap: 70px;
}
.toc {
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: 85vh;
  overflow: auto;
}
.toc summary {
  font-weight: 500;
  font-size: 13px;
  padding: 8px 0;
}
.toc nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 13px;
}
.toc a {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.toc a:hover {
  color: var(--accent-dark);
}
.article-body {
  min-width: 0;
  font-size: 16px;
  line-height: 1.85;
}
.article-body h2 {
  font-size: 36px;
  margin: 42px 0 19px;
  line-height: 1.1;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body h3 {
  font-size: 26px;
  margin: 30px 0 15px;
}
.article-body p {
  margin: 15px 0;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
}
.article-body a:not(.button) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-body blockquote,
.article-callout,
.article-body .takeaway {
  border-left: 3px solid var(--product-accent);
  background: #f8f2e8;
  padding: 22px 28px;
  margin: 32px 0;
}
.article-body blockquote {
  font: italic 27px/1.4 var(--serif);
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
}
.article-body th,
.article-body td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.article-body th {
  background: #f4eee4;
}
.table-scroll {
  overflow: auto;
  margin: 28px 0;
}
/* Comparison guides: quiet rows and clear, consistently sized status badges. */
.comparison-table {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffefa;
  box-shadow: 0 8px 28px #2c2b2706;
}
.comparison-table:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}
.article-body .comparison-table table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.article-body .comparison-table th,
.article-body .comparison-table td {
  border: 0;
  padding: 18px 22px;
  vertical-align: middle;
}
.article-body .comparison-table thead th {
  background: #f5f1e9;
  font-size: 15px;
  font-weight: 700;
  padding-block: 22px;
}
.article-body .comparison-table th:first-child,
.article-body .comparison-table td:first-child {
  width: 48%;
  font-weight: 600;
}
.article-body .comparison-table th:not(:first-child),
.article-body .comparison-table td:not(:first-child) {
  text-align: center;
}
.article-body .comparison-table tbody tr + tr td {
  border-top: 1px solid #eae7de;
}
.article-body .comparison-table td:nth-child(2) {
  background: #f1f6ed;
}
.article-body .comparison-table thead th:nth-child(2) {
  background: #e5eedf;
  color: #31533c;
}
.comparison-table span[aria-label="Yes"],
.comparison-table span[aria-label="No"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 400 24px/1 Arial, sans-serif;
  vertical-align: middle;
}
.comparison-table span[aria-label="Yes"] {
  background: #dcebdc;
  color: #286044;
  font-size: 0;
}
.comparison-table span[aria-label="Yes"]::before {
  content: "";
  width: 7px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.comparison-table span[aria-label="No"] {
  background: #f7e7e2;
  color: #a34e42;
}
@media (max-width: 600px) {
  .comparison-table { border-radius: 14px; }
  .article-body .comparison-table table { font-size: 12px; }
  .article-body .comparison-table th,
  .article-body .comparison-table td { padding: 14px 10px; }
  .article-body .comparison-table thead th { font-size: 12px; padding-block: 18px; }
  .article-body .comparison-table th:first-child,
  .article-body .comparison-table td:first-child { width: 44%; }
  .comparison-table span[aria-label] { width: 32px; height: 32px; }
  .comparison-table span[aria-label="No"] { font-size: 22px; }
}
.article-body img,
.article-body iframe {
  max-width: 100%;
  border-radius: 10px;
}
.article-body iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}
.article-callout h3 {
  margin: 0;
}
.article-callout .button {
  font-size: 12px;
}
.previous-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.previous-next a {
  max-width: 47%;
}
.reading-progress {
  height: 3px;
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  z-index: 50;
}
@media (min-width: 1450px) {
  .wrap {
    width: min(1200px, calc(100% - 120px));
  }
  .hero {
    padding-top: 75px;
  }
  .hero-composition {
    max-width: 1110px;
    margin-top: 65px;
  }
  .word-demo {
    padding: 30px 35px;
  }
  .app-layout {
    min-height: 420px;
  }
  .section {
    padding-top: 115px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .navigation nav {
    gap: 17px;
    font-size: 12px;
  }
  .brand {
    width: 123px;
  }
  .navigation .button {
    font-size: 12px;
    padding: 10px 17px;
  }
  .hero-composition {
    padding-left: 0;
    padding-right: 55px;
  }
  .app-layout {
    grid-template-columns: 133px minmax(0, 1fr);
  }
  .app-sidebar {
    padding-inline: 8px;
  }
  .app-sidebar .brand {
    width: 91px;
  }
  .word-demo {
    padding: 23px 22px;
  }
  .hero-card {
    width: 177px;
    right: -7px;
    bottom: -10px;
  }
  .feature-row {
    gap: 60px;
  }
  .steps {
    gap: 21px;
  }
  .steps article {
    padding-right: 18px;
  }
  .steps h3 {
    font-size: 23px;
  }
  .mini-preview {
    padding: 12px 8px;
  }
  .mini-preview .pill {
    padding: 6px 9px;
    font-size: 10px;
  }
  .article-layout {
    gap: 35px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .site-footer nav {
    max-width: 70%;
  }
  .panel {
    padding: 25px;
  }
  .week {
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  .site-header {
    min-height: 82px;
  }
  .brand {
    width: 122px;
  }
  .navigation {
    position: relative;
  }
  .navigation summary {
    display: block;
    list-style: none;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 9px 18px;
    min-height: 42px;
  }
  .navigation summary::-webkit-details-marker {
    display: none;
  }
  .navigation:not([open]) > nav {
    display: none;
  }
  .navigation nav {
    position: absolute;
    right: 0;
    top: 51px;
    width: 240px;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .navigation nav a {
    padding: 12px;
    font-size: 14px;
  }
  .hero {
    padding-top: 33px;
  }
  .hero h1 {
    font-size: clamp(42px, 7.8vw, 59px);
    margin-top: 15px;
  }
  .hero h1 br {
    display: none;
  }
  .hero .lede {
    font-size: 15px;
    max-width: 430px;
    margin: auto;
  }
  .desktop-break {
    display: none;
  }
  .hero .actions {
    margin-top: 24px;
    gap: 9px;
  }
  .hero .button {
    min-width: 0;
    font-size: 12px;
    padding: 12px 20px;
  }
  .availability {
    font-size: 11px;
  }
  .hero-composition {
    margin-top: 34px;
    padding: 0 0 72px;
  }
  .app-sidebar {
    display: none;
  }
  .app-layout {
    display: block;
    min-height: 0;
  }
  .word-demo {
    padding: 21px 20px 22px;
  }
  .demo-heading h2 {
    font-size: 27px;
  }
  .hero-card {
    width: 130px;
    right: 9px;
    bottom: -6px;
    padding: 7px 9px 13px;
    border-radius: 10px;
  }
  .hero-card > span {
    font-size: 22px;
  }
  .word-demo .pills {
    padding-right: 0;
    min-height: 155px;
  }
  .hero-card img {
    max-height: 104px;
  }
  .window-bar .demo-label {
    display: none;
  }
  .add-form {
    margin-top: 20px;
  }
  .add-form .button {
    min-width: 92px;
    font-size: 10px;
  }
  .demo-note {
    font-size: 10px;
  }
  .section {
    padding-top: 67px;
    padding-bottom: 15px;
  }
  .steps {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .steps article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }
  .steps article:last-child {
    padding-bottom: 0;
  }
  .steps .step-number,
  .steps h3,
  .steps p {
    grid-column: 1;
  }
  .steps .mini-preview {
    grid-column: 2;
    grid-row: 1/4;
    margin: 0;
    align-self: center;
  }
  .steps h3 {
    font-size: 25px;
    margin: 5px 0 10px;
  }
  .steps p {
    font-size: 12px;
    min-height: 0;
  }
  .steps .mini-preview.pills {
    gap: 5px;
  }
  .section-heading {
    margin-bottom: 30px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 39px;
  }
  .feature-row .feature-copy {
    order: 0;
    max-width: 510px;
  }
  .flash-demo {
    order: 1;
    max-width: 295px;
    margin-top: 7px;
  }
  .feature-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .feature-copy h2 {
    font-size: 45px;
    margin-bottom: 20px;
  }
  .feature-copy .eyebrow {
    margin-bottom: 13px;
  }
  .soft-band {
    margin-top: 58px;
  }
  .soft-band .section {
    padding-block: 43px;
  }
  .vocab-note {
    padding: 27px;
  }
  .quiz-demo {
    order: 1;
  }
  .progress-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 26px;
  }
  .progress-grid .panel > p {
    font-size: 13px;
  }
  .progress-grid .demo-heading {
    flex-wrap: nowrap;
  }
  .progress-grid h3 {
    font-size: 25px;
  }
  .week {
    gap: 13px;
  }
  .streak-total {
    margin-top: 20px;
  }
  .week span {
    max-width: 43px;
    margin-inline: auto;
  }
  .device-scene {
    order: 1;
    max-width: 450px;
    width: 100%;
    margin: auto;
  }
  .device-content .pill {
    font-size: 12px;
  }
  .devices-section .actions {
    margin-top: 22px;
  }
  .editorial-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .article-card {
    max-width: 580px;
  }
  .article-art {
    padding: 8px;
  }
  .article-card h3 {
    font-size: 30px;
  }
  .article-card p {
    font-size: 14px;
  }
  .final-cta {
    margin-top: 60px;
    margin-bottom: 25px;
    padding: 35px 19px;
  }
  .final-cta h2 {
    font-size: 37px;
  }
  .final-cta .actions {
    gap: 9px;
  }
  .final-cta .button {
    font-size: 12px;
    padding: 11px 18px;
  }
  .site-footer {
    padding-bottom: 30px;
  }
  .site-footer nav {
    max-width: 100%;
    width: 100%;
    margin: 0;
    gap: 16px 21px;
  }
  .site-footer > p {
    font-size: 11px;
  }
  .blog-index {
    padding-top: 35px;
  }
  .blog-index h1 {
    font-size: 47px;
  }
  .article-header {
    padding-top: 25px;
    padding-bottom: 35px;
  }
  .article-header h1 {
    font-size: 48px;
  }
  .article-layout {
    display: block;
  }
  .toc {
    position: static;
    max-height: none;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f6f2e9;
    border-radius: 10px;
  }
  .toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 33px;
  }
  .article-header .lede {
    font-size: 16px;
  }
  .article-body .actions {
    gap: 10px;
  }
}
@media (max-width: 390px) {
  .site-header.landing-header {
    padding-inline: 16px;
  }
  .wrap {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .hero h1 {
    font-size: 40px;
  }
  .word-demo {
    padding: 18px 14px;
  }
  .demo-heading h2 {
    font-size: 24px;
  }
  .pill {
    padding: 7px 12px;
    font-size: 12px;
  }
  .steps article {
    grid-template-columns: 1fr;
  }
  .steps .mini-preview {
    grid-column: 1;
    grid-row: auto;
    margin-top: 15px;
  }
  .steps p {
    max-width: 275px;
  }
  .mini-preview {
    min-height: 100px;
  }
  .week {
    gap: 8px;
  }
  .feature-copy h2 {
    font-size: 40px;
  }
  .hero .button {
    padding-inline: 16px;
  }
  .final-cta .button {
    padding-inline: 14px;
  }
  .toc nav {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Leave the interactive word controls clear of the supporting illustration. */
@media (min-width: 761px) {
  .hero-composition {
    padding-right: 145px;
  }
  .hero-card {
    width: 166px;
    right: -5px;
    bottom: 4px;
  }
  .hero-card > span {
    font-size: 27px;
  }
  .word-demo {
    padding-inline: 24px;
  }
  .word-demo .pills {
    padding-right: 28px;
  }
}
@media (min-width: 761px) {
  .navigation::details-content {
    content-visibility: visible !important;
  }
  .navigation:not([open])::details-content {
    display: block;
  }
}
.calendar {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.calendar > p {
  font-size: 11px;
  margin-bottom: 11px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.calendar-grid span {
  font-size: 10px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
}
.calendar-grid .active {
  background: #f3e3d3;
  color: #744f32;
}
.calendar-grid .practised {
  background: #edf1e5;
  color: #45643c;
}
/* Darker brand shade keeps white button labels readable (5.17:1). */
.primary {
  background: var(--accent);
}
.primary:hover {
  background: color-mix(in srgb, var(--accent) 50%, #7c5034);
}

/* Hero preview: the product's native Words and Places surfaces. */
.site-header > .brand {
  width: 106.5px;
}
.hero-composition {
  padding: 0 200px 38px 0;
}
.product-window {
  height: 650px;
  background: linear-gradient(135deg, #fffdf7, #f4f8ff, #fff8f3);
}
.product-window .app-layout {
  height: 613px;
  min-height: 0;
  grid-template-columns: 174px minmax(0, 1fr);
}
.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 12px 18px;
  background: #fffdf7;
}
.app-sidebar .brand {
  width: 88px;
  margin: 0 12px 30px;
}
.preview-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  flex-shrink: 0;
  margin-bottom: 4px;
  padding: 0 12px;
  border-radius: 12px;
  font:
    500 14px DM,
    sans-serif;
  color: #6b6558;
}
.preview-nav-row.selected {
  background: #c17f5412;
  color: #c17f54;
}
.preview-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
  flex-shrink: 0;
}
.preview-menu {
  margin-top: auto;
}
.product-window .word-demo {
  padding: 34px 24px 36px;
  overflow: hidden;
}
.demo-heading h2 {
  font-size: 22px;
  letter-spacing: normal;
}
.demo-heading p {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.68;
}
.preview-sort {
  width: 36px;
  height: 36px;
  border: 1px solid #c17f5440;
  border-radius: 50%;
  background: #c17f5412;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.preview-sort svg {
  width: 18px;
  height: 18px;
}
.product-window .search-row {
  margin: 18px 0;
}
.product-window .search {
  height: 46px;
  border-radius: 14px;
  border-color: #c17f5440;
  background: #00000008;
  color: #6b6558;
  padding: 0 16px;
  font-size: 14px;
}
.preview-date + .preview-date {
  margin-top: 27px;
}
.preview-date .date-label {
  font:
    400 13px DM,
    sans-serif;
  letter-spacing: normal;
  color: #6b6558;
  opacity: 0.62;
  margin: 2px 0 11px;
}
.preview-date .date-label span {
  border: 0;
  height: 2px;
  background: radial-gradient(circle, #6b6558 0.7px, transparent 1px) repeat-x;
  background-size: 5px 2px;
  opacity: 0.32;
}
.product-window .pills {
  gap: 9.576px;
  min-height: 0;
}
.product-window .pill {
  font:
    400 15.561px/1.25 DM,
    sans-serif;
  padding: 10.773px 19.152px;
  border-radius: 99px;
  color: #2c2b27;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
}
.product-window .pill:hover {
  filter: brightness(0.97);
}
.preview-detail {
  width: calc(100% - 48px);
  max-width: 560px;
  padding: 0;
  border: 1px solid #c17f5440;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdf7, #f4f8ff, #fff8f3);
  color: #2c2b27;
  text-align: left;
}
.preview-detail::backdrop {
  background: #0000002e;
  backdrop-filter: blur(5px);
}
.preview-detail .native-detail {
  padding: 32px;
  display: grid;
  gap: 20px;
}
.preview-detail h2 {
  font-size: 34px;
  font-style: italic;
  margin-right: 30px;
}
.preview-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c17f5412;
  font-size: 24px;
  line-height: 1;
}
.detail-tags {
  display: flex;
  gap: 8px;
}
.detail-tags span {
  border-radius: 99px;
  background: #c17f5412;
  padding: 6px 12px;
  font-size: 12px;
  color: #c17f54;
}
.detail-grid {
  display: flex;
  gap: 14px;
}
.detail-grid > div,
.detail-card {
  padding: 16px;
  border: 1px solid #c17f5440;
  border-radius: 16px;
  background: #c17f5412;
  flex: 1;
}
.native-detail small {
  font-size: 11px;
  letter-spacing: 1px;
  color: #6b6558;
}
.native-detail p {
  margin-top: 6px;
  font-size: 15px;
  color: #2c2b27;
}
.hero-flashcard {
  position: absolute;
  width: 299px;
  right: -5px;
  transform: rotate(-7deg);
  animation: hero-jiggle 6s ease-in-out infinite;
  bottom: 48px;
  --top: #fffdf7;
  --border: #c17f5440;
  --subtext: #6b6558;
  --text: #2c2b27;
  --faint: #c17f5412;
  --accent: #c17f54;
}
.hero-flashcard .flashcard-stack {
  position: relative;
  isolation: isolate;
}
.hero-flashcard .flashcard-stack:before {
  content: "";
  position: absolute;
  inset: 10px -5px -10px 5px;
  transform: rotate(0.8deg);
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 26px;
  z-index: -1;
}
.hero-flashcard .flashcard-face {
  aspect-ratio: 1.55/1.75;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--top);
  box-shadow: 0 10px 20px #00000021;
  position: relative;
}
.hero-flashcard .flashcard-art {
  position: absolute;
  object-fit: contain;
  width: 73.1%;
  height: 62%;
  left: 13.45%;
  top: 9%;
}
.hero-flashcard .flashcard-answer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 4%;
  height: 76px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font:
    italic 300 38px/1 Crimson,
    serif;
}
.hero-flashcard .flashcard-translation {
  font:
    400 16px/1.25 DM,
    sans-serif;
  color: var(--subtext);
}
.hero-flashcard .flashcard-controls {
  margin-top: 32px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-flashcard .card-reveal {
  width: 80%;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--accent), #8b7ec8);
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: 0;
  box-shadow: 0 8px 20px #60432620;
}
.hero-flashcard .card-ratings {
  display: flex;
  gap: 12px;
  width: 110%;
  flex-shrink: 0;
}
.hero-flashcard .card-ratings button {
  flex: 1;
  min-width: 0;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--tint) 24%, transparent);
  background: color-mix(in srgb, var(--tint) 7.5%, #fffdf7);
  box-shadow: 0 8px 20px #60432612;
  transition: transform 0.12s;
}
.hero-flashcard .card-ratings button:active {
  transform: scale(0.94);
}
.hero-flashcard .card-ratings svg,
.hero-flashcard .card-ratings b {
  color: var(--tint);
  height: 28px;
  width: 28px;
  font-size: 25px;
  line-height: 28px;
  text-align: center;
}
.hero-flashcard .card-ratings span {
  font-size: 14px;
  font-weight: 600;
}
.hero-flashcard [hidden] {
  display: none;
}
@keyframes hero-jiggle {
  0%,
  75%,
  100% {
    transform: rotate(-7deg);
  }
  80% {
    transform: rotate(-4deg);
  }
  85% {
    transform: rotate(-9deg);
  }
  90% {
    transform: rotate(-5deg);
  }
}
@media (max-width: 1000px) {
  .hero-composition {
    padding-right: 110px;
  }
  .hero-flashcard {
    width: 299px;
    right: 10px;
    bottom: -90px;
  }
  .hero-composition {
    margin-bottom: 110px;
  }
}
@media (max-width: 760px) {
  .hero-composition {
    padding: 0;
    margin-bottom: 0;
  }
  .product-window {
    height: 680px;
  }
  .product-window .app-layout {
    height: 643px;
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .app-sidebar {
    display: flex;
    padding: 24px 6px 12px;
  }
  .app-sidebar .brand {
    display: none;
  }
  .preview-nav-row {
    font-size: 0;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .product-window .word-demo {
    padding: 24px 16px;
  }
  .demo-heading h2 {
    font-size: 22px;
  }
  .product-window .pill {
    padding: 9px 13px;
    font-size: 14px;
  }
  .hero-flashcard {
    position: relative;
    width: 322px;
    max-width: calc(100% - 20px);
    right: auto;
    bottom: auto;
    margin: 48px auto 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flashcard {
    animation: none;
  }
}
.product-window .pills {
  padding-right: 0;
}
@media (max-width: 1000px) {
  .site-header > .brand {
    width: 92.25px;
  }
}
@media (max-width: 760px) {
  .site-header > .brand {
    width: 91.5px;
  }
}

/* Keep the information overlay within the browser illustration. */
.product-window {
  position: relative;
  height: 665px;
}
.product-window .app-layout {
  height: 628px;
}
.preview-overlay {
  position: absolute;
  inset: 37px 0 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: transparent;
  backdrop-filter: blur(5px);
  padding: 18px;
}
.preview-overlay[hidden] {
  display: none;
}
.preview-overlay .preview-detail {
  position: relative;
  inset: auto;
  margin: 0;
  width: 100%;
  max-width: 480px;
  max-height: none;
}
.preview-overlay .native-detail {
  padding: 24px;
  gap: 14px;
}

@media (max-width: 760px) {
  .product-window {
    height: 870px;
  }
  .product-window .app-layout {
    height: 833px;
  }
  .preview-overlay {
    padding: 10px;
  }
  .preview-overlay .native-detail {
    padding: 18px;
    gap: 12px;
  }
}
.product-window .word-demo {
  padding-top: 24px;
  padding-bottom: 22px;
}
.preview-date + .preview-date {
  margin-top: 20px;
}

/* The card floats above the contained word-detail blur. */
.product-window {
  z-index: 0;
}
.hero-flashcard {
  z-index: 4;
  right: 15px;
  bottom: 82px;
}
.app-sidebar .preview-menu svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 1.7;
  color: inherit;
}
.preview-close {
  background: transparent;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}
.preview-close:focus-visible {
  outline: none;
  box-shadow: none;
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-flashcard {
    right: 30px;
    bottom: -56px;
  }
}
@media (max-width: 760px) {
  .hero-flashcard {
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }
}

/* Spacing for the simplified hero introduction. */
.hero h1 {
  margin-top: 0;
}
.hero-composition {
  margin-top: 48px;
}
@media (max-width: 760px) {
  .hero-composition {
    margin-top: 36px;
  }
}

/* Landing demos: scoped copies of the web app add-word and practice components. */
.step-app .panel {
  padding: 24px;
  position: relative;
}
.step-app .panel h2 {
  font-size: 26px;
  font-style: italic;
  margin: 0 36px 18px 0;
}
.step-app .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  background: var(--input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  padding: 0;
}
.step-app .panel form {
  display: grid;
  gap: 18px;
}
.step-app .panel label {
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.step-app .panel input {
  width: 100%;
  height: 60px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--input);
  font-size: 16px;
}
.step-app .panel .primary {
  background: var(--accent);
  border-radius: 18px;
  min-height: 52px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
}
.step-app .panel .subtitle {
  color: var(--subtext);
  font-size: 14px;
  margin-bottom: 20px;
}
.step-app .form-note {
  font-size: 12px;
  color: var(--subtext);
}
.step-app .add-dialog form > label {
  font-size: 0;
  gap: 0;
}
.step-app .add-dialog form > .primary svg {
  display: none;
}
.step-app .manual-word-field { position: relative; width: 100%; border-radius: 18px; background: var(--input); }
.step-app .manual-word-field input { width: 100%; background: transparent; }
.step-app .manual-word-field.celebrating { box-shadow: inset 0 0 0 1px #84a98c4d; }
.step-app .manual-word-field.celebrating input { border-color: transparent; opacity: 0; animation: word-input-return 220ms 1595ms ease-in forwards; }
.step-app .word-added-snapshot { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 18px; pointer-events: none; font-size: 16px; overflow: hidden; white-space: nowrap; animation: word-snapshot-out 200ms ease-out forwards; }
.step-app .word-added-overlay { position: absolute; inset: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; border: 1px solid #84a98c38; background: var(--top); color: var(--text); font-size: 13px; font-weight: 500; pointer-events: none; animation: word-overlay-in 320ms cubic-bezier(.2,.9,.3,1.12) both, word-overlay-out 220ms 1595ms ease-in forwards; }
.step-app .word-added-check { width: 20px; height: 20px; border-radius: 50%; background: #84a98c2e; display: grid; place-items: center; animation: word-check-pop 300ms 55ms cubic-bezier(.2,.8,.3,1.45) both; }
.step-app .word-added-check svg { width:9px; height:7px; flex:none; overflow:visible; }
.step-app .word-added-check path { fill: none; stroke: #84a98c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: word-check-draw 280ms 125ms ease-in-out both; }
.step-app .word-added-label { animation: word-label-in 260ms 95ms cubic-bezier(.2,.9,.3,1.12) both; white-space: nowrap; }
@keyframes word-snapshot-out { to { opacity: 0; } }
@keyframes word-input-return { to { opacity: 1; } }
@keyframes word-overlay-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes word-overlay-out { to { opacity: 0; transform: scale(.97); } }
@keyframes word-check-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes word-check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes word-label-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.step-app .manual-feedback-slot {
  height: 68px;
  min-height: 68px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 3px;
  margin: -3px;
}
.step-app .practice-content {
  width: 100%;
  max-width: 480px;
  margin: auto;
}
.step-app .practice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin-bottom: 18px;
  position: relative;
}
.step-app .practice-score {
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 99px;
  padding: 9px 14px;
  background: var(--faint);
  border: 1px solid var(--border);
}
.step-app .practice-score span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step-app .practice-score span:first-child {
  color: #84a98c;
}
.step-app .practice-score span:last-child {
  color: #e07b65;
}
.step-app .practice-options-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fffdf799;
  border: 1px solid #cdbfa9bd;
  display: grid;
  place-items: center;
  color: var(--subtext);
}
.step-app .opportunity-badge {
  font-family: DM, sans-serif;
  color: var(--accent);
}
.step-app .practice-card {
  height: 448px;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffebd0, #ddeeff, #f1e4ff);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-app .practice-question {
  width: 100%;
  animation: practice-enter 0.16s both;
}
.step-app .practice-prompt {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtext);
  text-align: center;
  margin: 0 0 18px;
}
.step-app .practice-card h2 {
  font:
    italic 300 56px/1.05 Crimson,
    serif;
  margin: 0 0 28px;
  text-align: center;
  overflow-wrap: anywhere;
}
.step-app .practice-answers {
  height: 246px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(4, 54px);
  gap: 10px;
  position: relative;
}
.step-app .practice-answers > button {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #c17f5438;
  background: #ffffffd9;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition:
    background 0.12s,
    opacity 0.12s,
    transform 0.12s;
}
.step-app .practice-answers button:disabled {
  opacity: 1;
  cursor: default;
}
.step-app .practice-answers button:active:not(:disabled) {
  transform: scale(0.98);
}
.step-app .practice-answers .correct {
  background: #84a98c2e;
  border-color: #84a98c66;
  color: #2e7d32;
}
.step-app .practice-answers .wrong {
  background: #e07b6529;
  border-color: #e07b6559;
  color: #c62828;
}
.step-app .practice-answers .muted {
  opacity: 0.28 !important;
}
.step-app .practice-answers .skip {
  background: transparent;
  border-color: var(--line);
  color: var(--subtext);
}
.step-app .practice-answers.incorrect .muted,
.step-app .practice-answers.incorrect .skip {
  display: none;
}
.step-app .practice-answers.incorrect .wrong {
  grid-row: 2;
}
.step-app .practice-answers.incorrect .correct {
  grid-row: 3;
}
.step-app .practice-answers .practice-next {
  grid-row: 4;
  background: #ffffffed;
}
.step-app .practice-answers .practice-next:disabled {
  opacity: 0.72;
}

.live-steps { grid-template-columns: minmax(0,1fr); gap: 80px; max-width: 640px; margin-inline: auto; text-align: center; }
.live-steps > article { padding-right: 0; border: 0; display: block; min-width: 0; }
.step-app { --top:#fffdf7; --text:#2c2b27; --subtext:#6b6558; --accent:#c17f54; --border:#c17f5440; --faint:#c17f5412; --input:#00000008; color:var(--text); font-family:DM,sans-serif; margin-top:24px; }
.step-app button,.step-app input { font-family:inherit; color:inherit; }
.step-app button { cursor:pointer; }
.step-app button:disabled { cursor:default; opacity:.5; }
.step-app p { min-height:0; }
.step-app .practice-prompt { font-size:12px; margin:0 0 18px; }
.step-app .practice-card h2 { font:italic 300 56px/1.05 Crimson,serif; margin:0 0 28px; text-align:center; }
.step-app .practice-answers button { padding:0 12px; }
.step-app .add-dialog { width:100%; max-width:480px; border:1px solid var(--border); border-radius:32px; background:var(--top); box-shadow:0 16px 56px #00000015; }
.step-app .panel h2 { font:italic 400 26px/1.2 Crimson,serif; margin:0 36px 18px 0; }
.step-app .panel form { gap:12px; }
.step-app .panel label { gap:0; }
.step-app .close { border:0; font-size:23px; }
.step-app .primary { border:0; }
.step-app .manual-feedback-slot { font-size:13px; color:#6b6558; }
.step-app .valid { color:#2e7d32; }
.add-stage { min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; }
.demo-motion { border:0; background:transparent; text-decoration:underline; font-size:12px; color:var(--subtext); }
.step-app .practice-question { animation:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:700px) { .live-steps { grid-template-columns:1fr; gap:40px; } .add-stage { min-height:0; padding:16px 0; } .step-app .panel { padding:20px; } .step-app .panel input { font-size:14px; padding:16px 12px; } .step-app .practice-card { padding:28px 18px; } }
@media(prefers-reduced-motion:reduce) { .step-app *, .step-app *::before { animation:none!important; transition:none!important; } }

.step-app .panel { border:0; border-radius:inherit; background:transparent; }

/* Match the native add-word field and segmented practice score. */
.live-steps > article > p { min-height: 0; }
.step-app .add-dialog { text-align: left; }
.step-app .panel input, .step-app .word-added-snapshot { font: italic 400 21px/1.2 Crimson, serif; }
.step-app .panel .primary { transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease; }
.step-app .panel .primary.is-pressed { transform: translateY(2px) scale(.98); box-shadow: inset 0 3px 5px #0003; filter: brightness(.91); }
.step-app .practice-score { height:38px; padding:0 10px; gap:0; background:#fffdf7; border-color:#cdbfa9db; }
.step-app .practice-score span { min-width:62px; padding:0 7px; justify-content:center; }
.step-app .practice-score span:first-child { color:#6f9476; }
.step-app .practice-score span:last-child { color:#b86452; }
.step-app .practice-score b { color:#2c2b27e6; font-weight:600; }
.step-app .practice-score svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.step-app .score-divider { width:1px; height:20px; margin:0 4px; background:#c17f5426; }

/* Decorative pointer follows the demo without intercepting the real cursor. */
.add-stage { position: relative; }
.step-app .demo-cursor { position:absolute; z-index:3; width:40px; height:48px; margin:-4px 0 0 -5px; pointer-events:none; opacity:0; transition:left 650ms cubic-bezier(.4,0,.2,1), top 650ms cubic-bezier(.4,0,.2,1), opacity 200ms ease; }
.step-app .demo-cursor.is-visible { opacity:1; }
.step-app .demo-cursor svg { width:40px; height:48px; overflow:visible; filter:drop-shadow(0 2px 2px #573b2920); transform-origin:5px 4px; transition:transform 140ms ease; }
.step-app .demo-cursor.is-clicking svg { transform:scale(.82) rotate(-7deg); }
.step-app .demo-cursor::before { content:""; position:absolute; left:-13px; top:-13px; width:26px; height:26px; border:1.5px solid #c17f54; border-radius:50%; opacity:0; }
.step-app .demo-cursor.is-clicking::before { animation:demo-cursor-click 260ms ease-out both; }
@keyframes demo-cursor-click { from { opacity:.8; transform:scale(.4); } to { opacity:0; transform:scale(1.4); } }
@media(prefers-reduced-motion:reduce) { .step-app .demo-cursor { display:none; } }

.live-steps .feature-copy > p { min-height:0; font-size:15px; }
.step-app.add-stage form { pointer-events:none; user-select:none; }
.step-app.add-stage input, .step-app.add-stage button { cursor:default; }
@media(max-width:760px) { .live-steps .feature-copy > p { font-size:14px; } }

/* Keep heading phrases together, including on narrow screens. */
.live-steps .step-headline { text-wrap:balance; }
.live-steps .headline-phrase { display:inline-block; white-space:nowrap; }
.live-steps .feature-copy > p { text-wrap:pretty; }
@media(max-width:380px) { .live-steps .step-headline { font-size:clamp(28px, 10vw, 38px); } }

/* Optical spacing at the roman/italic transitions. */
.live-steps .headline-collect { margin-inline-end:.07em; }
.live-steps .headline-practice { margin-inline-end:.09em; }

/* Landing Clothes deck: native card UI with an upright stack. */
#flashcards .landing-flashcards {
  max-width: 390px;
  --top: #fffdf7; --border: #c17f5440; --subtext: #6b6558;
  --text: #2c2b27; --accent: #c17f54; --track: #0000001f;
}
#flashcards .card-dots { margin-bottom: 22px; }
#flashcards .card-dots span { background: var(--track); }
#flashcards .flashcard-stack:before { transform: none; }
#flashcards .flashcard-face { animation: none; }
#flashcards .card-ratings svg { width: 26px; }
#flashcards [hidden] { display: none; }
/* These controls replace one another after a tap. The native 240ms entrance
   animation reads as input latency on mobile, so keep this demo immediate. */
#flashcards .card-reveal,
#flashcards .card-ratings { animation: none; }
/* Native app difficulty colors and filter selected/deselected surfaces. */
#flashcards [data-deck-level="beginner"] { --tint: #84a98c; }
#flashcards [data-deck-level="intermediate"] { --tint: #d4a373; }
#flashcards [data-deck-level="advanced"] { --tint: #e07b65; }
#flashcards .deck-levels button {
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
  background: color-mix(in srgb, var(--tint) 8%, transparent);
  color: var(--tint); border-radius: 99px; padding: 8px 14px;
  font: 700 12px/normal DM, sans-serif;
}
#flashcards .deck-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 2px 1px; }
#flashcards .deck-levels button { cursor: pointer; }
/* iOS CardsFilterChip muted state while another deck is selected. */
#flashcards .deck-levels button[aria-pressed="false"] {
  color: #4a3e30;
  background: rgb(193 127 84 / 7%);
  border-color: rgb(193 127 84 / 22%);
}
#flashcards .deck-levels button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--tint) 22%, transparent);
  border-color: var(--tint);
}
#flashcards .deck-levels button:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
@media (max-width: 600px) {
  #flashcards .landing-flashcards { width: calc(100% - 24px); }
}

/* Homepage custom deck demo: scoped native editor styles. */
.deck-demo .custom-editor {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--top), var(--middle), var(--bottom));
  color: var(--text);
  width: min(560px, calc(100vw - 40px));
  max-height: 86dvh;
  overflow: hidden;
  box-shadow: 0 14px 40px #0003;
}
.deck-demo .custom-editor::backdrop {
  background: var(--backdrop);
}
.deck-demo .custom-editor[open] {
  animation: controls-enter 0.24s both;
}
.deck-demo .custom-editor-body {
  height: min(680px, 80dvh);
  padding: 34px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.deck-demo .custom-close {
  position: absolute;
  right: 12px;
  top: 8px;
  padding: 3px;
}
.deck-demo .custom-drag {
  display: none;
}
.deck-demo .custom-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border: 1.4px solid #c17f544d;
  border-radius: 20px;
  background: #ffffffeb;
  box-shadow: 0 7px 14px #c17f541a;
}
.deck-demo .custom-title svg {
  color: var(--accent);
  flex-shrink: 0;
}
.deck-demo .custom-title input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font:
    italic 25px Crimson,
    serif;
}
.deck-demo .custom-title:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.deck-demo .custom-editor small {
  color: var(--subtext);
  font-size: 11px;
  margin-top: -12px;
}
.deck-demo .custom-count {
  font-size: 12px;
  color: #5b8db8;
}
.deck-demo .custom-selected {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 9px 0 1px;
}
.deck-demo .custom-selected > span {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 8px 8px 8px 12px;
  border-radius: 99px;
  border: 1px solid #5b8db82e;
  background: #5b8db817;
  font-size: 13px;
  font-weight: 500;
}
.deck-demo .custom-selected button {
  display: flex;
  padding: 0;
  color: var(--subtext);
}
.deck-demo .custom-picker-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  margin: 0 0 8px;
}
.deck-demo .custom-editor .native-search {
  margin: 0;
}
.deck-demo .custom-picker {
  flex: 1;
  min-height: 60px;
  overflow: auto;
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
}
.deck-demo .custom-word {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 13px;
  border: 1px solid
    color-mix(in srgb, var(--tint) var(--chipborder), transparent);
  background: color-mix(
    in srgb,
    var(--tint) var(--chip-fill-opacity),
    transparent
  );
}
.deck-demo .custom-word.selected {
  color: #5b8db8;
  background: #5b8db82e;
  border-color: #5b8db852;
}
.deck-demo .custom-save {
  padding: 15px;
  border-radius: 18px;
  flex-shrink: 0;
}
.deck-demo .custom-save:disabled {
  background: var(--faint);
  color: var(--subtext);
  border: 1px solid var(--border);
}
.deck-demo .custom-native-icon {
  display: block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  background: var(--accent);
  mask: url("/assets/VocabTallyCards.svg") center/contain no-repeat;
}

.deck-demo .native-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: 14px;
  color: var(--subtext);
  margin-bottom: 18px;
}
.deck-demo .native-search input {
  width: 100%;
  height: 44px;
  border: 0;
  background: none;
  font-size: 14px;
}
.deck-demo .learn-primary {
  background: linear-gradient(90deg, var(--accent), #8b7ec8);
  color: white;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
}

.deck-demo { position:relative; margin:0; min-width:0; --middle:#f4f8ff; --bottom:#fff8f3; --soft:#4a3e30; --chipborder:20%; --chip-fill-opacity:8%; }
.deck-demo .custom-editor { width:100%; max-height:none; box-shadow:0 16px 56px #00000015; }
.deck-demo .custom-editor-body { height:510px; }
.deck-demo button { border:0; cursor:default; }
.deck-demo .custom-word { border:1px solid color-mix(in srgb,var(--tint) 20%,transparent); }
.deck-demo .custom-word.selected { border-color:#5b8db852; }
.deck-demo .custom-word svg { display:none; }
.deck-demo .custom-word.selected svg { display:block; }
.deck-demo .custom-title input { font:italic 25px Crimson,serif; }
.deck-demo .custom-close { font-size:23px; line-height:1; color:var(--subtext); }
.deck-demo .custom-picker-label { font-size:13px; line-height:1.5; }
.deck-demo .custom-selected { scrollbar-width:none; }
.deck-demo .custom-selected i { font:normal 18px/1 DM,sans-serif; color:var(--subtext); }
.deck-demo .custom-save { color:white; transition:transform 140ms ease,filter 140ms ease; }
.deck-demo .custom-save:disabled { opacity:1; color:var(--subtext); }
.deck-demo .custom-save.is-pressed { transform:translateY(2px) scale(.98); filter:brightness(.91); }
.deck-demo .custom-save.is-saved { background:#84a98c2e; color:#426a49; border:1px solid #84a98c4d; }
.deck-demo [hidden] { display:none; }
@media(max-width:480px) { .deck-demo .custom-editor-body { padding:34px 18px 24px; height:540px; } .deck-demo .custom-title { padding:15px 12px; gap:9px; } .deck-demo .custom-title input { font-size:23px; } }

.deck-demo .deck-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px;
}
.deck-demo .deck-filters button,
.deck-demo .deck-difficulty {
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
  background: color-mix(in srgb, var(--tint) 8%, transparent);
  color: var(--tint);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
}
.deck-demo .deck-filters button.selected {
  background: color-mix(in srgb, var(--tint) 22%, transparent);
  border-color: var(--tint);
}
.deck-demo .deck-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.deck-demo .deck-row {
  display: block;
  text-align: left;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffffeb;
  animation: deck-enter 0.49s both;
  animation-delay: var(--delay);
  transition: transform 0.12s;
}
.deck-demo .deck-row:active {
  transform: scale(0.985);
}
.deck-demo .deck-row-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.deck-demo .deck-row img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.deck-demo .deck-row-info {
  flex: 1;
  height: 90px;
  position: relative;
  padding-top: 9px;
}
.deck-demo .deck-row h2 {
  font:
    italic 23px Crimson,
    serif;
  margin: 0 0 5px;
  padding-right: 56px;
}
.deck-demo .deck-difficulty {
  display: inline-block;
  font-size: 10.5px;
  padding: 4px 9px;
}
.deck-demo .deck-row strong {
  position: absolute;
  bottom: 8px;
  right: 0;
  color: var(--accent);
  font:
    300 28px Crimson,
    serif;
  font-variant-numeric: tabular-nums;
}
.deck-demo .deck-progress {
  height: 7px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
  margin-bottom: 14px;
}
.deck-demo .deck-progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent), #8b7ec8);
  border-radius: inherit;
}
.deck-demo .deck-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}
.deck-demo .deck-cta svg {
  color: var(--accent);
}

/* Both scenes share a fixed frame; only their contents transition. */
.deck-demo .custom-editor { position:relative; }
.deck-demo .custom-editor-body { transition:opacity 600ms ease,transform 700ms cubic-bezier(.2,.8,.2,1); }
.deck-demo .deck-demo-list { position:absolute; inset:0; padding:34px 24px 36px; display:flex; flex-direction:column; justify-content:center; gap:24px; opacity:0; visibility:hidden; transform:translateY(24px) scale(.97); transition:opacity 650ms ease,transform 750ms cubic-bezier(.2,.8,.2,1),visibility 750ms; }
.deck-demo.is-deck-list .custom-editor-body { opacity:0; transform:translateY(-20px) scale(.97); pointer-events:none; }
.deck-demo.is-deck-list .deck-demo-list { opacity:1; visibility:visible; transform:none; }
.deck-demo .deck-row { animation:none; width:100%; }
.deck-demo .deck-with-actions { position:relative; }
.deck-demo .deck-options { position:absolute; right:20px; top:14px; padding:5px 9px; letter-spacing:3px; color:var(--subtext); }
.deck-demo .deck-progress { background:#0000001f; }
.deck-demo .deck-filters { gap:6px; overflow:visible; }
.deck-demo .deck-filters button { padding:8px 10px; }
.deck-demo .custom-selected > span { padding:8px 12px; }
@media(max-width:480px) {
  .deck-demo .deck-demo-list { padding:34px 18px 24px; }
  .deck-demo .deck-filters { gap:5px; }
  .deck-demo .deck-filters button { padding:8px 7px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .deck-demo .custom-editor-body,.deck-demo .deck-demo-list { transition:none; transform:none; } }

/* A resting pointer is already positioned before the demo enters view. */
.deck-demo:not(.is-animating) .demo-cursor { transition:none; }
.deck-demo .custom-selection { margin-bottom:32px; }
.deck-demo .deck-demo-list { gap:18px; padding-block:24px; }
.deck-demo .deck-placeholder { flex:1 1 0; min-height:0; border:1px solid var(--border); border-radius:22px; background:#ffffffeb; }
.deck-demo .deck-with-actions { flex-shrink:0; }
.deck-demo .deck-cta { width:100%; min-height:44px; padding:10px 16px; border:1px solid #c17f5459; border-radius:12px; background:#c17f541a; color:var(--soft); }
.deck-demo .deck-difficulty { font-weight:700; }

/* Landing preview: dashboard component styles from browser-app/src/style.css. */
.vocab-level-scene { position:relative; height:605px; zoom:0.9; width:100%; justify-self:center; --border:var(--line); --hero:linear-gradient(135deg,#ffeac8f2,#daecffe6,#f0e2ffeb); --track:#0000001f; --subtext:#6b6558; font:14px DM,sans-serif; color:#2c2b27; }
.vocab-level-scene h3, .vocab-level-scene p { margin:0; letter-spacing:normal; }
.vocab-level-scene .dashboard-hero {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--hero);
  padding: 34px 28px 44px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
}
.vocab-level-scene .dashboard-hero h3 {
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
}
.vocab-level-scene .total-count {
  font:
    300 66px/1.12 Crimson,
    serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.vocab-level-scene .level-pill {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--level) 45%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--level) 28%, transparent),
    color-mix(in srgb, var(--level) 12%, transparent)
  );
  font-size: 13px;
  font-weight: 500;
}
.vocab-level-scene .level-pill b {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: white;
  background: var(--level);
  border-radius: 99px;
  padding: 4px 11px;
}
.vocab-level-scene .progress-section {
  width: 100%;
  display: grid;
  gap: 10px;
}
.vocab-level-scene .progress-track {
  height: 6px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}
.vocab-level-scene .progress-fill {
  height: 6px;
  min-width: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--level), var(--next));
  transform-origin: left;
  animation: progress-in 0.7s cubic-bezier(0.2, 0.95, 0.3, 1.05);
}
.vocab-level-scene .progress-section p {
  font-size: 13px;
  color: var(--subtext);
  opacity: 0.88;
}
.vocab-level-scene .level-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vocab-level-scene .level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 47px;
}
.vocab-level-scene .level-row b {
  font-size: 11px;
  width: 42px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--track);
  color: var(--subtext);
}
.vocab-level-scene .level-row > span {
  font-size: 13px;
  opacity: 0.58;
}
.vocab-level-scene .level-row small {
  margin-left: auto;
  min-width: 92px;
  text-align: right;
  font-size: 12px;
  color: var(--subtext);
  opacity: 0.72;
}
.vocab-level-scene .level-row.active {
  border-color: color-mix(in srgb, var(--level) 38%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--level) 16%, transparent),
    color-mix(in srgb, var(--level) 7%, transparent)
  );
}
.vocab-level-scene .level-row.active b {
  color: white;
  background: var(--level);
}
.vocab-level-scene .level-row.active > span {
  font-weight: 500;
  opacity: 1;
}

.vocab-level-scene .dashboard-hero { position:absolute; top:0; left:0; width:69.7%; }
.vocab-level-scene .dashboard-hero h3 { font-family:Crimson,serif; font-weight:400; }
.vocab-level-scene .level-list { position:absolute; right:10%; bottom:0; width:69.7%; padding:14px; background:#fff; border-radius:20px; border:1px solid var(--border); box-shadow:none; }
/* Compensate for the scene zoom so outer borders match the 1px stats cards. */
.vocab-level-scene .dashboard-hero,
.vocab-level-scene .level-list { border-width:calc(1px / 0.9); }
.vocab-level-scene .level-row { gap:10px; }
.vocab-level-scene .level-row b { flex-shrink:0; }
@media (max-width:1100px) and (min-width:761px) { .vocab-level-section { gap:40px; } .vocab-level-scene .dashboard-hero, .vocab-level-scene .level-list { width:81.6%; } }
@media (max-width:760px) { .vocab-level-scene { width:100%; max-width:510px; margin-inline:auto; height:605px; } .vocab-level-scene .dashboard-hero, .vocab-level-scene .level-list { width:79.9%; } }
@media (max-width:380px) { .vocab-level-scene .level-list { padding:8px; width:100%; } .vocab-level-scene .level-row { padding:11px 8px; gap:7px; } .vocab-level-scene .dashboard-hero { width:100%; padding-inline:18px; } }

/* Shared landing CTA dimensions and a quieter footer. */
.hero .actions .button,
.vocab-level-section .actions .button { width:196px; min-width:0; min-height:46px; font-size:14px; padding:12px 25px; }
.expanded-footer { display:grid; grid-template-columns:1.6fr 1fr 1.25fr .9fr; align-items:start; gap:36px; padding-block:40px; border-top:1px solid var(--line); }
.vocab-level-section { padding-bottom:64px; }
.expanded-footer .brand { display:block; }
.footer-about p { max-width:290px; font-size:12px; line-height:1.7; margin:16px 0; }
.expanded-footer nav { display:flex; flex-direction:column; gap:10px; margin:0; font-size:12px; }
.expanded-footer .footer-about nav { flex-direction:row; flex-wrap:wrap; gap:16px; }
.footer-group h2 { font:500 13px/1.5 var(--sans); margin:0 0 16px; }
/* Slide the selector into place while keeping the row content stationary. */
.vocab-level-scene .level-row.active { position:relative; isolation:isolate; border-color:transparent; background:none; }
.vocab-level-scene .level-row.active::before { content:""; position:absolute; inset:-1px; z-index:-1; border-radius:inherit; border:1px solid color-mix(in srgb,var(--level) 38%,transparent); background:linear-gradient(135deg,color-mix(in srgb,var(--level) 16%,transparent),color-mix(in srgb,var(--level) 7%,transparent)); }
.vocab-level-scene.selector-pending .level-list { overflow:hidden; }
.vocab-level-scene.selector-pending .level-row.active::before { opacity:0; transform:translateX(-105%); }
.vocab-level-scene.selector-pending .level-row.active b { background:var(--track); color:var(--subtext); }
.vocab-level-scene.selector-pending .level-row.active > span { opacity:.58; }
.vocab-level-scene.selector-visible .level-row.active::before { animation:level-selector-in .65s ease-out both; }
.vocab-level-scene.selector-visible .level-row.active b { background:var(--level); color:white; transition:background-color .24s ease .2s,color .24s ease .2s; }
.vocab-level-scene.selector-visible .level-row.active > span { opacity:1; transition:opacity .24s ease .2s; }
@keyframes level-selector-in {
  0% { opacity:0; transform:translateX(-105%); }
  18% { opacity:1; }
  70% { opacity:1; transform:translateX(7px); }
  86% { opacity:1; transform:translateX(-3px); }
  100% { opacity:1; transform:translateX(0); }
}
@media(max-width:760px) {
 .hero .lede,
 .live-steps .feature-copy > p,
 .feature-row .feature-copy > p { text-align:center; margin-inline:auto; }
 .feature-row .feature-copy { text-align:center; margin-inline:auto; }
 .feature-row .actions { justify-content:center; }
 .expanded-footer { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 24px; }
 .footer-about { grid-column:1/-1; }
 .hero .actions,.vocab-level-section .actions { gap:9px; }
 .hero .actions .button,.vocab-level-section .actions .button { width:145px; font-size:12px; padding:12px 16px; }
}
@media(prefers-reduced-motion:reduce) {
 .vocab-level-scene.selector-pending .level-row.active::before { opacity:1; transform:none; }
 .vocab-level-scene.selector-visible .level-row.active::before { animation:none; }
 .vocab-level-scene.selector-pending .level-row.active b { background:var(--level); color:white; transition:none; }
 .vocab-level-scene.selector-pending .level-row.active > span { opacity:1; transition:none; }
}

/* Mobile landing previews use the app's full-width content and bottom tabs. */
@media (max-width:760px) {
  .deck-demo .custom-selection { display:none; }
  .deck-demo .custom-picker { min-height:max-content; overflow:visible; }
  .hero .hero-flashcard { display:none; }
  .vocab-level-section .desktop-title-break { display:none; }
  .hero .product-window { height:620px; max-width:430px; margin-inline:auto; border-radius:28px; }
  .hero .window-bar { display:none; }
  .hero .product-window .app-layout { display:flex; flex-direction:column; height:100%; }
  .hero .product-window .word-demo { order:0; flex:1; min-height:0; width:100%; padding:28px 18px 18px; overflow:clip; }
  .hero .app-sidebar { order:1; display:flex; flex-direction:row; flex-wrap:nowrap; width:100%; flex:0 0 72px; padding:8px 5px 12px; border:0; border-top:1px solid var(--line); gap:0; }
  .hero .app-sidebar .brand,.hero .app-sidebar .preview-menu { display:none; }
  .hero .preview-nav-row { display:flex; flex:1; flex-direction:column; gap:0; height:auto; margin:0; padding:5px 0; font-size:0; border-radius:12px; }
  .hero .preview-overlay { inset:0 0 72px; }
  .vocab-level-section { display:flex; flex-direction:column; gap:32px; padding-top:67px; padding-bottom:64px; }
  .vocab-level-section .feature-copy { order:0; width:100%; }
  .vocab-level-scene { order:1; zoom:1; display:flex; flex-direction:column; width:min(100%,430px); min-width:0; margin-inline:auto; height:auto; padding-bottom:0; }
  .vocab-level-scene .dashboard-hero { position:sticky; top:90px; left:auto; width:100%; height:auto; justify-content:center; padding:28px 18px; }
  .vocab-level-scene .level-list { position:sticky; top:90px; right:auto; bottom:auto; width:100%; min-height:0; margin-top:40px; padding:12px; z-index:1; }
  .vocab-level-scene .level-row { padding:11px 8px; gap:8px; }
  .vocab-level-scene .level-row > span { min-width:0; }
  .vocab-level-scene .level-row small { white-space:nowrap; }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce) {
  .vocab-level-scene { height:auto; }
  .vocab-level-scene .dashboard-hero,.vocab-level-scene .level-list { position:relative; top:auto; }
  .vocab-level-scene .level-list { margin-top:20px; }
}

/* Footer language picker shows the current landing-page locale. */
.locale-switch { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; white-space:nowrap; text-decoration:none; }
.locale-switch > span:first-child { font-size:19px; }
.locale-switch:focus-visible { outline:2px solid var(--accent, #c17f54); outline-offset:5px; border-radius:3px; }
.footer-locale { grid-column:1/-1; }
html[lang="es"] .hero h1 { max-width:950px; }
@media(max-width:760px) {
 html[lang="es"] .landing-navigation { gap:6px; }
 html[lang="es"] .landing-navigation .button { padding-left:10px; padding-right:10px; }
 html[lang="es"] .landing-header .brand { min-width:0; }
 html[lang="es"] .landing-header .brand img { max-width:100%; }
}
@media(max-width:360px) {
 .site-header.landing-header { gap:6px; padding-inline:12px; }
 .landing-header .brand { flex:0 1 78px; }
 .landing-header .brand img { width:78px; max-width:100%; }
 html[lang="es"] .landing-navigation .button { padding-inline:8px; font-size:12px; }
}

.locale-picker { position:relative; width:max-content; }
.locale-picker summary { cursor:pointer; list-style:none; min-height:44px; }
.locale-picker summary::-webkit-details-marker { display:none; }
.locale-chevron { margin-left:4px; }
.locale-picker nav { position:absolute; bottom:100%; left:0; min-width:150px; padding:6px; border:1px solid var(--line); border-radius:12px; background:#fffdf7; box-shadow:0 6px 24px #00000012; z-index:2; }
.locale-picker nav a { display:block; padding:10px 12px; border-radius:7px; text-decoration:none; }
.locale-picker nav a:hover,.locale-picker nav a[aria-current] { background:#f2eae0; }
