/* Public chrome and document controls. Feature layouts own their own styles. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mathy-canvas);
  color: var(--mathy-ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
[hidden] {
  display: none !important;
}
.site-header,
.site-footer,
.site-main {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
:is(.site-header, .site-footer, .site-main)
  :is(a, button, summary, select, input, textarea):focus-visible {
  outline: 2px solid var(--mathy-focus);
  outline-offset: 3px;
}
:is(.site-header, .site-main) :is(button, input, textarea, select) {
  font: inherit;
}
:is(.site-header, .site-main) :is(button, summary, select) {
  cursor: pointer;
}
:is(.site-header, .site-main) button:disabled {
  cursor: wait;
}
.site-header {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  width: 110px;
  height: 40px;
  background: var(--mathy-forest);
  mask: url("/public-site/wordmark-55d8b87f228d56759a31.svg?dpl=dpl_GAgLEngKHxs7upFKsSKVtzrHkfqB") center/contain no-repeat;
}
.site-desktop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}
.site-desktop-nav > a {
  color: var(--mathy-forest);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-desktop-nav .site-web-app {
  border: 1px solid var(--mathy-forest);
  border-radius: 9px;
  background: var(--mathy-surface);
  padding: 8px 16px;
  justify-content: center;
}
.site-badge img,
.site-footer-download img {
  display: block;
}
.site-preferences {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-appearance {
  background: var(--mathy-surface);
  border: 1px solid var(--mathy-border);
  border-radius: 9px;
  padding: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-appearance button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mathy-ink-muted);
  width: 32px;
  height: 18px;
  padding: 0;
}
.site-appearance button[aria-checked="true"] {
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
}
.website-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--mathy-surface);
  color: var(--mathy-ink-muted);
  border: 1px solid var(--mathy-border);
  border-radius: 22px;
}
.website-language:focus-within {
  outline: 2px solid var(--mathy-forest);
  outline-offset: 2px;
}
.website-language-icon {
  display: flex;
  pointer-events: none;
}
.website-language select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}
.site-menu {
  display: none;
}
.site-menu > summary,
.site-drawer-heading button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
  background: var(--mathy-surface-quiet);
  color: var(--mathy-forest);
  padding: 0;
}
.site-menu > summary::-webkit-details-marker {
  display: none;
}
.site-menu:not([open]) > nav {
  display: none;
}
.site-menu[open] > nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 84%;
  max-width: 320px;
  overflow: auto;
  z-index: 100;
  background: var(--mathy-canvas);
  padding: 0 24px 24px;
  border-right: 1px solid var(--mathy-border);
}
.site-menu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
}
.site-drawer-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.site-drawer-links {
  width: 100%;
  background: var(--mathy-surface);
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
  overflow: hidden;
}
.site-drawer-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--mathy-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--mathy-border);
}
.site-drawer-links > a svg {
  color: var(--mathy-ink-muted);
  flex-shrink: 0;
}
.site-drawer-links .site-preferences {
  padding: 0 16px;
  min-height: 60px;
  gap: 8px;
}
.site-drawer-links .site-appearance {
  flex-direction: row;
}
.site-drawer-links .site-appearance button {
  height: 32px;
}
.site-drawer-links .site-appearance svg {
  width: 18px;
  height: 18px;
}
.site-footer {
  width: 100%;
  max-width: 1180px;
  margin: 32px auto 0;
  border-top: 1px solid var(--mathy-border);
  padding: 32px 24px 24px;
}
.site-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
.site-footer-brand {
  flex-shrink: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.site-footer-brand .site-logo {
  width: 58px;
  height: 22px;
  transform: translateY(2px);
}
.site-footer-brand p {
  color: var(--mathy-ink-muted);
  font-size: 16px;
  margin: 0;
  flex-shrink: 1;
}
.site-footer-navigation {
  display: flex;
  flex: 1 1 0;
  max-width: 600px;
  min-width: 0;
  gap: 24px;
}
.site-footer-navigation nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
}
.site-footer-navigation h2 {
  color: var(--mathy-ink);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  min-height: 44px;
  padding: 8px 0;
  line-height: normal;
}
.site-footer-navigation a {
  overflow-wrap: anywhere;
  color: var(--mathy-ink-muted);
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: underline;
}
.site-footer-download {
  flex-shrink: 0;
  padding: 10px 0;
}
.site-main {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 18px;
}
.site-main > h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  line-height: normal;
}
.site-main > p {
  color: var(--mathy-ink-muted);
  line-height: 26px;
  margin: 0;
}
.site-main[data-family="topics"] {
  max-width: 900px;
  padding: 32px 24px;
  gap: 16px;
}
.site-main[data-family="topics"] > h1 {
  font-size: 34px;
}
.site-main[data-family="medals"] {
  max-width: 1180px;
  gap: 24px;
}
.site-main[data-family="medals"] > h1 {
  font-size: 36px;
}
.site-browse-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.site-browse-controls [role="tablist"] {
  display: flex;
  align-items: center;
  background: var(--mathy-surface-quiet);
  border: 1px solid var(--mathy-border);
  border-radius: 20px;
  padding: 3px;
  max-width: 100%;
  flex-wrap: wrap;
}
.site-browse-controls [role="tab"] {
  min-height: 38px;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--mathy-ink);
  font-size: 15px;
  font-weight: 700;
}
.site-browse-controls [aria-selected="true"] {
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
}
.site-browse-controls > button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 20px;
  background: var(--mathy-surface-quiet);
  color: var(--mathy-forest);
}
.site-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  background: var(--mathy-surface-quiet);
  border: 1px solid var(--mathy-border);
  border-radius: 20px;
  margin-bottom: 16px;
  color: var(--mathy-ink-muted);
}
.site-search-row:focus-within {
  border-color: var(--mathy-focus);
}
.site-search-row label {
  flex: 1;
  min-width: 0;
}
.site-search-row input {
  width: 100%;
  min-height: 44px;
  outline: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mathy-ink);
  font-size: 15px;
}
.site-search-row button {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mathy-support);
  font-size: 15px;
  font-weight: 700;
}
.site-topic-list,
.site-topic-groups {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--mathy-canvas);
}
.site-topic-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  padding: 2px 16px;
  border-bottom: 1px solid var(--mathy-border);
}
.site-topic-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-height: 52px;
  min-width: 0;
  color: var(--mathy-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
}
.site-topic-name > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-topic-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--mathy-success-surface);
  color: var(--mathy-forest);
  border-radius: 8px;
}
.site-topic-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-topic-learn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--mathy-forest);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-topic-learn svg,
.site-topic-start svg {
  display: none;
}
.site-topic-start {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 14px;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-topic-groups > div > a {
  display: block;
  color: var(--mathy-forest);
  padding: 12px;
  font-size: 14px;
}
.site-browse-group summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--mathy-border);
  cursor: pointer;
  list-style: none;
}
.site-browse-group summary::-webkit-details-marker {
  display: none;
}
.site-browse-group summary > span {
  display: flex;
  align-items: baseline;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
}
.site-browse-group summary small {
  color: var(--mathy-ink-muted);
  font-size: 15px;
  font-weight: 400;
}
.site-browse-group summary svg {
  color: var(--mathy-ink-muted);
}
.site-browse-group details[open] summary svg {
  transform: rotate(180deg);
}
.site-browse-group .site-topic-list {
  border: 0;
  border-radius: 0;
}
[data-topic-results] > h2 {
  color: var(--mathy-ink-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 16px 0 6px;
  margin: 0;
}
[data-topic-results] .site-topic-list {
  border: 0;
  border-radius: 0;
}
[data-topic-count] {
  font-weight: 700;
  margin: 0 0 16px;
}
.site-medals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 16px;
}
.site-medals > details {
  background: var(--mathy-surface);
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
}
.site-medals summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 178px;
  gap: 8px;
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.site-medals summary::-webkit-details-marker {
  display: none;
}
.site-medals [data-medal-content] {
  padding: 24px;
}
.site-medal-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--mathy-border);
  border-radius: 20px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  background: var(--mathy-surface);
  color: var(--mathy-ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
.site-medal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
}
.site-medal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  max-height: calc(100dvh - 134px);
}
.site-medal-body h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.site-medal-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.site-medal-body p {
  margin: 0;
  color: var(--mathy-ink-muted);
  font-size: 18px;
  line-height: 26px;
}
.site-medal-actions {
  display: flex;
  gap: 8px;
  padding: 24px;
}
.site-medal-actions :is(button, a) {
  min-height: 52px;
  border: 2px solid var(--mathy-forest);
  border-radius: 10px;
  padding: 8px;
  color: var(--mathy-forest);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.site-medal-actions button {
  flex: 1;
  cursor: pointer;
}
.site-medal-actions a {
  flex: 1.5;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
}
.site-help-questions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-help-questions > h2,
.site-support-heading {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}
.site-help-questions details {
  border-bottom: 1px solid var(--mathy-border);
}
.site-help-questions summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding-block: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}
.site-help-questions summary::-webkit-details-marker {
  display: none;
}
.site-help-questions summary::after {
  content: "+";
  color: var(--mathy-forest);
  font-size: 24px;
  margin-left: auto;
}
.site-help-questions details[open] summary::after {
  content: "−";
}
.site-help-questions p {
  margin: 0;
  padding-bottom: 24px;
  color: var(--mathy-ink-muted);
  font-size: 18px;
  line-height: 28px;
}
.site-help-questions a {
  color: var(--mathy-forest);
}
.site-support-section {
  padding-top: 24px;
}
[data-site-support] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-site-support] p {
  margin: 0;
  color: var(--mathy-ink-muted);
  font-size: 18px;
  line-height: 26px;
}
[data-site-support] .site-support-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 18px;
}
[data-site-support] :is(input[type="email"], textarea) {
  width: 100%;
  background: var(--mathy-surface);
  color: var(--mathy-ink);
  border: 1px solid var(--mathy-border);
  padding: 16px;
  border-radius: 12px;
  min-height: 50px;
  font-size: 18px;
  font-weight: 400;
}
[data-site-support] textarea {
  min-height: 120px;
  resize: none;
}
[data-site-support] :is(a, summary) {
  color: var(--mathy-forest);
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
[data-site-support] pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
[data-site-support] button {
  min-height: 52px;
  padding: 16px 24px;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
  border: 2px solid var(--mathy-forest);
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
}
[data-support-status]:empty {
  display: none;
}
[data-support-status]:not(:empty) {
  border-radius: 12px;
  padding: 16px;
  background: var(--mathy-surface-quiet);
  color: var(--mathy-ink);
}
.site-support-language-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 48px;
  padding: 16px;
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
  background: var(--mathy-surface);
  font-size: 18px;
  font-weight: 600;
}
.site-support-language-choice {
  position: relative;
}
.site-support-language-choice::before {
  content: "□";
}
.site-support-language-choice:has(input:checked)::before {
  content: "✓";
}
.site-support-language-choice:focus-within {
  outline: 2px solid var(--mathy-focus);
  outline-offset: 3px;
}
.site-support-language-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
[data-support-language] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
[data-support-language] summary {
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 12px;
  min-height: 52px;
  padding: 16px 24px;
  font-size: 18px;
  text-align: center;
  list-style: none;
}
[data-support-language] summary::-webkit-details-marker {
  display: none;
}
[data-support-language] summary:hover {
  background: var(--mathy-surface-quiet);
}
[data-support-language] pre {
  margin: 0;
  color: var(--mathy-ink);
}
.site-support-version {
  margin: 0;
  color: var(--mathy-ink-muted);
  font-size: 15px;
}
.site-main:not([data-family]) a {
  color: var(--mathy-forest);
}
@media (max-width: 999px) {
  .site-footer-main {
    flex-direction: column;
    gap: 24px;
  }
  .site-footer-brand {
    width: 100%;
    max-width: 100%;
  }
  .site-footer-navigation {
    flex: 0 1 auto;
    max-width: 100%;
    width: 100%;
    flex-wrap: wrap;
  }
  .site-footer-navigation nav {
    flex-basis: 45%;
  }
  .site-footer-navigation h2 {
    min-height: 52px;
  }
}
@media (max-width: 679px) {
  .site-desktop-nav {
    display: none;
  }
  .site-menu {
    display: block;
  }
  .site-header {
    justify-content: flex-start;
    padding-block: 8px;
  }
  html:has(.site-menu[open]) {
    overflow: hidden;
  }
  .site-topic-list li {
    flex-wrap: nowrap;
    padding-inline: 8px;
  }
  .site-topic-name {
    flex-basis: 0;
  }
  .site-topic-actions {
    flex-shrink: 0;
    gap: 4px;
  }
  .site-topic-actions a {
    width: 44px;
    padding-inline: 0;
  }
  .site-topic-learn {
    background: var(--mathy-canvas);
    border: 1px solid var(--mathy-border);
    border-radius: 12px;
  }
  .site-topic-learn span,
  .site-topic-start span {
    display: none;
  }
  .site-topic-learn svg,
  .site-topic-start svg {
    display: block;
  }
}
@media (max-width: 360px) {
  .site-browse-controls [role="tab"] {
    min-width: 44px;
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-main * {
    scroll-behavior: auto !important;
  }
}

.site-support-completion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-support-completion h2 {
  margin: 0;
}
.site-support-completion p {
  margin: 0;
  color: var(--mathy-ink-muted);
  font-size: 18px;
  line-height: 26px;
}
.site-support-completion .library-start {
  display: flex;
  align-items: center;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
  font-weight: 700;
  text-decoration: none;
  min-height: 52px;
  padding: 16px 24px;
  border: 2px solid var(--mathy-forest);
  border-radius: 12px;
  font-size: 18px;
  justify-content: center;
}
:root{--mathy-canvas: #f5f1e8;
--mathy-surface: #fffdf8;
--mathy-surface-quiet: #e9ece2;
--mathy-key-operation: #e1e9f5;
--mathy-key-tool: #dceee3;
--mathy-ink: #19211d;
--mathy-ink-muted: #58615c;
--mathy-forest: #164b35;
--mathy-accent-foreground: #ffffff;
--mathy-forest-pressed: #0e3927;
--mathy-focus: #2f6feb;
--mathy-border: #d8dcd1;
--mathy-success: #226b45;
--mathy-trophy: #bd7a12;
--mathy-success-surface: #e1efd9;
--mathy-activity-panel: #eff5ef;
--mathy-activity-border: #c8dfd0;
--mathy-activity-selection: #28764f;
--mathy-activity-selection-foreground: #ffffff;
--mathy-activity-empty: #dce1d4;
--mathy-activity-1: #b9ddc7;
--mathy-activity-2: #78bd94;
--mathy-activity-3: #3b9563;
--mathy-activity-4: #17603f;
--mathy-readiness-building: #8a5a00;
--mathy-support: #9b4e35;
--mathy-support-surface: #fff0e9;
--mathy-danger: #a33b2f;}@media(prefers-color-scheme:dark){:root{--mathy-canvas: #101612;
--mathy-surface: #18211c;
--mathy-surface-quiet: #202c25;
--mathy-key-operation: #28374b;
--mathy-key-tool: #244333;
--mathy-ink: #f1f5f1;
--mathy-ink-muted: #b7c3ba;
--mathy-forest: #8fd8b2;
--mathy-accent-foreground: #102018;
--mathy-forest-pressed: #b5e8cc;
--mathy-focus: #80b4ff;
--mathy-border: #36483d;
--mathy-success: #86d6a9;
--mathy-trophy: #f5c45d;
--mathy-success-surface: #193426;
--mathy-activity-panel: #16251e;
--mathy-activity-border: #284536;
--mathy-activity-selection: #367f59;
--mathy-activity-selection-foreground: #ffffff;
--mathy-activity-empty: #2b3c31;
--mathy-activity-1: #365b45;
--mathy-activity-2: #447c58;
--mathy-activity-3: #58a777;
--mathy-activity-4: #77d2a4;
--mathy-readiness-building: #f0c75e;
--mathy-support: #f0a187;
--mathy-support-surface: #3a241e;
--mathy-danger: #ff9f91;}}:root[data-mathy-theme=light]{--mathy-canvas: #f5f1e8;
--mathy-surface: #fffdf8;
--mathy-surface-quiet: #e9ece2;
--mathy-key-operation: #e1e9f5;
--mathy-key-tool: #dceee3;
--mathy-ink: #19211d;
--mathy-ink-muted: #58615c;
--mathy-forest: #164b35;
--mathy-accent-foreground: #ffffff;
--mathy-forest-pressed: #0e3927;
--mathy-focus: #2f6feb;
--mathy-border: #d8dcd1;
--mathy-success: #226b45;
--mathy-trophy: #bd7a12;
--mathy-success-surface: #e1efd9;
--mathy-activity-panel: #eff5ef;
--mathy-activity-border: #c8dfd0;
--mathy-activity-selection: #28764f;
--mathy-activity-selection-foreground: #ffffff;
--mathy-activity-empty: #dce1d4;
--mathy-activity-1: #b9ddc7;
--mathy-activity-2: #78bd94;
--mathy-activity-3: #3b9563;
--mathy-activity-4: #17603f;
--mathy-readiness-building: #8a5a00;
--mathy-support: #9b4e35;
--mathy-support-surface: #fff0e9;
--mathy-danger: #a33b2f;}:root[data-mathy-theme=dark]{--mathy-canvas: #101612;
--mathy-surface: #18211c;
--mathy-surface-quiet: #202c25;
--mathy-key-operation: #28374b;
--mathy-key-tool: #244333;
--mathy-ink: #f1f5f1;
--mathy-ink-muted: #b7c3ba;
--mathy-forest: #8fd8b2;
--mathy-accent-foreground: #102018;
--mathy-forest-pressed: #b5e8cc;
--mathy-focus: #80b4ff;
--mathy-border: #36483d;
--mathy-success: #86d6a9;
--mathy-trophy: #f5c45d;
--mathy-success-surface: #193426;
--mathy-activity-panel: #16251e;
--mathy-activity-border: #284536;
--mathy-activity-selection: #367f59;
--mathy-activity-selection-foreground: #ffffff;
--mathy-activity-empty: #2b3c31;
--mathy-activity-1: #365b45;
--mathy-activity-2: #447c58;
--mathy-activity-3: #58a777;
--mathy-activity-4: #77d2a4;
--mathy-readiness-building: #f0c75e;
--mathy-support: #f0a187;
--mathy-support-surface: #3a241e;
--mathy-danger: #ff9f91;}/* src/features/marketing/marketing-home.css */
@media (max-width: 759px) {
  #marketing-hero {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 479px) {
  #marketing-hero {
    min-height: 0;
    padding-block: 32px;
  }
  #marketing-heading {
    font-size: 56px;
    letter-spacing: -1.5px;
    line-height: 60px;
  }
}
@media (max-width: 359px) {
  #marketing-heading {
    font-size: 46px;
    line-height: 50px;
  }
}

/* src/features/marketing/home-practice-demo.css */
.home-demo {
  flex: 1 1 380px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  color: var(--mathy-ink);
  font-family: system-ui, sans-serif;
}
.home-demo button,
.home-demo input,
.home-demo a {
  font: inherit;
}
.home-demo button {
  cursor: pointer;
}
.home-demo button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.home-demo :is(button, a, input):focus-visible {
  outline: 2px solid var(--mathy-forest);
  outline-offset: 4px;
}
.home-demo .home-demo-window {
  min-height: 624px;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgb(25 33 29 / 5%);
}
.home-demo-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--mathy-border);
  border-radius: 12px;
  background: var(--mathy-surface-quiet);
  color: var(--mathy-ink);
  text-align: left;
}
.home-demo-selection:hover {
  border-color: var(--mathy-forest);
}
.home-demo-selection > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-demo-selection > span:last-child {
  flex-shrink: 0;
}
.home-demo .library-app-problem {
  margin-block: 20px 16px;
}
.home-demo .library-demo-feedback {
  min-height: 20px;
  margin: 8px 0;
  font-size: 14px;
}
.home-demo-preview > .home-demo-selection {
  margin-bottom: 12px;
}
.home-demo-text-button {
  display: block;
  margin: 8px auto 0;
  padding: 10px 14px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--mathy-ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-demo-text-button:hover {
  color: var(--mathy-forest);
}
.home-demo .library-example {
  margin: 16px 0;
}
.home-demo .library-condition {
  font-size: 13px;
}
.home-demo-placeholder {
  min-height: 140px;
}
.home-demo-note {
  color: var(--mathy-ink-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.home-demo-picker {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: min(660px, calc(100dvh - 48px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid var(--mathy-border);
  border-radius: 22px;
  background: var(--mathy-surface);
  color: var(--mathy-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 18%);
  overflow: hidden;
}
.home-demo-picker[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-demo-picker::backdrop {
  background: rgb(15 25 20 / 35%);
}
.home-demo-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-demo-picker-heading h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
  margin: 0;
}
.home-demo-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  color: var(--mathy-ink);
  background: var(--mathy-surface-quiet);
  font-size: 26px !important;
}
.home-demo-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--mathy-border);
  border-radius: 10px;
  color: var(--mathy-ink);
  background: var(--mathy-canvas);
  font-size: 16px;
}
.home-demo-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.home-demo-filters button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  background: var(--mathy-surface-quiet);
  color: var(--mathy-ink-muted);
  font-size: 14px;
}
.home-demo-filters button[aria-pressed=true] {
  border-color: var(--mathy-forest);
  color: var(--mathy-forest);
  background: var(--mathy-surface);
}
.home-demo-options {
  min-height: 100px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.home-demo-options ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-demo-options li + li {
  border-top: 1px solid var(--mathy-border);
}
.home-demo-options button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 10px;
  text-align: left;
  color: var(--mathy-ink);
  border-radius: 8px;
}
.home-demo-options button:hover,
.home-demo-options button[aria-current=true] {
  background: var(--mathy-surface-quiet);
}
.home-demo-options small {
  display: block;
  color: var(--mathy-ink-muted);
  margin-top: 5px;
  font-size: 12px;
}
.home-demo-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--mathy-ink-muted);
}
.home-demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.marketing-how-body {
  display: flex;
  align-items: center;
  gap: 64px;
}
@media (max-width: 759px) {
  .home-demo {
    flex: none;
    max-width: 480px;
    align-self: center;
  }
  .marketing-how-body {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .marketing-how-body > :last-child {
    align-self: center;
  }
}
@media (max-width: 479px) {
  .home-demo .home-demo-window {
    min-height: 570px;
    padding: 16px;
    border-radius: 18px;
  }
  .home-demo-picker {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }
  .home-demo-picker-heading h2 {
    font-size: 23px;
  }
}
.home-demo *,
.home-demo *::before,
.home-demo *::after {
  box-sizing: border-box;
}
#marketing-hero {
  align-items: flex-start;
}
#marketing-hero > :first-child {
  padding-top: 48px;
}
@media (max-width: 759px) {
  #marketing-hero > :first-child {
    padding-top: 0;
    gap: 16px;
  }
}
@media (max-width: 479px) {
  #marketing-lede {
    font-size: 18px;
    line-height: 28px;
  }
}

/* src/public/practice-library/library.css */
.library-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding: 28px 24px 48px;
  color: var(--mathy-ink);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.library-page * {
  box-sizing: border-box;
}
.library-page h1:not(:where(.library-app-problem *)) {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-block: 12px 20px;
}
.library-page h2:not(:where(.library-app-problem *)) {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-block: 0 18px;
}
.library-page h3:not(:where(.library-app-problem *)) {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-block: 0 10px;
}
.library-page p {
  margin-block: 12px;
}
.library-page section {
  margin-block: 40px;
}
.library-page a {
  color: var(--mathy-forest);
  text-underline-offset: 0.2em;
}
.library-breadcrumb {
  font-size: 0.9rem;
  color: var(--mathy-ink-muted);
}
.library-intro {
  max-width: 760px;
  margin-block: 28px 40px;
}
.library-eyebrow {
  color: var(--mathy-ink-muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.library-lede {
  font-size: 1.2rem;
}
:is(.library-page, .home-demo) .library-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  margin-block: 14px;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
}
.library-page .library-start-small {
  padding: 8px 18px;
  flex-shrink: 0;
}
.library-condition {
  font-size: 0.9rem;
  color: var(--mathy-ink-muted);
}
.library-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}
.library-example {
  margin: 0;
  padding: 22px;
  background: var(--mathy-surface-quiet);
  border: 1px solid var(--mathy-border);
  border-radius: 14px;
  min-width: 0;
}
.library-example details {
  margin-block-start: 20px;
  border-block-start: 1px solid var(--mathy-border);
  padding-block-start: 12px;
}
.library-example summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--mathy-forest);
  font-weight: 650;
}
.library-math {
  overflow-x: auto;
  max-width: 100%;
  padding-block: 12px;
  font-size: 1.45rem;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  unicode-bidi: isolate;
}
.library-vector {
  display: inline-block;
  max-width: none;
}
.library-prose {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.library-vector svg {
  width: 100%;
  height: 100%;
  color: var(--mathy-ink);
}
.library-diagram {
  max-width: 320px;
  margin-inline: auto;
}
.library-diagram svg {
  width: 100%;
  height: auto;
}
.library-diagram-key {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}
.library-diagram-caption {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}
.library-diagram-key > div {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.5rem;
}
.library-diagram-key dt {
  font-weight: 600;
}
.library-diagram-key dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.library-members {
  list-style: none;
  padding: 0;
}
.library-members > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-block-end: 1px solid var(--mathy-border);
}
.library-members p {
  font-size: 1rem;
  color: var(--mathy-ink-muted);
}
.library-links {
  padding-inline-start: 24px;
}
.library-links li {
  padding-block: 8px;
}
.library-discovery {
  border: 1px solid var(--mathy-border);
  border-radius: 14px;
  padding: 20px;
  background: var(--mathy-surface-quiet);
}
.library-discovery details {
  margin-block: 16px;
}
.library-discovery summary {
  cursor: pointer;
  min-height: 44px;
}
.library-discovery a {
  display: inline-block;
  min-height: 44px;
  padding-block: 8px;
}
.library-discovery ul {
  margin-block: 8px;
}
.library-discovery h2 {
  font-size: 1.2rem;
}
.library-discovery h3 {
  font-size: 1rem;
}
@media (max-width: 480px) {
  .library-page {
    padding-inline: 16px;
    font-size: 17px;
  }
  .library-members > li {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .library-example {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .library-page * {
    scroll-behavior: auto;
  }
}
.library-page .library-practice-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 28px;
  background: var(--mathy-surface-quiet);
  border: 1px solid var(--mathy-border);
  border-radius: 20px;
  padding: 28px 30px;
  margin-block: 30px 42px;
}
.library-practice-cta h2 {
  font-size: 1.2rem;
  margin: 0;
}
.library-practice-cta h2 span {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block-start: 8px;
  letter-spacing: -0.025em;
}
.library-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
}
.library-cta-actions .library-start {
  height: 44px;
  padding-block: 0;
  gap: 10px;
  margin: 0;
}
.library-store {
  display: inline-flex;
  flex-shrink: 0;
}
.library-store img {
  display: block;
}
.library-cta-trust {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--mathy-ink-muted);
}
.library-cta-trust li span {
  color: var(--mathy-forest);
  margin-inline-end: 4px;
}
.library-demo-heading {
  text-align: center;
  margin-block-end: 28px;
}
.library-demo-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}
.library-example-stage {
  background: var(--mathy-surface-quiet);
  padding: 32px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.library-demo-root {
  min-width: 0;
}
.library-practice-window {
  background: var(--mathy-surface);
  border: 1px solid var(--mathy-border);
  border-radius: 22px;
  padding: 24px;
  min-width: 0;
  box-shadow: 0 10px 30px rgb(25 33 29 / 0.05);
}
.library-preview-logo {
  width: 85px;
  height: 30px;
  flex-shrink: 0;
}
.library-practice-preview {
  --library-preview-math-size: 48px;
}
.library-practice-preview .library-math {
  font-size: 48px;
  line-height: 1.2;
}
.library-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.library-window-top h3,
.library-window-top > span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mathy-ink-muted);
  margin: 0;
}
.library-sample-progress {
  height: 5px;
  background: var(--mathy-border);
  border-radius: 10px;
  margin: 18px 0 24px;
  overflow: hidden;
}
.library-sample-progress > span {
  display: block;
  height: 100%;
  background: var(--mathy-forest);
}
.library-practice-window .library-example {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-block-end: 24px;
}
.library-practice-window .library-math {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  padding-block: 20px;
}
.library-practice-window .library-instruction {
  font-size: 1rem;
  text-align: center;
}
.library-practice-window input {
  min-width: 0;
  max-width: 100%;
}
.library-app-problem {
  margin-block: 24px;
  min-width: 0;
}
.library-demo-notice {
  margin-top: 12px;
}
.library-demo-feedback {
  min-height: 30px;
  color: var(--mathy-danger);
  font-size: 1rem;
}
.library-demo-feedback.is-correct {
  color: var(--mathy-success);
  font-weight: 600;
}
.library-page .library-demo-next,
.library-page .library-demo-launch {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
  gap: 10px;
}
.library-page .library-demo-launch:disabled {
  opacity: 0.7;
  cursor: wait;
}
.library-completion {
  text-align: center;
  padding-block: 40px;
  font-size: 18px;
  line-height: 1.65;
}
.library-completion h3 {
  font-size: 1.8rem;
  line-height: 1.35;
  margin-block: 18px 10px;
}
.library-completion p {
  margin-block: 12px;
}
.library-completion .library-cta-actions {
  justify-content: center;
}
.library-completion-check {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  margin: auto;
  background: var(--mathy-success-surface);
  color: var(--mathy-success);
  font-size: 29px;
}
.library-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.library-page button:focus-visible,
.library-page a:focus-visible,
.library-page summary:focus-visible {
  outline: 3px solid var(--mathy-forest);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .library-page .library-practice-cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
  .library-cta-actions {
    justify-content: flex-start;
  }
  .library-example-stage {
    padding: 24px;
  }
  .library-practice-window {
    width: 100%;
    max-width: 420px;
    margin: auto;
  }
  .library-context-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 380px) {
  .library-page .library-practice-cta {
    padding: 22px 18px;
  }
  .library-example-stage {
    padding: 16px;
  }
  .library-practice-window {
    padding: 18px;
  }
  .library-cta-trust {
    display: grid;
    gap: 7px;
  }
  .library-practice-cta .library-start {
    width: 100%;
  }
}

/* src/features/marketing/marketing-not-found.css */
.marketing-not-found {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(48px, 10vh, 112px) 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--mathy-ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
.marketing-not-found-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  margin-bottom: 32px;
  color: var(--mathy-forest);
  font-size: clamp(96px, 24vw, 176px);
  font-weight: 800;
  line-height: 1;
}
.marketing-not-found-alpha {
  display: block;
  width: 0.72em;
  height: 0.72em;
}
.marketing-not-found h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  font-weight: 800;
}
.marketing-not-found p {
  max-width: 420px;
  margin: 16px 0 28px;
  color: var(--mathy-ink-muted);
  font-size: 18px;
  line-height: 1.6;
}
.marketing-not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--mathy-forest);
  color: var(--mathy-accent-foreground);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.marketing-not-found-home:hover {
  background: var(--mathy-forest-pressed);
}
.marketing-not-found-home:focus-visible {
  outline: 2px solid var(--mathy-focus);
  outline-offset: 4px;
}
