:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f1f6f0;
  --surface-warm: #fff7ed;
  --text: #111815;
  --muted: #596961;
  --line: #dbe4dc;
  --line-strong: #b8cabc;
  --primary: #177245;
  --primary-dark: #075b35;
  --primary-soft: #e4f2e8;
  --coral: #d9614c;
  --sky: #2c7cc3;
  --amber: #d89313;
  --shadow: 0 22px 50px rgba(15, 34, 24, 0.16);
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden-field {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15, 34, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 0;
  font-weight: 850;
  line-height: 1.05;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-name {
  font-size: 18px;
  line-height: 1;
}

.brand-subtitle {
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.78;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 114, 69, 0.26);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: inherit;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a,
.site-footer a {
  opacity: 0.9;
  transition: opacity 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  opacity: 1;
  color: var(--primary);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(23, 114, 69, 0.28);
}

.header-cta svg,
.button svg {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.site-header.scrolled .nav-toggle,
.site-header.nav-active .nav-toggle {
  border-color: var(--line);
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: 760px;
  color: #ffffff;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/landing-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 18, 14, 0.83) 0%, rgba(7, 18, 14, 0.58) 35%, rgba(7, 18, 14, 0.18) 70%, rgba(7, 18, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 17, 12, 0.48) 0%, rgba(5, 17, 12, 0) 46%, rgba(5, 17, 12, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: clamp(32px, 6vw, 84px);
  width: min(var(--max), calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 150px 0 72px;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9f0c8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(23, 114, 69, 0.28);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: rgba(23, 114, 69, 0.28);
  background: #ffffff;
  color: var(--text);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.button-light {
  background: #ffffff;
  color: var(--primary-dark);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.hero-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-product {
  display: grid;
  gap: 14px;
  align-self: center;
}

.usage-widget,
.reader-widget,
.vocab-widget {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.usage-widget {
  padding: 18px;
}

.hero-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.usage-widget label,
.demo-sidebar label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.usage-widget select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
}

.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.meter-row strong {
  color: var(--text);
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8e4;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.reader-widget {
  padding: 0;
  overflow: hidden;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.reader-toolbar span:last-child {
  display: inline-flex;
  gap: 10px;
  color: var(--muted);
}

.reader-toolbar svg {
  width: 17px;
  height: 17px;
}

.reader-widget h2 {
  margin: 18px 18px 10px;
  font-size: 23px;
  line-height: 1.16;
}

.reader-widget p {
  margin: 0 18px 18px;
  color: #37473f;
  line-height: 1.55;
}

.phrase-popover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(270px, calc(100% - 36px));
  margin: 0 18px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 34, 24, 0.12);
}

.phrase-popover strong,
.phrase-popover small,
.vocab-widget span {
  display: block;
}

.phrase-popover small {
  margin-top: 4px;
  color: var(--muted);
}

.vocab-widget {
  padding: 16px;
}

.vocab-widget > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.vocab-widget > div span {
  color: var(--muted);
  font-size: 13px;
}

.vocab-widget ul {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.vocab-widget li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.vocab-widget li span:last-child {
  color: var(--muted);
}

.export-button,
.csv-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(280px, 520px);
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.section-heading p,
.pricing-copy p,
.testimonial-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 42px);
  width: calc(100% - 46px);
  border-top: 2px dashed rgba(23, 114, 69, 0.34);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(23, 114, 69, 0.5);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.steps-list strong {
  min-height: 38px;
  font-size: 15px;
}

.steps-list p {
  max-width: 160px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.levels-section {
  border-top: 1px solid var(--line);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.level-card,
.price-card,
blockquote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 34, 24, 0.06);
}

.level-card {
  display: grid;
  gap: 8px;
  min-height: 290px;
  padding: 24px;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.level-a1 {
  background: #2b9d59;
}

.level-a2 {
  background: var(--sky);
}

.level-b1 {
  background: var(--amber);
}

.level-b2 {
  background: #7652c8;
}

.level-card h3 {
  margin: 6px 0 0;
}

.level-card p,
.level-card small {
  color: var(--muted);
  line-height: 1.55;
}

.level-card small {
  align-self: end;
}

.demo-section {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(880px, 100%);
  margin: 0 auto 30px;
  border-bottom: 1px solid var(--line);
}

.demo-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.demo-tab svg {
  width: 19px;
  height: 19px;
}

.demo-tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.demo-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 34, 24, 0.08);
}

.demo-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.choice-row,
.level-selector {
  display: grid;
  gap: 8px;
}

.choice-row {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
}

.chip,
.level-selector button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
}

.chip.active,
.level-selector button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.level-selector {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px;
}

.monthly-usage {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.monthly-usage span,
.monthly-usage small {
  color: var(--muted);
}

.demo-panel {
  min-width: 0;
}

.article-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 330px;
}

.article-pane,
.reader-sample,
.csv-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.article-pane {
  min-height: 230px;
  padding: 22px;
}

.article-pane span,
.article-pane footer,
.table-head,
.csv-header {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.article-pane h3,
.reader-sample h3 {
  margin-top: 12px;
}

.article-pane p,
.reader-sample p {
  color: #415149;
  line-height: 1.65;
}

.article-pane.simplified {
  border-color: rgba(23, 114, 69, 0.32);
  background: #f2faf3;
}

.article-pane footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.transform-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
}

.reader-sample {
  position: relative;
  min-height: 330px;
  padding: 34px;
}

.translation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(340px, 100%);
  min-height: 88px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 18px 42px rgba(15, 34, 24, 0.1);
}

.translation-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.vocab-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  min-width: 0;
}

.csv-preview {
  overflow: hidden;
}

.csv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.csv-header button {
  width: auto;
  padding: 0 12px;
}

.csv-preview pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #2e3f36;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.feature-strip div {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 36px clamp(18px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.pricing-copy {
  position: sticky;
  top: 104px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 500px;
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(23, 114, 69, 0.52);
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f1 100%);
}

.plan-name {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.price-card h3 span {
  font-size: 54px;
}

.price-card p {
  color: var(--muted);
  line-height: 1.6;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #2e3f36;
  line-height: 1.45;
}

.price-card li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

.price-card .button {
  align-self: end;
}

.email-capture {
  display: grid;
  gap: 10px;
  align-self: end;
}

.email-capture-row {
  display: grid;
  gap: 10px;
}

.email-capture input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.email-capture input:focus {
  outline: 2px solid rgba(23, 114, 69, 0.28);
  outline-offset: 2px;
}

.email-capture .button {
  width: 100%;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status.success {
  color: var(--primary-dark);
  font-weight: 850;
}

.form-status.error {
  color: #a34435;
  font-weight: 850;
}

.testimonials-section {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 50px;
  border-top: 1px solid var(--line);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

blockquote {
  margin: 0;
  padding: 28px;
}

blockquote p {
  color: #2e3f36;
  font-size: 18px;
  line-height: 1.58;
}

blockquote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

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

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

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

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 850;
}

.faq-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 160ms ease;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open p {
  display: block;
}

.faq-item.open svg {
  transform: rotate(180deg);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px clamp(20px, 6vw, 80px);
  background: var(--primary-dark);
  color: #ffffff;
}

.final-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.8vw, 62px);
}

.final-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.58;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.brand.compact {
  color: var(--text);
  font-size: 13px;
}

.brand.compact .brand-name {
  font-size: 13px;
}

.brand.compact .brand-subtitle {
  font-size: 9px;
}

.brand.compact .brand-mark {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 6px;
}

.brand.compact svg {
  width: 17px;
  height: 17px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  font-weight: 750;
}

.site-footer small {
  justify-self: end;
}

.legal-page {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
  padding: 128px 0 80px;
}

.legal-content h1 {
  margin-bottom: 12px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.legal-content p {
  max-width: 78ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-updated {
  margin-bottom: 32px;
}

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .usage-widget,
  .reader-widget,
  .vocab-widget {
    min-width: 0;
  }

  .reader-widget h2 {
    font-size: 19px;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px;
  }

  .steps-list li::after {
    display: none;
  }

  .level-grid,
  .feature-strip,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-section,
  .testimonials-section {
    grid-template-columns: 1fr;
  }

  .pricing-copy {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

  .site-header.nav-active .site-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--text);
    box-shadow: 0 24px 40px rgba(15, 34, 24, 0.14);
  }

  .site-header.nav-active .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-inner {
    min-height: 820px;
    padding-bottom: 42px;
  }

  .hero-product {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading.split,
  .demo-stage,
  .article-columns,
  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    align-items: start;
  }

  .demo-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-stage {
    padding: 18px;
  }

  .demo-sidebar {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .transform-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip div:last-child {
    border-bottom: 0;
  }

  .final-cta {
    align-items: flex-start;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

  .site-footer {
    justify-items: start;
    padding: 24px 0;
  }

  .site-footer small {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .hero-inner,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    min-height: 790px;
    padding-top: 104px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .button,
  .hero-actions,
  .final-cta-actions {
    width: 100%;
  }

  .steps-list,
  .level-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    justify-items: start;
    text-align: left;
  }

  .steps-list p {
    max-width: none;
  }

  .level-card,
  .price-card {
    min-height: auto;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .csv-header {
    display: grid;
    height: auto;
    padding: 14px;
  }

  .csv-header button {
    width: 100%;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}
