@charset "UTF-8";

:root {
  --paper: #f7f5ed;
  --surface: #fffefa;
  --ink: #19382f;
  --muted: #65736b;
  --green: #173f35;
  --green-light: #e7eee7;
  --gold: #e9b949;
  --gold-light: #fbefcb;
  --line: #dce2d8;
  --clay: #b9674d;
  --radius: 20px;
  --shadow: 0 20px 60px #163d3210;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

button,
input,
select {
  font: inherit
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent
}

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

button {
  cursor: pointer
}

img,
svg {
  max-width: 100%
}

button:disabled {
  cursor: not-allowed;
  opacity: .5
}

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

h1,
h2,
h3 {
  line-height: 1.12
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em
}

h3 {
  font-weight: 650;
  letter-spacing: -.02em
}

p {
  color: var(--muted)
}

::selection {
  background: var(--gold);
  color: var(--green)
}

:focus-visible {
  outline: 3px solid #b48615;
  outline-offset: 4px
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-offset: 3px
}

[hidden] {
  display: none !important
}

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

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 300;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 8px
}

.skip-link:focus {
  top: 12px
}

.wrap {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--surface);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background .18s, transform .18s, box-shadow .18s
}

.button:hover {
  background: #225647;
  box-shadow: 0 5px 18px #173f351a;
  transform: translateY(-1px)
}

.button-secondary {
  background: transparent;
  color: var(--green);
  border-color: #a8b7ac
}

.button-secondary:hover {
  background: var(--green-light)
}

.button-light {
  background: var(--surface);
  color: var(--green);
  border-color: var(--surface)
}

.button-light:hover {
  background: var(--gold-light);
  border-color: var(--gold-light)
}

.button-small {
  min-height: 43px;
  padding: 10px 16px;
  font-size: 13px
}

.button-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--green);
  font-weight: 650;
  font-size: 14px
}

.button-text:hover {
  gap: 15px
}

.button-text .icon {
  width: 18px
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 22px
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  padding: 7px 11px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green)
}

.pill-gold {
  background: var(--gold-light);
  color: #785715
}

.pill-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted)
}

.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block
}

.site-header {
  background: #f7f5edf2;
  border-bottom: 1px solid #dce2d899;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px)
}

.header-inner {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0
}

.brand img {
  border-radius: 12px
}

.brand strong {
  font-size: 15px;
  letter-spacing: .025em;
  font-weight: 800;
  display: block;
  line-height: 1.25
}

.brand-educ {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .055em
}

.brand small {
  font-size: 8px;
  letter-spacing: .25em;
  display: block;
  margin-top: 4px
}

.primary-nav {
  display: flex;
  gap: 25px;
  align-items: center
}

.primary-nav>a:not(.button) {
  font-size: 12px;
  font-weight: 550;
  color: #58675f;
  white-space: nowrap;
  padding-block: 12px
}

.primary-nav>a[aria-current="page"]:not(.button),
.primary-nav>a:not(.button):hover {
  color: var(--green)
}

.primary-nav>a[aria-current="page"]:not(.button) {
  box-shadow: 0 1px 0 var(--green)
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  color: var(--green)
}

.hero {
  padding-top: 74px;
  padding-bottom: 82px;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 68px
}

.hero h1 {
  font-size: clamp(48px, 4.9vw, 73px);
  margin-bottom: 27px;
  line-height: 1.055
}

.hero h1 em {
  font-style: italic;
  color: #4b7961
}

.hero-copy>p {
  font-size: 16px;
  max-width: 430px;
  line-height: 1.8;
  margin-bottom: 29px
}

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

.hero-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 23px;
  font-size: 11px;
  color: var(--muted)
}

.hero-note .icon {
  width: 16px
}

.hero-visual {
  position: relative;
  padding: 20px 6px 22px 24px
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px -18px 10px 14px;
  background: #e9eee3;
  border-radius: 50% 44% 45% 39%;
  transform: rotate(-7deg);
  z-index: -1
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  top: 6px;
  right: 21px
}

.hero-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid #e0e5d8;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg)
}

.frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line)
}

.frame-top span:first-child {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em
}

.frame-dots {
  display: flex;
  gap: 4px
}

.frame-dots i {
  width: 5px;
  height: 5px;
  background: #cad4c6;
  border-radius: 50%
}

.frame-kicker {
  margin-top: 23px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted)
}

.hero-frame h2 {
  font-size: 31px;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin: 9px 0 23px
}

.path-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative
}

.path-preview::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 24px;
  left: 20px;
  width: 1px;
  background: #ccd7c8
}

.path-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface)
}

.path-step.current {
  border-color: #c9d9bd;
  background: #f1f5e9
}

.path-step.future {
  opacity: .7
}

.step-badge {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  z-index: 1
}

.step-badge .icon {
  width: 16px
}

.current .step-badge {
  background: var(--green);
  color: white
}

.future .step-badge {
  background: var(--surface);
  border: 1px solid var(--line)
}

.path-step strong {
  display: block;
  font-size: 12px;
  line-height: 1.3
}

.path-step small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px
}

.path-step>.icon {
  margin-left: auto;
  width: 16px
}

.frame-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted)
}

.frame-foot .icon {
  width: 15px
}

.floating-note {
  position: absolute;
  right: -16px;
  bottom: 0;
  background: var(--gold);
  border: 4px solid var(--paper);
  border-radius: 15px;
  padding: 15px 19px;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 12px
}

.floating-note .icon {
  width: 26px;
  height: 26px
}

.intro-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 23px;
  gap: 28px
}

.intro-item {
  display: flex;
  gap: 15px;
  align-items: center
}

.intro-item+.intro-item {
  border-left: 1px solid var(--line);
  padding-left: 35px
}

.intro-item .icon {
  width: 25px;
  height: 25px;
  color: #7c886d
}

.intro-item strong {
  font-size: 12px;
  display: block
}

.intro-item span {
  font-size: 11px;
  color: var(--muted)
}

.section {
  padding-block: 85px
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px
}

.section h2 {
  font-size: clamp(35px, 3.4vw, 48px);
  margin-bottom: 0
}

.section-top>p {
  max-width: 360px;
  margin-bottom: 2px;
  font-size: 14px
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px
}

.approach-item {
  border-top: 1px solid var(--line);
  padding-top: 26px
}

.approach-item .index {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 27px
}

.approach-item h3 {
  font-size: 19px;
  line-height: 1.4;
  margin-top: 22px;
  margin-bottom: 13px;
  max-width: 250px
}

.approach-item p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 320px
}

.method-section {
  background: var(--green);
  color: var(--surface);
  padding-block: 74px;
  border-radius: 28px
}

.method-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
  align-items: center
}

.method-inner .eyebrow {
  color: #b8c8b7
}

.method-inner h2 {
  font-size: 48px;
  max-width: 420px;
  margin-bottom: 25px
}

.method-inner p {
  color: #b9c9bd;
  font-size: 14px;
  max-width: 380px;
  line-height: 1.9
}

.method-equation {
  padding: 29px 33px;
  background: #ffffff0b;
  border: 1px solid #ffffff20;
  border-radius: 18px
}

.equation-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b9c9bd
}

.equation {
  font-family: var(--serif);
  font-size: 58px;
  letter-spacing: -.05em;
  color: var(--gold);
  padding: 12px 0 20px
}

.micro-connection {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  gap: 16px;
  padding: 13px 0;
  font-size: 12px
}

.micro-connection span {
  color: #a4bdac;
  font-size: 10px
}

.micro-connection strong {
  font-weight: 550
}

.micro-connection:last-child {
  padding-bottom: 0
}

.year-rail {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-bottom: 25px
}

.year-button {
  padding: 18px 8px 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  transition: all .15s
}

.year-button strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400
}

.year-button span {
  font-size: 9px;
  margin-top: 6px;
  color: var(--muted)
}

.year-button:hover {
  border-color: #7c9b7a;
  background: #eff2e9
}

.year-button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: white
}

.year-button[aria-pressed="true"] span {
  color: #b7cbbd
}

.year-focus {
  display: grid;
  grid-template-columns: .85fr 1.6fr .65fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px 32px
}

.year-focus h3 {
  font-size: 22px;
  margin: 6px 0 0
}

.year-focus p {
  font-size: 13px;
  margin: 0
}

.year-focus .button-text {
  justify-self: end
}

.small-label {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase
}

.families-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  border-top: 1px solid var(--line)
}

.family-note {
  background: #e9eee3;
  border-radius: 22px;
  padding: 35px 38px
}

.family-note .quote-mark {
  font-family: var(--serif);
  font-size: 65px;
  color: #6f8f70;
  line-height: 1
}

.family-note p {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.4;
  color: var(--green);
  margin-bottom: 24px;
  letter-spacing: -.025em
}

.family-note small {
  font-size: 11px;
  color: var(--muted)
}

.family-copy h2 {
  font-size: 43px;
  margin-bottom: 24px
}

.family-copy>p {
  font-size: 14px;
  line-height: 1.9
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 23px 0
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
  font-size: 13px
}

.check-list .icon {
  width: 17px;
  height: 17px;
  color: #6b8865
}

.faq {
  max-width: 850px;
  margin-inline: auto
}

.faq .section-top {
  display: block;
  text-align: center;
  margin-bottom: 32px
}

.faq .eyebrow {
  justify-content: center
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 550;
  display: flex;
  justify-content: space-between;
  gap: 30px
}

.faq summary::after {
  content: "+";
  font-size: 23px;
  line-height: 1
}

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

.faq details p {
  font-size: 13px;
  line-height: 1.9;
  margin: 17px 40px 0 0
}

.bottom-cta {
  margin-block: 0 80px;
  background: var(--gold-light);
  border: 1px solid #e9dca8;
  border-radius: 18px;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px
}

.bottom-cta h2 {
  font-size: 35px;
  margin-bottom: 8px
}

.bottom-cta p {
  margin: 0;
  font-size: 13px
}

.site-footer {
  background: #edf0e7;
  border-top: 1px solid var(--line);
  padding-top: 48px
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px
}

.footer-brand strong {
  font-size: 12px
}

.footer-main p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 18px
}

.footer-location {
  font-size: 10px;
  color: var(--muted)
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 48px;
  align-content: start;
  font-size: 12px;
  color: #5c6e61;
  padding-top: 8px
}

.footer-links a:hover {
  text-decoration: underline
}

.footer-bottom {
  border-top: 1px solid #d5dfcf;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-block: 20px;
  font-size: 9px;
  color: var(--muted)
}

/* Páginas de exploração e estudo */
.page-heading {
  padding-top: 54px;
  padding-bottom: 32px
}

.page-heading h1 {
  font-size: clamp(40px, 4vw, 57px);
  margin: 0 0 18px
}

.page-heading p {
  max-width: 690px;
  font-size: 14px;
  margin: 0;
  line-height: 1.9
}

.page-heading .eyebrow {
  margin-bottom: 18px
}

.demo-banner {
  margin: 0 0 28px;
  padding: 12px 17px;
  border: 1px solid #e8d7a3;
  border-radius: 9px;
  background: #fbf0d2;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 11px;
  color: #786033;
  line-height: 1.7
}

.demo-banner .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px
}

.demo-banner a {
  text-decoration: underline
}

.curriculum-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 31px;
  padding-bottom: 75px
}

.filter-sidebar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 18px;
  align-self: start;
  position: sticky;
  top: 115px
}

.filter-title {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 13px
}

.grade-options {
  display: grid;
  gap: 4px;
  margin-bottom: 25px
}

.grade-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  background: transparent;
  padding: 9px 10px;
  text-align: left
}

.grade-option span {
  font-size: 10px;
  color: #8b968b
}

.grade-option[aria-pressed="true"] {
  background: var(--green);
  color: white
}

.grade-option[aria-pressed="true"] span {
  color: #b7cbbd
}

.grade-option:hover:not([aria-pressed="true"]) {
  background: #f0f2e9;
  color: var(--green)
}

.sidebar-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8
}

.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
  color: var(--ink)
}

.curriculum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 18px
}

.search-field {
  position: relative;
  flex: 1;
  max-width: 440px
}

.search-field .icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted)
}

.search-field input {
  width: 100%;
  padding: 12px 15px 12px 43px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px
}

.result-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap
}

.catalog-heading {
  font-family: var(--serif);
  font-size: 28px;
  margin: 26px 0 16px
}

.skill-group {
  margin-bottom: 28px
}

.group-heading {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 15px
}

.skill-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 7px;
  overflow: hidden
}

.skill-row summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 67px 1fr 17px;
  gap: 14px;
  align-items: center
}

.skill-id {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #7c8b7b
}

.skill-name {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 550
}

.skill-chevron {
  font-size: 18px;
  color: #829582;
  transition: transform .15s
}

.skill-row[open] .skill-chevron {
  transform: rotate(90deg)
}

.skill-details {
  border-top: 1px solid var(--line);
  padding: 18px 23px 18px 99px;
  background: #fbfcf6;
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 10px
}

.skill-details strong {
  color: var(--green);
  font-weight: 600
}

.skill-details .button-text {
  font-size: 11px;
  justify-self: start
}

.empty-state {
  padding: 45px 26px;
  text-align: center;
  border: 1px dashed #b8c5b4;
  border-radius: 14px;
  background: #fffefa80
}

.empty-state .icon {
  width: 35px;
  height: 35px;
  color: #7a9176;
  margin-bottom: 16px
}

.empty-state h3 {
  font-size: 19px;
  line-height: 1.5
}

.empty-state p {
  font-size: 13px;
  margin-bottom: 20px
}

.loading {
  padding: 50px;
  color: var(--muted);
  text-align: center;
  font-size: 13px
}

.catalog-footnote {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 28px;
  color: var(--muted)
}

.learning-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  padding-bottom: 70px
}

.learning-sidebar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 23px 18px;
  align-self: start
}

.learning-sidebar>h2 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 750;
  margin-bottom: 19px;
  color: var(--muted)
}

.track-button {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: var(--green);
  margin-bottom: 5px
}

.track-button:hover {
  background: #f0f3e9
}

.track-button[aria-pressed="true"] {
  background: var(--green-light);
  border-color: #d3dfcb
}

.track-button .track-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #cad6c3;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  flex-shrink: 0
}

.track-button strong {
  display: block;
  font-size: 12px;
  line-height: 1.4
}

.track-button small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px
}

.learning-sidebar .sidebar-note {
  margin-top: 23px
}

.learning-main {
  min-width: 0
}

.welcome-card {
  background: var(--green);
  color: var(--surface);
  border-radius: 16px;
  padding: 31px 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px
}

.welcome-card::after {
  content: "+";
  font-family: var(--serif);
  font-size: 170px;
  position: absolute;
  right: 30px;
  top: -32px;
  color: #ffffff0c;
  line-height: 1.4;
  pointer-events: none
}

.welcome-card h2 {
  font-size: 36px;
  margin: 11px 0 12px;
  max-width: 520px;
  position: relative;
  z-index: 1
}

.welcome-card p {
  font-size: 12px;
  color: #b9cbbd;
  margin-bottom: 0;
  max-width: 560px
}

.welcome-card .eyebrow {
  color: #a9c2ab;
  margin-bottom: 0
}

.study-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden
}

.study-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 26px
}

.study-card-head h3 {
  font-size: 13px;
  margin: 0;
  line-height: 1.5
}

.study-card-head span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap
}

.lesson-intro {
  padding: 31px 34px
}

.lesson-intro h3 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.3;
  margin-bottom: 16px
}

.lesson-intro p {
  font-size: 13px;
  line-height: 1.9
}

.lesson-intro ol {
  padding-left: 20px;
  color: #586c5d;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 23px
}

.teaching-example {
  background: #f0f3e9;
  border: 1px solid #dce5d1;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: 29px;
  color: var(--green)
}

.teaching-example small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.8
}

.exercise-view {
  padding: 29px 34px
}

.question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px
}

.question-top .small-label {
  font-size: 9px
}

.listen-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px
}

.listen-button .icon {
  width: 14px;
  height: 14px
}

.question-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.02em;
  margin-bottom: 22px
}

.counter-board {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  background: #f2f4eb;
  border: 1px solid #dce5d5;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  margin: 0 auto 25px;
  min-height: 105px;
  align-items: center
}

.counter-board li {
  width: 31px;
  height: 31px;
  background: var(--clay);
  border-radius: 50%;
  box-shadow: inset -4px -5px 0 #0000000b
}

.counter-board li:nth-child(3n+1) {
  background: var(--gold)
}

.counter-board li:nth-child(3n+2) {
  background: #668f6b
}

.math-expression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: #f3f5ed;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 26px;
  font-size: 34px;
  font-family: var(--serif)
}

.fraction {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  font-family: var(--serif);
  line-height: 1.15;
  vertical-align: middle;
  min-width: 33px
}

.fraction .numerator {
  border-bottom: 1.6px solid currentColor;
  padding: 0 8px 5px;
  min-width: 100%;
  text-align: center
}

.fraction .denominator {
  padding: 5px 8px 0
}

.triangle-board {
  display: block;
  width: min(350px, 100%);
  margin: 0 auto 20px;
  height: 190px
}

.triangle-board text {
  font-family: var(--sans);
  fill: var(--green);
  font-size: 17px
}

.answer-form {
  max-width: 440px;
  margin: 0 auto
}

.answer-form label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px
}

.answer-row {
  display: flex;
  gap: 10px
}

.answer-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid #a8bca4;
  border-radius: 8px;
  background: var(--surface);
  padding: 13px 17px;
  font-size: 20px;
  color: var(--green);
  width: 100%
}

.answer-row .button {
  min-width: 112px
}

.input-note {
  font-size: 10px;
  margin: 8px 0 0;
  color: var(--muted)
}

.feedback {
  border-radius: 9px;
  padding: 15px 18px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 18px
}

.feedback-success {
  background: #e7f0e0;
  border: 1px solid #c9dcba;
  color: #315f34
}

.feedback-error {
  background: #f9e9df;
  border: 1px solid #ebc9b7;
  color: #844a34
}

.feedback-info {
  background: var(--gold-light);
  border: 1px solid #e5d59c;
  color: #796128
}

.exercise-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line)
}

.exercise-actions .button-text {
  font-size: 11px
}

.progress-dots {
  display: flex;
  gap: 5px
}

.progress-dots i {
  width: 8px;
  height: 8px;
  background: #dce3d6;
  border-radius: 50%
}

.progress-dots i.done {
  background: #7b9c6e
}

.progress-dots i.active {
  background: var(--gold)
}

.result-card {
  padding: 36px 34px
}

.result-card>.icon {
  width: 41px;
  height: 41px;
  padding: 9px;
  background: var(--green-light);
  border-radius: 12px;
  margin-bottom: 18px
}

.result-card h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 17px
}

.result-card p {
  font-size: 13px;
  max-width: 550px;
  line-height: 1.9
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: #f0f3e9;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin: 25px 0
}

.result-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400
}

.result-stats span {
  font-size: 10px;
  color: var(--muted)
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.next-note {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted)
}

.learning-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 5px;
  font-size: 11px;
  color: var(--muted)
}

.learning-extra a {
  text-decoration: underline;
  text-underline-offset: 3px
}

.save-note {
  font-size: 10px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.8
}

.family-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px
}

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

.summary-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  margin: 9px 0
}

.summary-card span {
  font-size: 11px;
  color: var(--muted)
}

.summary-card>.small-label {
  font-size: 9px
}

.family-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 25px;
  padding-bottom: 70px;
  align-items: start
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px
}

.panel h2 {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -.02em;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 20px
}

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

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

.session-row:first-child {
  padding-top: 0
}

.session-row strong {
  display: block;
  font-size: 12px;
  font-weight: 650
}

.session-row p {
  font-size: 10px;
  line-height: 1.8;
  margin: 5px 0 0
}

.session-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px
}

.session-result {
  font-family: var(--serif);
  font-size: 27px;
  text-align: right;
  line-height: 1.3
}

.session-result span {
  font-size: 9px;
  font-family: var(--sans);
  display: block;
  color: var(--muted);
  margin-top: 3px;
  max-width: 95px
}

.family-suggestions {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9
}

.family-suggestions li {
  margin-bottom: 13px
}

.panel p {
  font-size: 12px;
  line-height: 1.9
}

.danger-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  color: #975340;
  text-decoration: underline;
  text-underline-offset: 3px
}

.reset-area {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px
}

.reset-area p {
  font-size: 10px
}

.dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 17px;
  padding: 28px;
  width: min(470px, calc(100% - 35px));
  color: var(--ink);
  box-shadow: var(--shadow)
}

.dialog::backdrop {
  background: #0a221ab3
}

.dialog h2 {
  font-size: 30px;
  margin-bottom: 15px
}

.dialog p {
  font-size: 13px
}

.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px
}

.prose {
  max-width: 810px;
  padding-block: 50px 75px
}

.prose h1 {
  font-size: 47px;
  margin-bottom: 20px
}

.prose h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin-top: 34px;
  line-height: 1.5
}

.prose p,
.prose li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted)
}

.prose ul {
  padding-left: 20px
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px
}

.back-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 27px
}

.noscript-note {
  background: var(--gold-light);
  color: #715615;
  text-align: center;
  padding: 15px;
  font-size: 13px
}

@media(min-width:1500px) {
  .hero {
    padding-top: 92px;
    padding-bottom: 100px
  }

  .hero h1 {
    font-size: 78px
  }
}

@media(max-width:1150px) {
  .wrap {
    width: calc(100% - 50px)
  }

  .primary-nav {
    gap: 18px
  }

  .primary-nav>a:not(.button) {
    font-size: 11px
  }

  .brand-educ {
    display: none
  }

  .hero {
    gap: 38px
  }

  .hero h1 {
    font-size: 60px
  }

  .hero-visual {
    padding-left: 5px
  }

  .hero-frame {
    padding: 23px
  }

  .floating-note {
    right: -8px
  }

  .method-inner {
    gap: 55px
  }

  .year-focus {
    grid-template-columns: .7fr 1.5fr 1fr;
    gap: 20px
  }

  .families-section {
    gap: 55px
  }

  .curriculum-layout,
  .learning-shell {
    grid-template-columns: 200px 1fr;
    gap: 22px
  }
}

@media(max-width:900px) {
  .header-inner {
    height: 77px
  }

  .menu-toggle {
    display: block
  }

  .brand-educ {
    display: inline
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 25px;
    right: 25px;
    top: 76px;
    background: var(--surface);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow);
    align-items: stretch;
    gap: 7px
  }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column
  }

  .primary-nav>a:not(.button) {
    font-size: 13px;
    padding: 11px 5px
  }

  .primary-nav>a[aria-current="page"]:not(.button) {
    box-shadow: none
  }

  .primary-nav>.button {
    margin-top: 9px
  }

  .hero {
    padding-top: 55px;
    gap: 30px
  }

  .hero h1 {
    font-size: 49px
  }

  .hero-copy>p {
    font-size: 14px
  }

  .hero-frame {
    padding: 19px
  }

  .hero-frame h2 {
    font-size: 25px
  }

  .path-step {
    padding: 10px 5px;
    gap: 9px
  }

  .path-step strong {
    font-size: 11px
  }

  .path-step small {
    font-size: 9px
  }

  .frame-top span:first-child {
    font-size: 9px
  }

  .floating-note {
    font-size: 10px;
    padding: 12px
  }

  .hero-actions>.button {
    font-size: 12px;
    padding: 12px 16px
  }

  .intro-item+.intro-item {
    padding-left: 20px
  }

  .intro-item strong {
    font-size: 11px
  }

  .intro-item span {
    font-size: 10px
  }

  .section {
    padding-block: 65px
  }

  .section-top {
    gap: 30px
  }

  .section h2 {
    font-size: 37px
  }

  .approach-grid {
    gap: 27px
  }

  .approach-item h3 {
    font-size: 17px
  }

  .method-inner {
    gap: 35px
  }

  .method-inner h2 {
    font-size: 37px
  }

  .method-equation {
    padding: 25px
  }

  .year-focus {
    grid-template-columns: 1fr 1.5fr
  }

  .year-focus>.button-text {
    grid-column: 2;
    justify-self: start
  }

  .year-rail {
    gap: 6px
  }

  .year-button {
    padding: 15px 5px
  }

  .year-button strong {
    font-size: 26px
  }

  .families-section {
    gap: 35px
  }

  .family-note {
    padding: 29px
  }

  .family-note p {
    font-size: 25px
  }

  .family-copy h2 {
    font-size: 35px
  }

  .curriculum-layout,
  .learning-shell {
    grid-template-columns: 1fr
  }

  .filter-sidebar {
    position: static;
    padding: 18px
  }

  .grade-options {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    margin-bottom: 15px;
    gap: 5px
  }

  .grade-option {
    padding: 9px 3px;
    justify-content: center;
    font-size: 11px
  }

  .grade-option span {
    display: none
  }

  .filter-sidebar .sidebar-note {
    display: none
  }

  .filter-sidebar .filter-title {
    margin-bottom: 10px
  }

  .filter-select {
    max-width: 350px
  }

  .learning-sidebar {
    padding: 17px
  }

  .learning-sidebar>h2 {
    margin-bottom: 12px
  }

  .track-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px
  }

  .track-button {
    padding: 12px 8px;
    margin: 0
  }

  .track-button .track-mark {
    width: 27px;
    height: 27px;
    font-size: 18px
  }

  .learning-sidebar .sidebar-note {
    display: none
  }

  .family-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 18px
  }

  .panel {
    padding: 23px
  }

  .summary-card {
    padding: 20px
  }

  .page-heading {
    padding-top: 40px
  }
}

@media(max-width:640px) {
  html {
    scroll-padding-top: 90px
  }

  .wrap {
    width: calc(100% - 36px)
  }

  .header-inner {
    height: 75px
  }

  .brand img {
    width: 39px;
    height: 39px
  }

  .brand strong {
    font-size: 13px
  }

  .brand-educ {
    font-size: 8px
  }

  .brand small {
    font-size: 7px
  }

  .primary-nav {
    left: 18px;
    right: 18px;
    top: 74px
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 37px;
    padding-top: 39px;
    padding-bottom: 45px
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
    margin-bottom: 22px
  }

  .hero h1 {
    font-size: 52px;
    max-width: 430px;
    line-height: 1.08;
    margin-bottom: 23px
  }

  .hero-copy>p {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 25px
  }

  .hero-actions>.button {
    font-size: 12px;
    padding: 13px 17px;
    min-height: 48px
  }

  .hero-note {
    font-size: 10px;
    margin-top: 20px
  }

  .hero-visual {
    width: min(430px, 100%);
    margin-inline: auto;
    padding: 12px 9px 30px
  }

  .hero-visual::before {
    inset: -5px 0 12px
  }

  .hero-frame {
    padding: 23px 22px;
    transform: rotate(-1deg)
  }

  .hero-frame h2 {
    font-size: 29px
  }

  .frame-top span:first-child {
    font-size: 10px
  }

  .path-step strong {
    font-size: 12px
  }

  .path-step small {
    font-size: 10px
  }

  .path-step {
    padding: 10px 9px;
    gap: 13px
  }

  .floating-note {
    right: 0;
    bottom: 6px;
    font-size: 11px;
    padding: 11px 14px
  }

  .intro-strip {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-block: 23px
  }

  .intro-item {
    gap: 14px
  }

  .intro-item+.intro-item {
    border-left: 0;
    padding-left: 0
  }

  .intro-item strong {
    font-size: 12px
  }

  .intro-item span {
    font-size: 11px
  }

  .intro-item .icon {
    width: 23px;
    height: 23px
  }

  .section {
    padding-block: 51px
  }

  .section-top {
    display: block;
    margin-bottom: 28px
  }

  .section-top>p {
    margin-top: 20px;
    max-width: 100%;
    font-size: 13px
  }

  .section h2 {
    font-size: 37px
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 16px
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .approach-item {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 15px
  }

  .approach-item .index {
    grid-row: 1/3;
    font-size: 26px
  }

  .approach-item h3 {
    margin: 3px 0 10px;
    max-width: 100%;
    font-size: 18px
  }

  .approach-item p {
    grid-column: 2;
    max-width: 100%;
    font-size: 13px;
    margin-bottom: 0
  }

  .method-section {
    border-radius: 18px;
    padding-block: 45px
  }

  .method-inner {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .method-inner h2 {
    font-size: 39px;
    margin-bottom: 21px
  }

  .method-inner p {
    max-width: 100%;
    font-size: 13px
  }

  .method-equation {
    padding: 24px
  }

  .equation {
    font-size: 52px
  }

  .year-rail {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px
  }

  .year-button {
    padding: 13px 5px
  }

  .year-button strong {
    font-size: 27px
  }

  .year-button span {
    font-size: 9px
  }

  .year-focus {
    display: block;
    padding: 23px
  }

  .year-focus h3 {
    font-size: 23px;
    margin-bottom: 14px
  }

  .year-focus p {
    font-size: 12px
  }

  .year-focus>.button-text {
    margin-top: 15px;
    font-size: 12px
  }

  .families-section {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .family-note {
    padding: 27px 30px
  }

  .family-note p {
    font-size: 27px
  }

  .family-copy h2 {
    font-size: 37px
  }

  .family-copy>p {
    font-size: 13px
  }

  .faq summary {
    font-size: 13px;
    line-height: 1.6
  }

  .faq details p {
    margin-right: 10px;
    font-size: 12px
  }

  .bottom-cta {
    display: block;
    padding: 29px;
    margin-bottom: 50px
  }

  .bottom-cta h2 {
    font-size: 32px
  }

  .bottom-cta p {
    font-size: 12px
  }

  .bottom-cta .button {
    margin-top: 23px
  }

  .footer-main {
    display: block;
    padding-bottom: 30px
  }

  .footer-main p {
    font-size: 12px
  }

  .footer-links {
    gap: 14px 25px;
    margin-top: 27px;
    font-size: 11px
  }

  .footer-bottom {
    font-size: 8px;
    flex-direction: column;
    gap: 7px;
    padding-block: 18px
  }

  .page-heading {
    padding-top: 35px;
    padding-bottom: 25px
  }

  .page-heading h1 {
    font-size: 40px
  }

  .page-heading p {
    font-size: 12px
  }

  .demo-banner {
    font-size: 10px;
    margin-bottom: 22px;
    padding: 11px 13px
  }

  .grade-options {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px
  }

  .grade-option {
    font-size: 11px
  }

  .curriculum-layout {
    gap: 20px;
    padding-bottom: 45px
  }

  .curriculum-toolbar {
    display: block
  }

  .search-field {
    max-width: none
  }

  .result-count {
    margin: 11px 0 0;
    font-size: 10px
  }

  .catalog-heading {
    font-size: 27px;
    margin-top: 22px
  }

  .group-heading {
    font-size: 9px
  }

  .skill-row summary {
    padding: 14px 12px;
    grid-template-columns: 55px 1fr 12px;
    gap: 10px
  }

  .skill-id {
    font-size: 8px
  }

  .skill-name {
    font-size: 11px
  }

  .skill-details {
    padding: 15px 17px;
    font-size: 10px
  }

  .catalog-footnote {
    font-size: 9px
  }

  .learning-shell {
    gap: 19px;
    padding-bottom: 40px
  }

  .learning-sidebar {
    padding: 15px 12px
  }

  .track-options {
    gap: 3px
  }

  .track-button {
    display: block;
    padding: 10px 8px
  }

  .track-button .track-mark {
    margin-bottom: 8px
  }

  .track-button strong {
    font-size: 10px
  }

  .track-button small {
    font-size: 8px
  }

  .learning-sidebar>h2 {
    font-size: 9px;
    margin-left: 5px
  }

  .welcome-card {
    padding: 24px
  }

  .welcome-card h2 {
    font-size: 31px;
    margin-top: 12px
  }

  .welcome-card p {
    font-size: 11px
  }

  .welcome-card .eyebrow {
    font-size: 8px
  }

  .study-card-head {
    padding: 16px 19px;
    gap: 12px
  }

  .study-card-head h3 {
    font-size: 11px
  }

  .study-card-head span {
    font-size: 9px
  }

  .lesson-intro,
  .exercise-view,
  .result-card {
    padding: 23px 21px
  }

  .lesson-intro h3 {
    font-size: 27px
  }

  .lesson-intro p,
  .result-card p {
    font-size: 12px
  }

  .lesson-intro ol {
    font-size: 11px
  }

  .teaching-example {
    font-size: 27px;
    padding: 18px
  }

  .teaching-example small {
    font-size: 10px
  }

  .question-title {
    font-size: 17px;
    line-height: 1.6
  }

  .counter-board {
    padding: 24px 18px;
    gap: 13px
  }

  .counter-board li {
    width: 28px;
    height: 28px
  }

  .answer-row {
    gap: 8px
  }

  .answer-row .button {
    min-width: 94px;
    padding: 11px;
    font-size: 12px
  }

  .answer-row input {
    font-size: 18px;
    padding: 12px;
    max-width: 100%
  }

  .math-expression {
    padding: 25px 14px;
    font-size: 31px;
    gap: 19px
  }

  .exercise-actions {
    gap: 12px;
    align-items: flex-start
  }

  .exercise-actions>.button {
    font-size: 11px;
    padding: 11px 14px
  }

  .feedback {
    font-size: 11px;
    padding: 12px 14px
  }

  .learning-extra {
    font-size: 9px;
    align-items: flex-start;
    padding-inline: 0;
    gap: 15px
  }

  .result-card h3 {
    font-size: 31px
  }

  .result-stats {
    gap: 8px;
    padding: 17px 15px
  }

  .result-stats strong {
    font-size: 25px
  }

  .result-stats span {
    font-size: 8px;
    line-height: 1.5;
    display: block
  }

  .result-actions .button {
    font-size: 11px;
    min-height: 44px;
    padding: 11px 14px
  }

  .next-note {
    font-size: 10px
  }

  .family-summary {
    gap: 8px;
    margin-bottom: 20px
  }

  .summary-card {
    padding: 15px 12px
  }

  .summary-card>.small-label {
    font-size: 8px;
    line-height: 1.6
  }

  .summary-card strong {
    font-size: 32px
  }

  .summary-card span {
    font-size: 9px
  }

  .family-grid {
    grid-template-columns: 1fr;
    padding-bottom: 45px
  }

  .panel {
    padding: 23px 20px
  }

  .panel h2 {
    font-size: 15px
  }

  .session-row strong {
    font-size: 11px
  }

  .session-row p {
    font-size: 10px
  }

  .family-suggestions {
    font-size: 11px
  }

  .prose {
    padding-top: 35px
  }

  .prose h1 {
    font-size: 38px
  }

  .prose h2 {
    font-size: 17px
  }

  .prose p,
  .prose li {
    font-size: 12px
  }

  .listen-button {
    font-size: 9px
  }

  .dialog h2 {
    font-size: 29px
  }

  .dialog .button {
    font-size: 12px
  }
}

@media(max-width:640px) {
  .hero-visual::before {
    transform: none
  }

  .teaching-example {
    font-size: 22px
  }

  .teaching-example .fraction {
    min-width: 27px
  }

  .teaching-example .numerator {
    padding-inline: 5px
  }

  .teaching-example .denominator {
    padding-inline: 5px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important
  }
}
