@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-thai-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-thai-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF;
}
:root {
  --ink: #23163b;
  --muted: #665c78;
  --purple: #6524df;
  --pink: #ffb0db;
  --acid: #e5ff66;
  --border: #e5dfed;
  --font: Kanit, system-ui, sans-serif;
  --wrap: 1216px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--ink);
  background: #fff;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.38;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ff6eb9;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.5rem;
}
svg {
  display: block;
}
button svg,
.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 72px;
}
.eyebrow,
.overline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 12px;
}
.purple-text {
  color: #6524df;
}
.coral-text {
  color: #ad3e33;
}
.blue-text {
  color: #1d4dc5;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  transition:
    transform 0.16s,
    background 0.16s;
  white-space: normal;
  text-align: center;
}
.button:hover {
  transform: translateY(-2px);
}
.purple {
  background: var(--purple);
  color: white;
}
.dark {
  background: var(--ink);
  color: white;
}
.acid {
  background: var(--acid);
  color: var(--ink);
}
.line {
  background: #08754c;
  color: #fff;
}
.glass {
  background: #ffffff14;
  color: #fff;
  border-color: #ffffff70;
}
.outline {
  background: transparent;
  border-color: #d5cadd;
}
.outline:hover {
  background: #ffffff85;
}
.text-button {
  border: 0;
  background: none;
  color: var(--purple);
  font-weight: 600;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.light-text {
  color: white;
}
.pill {
  display: inline-block;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff70;
}
.white-pill {
  background: #ffffffbd;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.announcement {
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 7px max(32px, calc((100% - var(--wrap)) / 2));
  font-size: 0.875rem;
  gap: 16px;
}
.preview-label {
  font-size: 0.75rem;
  color: #e6d8ff;
  align-self: center;
}
.header {
  background: #fff;
}
.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: none;
}
.brand img {
  border-radius: 12px;
}
.brand span {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  margin-top: 7px;
}
.header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}
.header nav a:hover {
  color: var(--purple);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bag-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 0.875rem;
  min-height: 44px;
}
.bag-button b,
[data-count] {
  background: #f0e7ff;
  border-radius: 99px;
  min-width: 25px;
  height: 25px;
  padding: 1px 7px;
  text-align: center;
}
.header-contact {
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 17px;
}
.promo-zone {
  background: #6728e7;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 475px;
  padding-block: 52px 40px;
  gap: 44px;
}
.hero-eyebrow {
  color: #ecdbff;
  letter-spacing: 0.12em;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  line-height: 1.17;
  letter-spacing: -0.04em;
}
.highlight {
  display: inline-block;
  position: relative;
  color: var(--acid);
  padding-inline: 5px;
}
.highlight:after {
  content: "";
  position: absolute;
  height: 7px;
  border-bottom: 3px solid var(--acid);
  border-radius: 50%;
  bottom: -7px;
  left: 5%;
  right: -3%;
  transform: rotate(-3deg);
}
.hero-copy > p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #f4eaff;
  margin-top: 23px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: #f0dcff;
}
.hero-tags span {
  border: 1px solid #ffffff48;
  border-radius: 99px;
  padding: 3px 11px;
}
.hero-art {
  position: relative;
  height: 360px;
  max-width: 470px;
  width: 100%;
  justify-self: end;
}
.art-disc {
  position: absolute;
  background: #8c52fa;
  border-radius: 50%;
  width: 310px;
  height: 310px;
  right: -20px;
  top: -10px;
  color: #b58bff;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  padding: 60px 28px;
  transform: rotate(9deg);
}
.art-ticket {
  position: absolute;
  background: #ffb2df;
  width: 220px;
  padding: 20px 22px;
  left: 52px;
  top: 2px;
  transform: rotate(-9deg);
  color: #41205f;
  box-shadow: 10px 15px 0 #35107035;
  border-radius: 16px;
}
.art-ticket > span {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}
.art-ticket strong {
  display: block;
  font-size: 3rem;
  line-height: 0.97;
  margin-top: 18px;
  letter-spacing: -0.04em;
}
.art-ticket em {
  font-style: normal;
  color: #7a29da;
}
.ticket-bottom {
  border-top: 1px dashed #6b3c7f80;
  margin-top: 22px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.625rem;
  line-height: 1.3;
}
.ticket-bottom b {
  font-size: 3.5rem;
  font-family: Georgia;
  font-weight: 400;
}
.art-note {
  position: absolute;
  right: 0;
  bottom: 25px;
  background: var(--acid);
  color: #293411;
  padding: 20px 25px;
  transform: rotate(9deg);
  border-radius: 5px;
  box-shadow: 8px 10px 0 #35107025;
}
.art-note span {
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 600;
}
.art-note i {
  display: block;
  border-top: 1px solid #769524;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 0.8125rem;
  font-style: normal;
}
.art-sticker {
  position: absolute;
  background: #ff795d;
  left: 12px;
  bottom: 15px;
  transform: rotate(-13deg);
  border-radius: 50%;
  width: 95px;
  height: 95px;
  display: grid;
  place-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  color: #471b47;
  border: 3px solid #ffbca8;
}
.doodle {
  position: absolute;
  font-size: 4.5rem;
  color: var(--acid);
  z-index: 1;
  line-height: 1;
}
.star-one {
  right: -5px;
  top: 8px;
}
.star-two {
  left: 0;
  top: 80px;
  font-size: 3rem;
  color: #ffb2df;
}
.package-area {
  padding-bottom: 44px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 26px;
  margin-bottom: 26px;
}
.on-purple h2 {
  font-size: 1.875rem;
}
.on-purple .eyebrow {
  color: #e8d9ff;
  font-size: 0.75rem;
}
.package-disclosure {
  font-size: 0.8125rem;
  color: #eee0ff;
  margin: -10px 0 18px;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.package-card {
  padding: 23px 24px;
  border-radius: 20px;
  color: var(--ink);
  position: relative;
}
.starter {
  background: #e5ff66;
}
.decoder {
  background: #ffc2e5;
}
.duo {
  background: #c0d8ff;
}
.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.package-symbol {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
}
.package-card h3 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}
.package-card > p {
  color: #4e3f62;
  font-size: 0.9375rem;
  margin-top: 8px;
}
.bundle-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 18px;
  font-size: 0.8125rem;
}
.bundle-list > span {
  padding: 3px 8px;
  border: 1px solid #34234740;
  border-radius: 6px;
}
.bundle-list b {
  font-size: 1rem;
}
.package-bottom {
  border-top: 1px dashed #24153250;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.package-bottom > span {
  font-size: 0.8125rem;
}
.package-bottom .button {
  font-size: 0.875rem;
  min-height: 43px;
  padding: 10px 16px;
}
.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffdfef5;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: thin;
}
.category-scroll a {
  white-space: nowrap;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 99px;
  background: #f4f0fa;
  border: 1px solid transparent;
}
.category-scroll a.active {
  background: #efe3ff;
  border-color: #7c43d9;
  color: #5722b9;
}
.category-scroll a:hover {
  background: #eee3ff;
}
.muted-heading {
  color: #76658c;
  font-size: 0.78em;
}
.section-heading > p,
.section-aside {
  color: var(--muted);
  font-size: 0.9375rem;
}
.section-aside {
  text-align: right;
}
.engineering {
  background: #fcfaff;
}
.rail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.rail-toolbar b {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 10px;
  color: var(--muted);
}
.rail-buttons {
  display: flex;
  gap: 8px;
}
.rail-button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 8px 14px;
  min-height: 42px;
  font-size: 0.875rem;
}
.course-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 3.25);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 16px;
  scrollbar-color: #c6adeb #ede5f7;
  scrollbar-width: thin;
}
.decoder-card {
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.decoder-cover {
  height: 265px;
  padding: 17px 20px;
  position: relative;
  overflow: hidden;
}
.cover-1 {
  background: #ecceff;
  color: #4b2179;
}
.cover-2 {
  background: #dfff65;
  color: #324a20;
}
.cover-3 {
  background: #ffc1d8;
  color: #8d235e;
}
.cover-4 {
  background: #b9deff;
  color: #1c4b87;
}
.cover-5 {
  background: #ffbd92;
  color: #903c26;
}
.cover-6 {
  background: #bedfcf;
  color: #1c5e4c;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.save-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffffa0;
  background: #ffffffe0;
  border-radius: 50%;
  flex: none;
}
.save-button svg {
  width: 20px;
  height: 20px;
}
.save-button[aria-pressed="true"] {
  background: #4b1ba2;
  border-color: #4b1ba2;
  color: white;
}
.save-button[aria-pressed="true"] svg {
  fill: currentColor;
}
.decoder-type {
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.07em;
  position: relative;
  z-index: 1;
  margin-top: 20px;
}
.decoder-type span {
  display: block;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.cover-math {
  position: absolute;
  right: 10px;
  bottom: 45px;
  font-family: Georgia;
  font-style: italic;
  font-size: 5rem;
  opacity: 0.19;
  transform: rotate(-14deg);
}
.cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-top: 9px;
}
.course-body {
  padding: 20px;
}
.course-kicker {
  font-size: 0.8125rem;
  color: var(--muted);
}
.course-body h3 {
  margin-top: 4px;
  font-size: 1.5rem;
}
.course-body p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.card-price {
  margin: 15px 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.card-actions .button {
  padding: 9px 10px;
  font-size: 0.875rem;
  flex: 1;
  min-height: 44px;
}
.rail-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.rail-footer > span {
  white-space: nowrap;
}
.foundation-section {
  background: #f8fbe9;
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
}
.foundation-card {
  background: #ebf7bc;
}
.feature-art {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.foundation-art {
  background: #dfff65;
}
.art-label {
  position: absolute;
  top: 30px;
  left: 34px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.steps-art {
  position: absolute;
  left: 10%;
  right: 8%;
  bottom: 48px;
  height: 180px;
  display: flex;
  align-items: end;
}
.steps-art span {
  width: 33.33%;
  background: #612ad9;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  border-radius: 10px 10px 0 0;
  transform: skewY(-8deg);
}
.steps-art span:nth-child(1) {
  height: 60px;
  background: #b688ff;
  color: #301253;
}
.steps-art span:nth-child(2) {
  height: 114px;
  background: #9551ef;
}
.steps-art span:nth-child(3) {
  height: 172px;
  font-size: 1.125rem;
}
.feature-spark {
  position: absolute;
  right: 35px;
  top: 50px;
  font-size: 5rem;
  color: #612ad9;
  line-height: 1;
}
.feature-copy {
  padding: 44px 42px;
  align-self: center;
}
.feature-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 17px;
  letter-spacing: -0.03em;
}
.feature-copy > p {
  color: #504760;
  margin-top: 16px;
  max-width: 46ch;
}
.feature-price {
  font-weight: 600;
  margin-top: 22px;
  font-size: 0.9375rem;
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.feature-actions .button {
  font-size: 0.9375rem;
  padding: 10px 17px;
}
.physics-card {
  background: #fff0e9;
  grid-template-columns: 1.13fr 1fr;
}
.physics-art {
  background: #ffac92;
}
.orbit {
  position: absolute;
  left: 21%;
  top: 23%;
  width: 62%;
  height: 49%;
  border: 2px solid #8a305270;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.orbit-two {
  transform: rotate(35deg);
}
.physics-ball {
  position: absolute;
  top: 28%;
  left: 33%;
  width: 140px;
  height: 140px;
  display: grid;
  place-content: center;
  background: #5b23c7;
  border: 8px solid #a66cf0;
  border-radius: 50%;
  color: #e8ff78;
  font: italic 4rem/1 Georgia;
  box-shadow: 10px 10px 0 #6e26591a;
}
.physics-ball span {
  font-size: 1.5rem;
}
.physics-note {
  position: absolute;
  right: 26px;
  bottom: 32px;
  background: #e5ff66;
  color: #3d3046;
  padding: 12px 18px;
  transform: rotate(-8deg);
  font-weight: 600;
  line-height: 1.3;
}
.business-section {
  background: #f5f8ff;
}
.business-card {
  background: #e7efff;
}
.business-art {
  background: #afcfff;
}
.graph-sheet {
  position: absolute;
  left: 12%;
  top: 27%;
  width: 78%;
  padding: 23px;
  background: #fff9e8;
  transform: rotate(-7deg);
  box-shadow: 10px 12px 0 #4573be28;
  border-radius: 8px;
}
.graph-sheet > span {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: #58709a;
}
.graph-sheet svg {
  width: 100%;
  height: 140px;
}
.graph-sheet strong {
  font-size: 0.8125rem;
  color: #37579a;
}
.biz-star {
  position: absolute;
  bottom: 30px;
  right: 20px;
  font-size: 4rem;
  color: #e752ac;
}
.content-note {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-block: 18px;
}
.play-section {
  background: #fff;
  padding-block: 70px;
}
.play-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 65px;
  align-items: center;
}
.play-copy h2 em {
  font-style: normal;
  color: var(--purple);
}
.play-copy > p {
  margin: 22px 0;
  color: var(--muted);
}
.lesson-switch {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.lesson-switch button {
  padding: 9px 20px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 99px;
  min-height: 44px;
}
.lesson-switch .active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.demo-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 18px;
}
.lab-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 44px #54268d0c;
  min-width: 0;
}
.lab-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
}
.lab-pill {
  background: #eaf9cc;
  padding: 3px 9px;
  border-radius: 99px;
  color: #3e5e20;
}
.lab-card h3 {
  font-size: 1.125rem;
}
.lab-card > svg {
  width: 100%;
  margin: 16px 0;
}
.lab-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 0.9375rem;
}
.lab-control output {
  font-weight: 600;
  color: var(--purple);
}
.lab-control input {
  grid-column: 1/-1;
  width: 100%;
  accent-color: var(--purple);
  min-height: 30px;
}
.lab-insight {
  background: #f3ecff;
  border-radius: 12px;
  padding: 14px 17px;
  margin: 17px 0;
  font-size: 0.9375rem;
}
.lab-insight > span {
  font-weight: 600;
  color: var(--purple);
}
.lab-insight p {
  margin-top: 5px;
}
.quiz-trigger {
  font-size: 0.875rem;
}
.answer-options {
  display: flex;
  gap: 8px;
  margin: 13px 0;
}
.answer-options button {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 10px;
  min-height: 44px;
}
.answer-options button[aria-pressed="true"] {
  border-color: var(--purple);
  background: #eee3ff;
}
.correct {
  color: #08754c;
}
#quiz-feedback {
  font-size: 0.9375rem;
}
.contact-band {
  background: var(--purple);
  color: #fff;
  border-radius: 26px;
  padding: 40px 44px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.contact-band .eyebrow {
  font-size: 0.75rem;
  color: #ebddff;
}
.contact-band p {
  margin-top: 16px;
  color: #f3eaff;
}
.contact-band > .button {
  flex: none;
}
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 60px;
}
.faqs details {
  border-bottom: 1px solid var(--border);
}
.faqs summary {
  padding: 19px 30px 19px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
}
.faqs summary::-webkit-details-marker {
  display: none;
}
.faqs summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 1.4rem;
  top: 15px;
  color: var(--purple);
}
.faqs details[open] summary:after {
  content: "−";
}
.faqs details p {
  color: var(--muted);
  padding-bottom: 20px;
  font-size: 0.9375rem;
}
.footer {
  background: #f5f1fa;
  padding: 30px 0;
}
.footer > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.footer p,
.footer > .wrap > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.mobile-dock {
  display: none;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  z-index: 60;
  max-width: calc(100% - 36px);
  font-size: 0.9375rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  max-width: calc(100% - 32px);
  width: 700px;
  max-height: 88dvh;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 80px #20123540;
}
dialog::backdrop {
  background: #25143e80;
  backdrop-filter: blur(5px);
}
dialog.wide {
  width: 940px;
}
.dialog-shell {
  padding: 27px 30px 32px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-top .eyebrow {
  margin: 0;
  color: var(--purple);
  font-size: 0.75rem;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex: none;
}
.dialog-description {
  color: var(--muted);
  margin-top: 10px;
}
.notice {
  background: #f5f1fb;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  color: #655572;
  margin-block: 20px;
}
.detail-banner {
  background: #eee0ff;
  padding: 22px;
  border-radius: 16px;
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.detail-banner > strong {
  font-size: 1.5rem;
}
.detail-banner > span {
  font-family: Georgia;
  font-size: 3.5rem;
  color: #7940cc;
  line-height: 1;
}
.detail-banner.package {
  background: #edffc0;
}
.detail-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 19px;
}
.detail-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  min-height: 44px;
}
.detail-tabs button[aria-selected="true"] {
  border-bottom-color: var(--purple);
  color: var(--purple);
  font-weight: 600;
}
.detail-panel {
  min-height: 145px;
}
.detail-panel h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.detail-panel p,
.detail-panel ul {
  color: var(--muted);
}
.detail-panel li {
  margin-bottom: 8px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.dialog-actions .button {
  flex: 1;
}
.price-row {
  padding-block: 15px;
  border-block: 1px solid var(--border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.9375rem;
  margin-top: 22px;
}
.price-row span {
  color: var(--muted);
}
.short-item {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.mini-cover {
  width: 54px;
  height: 60px;
  background: #eee2ff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 600;
  flex: none;
}
.short-item > div {
  flex: 1;
}
.short-item h3 {
  font-size: 1.05rem;
}
.short-item p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}
.shortlist-empty {
  text-align: center;
  padding: 24px 0;
}
.shortlist-empty p {
  color: var(--muted);
  margin: 12px 0 24px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.compare-col {
  background: #f6f1fd;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}
.compare-col h3 {
  font-size: 1.25rem;
  margin: 13px 0;
}
.compare-col p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.compare-col .button {
  margin-top: auto;
  font-size: 0.875rem;
  padding: 10px;
}
.compare-col ul {
  padding-left: 19px;
  font-size: 0.875rem;
  margin: 10px 0 18px;
}
.finder-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.finder-choice {
  padding: 20px 16px;
  text-align: left;
  background: #fbf8ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 115px;
}
.finder-choice:hover {
  background: #f0e3ff;
  border-color: #9e6cde;
}
.finder-choice strong {
  display: block;
  font-size: 1.1rem;
}
.finder-choice span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.contact-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 185px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}
.contact-choices label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  padding: 6px;
  min-height: 42px;
}
.contact-choices input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  flex: none;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 24px 0 18px;
}
legend {
  font-weight: 600;
}
.form-field {
  display: block;
  margin: 18px 0;
}
.form-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  border: 1px solid #cec2dc;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.form-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%236524df' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.form-field textarea {
  resize: vertical;
  min-height: 105px;
}
.char-count {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -12px;
}
.form-error {
  color: #ae203d;
  font-size: 0.9375rem;
}
#message-preview {
  min-height: 210px;
}
.noscript {
  padding: 20px;
  background: #fff0a8;
  text-align: center;
}
@media (min-width: 1440px) {
  .hero {
    min-height: 500px;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero-art {
    transform: scale(1.06);
    transform-origin: center;
  }
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 18px;
  }
  .header nav {
    gap: 16px;
  }
  .header-contact {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    gap: 10px;
  }
  .hero-art {
    transform: scale(0.88);
    transform-origin: right center;
  }
  .package-card {
    padding: 20px;
  }
  .package-bottom {
    align-items: start;
    flex-direction: column;
  }
  .package-bottom .button {
    width: 100%;
  }
  .course-rail {
    grid-auto-columns: calc((100% - 30px) / 2.5);
  }
  .feature-copy {
    padding: 32px;
  }
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }
  .play-grid {
    gap: 32px;
  }
  .feature-art {
    min-height: 370px;
  }
  .contact-band {
    padding: 36px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .announcement {
    padding: 7px 18px;
    font-size: 0.8125rem;
    justify-content: center;
  }
  .preview-label {
    display: none;
  }
  .header-inner {
    height: 73px;
  }
  .header nav {
    display: none;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand span {
    font-size: 1.35rem;
  }
  .brand small {
    font-size: 0.5625rem;
  }
  .header-actions {
    gap: 10px;
  }
  .hero {
    grid-template-columns: 1fr 0.8fr;
    padding-block: 35px 30px;
    min-height: 0;
    gap: 0;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .hero-eyebrow {
    font-size: 0.625rem;
  }
  .hero-art {
    height: 330px;
    transform: scale(0.7);
    transform-origin: right center;
    width: 430px;
    margin-left: -190px;
    pointer-events: none;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding: 10px 15px;
    font-size: 0.9375rem;
  }
  .hero-tags {
    font-size: 0.75rem;
    gap: 5px;
  }
  .package-grid {
    gap: 12px;
  }
  .package-card {
    padding: 17px 15px;
  }
  .package-card h3 {
    font-size: 1.35rem;
  }
  .package-top .pill {
    font-size: 0.6875rem;
    padding: 4px 6px;
  }
  .package-symbol {
    font-size: 1.8rem;
  }
  .package-card > p {
    font-size: 0.875rem;
  }
  .bundle-list {
    font-size: 0.6875rem;
    gap: 4px;
  }
  .package-bottom > span {
    font-size: 0.75rem;
  }
  .on-purple h2 {
    font-size: 1.6rem;
  }
  .section-heading {
    align-items: start;
  }
  .section-aside {
    font-size: 0.8125rem;
    max-width: 170px;
  }
  .section {
    padding-block: 52px;
  }
  .course-rail {
    grid-auto-columns: calc((100% - 22px) / 2.1);
  }
  .category-scroll {
    width: 100%;
    padding-inline: 18px;
    gap: 7px;
  }
  .category-scroll a {
    font-size: 0.875rem;
    padding: 7px 16px;
  }
  .feature-card {
    grid-template-columns: 1fr 1.2fr;
  }
  .feature-copy {
    padding: 28px;
  }
  .feature-copy h3 {
    font-size: 1.8rem;
  }
  .feature-art {
    min-height: 390px;
  }
  .feature-copy > p {
    font-size: 0.9375rem;
  }
  .art-label {
    left: 22px;
    top: 24px;
    font-size: 0.75rem;
  }
  .steps-art {
    left: 8%;
    right: 8%;
    bottom: 75px;
  }
  .steps-art span {
    font-size: 1.2rem;
  }
  .steps-art span:nth-child(3) {
    font-size: 0.8125rem;
  }
  .feature-spark {
    top: 100px;
    right: 30px;
    font-size: 3.5rem;
  }
  .physics-ball {
    left: 23%;
    width: 130px;
    height: 130px;
  }
  .physics-note {
    right: 15px;
    bottom: 40px;
    font-size: 0.9375rem;
  }
  .graph-sheet {
    left: 7%;
    width: 86%;
    top: 30%;
    padding: 16px;
  }
  .graph-sheet svg {
    height: 100px;
  }
  .graph-sheet strong {
    font-size: 0.625rem;
  }
  .play-grid {
    gap: 25px;
  }
  .play-copy h2 {
    font-size: 1.8rem;
  }
  .play-copy .overline {
    font-size: 0.75rem;
  }
  .lab-card {
    padding: 20px;
  }
  .lab-head {
    font-size: 0.625rem;
  }
  .lab-head .lab-pill {
    white-space: nowrap;
  }
  .faq-section {
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
  }
  .contact-band {
    gap: 20px;
    padding: 30px;
  }
  .contact-band p {
    font-size: 0.9375rem;
  }
  .contact-band .button {
    font-size: 0.875rem;
    padding: 12px;
  }
  .footer > .wrap > p {
    display: none;
  }
  .footer > .wrap > span {
    font-size: 0.75rem;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-col {
    padding: 20px;
  }
  .finder-options {
    gap: 10px;
  }
}
@media (max-width: 560px) {
  body {
    padding-bottom: 78px;
  }
  .hero {
    display: block;
    padding-top: 33px;
    position: relative;
    padding-bottom: 38px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.8rem;
    max-width: 360px;
  }
  .hero-copy > p {
    font-size: 0.9375rem;
    max-width: 330px;
  }
  .hero-art {
    display: none;
  }
  .hero-tags {
    margin-top: 20px;
  }
  .hero-eyebrow {
    font-size: 0.6875rem;
  }
  .hero-actions {
    margin-top: 23px;
  }
  .hero-actions .button {
    min-height: 48px;
  }
  .package-area {
    padding-bottom: 28px;
  }
  .on-purple {
    display: block;
    margin-bottom: 20px;
  }
  .on-purple h2 {
    font-size: 1.65rem;
  }
  .on-purple .text-button {
    font-size: 0.875rem;
    min-height: 40px;
    margin-top: 4px;
  }
  .package-disclosure {
    font-size: 0.75rem;
    margin-bottom: 15px;
  }
  .package-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 12px;
    padding-bottom: 15px;
    scrollbar-color: #cba6ff #8342e7;
    scrollbar-width: thin;
  }
  .package-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    padding: 23px;
  }
  .package-card h3 {
    font-size: 1.8rem;
  }
  .package-card > p {
    font-size: 0.9375rem;
  }
  .package-top .pill {
    font-size: 0.8125rem;
  }
  .package-symbol {
    font-size: 2.6rem;
  }
  .bundle-list {
    font-size: 0.8125rem;
    margin-block: 18px;
  }
  .bundle-list b {
    font-size: 1.1rem;
  }
  .package-bottom {
    flex-direction: row;
    align-items: center;
  }
  .package-bottom > span {
    font-size: 0.8125rem;
  }
  .package-bottom .button {
    width: auto;
    min-height: 44px;
  }
  .section {
    padding-block: 42px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .section-heading > p {
    margin-top: 12px;
  }
  .section-aside {
    text-align: left;
    max-width: none;
    margin-top: 16px;
    font-size: 0.875rem;
  }
  .section-aside .text-button {
    margin-top: 2px;
  }
  .eyebrow {
    font-size: 0.6875rem;
  }
  .rail-toolbar {
    font-size: 0.6875rem;
    gap: 6px;
  }
  .rail-toolbar b {
    font-size: 0.75rem;
    margin-left: 5px;
  }
  .rail-button {
    padding: 8px 10px;
    font-size: 0.8125rem;
    min-height: 44px;
  }
  .rail-buttons {
    gap: 5px;
  }
  .course-rail {
    grid-auto-columns: 86%;
    gap: 14px;
  }
  .decoder-cover {
    height: 270px;
    padding: 18px 22px;
  }
  .decoder-type {
    font-size: 3.3rem;
  }
  .decoder-type span {
    font-size: 3.6rem;
  }
  .cover-math {
    font-size: 6rem;
    right: 18px;
  }
  .cover-bottom {
    font-size: 0.5625rem;
  }
  .course-body {
    padding: 21px;
  }
  .card-actions .button {
    font-size: 0.9375rem;
  }
  .rail-footer {
    display: block;
    font-size: 0.75rem;
  }
  .rail-footer > span {
    display: block;
    margin-top: 5px;
  }
  .feature-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .feature-art {
    min-height: 265px;
  }
  .feature-copy {
    padding: 26px;
  }
  .feature-copy h3 {
    font-size: 2rem;
  }
  .feature-copy > p {
    font-size: 1rem;
  }
  .feature-actions {
    gap: 8px;
  }
  .feature-actions .button {
    font-size: 0.875rem;
    padding: 10px 14px;
  }
  .physics-art {
    order: -1;
  }
  .steps-art {
    bottom: 30px;
    left: 18%;
    right: 16%;
    height: 150px;
  }
  .steps-art span:nth-child(1) {
    height: 48px;
  }
  .steps-art span:nth-child(2) {
    height: 90px;
  }
  .steps-art span:nth-child(3) {
    height: 140px;
    font-size: 0.9375rem;
  }
  .feature-spark {
    top: 30px;
    right: 35px;
  }
  .physics-ball {
    left: 36%;
    top: 22%;
    width: 130px;
    height: 130px;
  }
  .physics-note {
    bottom: 20px;
    right: 25px;
  }
  .graph-sheet {
    top: 25%;
    left: 21%;
    width: 63%;
    padding: 16px;
  }
  .graph-sheet svg {
    height: 100px;
  }
  .biz-star {
    bottom: 16px;
    font-size: 3rem;
  }
  .content-note {
    font-size: 0.75rem;
    padding-block: 14px;
  }
  .play-section {
    padding-block: 38px;
  }
  .play-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .play-copy h2 {
    font-size: 2rem;
  }
  .play-copy > p {
    margin-block: 16px;
  }
  .lab-card {
    padding: 23px;
  }
  .lab-head {
    font-size: 0.75rem;
  }
  .lab-card > svg {
    margin-block: 16px;
  }
  .contact-band {
    display: block;
    padding: 30px 26px;
    border-radius: 20px;
  }
  .contact-band h2 {
    font-size: 1.9rem;
  }
  .contact-band .button {
    margin-top: 25px;
    width: 100%;
    font-size: 1rem;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faq-section h2 br {
    display: none;
  }
  .footer > .wrap {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .mobile-dock {
    position: fixed;
    z-index: 25;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .dock-bag {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    min-height: 44px;
    padding: 0;
    white-space: nowrap;
  }
  .dock-bag svg {
    width: 21px;
    height: 21px;
  }
  .mobile-dock > .button {
    flex: 1;
    font-size: 0.875rem;
    padding: 10px 12px;
    min-height: 46px;
  }
  .toast {
    bottom: 90px;
    width: max-content;
    text-align: center;
    font-size: 0.875rem;
  }
  .dialog-shell {
    padding: 20px 20px 26px;
  }
  dialog {
    max-width: calc(100% - 20px);
    max-height: 87dvh;
    border-radius: 20px;
  }
  .detail-tabs {
    gap: 0;
  }
  .detail-tabs button {
    font-size: 0.875rem;
    padding: 10px;
  }
  .detail-banner {
    padding: 18px;
  }
  .detail-banner > strong {
    font-size: 1.25rem;
  }
  .price-row {
    font-size: 0.8125rem;
  }
  .dialog-actions .button {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }
  .short-item {
    gap: 10px;
  }
  .mini-cover {
    width: 43px;
    height: 53px;
    font-size: 1rem;
  }
  .short-item h3 {
    font-size: 1rem;
  }
  .contact-choices {
    grid-template-columns: 1fr;
    max-height: 180px;
  }
  .finder-options {
    grid-template-columns: 1fr;
  }
  .finder-choice {
    min-height: 86px;
    padding: 15px 17px;
  }
  .finder-choice strong {
    font-size: 1rem;
  }
  .finder-choice span {
    margin-top: 5px;
  }
  .dialog-description {
    font-size: 0.9375rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .button:hover {
    transform: none;
  }
}

/* Verified catalog, teacher and time-bound campaign presentation. */
.hero {
  min-height: 440px;
  grid-template-columns: 1.12fr 0.88fr;
}
.hero h1 .hero-subject {
  display: block;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.hero-portrait {
  position: relative;
  width: min(100%, 370px);
  justify-self: center;
  transform: rotate(3deg);
  margin: 8px 22px 18px;
}
.hero-portrait > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 9px solid #fff;
  border-radius: 28px;
  box-shadow: 18px 18px 0 #3e139348;
}
.portrait-caption {
  position: absolute;
  bottom: -12px;
  left: -20px;
  right: 18px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-5deg);
  box-shadow: 0 8px 25px #28105b25;
}
.portrait-caption strong {
  font-size: 1.6rem;
  line-height: 1.2;
  display: block;
}
.portrait-caption span {
  font-size: 0.8rem;
}
.portrait-sticker {
  position: absolute;
  top: 8px;
  right: -26px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  padding: 20px 14px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(12deg);
  font-size: 1.3rem;
}
.campaign-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--acid);
  color: var(--ink);
  padding: 24px 30px;
  border-radius: 20px;
  margin-top: 14px;
}
.campaign-banner .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 3px;
}
.campaign-banner h2 {
  font-size: 1.65rem;
}
.campaign-banner h2 strong {
  font-size: 2.2rem;
  color: #5a20c6;
}
.campaign-banner small {
  font-size: 0.8rem;
}
.campaign-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.package-price {
  margin-top: auto;
  padding: 20px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-current {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.package-price s,
.feature-price s,
.price-row s {
  font-size: 0.94rem;
  font-weight: 400;
  color: #5e526b;
}
.package-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.package-card .bundle-list {
  margin-bottom: 0;
}
.package-card .package-price {
  margin-top: 16px;
}
.package-disclosure {
  color: #f2e8ff;
  max-width: 100%;
  font-size: 0.84rem;
}
.subject-en {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
  min-height: 2.4em;
}
.course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body > p {
  min-height: 2.8em;
}
.card-price {
  margin-top: auto;
  padding: 14px 0 10px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-actions .button {
  flex: 1;
  padding: 10px 12px;
  min-width: 110px;
  font-size: 0.88rem;
}
.course-rail {
  scroll-snap-type: none;
}
.course-rail.all-courses {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}
.course-rail.all-courses .decoder-card {
  width: auto;
  min-width: 0;
}
.bundle-callout {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  background: #f2eaff;
  border-radius: 18px;
  margin-top: 24px;
}
.bundle-callout > div {
  flex: 1;
}
.bundle-callout h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.bundle-callout strong {
  white-space: normal;
  font-size: 1.3rem;
  color: var(--purple);
}
.feature-price {
  margin-top: 20px;
  font-size: 1.1rem;
}
.feature-price small {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
  margin-top: 4px;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.physics-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.subject-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.subject-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.subject-card .mini-cover {
  width: 60px;
  height: 64px;
  font-size: 1.4rem;
}
.physics-products .mini-cover {
  background: #ffe5d3;
  color: #913e29;
}
.subject-card h3 {
  font-size: 1.6rem;
  margin-bottom: 9px;
}
.subject-card > p {
  min-height: 3.3em;
}
.teacher-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 60px;
}
.teacher-photo {
  position: relative;
  max-width: 390px;
  margin: auto;
}
.teacher-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: -16px 16px 0 #efe7ff;
}
.teacher-photo > span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--acid);
  font-weight: 600;
}
.teacher-section h2 {
  margin-bottom: 22px;
}
.teacher-facts {
  padding-left: 20px;
  color: var(--muted);
}
.teacher-facts li {
  margin: 10px 0;
}
.teacher-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 15px;
}
.teacher-source {
  font-size: 0.78rem;
  color: var(--muted);
}
.compare-price {
  display: block;
  font-size: 1.8rem;
  margin: 20px 0;
}
.compare-col > .button {
  width: 100%;
}
.compare-col > .text-button {
  display: block;
}
.connection {
  padding-block: 25px 50px;
  color: var(--muted);
  font-size: 0.88rem;
}
.identity-box {
  padding: 18px 22px;
  background: #f6f2fb;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.identity-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-height: 30px;
}
.identity-content {
  padding-top: 12px;
}
.identity-content p {
  margin: 8px 0;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.privacy-note {
  margin-top: 16px;
}
.privacy-note a {
  text-decoration: underline;
  color: var(--purple);
}
.status {
  margin-top: 8px;
}
.status.error {
  color: #a22440;
}
.staging-label {
  background: #fff0bd;
  color: #654707;
  padding: 6px 24px;
  text-align: center;
  font-size: 0.8rem;
}
@media (max-width: 1000px) {
  .hero-portrait {
    width: 290px;
    margin-inline: 12px;
  }
  .hero {
    gap: 24px;
  }
  .hero h1 {
    font-size: 3.4rem;
  }
  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-rail.all-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher-section {
    gap: 35px;
  }
  .bundle-callout {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    gap: 22px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero h1 .hero-subject {
    font-size: 1.4rem;
  }
  .hero-portrait {
    width: 230px;
    margin: 4px auto 16px;
  }
  .portrait-sticker {
    font-size: 1rem;
    padding: 16px 12px;
    right: -18px;
  }
  .portrait-caption {
    padding: 10px 15px;
  }
  .portrait-caption strong {
    font-size: 1.4rem;
  }
  .portrait-caption span {
    font-size: 0.65rem;
  }
  .campaign-banner {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .campaign-banner h2 {
    font-size: 1.35rem;
  }
  .campaign-actions {
    align-items: stretch;
  }
  .campaign-actions .text-button {
    align-self: center;
  }
  .package-disclosure {
    font-size: 0.78rem;
  }
  .rail-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .rail-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .rail-button {
    padding: 9px 11px;
    font-size: 0.8rem;
  }
  .course-rail.all-courses {
    grid-template-columns: 1fr;
  }
  .subject-grid,
  .physics-products {
    grid-template-columns: 1fr;
  }
  .bundle-callout {
    padding: 20px;
    gap: 12px;
  }
  .bundle-callout > div {
    flex-basis: 100%;
  }
  .bundle-callout > .button {
    margin-left: auto;
  }
  .teacher-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .teacher-photo {
    max-width: 270px;
  }
  .teacher-actions {
    gap: 12px;
  }
  .connection {
    padding-bottom: 30px;
  }
}

.bundle-callout > div {
  min-width: 0;
}

/* Compact catalog: covers identify products; copy and price remain real text. */
.catalog-intro {
  padding: 28px 0 12px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.catalog-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 4px 0;
}
.catalog-intro p {
  margin: 4px 0;
  color: var(--muted);
}
.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 24px 0;
}
.category-tiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  font-size: 14px;
  text-align: center;
}
.category-tiles a:hover {
  border-color: var(--purple);
  background: #f7f2ff;
}
.category-tiles img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.shop-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
}
.cover-link {
  padding: 12px;
  border: 0;
  background: #faf8ff;
  width: 100%;
  display: block;
}
.cover-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
}
.shop-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-kicker {
  color: #6736a1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.shop-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 5px 0 6px;
}
.shop-card h3 button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font: inherit;
}
.card-summary {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--muted);
}
.card-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-top: auto;
}
.card-price strong {
  font-size: 23px;
  color: #5820b0;
}
.card-price s {
  font-size: 14px;
  color: #746a80;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}
.card-actions .button {
  flex: 1;
  padding: 9px 8px;
  font-size: 14px;
  min-height: 44px;
}
.save-course {
  border: 1px solid var(--border);
  background: white;
  border-radius: 11px;
  min-width: 44px;
  font-size: 24px;
  line-height: 1;
}
.save-course[aria-pressed="true"] {
  color: #a80058;
  background: #fff0f7;
}
.compact-section {
  padding: 44px 0;
  scroll-margin-top: 96px;
}
.compact-section:nth-of-type(2n) {
  background: #f8f6fb;
}
.compact-section .section-heading {
  margin-bottom: 24px;
}
.catalog-package {
  background: #f0e8ff;
  border-top: 1px solid #e3d6f7;
}
.catalog-meta {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
}
.catalog-state {
  min-height: 48px;
}
.finder-callout {
  background: #e5ff66;
  border-radius: 22px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px auto 32px;
}
.finder-callout h2 {
  font-size: 26px;
  margin: 0 0 6px;
}
.finder-callout p {
  margin: 0;
  font-size: 16px;
}
.product-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin: 20px 0;
}
.product-detail img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.fine {
  font-size: 14px;
  color: var(--muted);
}
.match-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.match-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.match-form .button {
  grid-column: 1/-1;
}
.match-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 22px 0;
}
.match-reason {
  padding: 10px;
  background: #f2edff;
  border-radius: 8px;
  font-size: 14px;
  color: #4e2881;
}
.match-scope {
  border-left: 4px solid #7f48cd;
  padding: 10px 14px;
  background: #f5efff;
}
.coverage {
  background: #f9f7fc;
  padding: 20px;
  border-radius: 14px;
  margin: 20px 0;
}
.coverage summary {
  cursor: pointer;
  min-height: 44px;
}
.coverage a {
  overflow-wrap: anywhere;
}
.coupon-code {
  font-size: 32px;
  font-weight: 600;
  color: var(--purple);
}
.preview-buy {
  font-size: 14px;
  padding: 10px;
  background: #eee;
  border-radius: 8px;
  display: inline-block;
}
.hero {
  padding-top: 36px;
  padding-bottom: 40px;
  min-height: 0;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
}
.hero-portrait {
  max-width: 320px;
  justify-self: center;
}
.hero-portrait img {
  max-height: 340px;
  object-fit: cover;
}
.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 850px) {
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .match-results {
    grid-template-columns: 1fr 1fr;
  }
  .finder-callout {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero-portrait {
    max-width: 210px;
  }
  .hero-portrait img {
    max-height: 220px;
  }
  .category-tiles {
    gap: 8px;
    overflow: auto;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    padding: 18px 0;
  }
  .category-tiles img {
    width: 58px;
    height: 58px;
  }
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cover-link {
    padding: 7px;
  }
  .shop-card-body {
    padding: 11px;
  }
  .shop-card h3 {
    font-size: 16px;
  }
  .card-price strong {
    font-size: 21px;
  }
  .card-summary {
    font-size: 14px;
  }
  .card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .card-actions .button {
    font-size: 14px;
    min-width: 0;
    white-space: normal;
  }
  .card-kicker {
    font-size: 12px;
  }
  .save-course {
    min-width: 36px;
    min-height: 44px;
  }
  .compact-section {
    padding: 30px 0;
  }
  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .finder-callout {
    display: block;
    border-radius: 18px;
  }
  .finder-callout .button {
    margin-top: 16px;
    width: 100%;
  }
  .match-form,
  .match-results,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .match-results .shop-card {
    display: grid;
    grid-template-columns: 115px 1fr;
  }
  .match-results .cover-link {
    align-self: start;
  }
  .product-detail {
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.shop-card .card-price {
  padding: 0;
  margin: 0;
  margin-top: auto;
}
