/* ==========================================================================
   MARKETING-LIGHT
   Cream + teal theme for public marketing, legal, and privacy pages.
   Spec: DESIGN-marketing-light.md (repo root).
   All class names are prefixed `ml-` to never collide with the dark theme.
   ========================================================================== */

@layer base {
  body.marketing-light {
    background-color: #F5F1E8;
    color: #3D362C;
    min-height: 100vh;
    font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* No grain, no gradient, no fixed background. The cream is enough. */
  body.marketing-light::before { content: none; }

  body.marketing-light h1,
  body.marketing-light h2,
  body.marketing-light h3,
  body.marketing-light h4 {
    color: #1F1915;
    font-family: inherit;
  }

  body.marketing-light h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    text-wrap: pretty;
  }

  body.marketing-light h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 48px 0 16px;
  }

  body.marketing-light h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 32px 0 12px;
  }

  body.marketing-light p {
    color: #3D362C;
    line-height: 1.65;
    margin: 0 0 16px;
  }

  body.marketing-light a {
    color: #045D56;
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease;
  }
  body.marketing-light a:hover { color: #034A45; text-decoration: underline; }
  body.marketing-light a:visited { color: #045D56; }

  body.marketing-light strong,
  body.marketing-light b {
    color: #1F1915;
    font-weight: 600;
  }

  body.marketing-light hr {
    border: 0;
    border-top: 1px solid #E8DDC3;
    margin: 48px 0;
  }

  body.marketing-light ::selection {
    background: #D4E9E4;
    color: #1F1915;
  }
}

/* =========================================================================
   Bands
   ========================================================================= */

.ml-band-content {
  background-color: #F5F1E8;
}

.ml-band-sunk {
  background-color: #EAE4D3;
  border-top: 1px solid #E8DDC3;
}

/* =========================================================================
   Hero
   ========================================================================= */

.ml-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.ml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #045D56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 16px;
}

.ml-eyebrow-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.ml-lede {
  font-size: 18px;
  line-height: 1.55;
  color: #3D362C;
  max-width: 600px;
  margin: 0;
}

/* =========================================================================
   Content column
   ========================================================================= */

.ml-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.ml-content-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.ml-content p,
.ml-content ul,
.ml-content ol {
  color: #3D362C;
}

.ml-content ul,
.ml-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.ml-content li {
  margin: 0 0 8px;
}

.ml-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #9E9280;
  font-size: 13px;
  margin: 0 0 32px;
}

/* =========================================================================
   Card
   ========================================================================= */

.ml-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ml-card {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease,
              border-color 200ms ease;
}

a.ml-card,
.ml-card-linkable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ml-card:hover,
a.ml-card:hover,
.ml-card-linkable:hover {
  transform: translateY(-2px);
  background-color: #F7F2E3;
  border-color: #D9CBA7;
  text-decoration: none;
}

.ml-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #045D56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}

.ml-card-label svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.ml-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1F1915;
  line-height: 1.3;
  margin: 0 0 4px;
}

.ml-card-body {
  color: #6E6456;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.ml-card-link {
  color: #045D56;
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
}
.ml-card-link:hover { color: #034A45; }

/* =========================================================================
   Stat (small bordered number card)
   ========================================================================= */

.ml-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .ml-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
/* 3-up variant: keeps the 2-column mobile rule above; only the ≥768px
   track count changes. Use instead of an inline grid-template-columns
   override, which would win the cascade and break mobile. */
@media (min-width: 768px) {
  .ml-stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.ml-stat {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.ml-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1F1915;
  letter-spacing: -0.01em;
  line-height: 1;
}

.ml-stat-label {
  font-size: 12px;
  color: #6E6456;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* =========================================================================
   Buttons
   ========================================================================= */

/*
 * Buttons are scoped under body.marketing-light so their text color
 * wins over `body.marketing-light a { color: accent }`. Without this
 * scope an <a class="ml-btn"> rendered emerald text on a near-black
 * fill — unreadable on the home hero "Install Free Extension" CTA.
 */
body.marketing-light .ml-btn,
body.marketing-light a.ml-btn,
body.marketing-light button.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: #1F1915;
  color: #F5F1E8;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  border: 1px solid #1F1915;
}
body.marketing-light .ml-btn:hover,
body.marketing-light a.ml-btn:hover,
body.marketing-light button.ml-btn:hover {
  background-color: #000000;
  color: #F5F1E8;
  text-decoration: none;
}
body.marketing-light .ml-btn:visited,
body.marketing-light a.ml-btn:visited { color: #F5F1E8; }
body.marketing-light .ml-btn:focus-visible {
  outline: 2px solid #045D56;
  outline-offset: 2px;
}

/*
 * Brand-emerald variant of the primary button. Same fill recipe
 * as .ml-btn but in TAC emerald. Reserved for the most important
 * CTAs (nav "Open TAC", landing-page hero install when we want
 * extra brand recognition).
 */
body.marketing-light .ml-btn-brand,
body.marketing-light a.ml-btn-brand,
body.marketing-light button.ml-btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: #045D56;
  color: #F5F1E8;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  border: 1px solid #045D56;
}
body.marketing-light .ml-btn-brand:hover,
body.marketing-light a.ml-btn-brand:hover {
  background-color: #034A45;
  color: #F5F1E8;
  text-decoration: none;
  border-color: #034A45;
  box-shadow: 0 6px 16px -8px rgba(4, 93, 86, 0.45);
}
body.marketing-light .ml-btn-brand:visited,
body.marketing-light a.ml-btn-brand:visited { color: #F5F1E8; }
body.marketing-light .ml-btn-brand:focus-visible {
  outline: 2px solid #F4CE6F;
  outline-offset: 2px;
}

body.marketing-light .ml-btn-secondary,
body.marketing-light a.ml-btn-secondary,
body.marketing-light button.ml-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  background-color: transparent;
  color: #1F1915;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #E8DDC3;
  transition: background-color 150ms ease, border-color 150ms ease;
}
body.marketing-light .ml-btn-secondary:hover,
body.marketing-light a.ml-btn-secondary:hover {
  background-color: #EFEADD;
  border-color: #9E9280;
  color: #1F1915;
  text-decoration: none;
}
body.marketing-light .ml-btn-secondary:visited,
body.marketing-light a.ml-btn-secondary:visited { color: #1F1915; }
body.marketing-light .ml-btn-secondary:focus-visible {
  outline: 2px solid #045D56;
  outline-offset: 2px;
}

body.marketing-light .ml-btn-link,
body.marketing-light a.ml-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #045D56;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
body.marketing-light .ml-btn-link:hover,
body.marketing-light a.ml-btn-link:hover { color: #034A45; text-decoration: underline; }
body.marketing-light .ml-btn-link:visited,
body.marketing-light a.ml-btn-link:visited { color: #045D56; }

/* =========================================================================
   Callout (warning / disclaimer)
   ========================================================================= */

.ml-callout {
  background-color: #FBF3DC;
  border: 1px solid #D4A84B;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  color: #8A6817;
}

.ml-callout-h {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8A6817;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 8px;
}

.ml-callout-h svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.ml-callout-body {
  color: #8A6817;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   Header
   ========================================================================= */

.ml-header {
  background-color: rgba(245, 241, 232, 0.92);
  border-bottom: 1px solid #E8DDC3;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.ml-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

@media (max-width: 480px) {
  .ml-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px 16px;
  }

  .ml-brand {
    min-width: 0;
  }
}

.ml-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1F1915;
  text-decoration: none;
  line-height: 0;
}
.ml-brand:hover { color: #1F1915; text-decoration: none; }

.ml-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .ml-brand-logo { height: 42px; }
}

.ml-footer .ml-brand-logo {
  height: 38px;
}

.ml-nav {
  display: none;
  gap: 6px;
  align-items: center;
  justify-self: center;
}
@media (min-width: 860px) {
  .ml-nav { display: inline-flex; }
}

.ml-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3D362C;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 150ms ease, background-color 150ms ease;
}
.ml-nav-link:hover {
  color: #045D56;
  background-color: rgba(4, 93, 86, 0.06);
  text-decoration: none;
}
.ml-nav-link.is-active {
  color: #045D56;
  background-color: rgba(4, 93, 86, 0.08);
}

.ml-nav-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

/*
 * Header CTA wrapper. The "Open TAC" button uses .ml-btn-brand
 * (emerald) and a slightly tightened padding via .ml-header-btn so
 * it sits comfortably in a 64px nav.
 */
.ml-header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
}

body.marketing-light .ml-header-btn {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
}
body.marketing-light .ml-header-btn svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 859px) {
  body.marketing-light .ml-header-btn { display: none !important; }
}


/* =========================================================================
   Mobile nav menu (<details> disclosure — no JS, CSP-safe)
   ========================================================================= */

.ml-mobile-menu {
  display: inline-flex;
  position: relative;
}
@media (min-width: 860px) {
  .ml-mobile-menu { display: none; }
}

.ml-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  border-radius: 8px;
  color: #3D362C;
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease;
}
.ml-mobile-toggle::-webkit-details-marker { display: none; }
.ml-mobile-toggle::marker { display: none; content: ''; }
.ml-mobile-toggle:hover { background-color: rgba(4, 93, 86, 0.06); }
.ml-mobile-toggle:focus-visible {
  outline: 2px solid #045D56;
  outline-offset: 2px;
}

/* Toggle hamburger ↔ close icon */
.ml-mobile-icon-close { display: none; }
.ml-mobile-menu[open] .ml-mobile-icon-open { display: none; }
.ml-mobile-menu[open] .ml-mobile-icon-close { display: block; }

.ml-mobile-drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  background: #F5F1E8;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(31, 25, 21, 0.18);
  padding: 12px;
  z-index: 60;
  animation: ml-drawer-in 200ms ease;
}

@keyframes ml-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ml-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ml-mobile-link {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #3D362C;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 150ms ease, color 150ms ease;
}
.ml-mobile-link:hover {
  background-color: rgba(4, 93, 86, 0.06);
  color: #045D56;
  text-decoration: none;
}
.ml-mobile-link.is-active {
  color: #045D56;
  background-color: rgba(4, 93, 86, 0.08);
}

.ml-mobile-drawer-cta {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #E8DDC3;
}

/* =========================================================================
   Footer
   ========================================================================= */

.ml-footer {
  background-color: #EAE4D3;
  border-top: 1px solid #E8DDC3;
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.ml-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .ml-footer-inner {
    grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 32px 48px;
  }
}
@media (min-width: 1040px) {
  .ml-footer-inner {
    grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr);
  }
}

.ml-footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1F1915;
  margin: 0 0 12px;
}

.ml-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml-footer-col a {
  color: #6E6456;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
.ml-footer-col a:hover { color: #045D56; text-decoration: none; }

.ml-footer-brand-body {
  color: #6E6456;
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 42ch;
}

.ml-footer-bottom {
  max-width: 1040px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #E8DDC3;
  text-align: center;
  color: #9E9280;
  font-size: 13px;
}

/* =========================================================================
   Legal page overrides (when .marketing-light is applied to body)
   The legal views ship with legal-layout/legal-toc/legal-prose classes.
   We override their colors/borders to match the cream theme without
   touching the ERB.
   ========================================================================= */

body.marketing-light .legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
@media (min-width: 1024px) {
  body.marketing-light .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 64px;
  }
}

body.marketing-light .legal-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #045D56;
  z-index: 60;
  width: 0;
  transition: width 100ms linear;
}

body.marketing-light .legal-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

body.marketing-light .legal-toc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0 0 12px;
  color: #1F1915;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

body.marketing-light .legal-toc-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.marketing-light .legal-toc-title {
  color: #045D56;
}

body.marketing-light .legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid #E8DDC3;
  padding-top: 12px;
}

body.marketing-light .legal-toc-item { margin: 0; }

body.marketing-light .legal-toc-link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 6px;
  color: #6E6456;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
body.marketing-light .legal-toc-link:hover,
body.marketing-light .legal-toc-link.is-active,
body.marketing-light .legal-toc-link.active {
  color: #045D56;
  background-color: #EFEADD;
  text-decoration: none;
}

body.marketing-light .toc-number {
  color: #9E9280;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 18px;
}

body.marketing-light .legal-content-wrapper {
  max-width: 720px;
}

body.marketing-light .legal-header h1 {
  margin-top: 0;
}

body.marketing-light .legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #9E9280;
  font-size: 13px;
  margin: 0 0 32px;
  padding: 0 0 24px;
  border-bottom: 1px solid #E8DDC3;
}

body.marketing-light .legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.marketing-light .legal-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

body.marketing-light .legal-prose {
  color: #3D362C;
  font-size: 16px;
  line-height: 1.75;
}

body.marketing-light .legal-prose h2 {
  color: #1F1915;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid #E8DDC3;
}
body.marketing-light .legal-prose h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

body.marketing-light .legal-prose h3 {
  color: #1F1915;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

body.marketing-light .legal-prose p,
body.marketing-light .legal-prose li {
  color: #3D362C;
}

body.marketing-light .legal-prose ul,
body.marketing-light .legal-prose ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

body.marketing-light .legal-prose a {
  color: #045D56;
  font-weight: 500;
}
body.marketing-light .legal-prose a:hover { color: #034A45; text-decoration: underline; }

body.marketing-light .legal-prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background-color: #EEF7F6;
  border: 1px solid rgba(4, 93, 86, 0.25);
  border-radius: 4px;
  color: #3D362C;
  font-style: normal;
}

body.marketing-light .legal-prose code {
  background-color: #EFEADD;
  color: #1F1915;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

body.marketing-light .legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #E8DDC3;
  color: #6E6456;
  font-size: 14px;
}

body.marketing-light .legal-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

body.marketing-light .legal-contact p {
  margin: 0 0 4px;
  color: #6E6456;
  font-size: 14px;
  line-height: 1.55;
}

body.marketing-light .legal-contact a {
  color: #045D56;
  font-weight: 500;
}
body.marketing-light .legal-contact a:hover { color: #034A45; text-decoration: underline; }

body.marketing-light .legal-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: transparent;
  border: 1px solid #E8DDC3;
  border-radius: 8px;
  color: #045D56;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
body.marketing-light .legal-back-to-top:hover {
  background-color: #EFEADD;
  border-color: #9E9280;
}

body.marketing-light .legal-back-to-top svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  body.marketing-light .legal-toc.collapsed .legal-toc-toggle svg {
    transform: rotate(180deg);
  }

  body.marketing-light .legal-toc.collapsed .legal-toc-list {
    display: none;
  }
}

@media (min-width: 1025px) {
  body.marketing-light .legal-toc-toggle {
    display: block;
    pointer-events: none;
  }

  body.marketing-light .legal-toc-toggle svg {
    display: none;
  }
}

/* Reading progress bar JS hook — width controlled by scroll listener. */
body.marketing-light [data-reading-progress] {
  transition: width 100ms linear;
}

/* =========================================================================
   Personality layer
   Additions that shift the theme from "austere cream" to "warm teacher".
   Inspired by user feedback: DiskScout is too muted for TAC's voice.
   See DESIGN-marketing-light.md §7.
   ========================================================================= */

/*
 * Highlighter marker — Stripe-style underline but warm amber.
 * Usage: wrap the emphasised word(s) in H1 with <span class="ml-hl">…</span>.
 * Effect: a hand-drawn-looking highlighter bar sits behind the lower half
 * of the word, leaving top of the letters clean.
 * Alias .tac-highlight is supported so YAML-driven hero variants that
 * target the dark theme's highlight class still render correctly on cream.
 */
body.marketing-light .tac-highlight,
.ml-hl {
  background-image:
    linear-gradient(
      180deg,
      transparent 58%,
      rgba(244, 206, 111, 0.75) 58%,
      rgba(244, 206, 111, 0.75) 92%,
      transparent 92%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.08em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  position: relative;
}

body.marketing-light .ml-hero h1 .tac-highlight,
body.marketing-light .ml-hero h1 .ml-hl,
body.marketing-light #hero-title .tac-highlight,
body.marketing-light #hero-title .ml-hl {
  white-space: nowrap;
}

/* Amber "sparkle" dot that can sit inside an eyebrow label next to the text. */
.ml-eyebrow-sparkle {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F4CE6F 0%, #D9A825 100%);
  box-shadow: 0 0 0 3px rgba(244, 206, 111, 0.22);
  margin-right: 2px;
}

/*
 * Hand-drawn section divider. A single wavy SVG line in hairline color,
 * centered in the column. Used between H2 sections on long pages.
 */
.ml-divider {
  display: flex;
  justify-content: center;
  padding: 56px 0 40px;
  opacity: 0.9;
}

.ml-divider svg {
  width: 180px;
  height: 14px;
  overflow: visible;
}

.ml-divider path {
  fill: none;
  stroke: #D9CBA7;
  stroke-width: 2;
  stroke-linecap: round;
}

/*
 * Hero band now has a warmer outer band with a soft glow suggestion —
 * still no gradient, but a slightly raised feel via padding + subtle inset.
 */
.ml-band-hero {
  background-color: #EFEADD;
  border-bottom: 1px solid #E8DDC3;
  position: relative;
}

/*
 * Bigger eyebrow label for hero sections — teacher-friendly, warmer.
 */
.ml-hero .ml-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
}

/*
 * Warm H1 for hero. Slightly larger top margin, warm ink.
 */
.ml-hero h1 {
  max-width: 24ch;
}

/* =========================================================================
   Help center (cream theme)
   ========================================================================= */

.help-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: #1F1915;
  font-size: 16px;
}
.help-language select {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #6E6456;
  border-radius: 8px;
  background: #FFFDF5;
  color: #1F1915;
  font: inherit;
  cursor: pointer;
}
.help-language button { min-height: 44px; }
.help-language select:focus-visible,
.help-language button:focus-visible {
  outline: 3px solid #045D56;
  outline-offset: 3px;
}
.help-english-notice { color: #3A3A3A; margin: 0 0 24px; }
html[dir="rtl"] .ml-search-input { padding: 16px 52px 16px 20px; }
html[dir="rtl"] .ml-search-icon { left: auto; right: 18px; }
html[dir="rtl"] .ml-faq-toggle { text-align: start; }

.ml-search {
  display: block;
  max-width: 620px;
  margin: 0 auto 48px;
  position: relative;
}

.ml-search-input {
  box-sizing: border-box;
  width: 100%;
  padding: 16px 20px 16px 52px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  color: #1F1915;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease,
              background-color 150ms ease;
}
.ml-search-input::placeholder {
  color: #6E6456;
}
.ml-search-input:focus {
  outline: none;
  border-color: #045D56;
  background-color: #FFFDF5;
  box-shadow: 0 0 0 4px rgba(4, 93, 86, 0.12),
              0 0 0 7px rgba(244, 206, 111, 0.18);
}

.ml-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  stroke: #6E6456;
  stroke-width: 1.75;
  fill: none;
  pointer-events: none;
}

.ml-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F1915;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.ml-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 640px) { .ml-topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ml-topic-grid { grid-template-columns: repeat(3, 1fr); } }

.ml-topic {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease, border-color 200ms ease;
  position: relative;
}
.ml-topic:hover {
  transform: translateY(-2px);
  background-color: #F7F2E3;
  border-color: #D9CBA7;
  text-decoration: none;
  color: inherit;
}
.ml-topic:hover .ml-topic-icon-frame {
  background-color: #F4CE6F;
}

.ml-topic-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #D4E9E4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: background-color 200ms ease;
}
.ml-topic-icon-frame svg {
  width: 22px;
  height: 22px;
  stroke: #034A45;
  stroke-width: 1.75;
  fill: none;
}

.ml-topic-title {
  font-size: 19px;
  font-weight: 700;
  color: #1F1915;
  margin: 0;
  letter-spacing: -0.005em;
}

.ml-topic-body {
  font-size: 14px;
  color: #6E6456;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.ml-topic-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #045D56;
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

.ml-topic:hover .ml-topic-cta {
  color: #034A45;
}

/* Article guide tile — denser, used in "all articles" grids */
.ml-guide {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease, border-color 200ms ease;
}
.ml-guide:hover {
  transform: translateY(-2px);
  background-color: #F7F2E3;
  border-color: #D9CBA7;
  text-decoration: none;
  color: inherit;
}
.ml-guide-cat {
  display: inline-block;
  color: #045D56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ml-guide-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F1915;
  line-height: 1.3;
  margin: 0;
}
.ml-guide-body {
  font-size: 14px;
  color: #6E6456;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}
.ml-guide-arrow {
  color: #045D56;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.ml-guide:hover .ml-guide-arrow { color: #034A45; }

/* FAQ accordion */
.ml-faq {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  padding: 8px;
  margin: 0 0 48px;
}

.ml-faq-item + .ml-faq-item {
  border-top: 1px solid #E8DDC3;
}

.ml-faq-item.hidden { display: none; }

.ml-faq-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #1F1915;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: background-color 150ms ease;
}
.ml-faq-toggle:hover { background-color: #F7F2E3; }
.ml-faq-toggle:focus-visible {
  outline: 2px solid #045D56;
  outline-offset: 2px;
}

.ml-faq-icon {
  width: 20px;
  height: 20px;
  stroke: #045D56;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.ml-faq-toggle[aria-expanded="true"] .ml-faq-icon { transform: rotate(180deg); }

.ml-faq-answer {
  padding: 0 20px 20px;
  color: #3D362C;
  font-size: 15px;
  line-height: 1.7;
}
.ml-faq-answer.hidden { display: none; }

/* Contact support card — warm, friendly, not a button soup */
.ml-contact {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.ml-contact::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.22);
  pointer-events: none;
}
.ml-contact::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(4, 93, 86, 0.08);
  pointer-events: none;
}

.ml-contact > * { position: relative; }

.ml-contact h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.ml-contact p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: #3D362C;
}

.ml-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Hidden-via-class helper used by the FAQ search script */
.ml-hidden,
body.marketing-light .ml-hidden { display: none !important; }

/* =========================================================================
   Article detail (help-center/:slug)
   ========================================================================= */

.ml-article-layout {
  display: grid;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .ml-article-layout {
    grid-template-columns: 240px 1fr;
    gap: 64px;
  }
}

.ml-breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  color: #6E6456;
  font-size: 14px;
}
.ml-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #045D56;
  font-weight: 600;
}
.ml-breadcrumb a:hover { color: #034A45; }

.ml-article-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  padding: 22px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
@media (max-width: 1023px) {
  .ml-article-sidebar {
    position: static;
    max-height: none;
  }
}

.ml-article-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #045D56;
  margin: 0 0 14px;
}

.ml-article-sidebar .ml-article-cat {
  margin-bottom: 18px;
}

.ml-article-sidebar .ml-article-cat-title {
  font-size: 13px;
  font-weight: 700;
  color: #1F1915;
  margin: 0 0 8px;
}

.ml-article-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ml-article-sidebar a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6E6456;
  border-radius: 8px;
  text-decoration: none;
}
.ml-article-sidebar a:hover {
  color: #034A45;
  background-color: #F7F2E3;
  text-decoration: none;
}
.ml-article-sidebar a.is-active {
  color: #034A45;
  background-color: #EFEADD;
}

.ml-article-content {
  min-width: 0;
  overflow-wrap: anywhere;
  max-width: 720px;
}

.ml-article-header {
  border-bottom: 1px solid #E8DDC3;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.ml-article-header h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 8px 0 16px;
}

.ml-article-header .ml-lede {
  font-size: 18px;
  line-height: 1.55;
  color: #3D362C;
  margin: 0;
}

.ml-article-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9E9280;
  font-size: 13px;
  margin-top: 16px;
}

/*
 * Prose styling for the article body. We intentionally target the Tailwind
 * `.prose.prose-invert` wrapper that already lives on the article view so
 * the content looks right without needing a view rewrite of the markdown
 * rendering pipeline.
 */
body.marketing-light .ml-article-content .prose,
body.marketing-light .ml-article-content .prose-invert {
  color: #3D362C;
  max-width: none;
  font-size: 16px;
  line-height: 1.75;
}

body.marketing-light .ml-article-content .prose h2,
body.marketing-light .ml-article-content .prose-invert h2 {
  color: #1F1915;
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

body.marketing-light .ml-article-content .prose h3,
body.marketing-light .ml-article-content .prose-invert h3 {
  color: #1F1915;
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
}

body.marketing-light .ml-article-content .prose p,
body.marketing-light .ml-article-content .prose-invert p {
  color: #3D362C;
  margin: 0 0 16px;
}

body.marketing-light .ml-article-content .prose a,
body.marketing-light .ml-article-content .prose-invert a {
  color: #045D56;
  font-weight: 500;
  text-decoration: none;
}
body.marketing-light .ml-article-content .prose a:hover,
body.marketing-light .ml-article-content .prose-invert a:hover {
  color: #034A45;
  text-decoration: underline;
}

body.marketing-light .ml-article-content .prose ul,
body.marketing-light .ml-article-content .prose ol,
body.marketing-light .ml-article-content .prose-invert ul,
body.marketing-light .ml-article-content .prose-invert ol {
  color: #3D362C;
  padding-left: 24px;
  margin: 0 0 16px;
}

body.marketing-light .ml-article-content .prose code,
body.marketing-light .ml-article-content .prose-invert code {
  background-color: #EFEADD;
  color: #1F1915;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

body.marketing-light .ml-article-content .prose blockquote,
body.marketing-light .ml-article-content .prose-invert blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background-color: #EEF7F6;
  border: 1px solid rgba(4, 93, 86, 0.25);
  border-radius: 6px;
  color: #3D362C;
  font-style: normal;
}

body.marketing-light .ml-article-content .prose img,
body.marketing-light .ml-article-content .prose-invert img {
  border-radius: 12px;
  border: 1px solid #E8DDC3;
}

/* "Was this helpful" footer on article pages */
.ml-article-feedback {
  margin-top: 56px;
  padding: 28px 32px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ml-article-feedback-q {
  font-weight: 600;
  color: #1F1915;
  margin: 0;
}
.ml-article-feedback-buttons {
  display: flex;
  gap: 8px;
}

/* Pill-style yes/no */
.ml-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: transparent;
  border: 1px solid #E8DDC3;
  color: #1F1915;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.ml-pill-btn:hover {
  background-color: #EFEADD;
  border-color: #D9CBA7;
}

/* =========================================================================
   Pill badge — "Trusted by…" style stat/credibility chip
   ========================================================================= */

.ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  color: #034A45;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.ml-pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F4CE6F 0%, #D9A825 100%);
  box-shadow: 0 0 0 2px rgba(244, 206, 111, 0.25);
}

/* =========================================================================
   Forms — labels, inputs, textarea, select, checkbox, radio card
   ========================================================================= */

.ml-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.ml-field-label,
.ml-label {
  font-size: 13px;
  font-weight: 600;
  color: #1F1915;
  letter-spacing: -0.005em;
}

.ml-field-help {
  font-size: 12px;
  color: #6E6456;
  margin: 0;
}

.ml-input,
.ml-textarea,
.ml-select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 10px;
  color: #1F1915;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 150ms ease, background-color 150ms ease,
    box-shadow 150ms ease;
}
.ml-input::placeholder,
.ml-textarea::placeholder {
  color: #9E9280;
}
.ml-input:hover,
.ml-textarea:hover,
.ml-select:hover {
  border-color: #D9CBA7;
}
.ml-input:focus,
.ml-textarea:focus,
.ml-select:focus {
  outline: none;
  border-color: #045D56;
  background-color: #FFFDF5;
  box-shadow:
    0 0 0 4px rgba(4, 93, 86, 0.12),
    0 0 0 7px rgba(244, 206, 111, 0.14);
}
.ml-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}
.ml-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6456' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}

/* Radio card — clickable option card with built-in radio */
.ml-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}
.ml-radio-card:hover {
  border-color: #D9CBA7;
  background-color: #F7F2E3;
}
.ml-radio-card:has(input[type="radio"]:checked) {
  border-color: #045D56;
  background-color: #F7F2E3;
  box-shadow: 0 0 0 1px #045D56;
}
.ml-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #045D56;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ml-radio-card-body {
  flex: 1;
  min-width: 0;
}
.ml-radio-card-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1F1915;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.ml-radio-card-sub {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #6E6456;
}

/* Compact variant for team-size style grid */
.ml-radio-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #3D362C;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ml-radio-chip:hover {
  border-color: #D9CBA7;
  background-color: #F7F2E3;
}
.ml-radio-chip:has(input[type="radio"]:checked) {
  border-color: #045D56;
  background-color: #F7F2E3;
  color: #1F1915;
  font-weight: 600;
}
.ml-radio-chip input[type="radio"] {
  accent-color: #045D56;
  width: 14px;
  height: 14px;
}

/* Checkbox row */
.ml-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3D362C;
  line-height: 1.55;
  cursor: pointer;
}
.ml-check input[type="checkbox"] {
  accent-color: #045D56;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Form-level alert banners */
.ml-alert {
  padding: 14px 18px;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  margin-bottom: 24px;
}
.ml-alert-success {
  background-color: #E6EFEE;
  border-color: #9FC4B5;
  color: #034A45;
}
.ml-alert-error {
  background-color: #FBF3DC;
  border-color: #D4A84B;
  color: #8A6817;
}
.ml-alert strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* =========================================================================
   Card accent — top stripe in amber for "highlight" info cards
   ========================================================================= */

.ml-card-accent {
  position: relative;
  overflow: hidden;
}
.ml-card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #F4CE6F 0%,
    rgba(244, 206, 111, 0) 100%
  );
}

/* Card with header + checkmark list */
.ml-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ml-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3D362C;
  line-height: 1.55;
}
.ml-check-list svg {
  width: 18px;
  height: 18px;
  stroke: #045D56;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================================================
   Media frame — video/image container for hero split + focus rows
   ========================================================================= */

.ml-media-frame {
  position: relative;
}

.ml-media {
  position: relative;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ml-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ml-media-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244, 206, 111, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(4, 93, 86, 0.08) 0%, transparent 55%);
}

/* =========================================================================
   Developer embeds page
   ========================================================================= */

.ml-embed-hero {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.ml-embed-hero,
.ml-embed-hero-copy,
.ml-embed-preview,
.ml-embed-choice-grid,
.ml-embed-use-list,
.ml-embed-two-col {
  min-width: 0;
}

@media (min-width: 900px) {
  .ml-embed-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  }
}

.ml-embed-hero-copy {
  max-width: 680px;
}

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

.ml-embed-actions a {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.ml-embed-preview {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
}

.ml-embed-preview-top,
.ml-embed-preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6E6456;
  font-size: 14px;
}

.ml-embed-wave {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 92px;
  margin: 28px 0;
  min-width: 0;
  overflow: hidden;
}

.ml-embed-wave span {
  display: block;
  width: 100%;
  flex: 1 1 0;
  border-radius: 999px;
  background-color: #045D56;
}

.ml-embed-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #1F1915;
  color: #F5F1E8;
  font-size: 12px;
  flex: 0 0 auto;
}

.ml-embed-section-head {
  max-width: 760px;
  margin: 0 0 28px;
}

.ml-embed-section-head h2,
.ml-embed-section-head p {
  margin-left: 0;
}

.ml-embed-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ml-embed-choice-grid .ml-card,
.ml-embed-use-list .ml-card {
  min-width: 0;
  border-radius: 12px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.ml-embed-choice-grid .ml-card:hover,
.ml-embed-use-list .ml-card:hover {
  transform: none;
  background-color: #FBF8F0;
  border-color: #E8DDC3;
}

@media (min-width: 920px) {
  .ml-embed-choice-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ml-embed-use-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .ml-embed-use-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .ml-embed-use-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ml-code {
  margin: 8px 0 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 12px;
  background-color: #1F1915;
  color: #F5F1E8;
  font-size: 13px;
  line-height: 1.55;
}

.ml-code code,
.ml-check-list code,
.ml-embed-faq code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.ml-embed-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .ml-embed-two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ml-embed-faq {
  display: grid;
  gap: 12px;
}

.ml-embed-faq details {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  padding: 18px 20px;
}

.ml-embed-faq summary {
  color: #1F1915;
  cursor: pointer;
  font-weight: 700;
}

.ml-embed-faq p {
  margin: 12px 0 0;
  color: #3D362C;
}

.ml-embed-contact {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 24px;
}

.ml-embed-contact h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.ml-embed-contact p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: #3D362C;
}

.ml-embed-contact .ml-contact-actions {
  justify-content: center;
}

/* =========================================================================
   MCP developer page
   ========================================================================= */

.ml-mcp-hero {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.ml-mcp-hero,
.ml-mcp-hero-copy,
.ml-mcp-visual,
.ml-mcp-terminal,
.ml-mcp-setup-grid,
.ml-mcp-prompt-list,
.ml-mcp-code-card,
.ml-copy-block,
.ml-copy-block .ml-code {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 940px) {
  .ml-mcp-hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1fr);
    gap: 56px;
  }
}

.ml-mcp-hero-copy {
  max-width: 700px;
}

.ml-mcp-guardrail {
  max-width: 620px;
  margin: 18px 0 0;
  color: #6E6456;
  font-size: 14px;
  line-height: 1.55;
}

.ml-mcp-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  background: #FBF8F0;
  min-height: 420px;
}

.ml-mcp-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.ml-mcp-terminal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 12px;
  background: rgba(31, 25, 21, 0.94);
  color: #F5F1E8;
  box-shadow: 0 18px 48px rgba(31, 25, 21, 0.24);
}

.ml-mcp-terminal-top {
  display: flex;
  gap: 7px;
  padding: 12px 14px 0;
}

.ml-mcp-terminal-top span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #E8DDC3;
  opacity: 0.68;
}

.ml-mcp-terminal pre {
  margin: 0;
  padding: 14px 16px 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.55;
}

.ml-mcp-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 940px) {
  .ml-mcp-setup-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ml-mcp-code-card {
  border-radius: 12px;
}

.ml-copy-block {
  position: relative;
  margin-top: 16px;
}

.ml-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #D9CEB8;
  border-radius: 8px;
  background-color: #FBF8F0;
  color: #1F1915;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.ml-copy-block .ml-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.ml-copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-copy-btn:hover,
.ml-copy-btn:focus-visible {
  border-color: #045D56;
  background-color: #F5F1E8;
}

.ml-mcp-capability-grid .ml-card {
  min-width: 0;
}

.ml-mcp-prompt-list {
  display: grid;
  gap: 12px;
}

.ml-mcp-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  background-color: #FBF8F0;
}

.ml-mcp-prompt p {
  margin: 0;
  color: #3D362C;
  line-height: 1.5;
}

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

.ml-mcp-roadmap-card {
  border-radius: 12px;
}

.ml-mcp-roadmap-card h2 {
  margin-top: 0;
}

.ml-copy-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: #1F1915;
  color: #F5F1E8;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.ml-copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .ml-embed-hero {
    gap: 28px;
  }

  .ml-embed-hero h1,
  .ml-embed-section-head h2 {
    max-width: 13ch;
    text-wrap: normal;
  }

  .ml-embed-hero .ml-lede,
  .ml-embed-section-head p {
    max-width: 30ch;
  }

  .ml-embed-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ml-embed-actions .ml-btn-brand,
  .ml-embed-actions .ml-btn-secondary {
    display: flex;
    justify-content: center;
    width: auto;
  }

  .ml-embed-preview {
    padding: 20px;
    max-width: calc(100vw - 48px);
  }

  .ml-embed-preview-top,
  .ml-embed-preview-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .ml-embed-wave {
    gap: 5px;
  }

  .ml-code {
    font-size: 12px;
  }

  .ml-mcp-visual {
    min-height: 360px;
  }

  .ml-mcp-visual-image {
    min-height: 360px;
  }

  .ml-mcp-terminal {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .ml-mcp-prompt {
    grid-template-columns: 1fr;
  }
}

/* Marketing-light shared partial layouts */
@media (min-width: 900px) {
  .ml-hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 64px !important;
  }

  .ml-focus-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 56px !important;
  }

  .ml-focus-row--reverse .ml-focus-row-copy {
    order: 2;
  }
}

.ml-how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .ml-how-steps {
    grid-template-columns: repeat(var(--ml-how-step-count, 1), minmax(0, 1fr));
    gap: 32px;
    position: relative;
  }

  .ml-how-steps::before {
    content: "";
    position: absolute;
    top: 112px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #E8DDC3 0 10px, transparent 10px 18px);
    z-index: 0;
  }
}

.ml-how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ml-how-step-art {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FBF8F0 0%, #EFEADD 100%);
  border: 1px solid #E8DDC3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.ml-how-step-art img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* Tile variant: full-bleed square/rect illustrations keep their own geometry —
   never circle-crop rounded-square art (founder feedback, PR #1132). */
.ml-how-step-art--tile {
  border-radius: 24px;
  background: none;
}

.ml-how-step-art--tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-how-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #045D56;
  margin-bottom: 4px;
}

.ml-how-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F1915;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ml-how-step-copy {
  color: #3D362C;
  max-width: 28ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
}

/* Soft-deprecation banner (used above the creators hero) */
.ml-deprecation-banner {
  background-color: #FBF3DC;
  border-bottom: 1px solid #D4A84B;
  padding: 16px 24px;
  color: #8A6817;
  font-size: 14px;
}
.ml-deprecation-banner-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ml-deprecation-banner strong { color: #6B4E0A; }

/* =========================================================================
   Pricing
   ========================================================================= */

.ml-pricing-hero-band {
  padding-top: 12px;
}

.ml-pricing-hero {
  max-width: 820px;
  text-align: center;
  padding: 34px 24px 18px;
}

.ml-pricing-eyebrow {
  justify-content: center;
}

.ml-pricing-hero-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.ml-pricing-hero-lede {
  margin: 18px auto 0;
  max-width: 560px;
}

.ml-pricing-hero-proof {
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6E6456;
}

.ml-pricing-hero-proof a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ml-pricing-hero-proof a:hover {
  color: #045D56;
}

.ml-pricing-promo-band {
  padding-top: 20px;
  padding-bottom: 4px;
}

.ml-pricing-promo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 13px;
  color: #8A6817;
}

.ml-pricing-promo-fine {
  font-size: 12px;
  color: #8A6817;
  opacity: 0.78;
  margin-top: 18px;
  margin-bottom: 0;
}

.ml-pricing-toggle-band {
  padding-top: 10px;
  padding-bottom: 18px;
  text-align: center;
}

.ml-pricing-toggle-band--after-hero {
  padding-top: 26px;
}


.ml-pricing-plans-band {
  max-width: 1360px;
  padding-top: 4px;
  padding-bottom: 72px;
}

.ml-pricing-section-title {
  text-align: center;
  margin-bottom: 28px;
}

.ml-pricing-testimonial-band {
  padding-top: 24px;
  padding-bottom: 56px;
}

.ml-pricing-compare-band {
  padding-top: 32px;
  padding-bottom: 72px;
}

.ml-pricing-support-band {
  padding-top: 16px;
  padding-bottom: 56px;
}

.ml-pricing-support-card {
  padding: 36px;
}

.ml-pricing-support-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ml-pricing-support-copy {
  color: #3D362C;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.ml-pricing-support-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.ml-pricing-faq-band {
  padding-top: 24px;
  padding-bottom: 104px;
}

.ml-pricing-faq-grid {
  gap: 20px;
}

.ml-pricing-faq-card {
  padding: 28px;
}

.ml-pricing-faq-question {
  margin-bottom: 10px;
}

.ml-pricing-faq-answer {
  max-width: 48ch;
  margin-bottom: 0;
}

@media (max-width: 719px) {
  .ml-pricing-hero {
    padding: 28px 20px 18px;
  }

  .ml-pricing-proof-list {
    grid-template-columns: 1fr;
  }

  .ml-price,
  .ml-pricing-support-card,
  .ml-pricing-faq-card {
    padding: 24px;
  }
}

@media (min-width: 960px) {
  .ml-pricing-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ml-pricing-toggle {
  display: inline-flex;
  padding: 6px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 999px;
  margin: 0 auto;
}

.ml-pricing-toggle-btn {
  padding: 11px 24px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: #6E6456;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ml-pricing-toggle-btn:hover {
  color: #1F1915;
}
.ml-pricing-toggle-btn.is-active,
.ml-pricing-toggle-btn[aria-pressed="true"] {
  background-color: #173f3a;
  color: #F5F1E8;
}

.ml-save-chip {
  display: inline-block;
  background-color: rgba(244, 206, 111, 0.22);
  color: #6B4E0A;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
/* When the chip sits inside the active (dark-emerald) toggle button, boost contrast */
.ml-pricing-toggle-btn.is-active .ml-save-chip,
.ml-pricing-toggle-btn[aria-pressed="true"] .ml-save-chip {
  background-color: rgba(244, 206, 111, 0.28);
  color: #F4CE6F;
}

/* Ladder deck (issue #1116 Direction B): the three teacher tiers are ONE
   connected surface with internal hairline dividers; School & District
   renders as a separate full-width band (.ml-district-band) below. */
.ml-ladder-baseline {
  max-width: 1140px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6E6456;
}

.ml-ladder {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1140px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .ml-ladder {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1.16fr);
    align-items: stretch;
  }
}

/* Ladder columns are flat: the surface carries the card chrome. */
.ml-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #E8DDC3;
}
@media (min-width: 760px) {
  .ml-plan {
    border-bottom: 0;
    border-right: 1px solid #E8DDC3;
  }
  .ml-ladder .ml-plan:last-child {
    border-right: 0;
  }
}
.ml-plan--free,
.ml-plan--plus,
.ml-plan--pro {
  padding: 30px 28px 26px;
}
/* Compact padding while the ladder runs three narrow columns (760-899px).
   Must follow the base padding rule to win the cascade (Codex review #1123). */
@media (min-width: 760px) and (max-width: 899px) {
  .ml-plan--free,
  .ml-plan--plus,
  .ml-plan--pro {
    padding: 24px 18px 22px;
  }
}


/* Featured rung (Teacher Pro): tint + emerald top bar; flat, no card glow. */
.ml-plan--featured {
  background-color: rgba(4, 93, 86, 0.055);
  box-shadow: inset 0 3px 0 #045D56;
}

/* Trial badge sits inside its ladder column (the flat surface has no card
   edge to hang it over). */
.ml-plan-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #173f3a;
  color: #F4CE6F;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.ml-plan-inline-label {
  margin: 4px 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E9280;
}


.ml-plan-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E9280;
}

.ml-plan--featured .ml-plan-kicker {
  color: #045D56;
}

.ml-plan-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #045D56;
}

.ml-plan--featured .ml-plan-title {
  font-size: 16px;
  color: #1F1915;
}

.ml-plan-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ml-plan-price {
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1F1915;
}

.ml-plan--featured .ml-plan-price {
  font-size: 48px;
}

.ml-plan-price--district {
  font-size: 40px;
}

.ml-plan-unit {
  font-size: 14px;
  font-weight: 500;
  color: #6E6456;
  padding-bottom: 6px;
}

.ml-plan-dual-price {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 14px;
}

.ml-plan-dual-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #034A45;
  font-weight: 500;
}

.ml-plan-summary {
  margin: 0 0 8px;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.5;
  color: #1F1915;
}

.ml-plan--featured .ml-plan-summary {
  max-width: 26ch;
  font-size: 17px;
  line-height: 1.4;
}

.ml-plan-subcopy {
  margin: 0 0 18px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.55;
  color: #6E6456;
}

.ml-plan--featured .ml-plan-subcopy {
  margin-bottom: 22px;
  max-width: 30ch;
}


.ml-plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  flex-grow: 1;
}

.ml-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #3D362C;
}

.ml-plan-list li span {
  max-width: 30ch;
}

.ml-plan-list svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  fill: none;
  stroke: #045D56;
  stroke-width: 2.5;
}

.ml-plan-link-wrap {
  margin: 0 0 18px;
}

.ml-plan-link {
  font-size: 12px;
  font-weight: 600;
}


.ml-plan-cta {
  margin-top: auto;
  padding-top: 14px;
}

.ml-plan--featured .ml-plan-cta {
  padding-top: 10px;
}

body.marketing-light .ml-pricing-plans-band .ml-plan-cta .ml-btn,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta a.ml-btn,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta button.ml-btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  background-color: #173f3a;
  border-color: #173f3a;
  color: #F5F1E8;
}

body.marketing-light .ml-pricing-plans-band .ml-plan-cta .ml-btn:hover,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta a.ml-btn:hover,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta button.ml-btn:hover {
  background-color: #12332f;
  border-color: #12332f;
  color: #F5F1E8;
}

body.marketing-light .ml-pricing-plans-band .ml-plan-cta .ml-btn-secondary,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta a.ml-btn-secondary,
body.marketing-light .ml-pricing-plans-band .ml-plan-cta button.ml-btn-secondary {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.ml-price-cta-note {
  text-align: center;
  font-size: 12px;
  color: #6E6456;
  line-height: 1.45;
  margin: 14px auto 0;
  max-width: 29ch;
}

@media (max-width: 719px) {
  .ml-plan--free,
  .ml-plan--plus,
  .ml-plan--pro {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ml-plan--featured .ml-plan-price {
    font-size: 44px;
  }

  .ml-plan-price--district {
    font-size: 36px;
  }

  .ml-plan-badge {
    top: 16px;
    right: 16px;
  }
}

/* School & District band — a different buyer gets a different shape. */
.ml-district-band {
  max-width: 1140px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 30px 28px 26px;
  background-color: #EFEADD;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
}
@media (min-width: 900px) {
  .ml-district-band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
  }
}
@media (max-width: 719px) {
  .ml-district-band {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.ml-district-band .ml-plan-summary {
  max-width: 40ch;
}

body.marketing-light .ml-district-cta {
  margin-top: 16px;
}
body.marketing-light .ml-pricing-plans-band .ml-district-cta .ml-btn-secondary,
body.marketing-light .ml-pricing-plans-band .ml-district-cta a.ml-btn-secondary {
  width: auto;
  box-sizing: border-box;
}
body.marketing-light .ml-pricing-plans-band .ml-district-cta .ml-price-cta-note {
  text-align: left;
  margin-left: 0;
}

.ml-district-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
  margin: 0;
  flex-grow: 0;
}
@media (min-width: 640px) {
  .ml-district-list {
    grid-template-columns: 1fr 1fr;
  }
}

.ml-district-detail .ml-plan-link-wrap {
  margin: 14px 0 0;
}

/* Pricing promo banner */
.ml-promo {
  max-width: 720px;
  margin: 0 auto 56px;
  background-color: #FBF3DC;
  border: 1px solid #D4A84B;
  border-radius: 22px;
  padding: 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ml-promo::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.4);
}
.ml-promo::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.3);
}
.ml-promo > * { position: relative; }
.ml-promo-label {
  display: inline-block;
  background-color: #1F1915;
  color: #F4CE6F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ml-promo h2 {
  color: #6B4E0A;
  font-size: 24px;
  margin: 0 0 8px;
}
.ml-promo p {
  color: #8A6817;
  margin: 0 0 8px;
}
.ml-promo code {
  background-color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: #6B4E0A;
  border: 1px solid #D4A84B;
}

/* =========================================================================
   Comparison table
   ========================================================================= */

.ml-compare {
  max-width: 1040px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  overflow: hidden;
}
.ml-compare-scroll { overflow-x: auto; }
.ml-compare table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ml-compare thead th {
  background-color: #EFEADD;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1F1915;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #E8DDC3;
}
.ml-compare thead th:first-child,
.ml-compare tbody td:first-child {
  width: 34%;
}
.ml-compare thead th.is-featured {
  color: #045D56;
  background-color: rgba(4, 93, 86, 0.08);
}
.ml-compare thead th.is-center { text-align: center; }
.ml-compare tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: #3D362C;
  border-bottom: 1px solid #EFEADD;
  vertical-align: top;
}
.ml-compare tbody tr:last-child td { border-bottom: 0; }
.ml-compare tbody td.is-center { text-align: center; }
.ml-compare tbody td.is-featured {
  color: #034A45;
  font-weight: 600;
  background-color: rgba(4, 93, 86, 0.05);
}
.ml-compare tbody td.is-pro-exclusive {
  background-color: rgba(244, 206, 111, 0.12);
}
.ml-compare-note {
  padding: 14px 20px;
  font-size: 12px;
  color: #6E6456;
  background-color: #EFEADD;
  border-top: 1px solid #E8DDC3;
}

/* =========================================================================
   Testimonial
   ========================================================================= */

.ml-testimonial {
  max-width: 720px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.ml-testimonial::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 72px;
  line-height: 1;
  color: rgba(244, 206, 111, 0.55);
  font-family: Georgia, serif;
  pointer-events: none;
}
.ml-testimonial-quote {
  position: relative;
  font-size: 18px;
  line-height: 1.55;
  color: #1F1915;
  margin: 0 0 20px;
  padding-top: 8px;
  font-style: italic;
}
.ml-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ml-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F4CE6F 0%, #D9A825 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1F1915;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
}
.ml-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ml-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #1F1915;
  margin: 0;
}
.ml-testimonial-org {
  font-size: 13px;
  color: #6E6456;
  margin: 0;
}

/* =========================================================================
   Blog — featured post, article card grid, newsletter, share row
   ========================================================================= */

.ml-featured-post {
  max-width: 1040px;
  margin: 0 auto 48px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transition: border-color 200ms ease, transform 200ms ease;
}
@media (min-width: 900px) {
  .ml-featured-post { grid-template-columns: 1fr 1fr; }
}
.ml-featured-post:hover {
  border-color: #D9CBA7;
  transform: translateY(-2px);
}
.ml-featured-post-image {
  position: relative;
  background-color: #EFEADD;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.ml-featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-featured-post-image .ml-placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  color: #D9CBA7;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.ml-featured-post-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ml-featured-post-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #045D56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.ml-featured-post-title {
  font-size: 26px;
  font-weight: 700;
  color: #1F1915;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.ml-pricing-assurance-band {
  padding-top: 8px;
  padding-bottom: 20px;
}

.ml-pricing-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
  max-width: 1080px;
}

.ml-pricing-assurance p {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #E8DDC3;
  color: #6E6456;
  font-size: 13px;
  text-align: center;
}

.ml-pricing-assurance strong {
  color: #173f3a;
}

.ml-pricing-support-band {
  padding-top: 6px;
  padding-bottom: 56px;
}

@media (max-width: 719px) {
  .ml-pricing-assurance {
    grid-template-columns: 1fr;
  }
}


.ml-featured-post-excerpt {
  color: #3D362C;
  line-height: 1.55;
  margin: 0 0 16px;
}

.ml-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9E9280;
  font-size: 13px;
  margin-bottom: 16px;
}
.ml-post-meta .sep::before {
  content: "\00b7";
  margin: 0 2px;
}

/* Article card (blog index) — image + title + excerpt + meta */
.ml-article-card {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease,
              background-color 200ms ease;
}
.ml-article-card:hover {
  border-color: #D9CBA7;
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.ml-article-card-image {
  aspect-ratio: 16 / 10;
  background-color: #EFEADD;
  overflow: hidden;
  position: relative;
}
.ml-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-article-card-image .ml-placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  color: #D9CBA7;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.ml-article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.ml-article-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F1915;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}
.ml-article-card-excerpt {
  color: #6E6456;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}
.ml-article-card-read {
  color: #045D56;
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}
.ml-article-card:hover .ml-article-card-read { color: #034A45; }

/* Newsletter (light) */
.ml-newsletter {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 36px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ml-newsletter::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.18);
  pointer-events: none;
}
.ml-newsletter > * { position: relative; }
.ml-newsletter h4 {
  font-size: 22px;
  font-weight: 700;
  color: #1F1915;
  margin: 0 0 10px;
}
.ml-newsletter-sub {
  color: #3D362C;
  margin: 0 auto 24px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
}
.ml-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.ml-newsletter-form .ml-input {
  flex: 1;
  min-width: 200px;
}
.ml-newsletter-fine {
  margin: 16px auto 0;
  font-size: 12px;
  color: #9E9280;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.ml-newsletter-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.ml-newsletter-msg.is-visible { display: block; }
.ml-newsletter-msg.newsletter-error {
  background-color: #FBF3DC;
  color: #8A6817;
  border: 1px solid #D4A84B;
}
.ml-newsletter-msg.newsletter-success {
  background-color: #E6EFEE;
  color: #034A45;
  border: 1px solid #9FC4B5;
}

/* Share row on article pages */
.ml-share {
  padding: 24px 0;
  border-top: 1px solid #E8DDC3;
  border-bottom: 1px solid #E8DDC3;
  margin: 40px 0;
}
.ml-share h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #045D56;
  font-weight: 700;
  margin: 0 0 12px;
}
.ml-share-row {
  display: flex;
  gap: 10px;
}
.ml-share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  color: #045D56;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.ml-share-btn:hover {
  background-color: #EFEADD;
  border-color: #D9CBA7;
  transform: translateY(-1px);
  color: #034A45;
}
.ml-share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================================================================
   Trust bar — rating + metric row.

   Single rhythm: each item is [icon-frame] [value + sub-label] with
   matching baselines. The rating becomes its own metric ("4.2 / 5"
   value, "5,800+ ratings on Chrome Web Store" sub) so it sits in the
   same visual slot as "160 countries" and "FERPA + COPPA". Inline
   stars sit above the value as a small visual flourish.
   ========================================================================= */

.ml-trust-bar {
  max-width: 1040px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.ml-trust-bar::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.12);
  pointer-events: none;
}
.ml-trust-bar > * { position: relative; }

.ml-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .ml-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  /* Vertical hairline dividers between items on desktop */
  .ml-trust-grid > li {
    padding: 0 28px;
    border-left: 1px solid #E8DDC3;
  }
  .ml-trust-grid > li:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .ml-trust-grid > li:last-child {
    padding-right: 0;
  }
}

.ml-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.ml-trust-item:hover { color: inherit; text-decoration: none; }
.ml-trust-item:hover .ml-trust-icon-frame {
  border-color: #045D56;
  background-color: #C8E1DA;
}

.ml-trust-icon-frame {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: #D4E9E4;
  border: 1px solid #9FC4B5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.ml-trust-icon-frame svg {
  width: 22px;
  height: 22px;
  stroke: #045D56;
  stroke-width: 2;
  fill: none;
}
.ml-trust-icon-frame .ml-stars {
  display: inline-flex;
  flex-direction: row;
  gap: 1px;
}
.ml-trust-icon-frame .ml-stars svg {
  width: 9px;
  height: 9px;
  fill: #F4CE6F;
  stroke: none;
}

.ml-trust-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ml-trust-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 12px;
  color: #6E6456;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ml-trust-value {
  font-size: 18px;
  font-weight: 700;
  color: #1F1915;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.ml-trust-sub {
  font-size: 13px;
  line-height: 1.4;
  color: #6E6456;
  margin: 0;
}
.ml-trust-sub a {
  color: #045D56;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(4, 93, 86, 0.3);
  text-underline-offset: 2px;
}
.ml-trust-sub a:hover { color: #034A45; text-decoration-color: currentColor; }

/* Inline star row used both inside and outside the icon frame */
.ml-stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}
.ml-stars svg {
  width: 13px;
  height: 13px;
  fill: #F4CE6F;
  color: #F4CE6F;
}
.ml-stars .ml-star-empty {
  fill: #E8DDC3;
  color: #E8DDC3;
}

/* =========================================================================
   Logo wall — integrations row
   ========================================================================= */

.ml-logo-wall {
  max-width: 1040px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.ml-logo-wall::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.14);
  pointer-events: none;
}
.ml-logo-wall::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(4, 93, 86, 0.08);
  pointer-events: none;
}
.ml-logo-wall > * { position: relative; }

.ml-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 900px) {
  .ml-logo-grid { grid-template-columns: repeat(5, 1fr); }
}
.ml-logo-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ml-logo-tile {
  width: 88px;
  height: 88px;
  background-color: #F5F1E8;
  border: 1px solid #E8DDC3;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color 200ms ease, transform 200ms ease, background-color 200ms ease;
}
.ml-logo-item:hover .ml-logo-tile {
  border-color: #D9CBA7;
  background-color: #FFFDF5;
  transform: translateY(-2px);
}
.ml-logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ml-logo-name {
  font-size: 13px;
  font-weight: 600;
  color: #1F1915;
  margin: 0;
}
.ml-logo-also {
  margin-top: 28px;
  font-size: 14px;
  color: #3D362C;
  text-align: center;
}
.ml-logo-also strong { color: #1F1915; }

/* =========================================================================
   Hero demo tile — featured "listen to a sample" card used on home
   ========================================================================= */

.ml-demo-card {
  max-width: 720px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ml-demo-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.16);
  pointer-events: none;
}
.ml-demo-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: rgba(4, 93, 86, 0.08);
  pointer-events: none;
}
.ml-demo-card > * { position: relative; }

.ml-demo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.ml-demo-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: #D4E9E4;
  border: 1px solid #9FC4B5;
  color: #034A45;
  font-size: 13px;
  font-weight: 500;
}

/* =========================================================================
   Home "explore" quick-links bar
   ========================================================================= */

.ml-quicklinks {
  max-width: 1040px;
  margin: 0 auto;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 40px 32px;
}
.ml-quicklinks-head {
  text-align: center;
  margin-bottom: 24px;
}
.ml-quicklinks-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.ml-quicklinks-head p {
  color: #6E6456;
  margin: 0;
  font-size: 14px;
}
.ml-quicklinks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .ml-quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
}
.ml-quicklink {
  display: block;
  padding: 20px;
  background-color: #F5F1E8;
  border: 1px solid #E8DDC3;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease,
              background-color 200ms ease;
}
.ml-quicklink:hover {
  border-color: #D9CBA7;
  background-color: #FFFDF5;
  transform: translateY(-2px);
  text-decoration: none;
}
.ml-quicklink-cat {
  display: inline-block;
  color: #045D56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ml-quicklink-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F1915;
  margin: 0 0 6px;
}
.ml-quicklink-body {
  font-size: 13px;
  color: #6E6456;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================================
   Inline quote (sprinkled testimonial)
   No card border. Big amber quote mark on the left, body floats next to
   it. Drops between content sections to add a teacher voice without
   introducing a heavy "Testimonials" section.
   ========================================================================= */

.ml-quote-inline {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 0 24px;
}
.ml-quote-inline--reverse {
  /* visual variation when sprinkled twice on the same page */
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
}

.ml-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  line-height: 0.8;
  color: rgba(244, 206, 111, 0.85);
  margin: 0;
  user-select: none;
  flex-shrink: 0;
}

.ml-quote-body {
  margin: 0;
  padding: 6px 0 0;
}

.ml-quote-body p {
  font-size: 19px;
  line-height: 1.55;
  color: #1F1915;
  font-weight: 500;
  margin: 0 0 14px;
  font-style: italic;
  letter-spacing: -0.005em;
}

.ml-quote-cite {
  font-size: 14px;
  color: #6E6456;
  font-style: normal;
}
.ml-quote-cite strong {
  color: #1F1915;
  font-weight: 700;
}

/* =========================================================================
   Two paths — teacher / school conversion split
   ========================================================================= */

.ml-two-paths {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .ml-two-paths { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.ml-path {
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.ml-path:hover {
  border-color: #D9CBA7;
  transform: translateY(-2px);
}

.ml-path::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(244, 206, 111, 0.16);
  pointer-events: none;
}

.ml-path--brand {
  border-color: #045D56;
  box-shadow: 0 0 0 1px #045D56;
  background-color: #FFFDF5;
}
.ml-path--brand::before {
  background-color: rgba(4, 93, 86, 0.12);
}
.ml-path--brand:hover {
  border-color: #045D56;
  box-shadow:
    0 0 0 1px #034A45,
    0 18px 40px -28px rgba(4, 93, 86, 0.35);
}

.ml-path > * { position: relative; }

.ml-path-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #045D56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.ml-path h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1F1915;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ml-path-lede {
  color: #3D362C;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.ml-path .ml-check-list {
  margin-bottom: 24px;
  flex-grow: 1;
}

.ml-path .ml-btn,
.ml-path .ml-btn-brand {
  align-self: flex-start;
}

/* =========================================================================
   Uninstall feedback page
   ========================================================================= */

.ml-uninstall-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.ml-uninstall-intro {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.ml-uninstall-intro .ml-pill {
  margin-bottom: 14px;
}

.ml-uninstall-intro h1 {
  max-width: 20ch;
  margin: 0 auto 10px;
  color: #1A1A1A;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ml-uninstall-intro .ml-lede {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
}

.ml-uninstall-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  padding: 24px;
  background-color: #FBF8F0;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
}

.ml-uninstall-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ml-uninstall-form .ml-field,
.ml-uninstall-form .ml-alert {
  margin-bottom: 0;
}

.ml-field-optional {
  color: #9E9280;
  font-weight: 500;
}

.ml-contact-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #E8DDC3;
  border-radius: 10px;
  background-color: #F5F1E8;
}

.ml-contact-fields legend {
  padding: 0 6px;
  color: #1F1915;
  font-size: 13px;
  font-weight: 700;
}

.ml-uninstall-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ml-uninstall-actions .ml-btn-brand {
  justify-content: center;
}

.ml-uninstall-actions .ml-btn-link {
  align-self: center;
  font-size: 13px;
}

.ml-uninstall-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 1px solid #E8DDC3;
  border-radius: 12px;
  background-color: #F5F1E8;
}

.ml-uninstall-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background-color: #E8DDC3;
}

.ml-uninstall-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ml-uninstall-note {
  max-width: 640px;
  margin: 14px auto 0;
  color: #6B6B6B;
  font-size: 13px;
  line-height: 1.55;
}

.ml-uninstall-recovery-callout {
  max-width: 720px;
  margin: -8px auto 18px;
  padding: 14px 16px;
  color: #3A3028;
  background-color: #FFF9ED;
  border: 1px solid rgba(217, 135, 42, 0.35);
  border-radius: 12px;
  text-align: left;
}

.ml-uninstall-recovery-callout p {
  margin: 0;
}

.ml-uninstall-recovery-callout p:first-child {
  margin-bottom: 4px;
  color: #1F1915;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.ml-uninstall-recovery-callout p:last-child {
  color: #5D5146;
  font-size: 14px;
  line-height: 1.45;
}

.ml-uninstall-bullets {
  margin: 0;
  padding-left: 18px;
  color: #3A3A3A;
  font-size: 14px;
  line-height: 1.55;
}

.ml-uninstall-bullets li + li {
  margin-top: 8px;
}

.ml-uninstall-success {
  grid-column: 1 / -1;
  padding: 24px 8px;
  text-align: center;
}

.ml-uninstall-success svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #045D56;
}

.ml-uninstall-success h2 {
  margin: 0 0 6px;
  color: #1A1A1A;
  font-size: 22px;
  line-height: 1.2;
}

.ml-uninstall-success p {
  margin: 0 0 20px;
  color: #6B6B6B;
}

.ml-uninstall-success .ml-btn-brand {
  justify-content: center;
}

.ml-uninstall-reinstall {
  max-width: 480px;
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 820px) {
  .ml-uninstall-shell {
    padding: 40px 20px 48px;
  }

  .ml-uninstall-card {
    grid-template-columns: 1fr;
  }

  .ml-uninstall-recovery-callout {
    margin-bottom: 16px;
    padding: 14px;
  }

  .ml-uninstall-recovery-callout p:first-child,
  .ml-uninstall-recovery-callout p:last-child {
    font-size: 14px;
  }

  .ml-uninstall-art-frame {
    max-height: 180px;
  }
}


/* 760-899px: the Plus rung is only ~230-280px wide, so the absolutely
   positioned trial badge would overlap the kicker. Let it flow in the column
   instead — the flex column reserves space for it (Codex review #1123 r3). */
@media (min-width: 760px) and (max-width: 899px) {
  .ml-plan-badge {
    position: static;
    align-self: flex-start;
    margin: 0 0 10px;
  }
  .ml-plan-badge.ml-hidden {
    display: none;
  }
}

/* =========================================================================
   Homepage hero — illustrative work surface + real voice sample
   (home/index.html.erb). Scoped to .ml-home-hero / .ml-work-*. Colors are
   the existing cream/emerald/gold tokens used across this theme.
   ========================================================================= */
.ml-home-hero-pad { padding-top: 32px; padding-bottom: 48px; }
@media (min-width: 960px) {
  .ml-home-hero-pad { padding-top: 64px; padding-bottom: 56px; }
}
.ml-home-hero {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
/* DOM order = focus order on every layout: intro → work surface → actions.
   Narrow viewports stack in that order (headline, then the essay + real
   sample, then CTAs and ladder) with no `order` swap, so Tab never jumps
   back up the page. Desktop places the surface in the right column across
   both copy rows; the copy column stays left. */
@media (max-width: 959px) {
  body.marketing-light .ml-home-hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .ml-home-hero .ml-lede { font-size: 17px; }
  .ml-home-hero-actions .ml-hero-ctas { margin-top: 0; }
  .ml-work-doc { padding: 20px 20px 18px; }
  .ml-work-thread { padding: 16px 20px; }
}
@media (min-width: 960px) {
  .ml-home-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 56px;
    row-gap: 0;
  }
  .ml-home-hero > .ml-home-hero-intro,
  .ml-home-hero > .ml-home-hero-actions { grid-column: 1; }
  .ml-home-hero > .ml-work-surface { grid-column: 2; grid-row: 1 / span 2; }
}
.ml-home-hero h1 { max-width: 18ch; }
.ml-home-hero .ml-lede { max-width: 38ch; }

.ml-home-hero .ml-hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
body.marketing-light .ml-home-hero .ml-btn {
  box-sizing: border-box;
  min-height: 44px;
  touch-action: manipulation;
}
body.marketing-light .ml-home-hero .ml-btn:active { transform: scale(0.97); }
/* Quiet secondary: a text link, not a second button. 44px tap target from
   min-height + inline-flex; underline carries the affordance. */
body.marketing-light .ml-home-hero a.ml-hero-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: #045D56;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  touch-action: manipulation;
}
body.marketing-light .ml-home-hero a.ml-hero-textlink:hover { color: #033F3A; text-decoration-thickness: 2px; }
body.marketing-light .ml-home-hero a.ml-hero-textlink:visited { color: #045D56; }
body.marketing-light .ml-home-hero a.ml-hero-textlink:focus-visible {
  outline: 2px solid #045D56;
  outline-offset: 2px;
  border-radius: 4px;
}

.ml-hero-ladder {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #D9CBA7;
  display: grid;
  gap: 8px;
  max-width: 40ch;
}
.ml-hero-ladder li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.ml-hero-ladder b { color: #1F1915; font-weight: 700; }
.ml-hero-ladder span { color: #5C5648; }

.ml-work-surface { position: relative; min-width: 0; }
.ml-work-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5C5648;
  line-height: 1.4;
}
.ml-work-label strong { color: #045D56; font-weight: 700; }

.ml-work-page {
  background-color: #FFFFFF;
  border: 1px solid #E8DDC3;
  border-radius: 6px;
  box-shadow: 0 20px 40px -28px rgba(31, 25, 21, 0.35);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
/* The essay/thread split is sized by the surface's own width, not the viewport:
   at 960-1100px the desktop hero gives the surface ~490-575px and the 1440
   layout ~565px. A fixed 300px thread left the essay ~190px at 960. Stack
   below 560px; above it the thread is 260px so the essay text column keeps
   >=240px (r3943267975). 1440 stays two-column as before. */
.ml-work-surface { container-type: inline-size; }
@container (min-width: 560px) {
  .ml-work-page { grid-template-columns: minmax(0, 1fr) 260px; }
}
.ml-work-doc { padding: 28px 28px 24px; min-width: 0; }
.ml-work-doc-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #5C5648;
  margin: 0 0 18px;
}
.ml-work-doc-title b { color: #1F1915; font-weight: 600; }
body.marketing-light .ml-work-doc-h {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #111111;
}
.ml-work-doc p { color: #222222; line-height: 1.7; margin: 0 0 12px; max-width: 60ch; font-size: 16px; }
.ml-work-doc p:last-child { margin-bottom: 0; }
.ml-work-mark {
  background-color: #F4CE6F;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: box-shadow 200ms ease;
}
.ml-work-mark.is-live { box-shadow: 0 0 0 3px rgba(244, 206, 111, 0.45); }

.ml-work-thread {
  background-color: #F3F7F6;
  border-left: 1px solid #E8DDC3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
/* Stacked (narrow surface): thread sits under the essay, trimmed paragraphs hidden. */
.ml-work-thread { border-left: 0; border-top: 1px solid #E8DDC3; }
.ml-work-doc .ml-work-trim { display: none; }
@container (min-width: 560px) {
  .ml-work-thread { border-left: 1px solid #E8DDC3; border-top: 0; }
  .ml-work-doc .ml-work-trim { display: block; }
}
.ml-work-who {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  color: #5C5648;
  line-height: 1.3;
}
.ml-work-who b { color: #1F1915; font-weight: 600; font-size: 15px; grid-column: 2; }
.ml-work-who > span:last-child { grid-column: 2; }
.ml-work-avatar {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #045D56;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.ml-work-player tac-player { width: 100%; }
/* Static work after a real media error (marketing-light.js sets
   data-sample-unavailable on tac-playback-error): the failed player, its error
   row and Retry leave the page; a one-line explanation and the open transcript
   stay. Plain text, no alert styling, so it does not compete with the CTA. */
.ml-work-surface[data-sample-unavailable] .ml-work-player { display: none; }
.ml-work-fallback { font-size: 14px; color: #3D362C; line-height: 1.55; margin: 0 0 4px; }
.ml-work-fallback[hidden] { display: none; }
.ml-work-transcript { font-size: 14px; color: #5C5648; }
.ml-work-transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: #045D56;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.ml-work-transcript summary::-webkit-details-marker { display: none; }
.ml-work-transcript summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; }
.ml-work-transcript[open] summary::before { content: "\2013"; }
.ml-work-transcript summary:focus-visible { outline: 2px solid #045D56; outline-offset: 2px; border-radius: 4px; }
.ml-work-transcript p { color: #3D362C; line-height: 1.55; margin: 0; padding: 0 0 8px 1.2em; font-size: 14px; }
.ml-work-aside, .ml-work-truth { font-size: 13px; color: #5C5648; line-height: 1.5; margin: 0; }
.ml-work-truth { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.ml-work-truth svg { flex: none; margin-top: 2px; color: #045D56; }

@media (prefers-reduced-motion: no-preference) {
  .ml-home-hero > div { opacity: 0; transform: translateY(14px); animation: ml-hero-up 420ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .ml-home-hero > .ml-work-surface { animation-delay: 160ms; }
  @keyframes ml-hero-up { to { opacity: 1; transform: none; } }
  .ml-work-mark.is-live { animation: ml-mark-pulse 1.6s ease-in-out infinite; }
  @keyframes ml-mark-pulse { 50% { box-shadow: 0 0 0 6px rgba(244, 206, 111, 0.2); } }
}
