:root {
  --ink: #16212b;
  --muted: #5f6972;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e7ddcf;
  --teal: #0e7774;
  --blue: #2878b9;
  --coral: #e95f47;
  --green: #4d8d57;
  --amber: #f4b545;
  --shadow: 0 24px 60px rgba(22, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
.thumb,
.tab,
summary {
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover,
.buy-action:hover,
.cart-action:hover,
.dictionary-link:hover,
.mobile-buy a:hover,
.thumb:hover,
.tab:hover {
  transform: translateY(-2px);
}

.header-action:active,
.primary-action:active,
.secondary-action:active,
.buy-action:active,
.cart-action:active,
.dictionary-link:active,
.mobile-buy a:active,
.thumb:active,
.tab:active {
  transform: translateY(0) scale(0.98);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(231, 221, 207, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 44px;
  height: auto;
}

.top-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.95rem;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--ink);
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.header-action,
.primary-action,
.secondary-action,
.buy-action,
.cart-action,
.dictionary-link,
.mobile-buy button,
.mobile-buy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action {
  min-width: 118px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.hidden {
  display: none !important;
}

.cart-section {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.cart-menu {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 40;
  width: min(420px, calc(100vw - 32px));
}

.cart-anchor {
  position: relative;
  width: 100%;
  height: 24px;
}

.cart-section .square {
  position: absolute;
  top: -12px;
  right: 5px;
  z-index: 1;
  color: #999;
  font-size: 22px;
}

.cart-section .cart-count {
  position: absolute;
  right: -3px;
  bottom: 8px;
  padding: 2px 5px;
  border-radius: 100%;
  color: #fff;
  background: #2878b9;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.cart-menu-div {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(22, 33, 43, 0.16);
}

.cart-menu-content {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center !important;
  z-index: 10;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.cart-menu-content.hidden,
.cart-menu-inner-div.hidden {
  display: none !important;
}

.cart-menu-content:last-child {
  border-bottom: 0;
}

.cart-item {
  display: grid !important;
}

.cart-menu-items {
  max-height: 320px;
  overflow: auto;
}

.cart-section .thumb {
  width: 72px;
  height: 72px;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-section p {
  margin: 0;
  text-align: left;
}

.cart-section p.title {
  width: auto !important;
  max-width: none !important;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cart-section p.qty {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.cart-section p.title.empty {
  max-width: 210px;
}

.cart-section p.price {
  color: var(--coral);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.cart-section p.old-price {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}


.btnRemove {
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #6f7882;
  border-radius: 8px;
  justify-self: end;
  font-size: 18px;
  line-height: 1;
}

.btnRemove:hover {
  background: #fff4ef;
}

.btnRemove i {
  margin: 0;
  color: #6f7882;
  font-size: 18px;
}

.cart-section > i {
  margin-left: 0;
  color: #6f7882;
}

.cart-section i.fa-shopping-cart {
  font-size: 30px;
}

.view-cart-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--teal);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.view-cart-link:hover {
  color: #fff;
  background: #0b6966;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.78fr) minmax(292px, 360px);
  gap: clamp(22px, 3.6vw, 46px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(32px, 5vw, 70px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 84px);
  background:
    linear-gradient(135deg, rgba(14, 119, 116, 0.12), transparent 34%),
    linear-gradient(45deg, rgba(244, 181, 69, 0.16), transparent 42%),
    var(--paper);
}

.hero-copy {
  max-width: 650px;
}

.hero-copy > *,
.product-gallery,
.purchase-panel {
  animation: heroRise 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0.04s;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.2s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.36s;
}

.hero-copy > :nth-child(6) {
  animation-delay: 0.44s;
}

.product-gallery {
  animation-delay: 0.24s;
}

.purchase-panel {
  animation-delay: 0.36s;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.55vw, 4.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  line-height: 1.35;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-proof {
  margin-top: 22px;
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.hero-proof span {
  display: block;
  font-size: 0.92rem;
}

.avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 33, 43, 0.12);
}

.avatar + .avatar {
  margin-left: -12px;
}

.avatar.teal {
  background: var(--teal);
}

.avatar.coral {
  background: var(--coral);
}

.avatar.blue {
  background: var(--blue);
}

.avatar.green {
  background: var(--green);
}

.avatar-stack.small .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
  box-shadow: none;
}

.avatar-stack.small .avatar + .avatar {
  margin-left: -9px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
  margin: 22px 0;
}

.hero-stats span {
  min-width: 0;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.buy-action,
.cart-action,
.mobile-purchase-action,
.mobile-buy a {
  color: #fff;
  background: var(--coral);
  border: 0;
  box-shadow: 0 14px 26px rgba(233, 95, 71, 0.22);
}

.primary-action,
.secondary-action {
  min-width: 150px;
  padding: 0 22px;
}

.secondary-action {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.product-gallery {
  min-width: 0;
}

.gallery-stage {
  display: grid;
  height: clamp(390px, 50vw, 580px);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(40, 120, 185, 0.13), rgba(255, 255, 255, 0.84)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition:
    opacity 0.24s ease,
    transform 0.34s ease;
  will-change: opacity, transform;
}

.gallery-stage img.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  height: 94px;
  padding: 6px;
  cursor: pointer;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
}

.thumb.is-active {
  border-color: var(--teal);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purchase-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.purchase-panel.is-attention {
  animation: panelCue 1.15s ease both;
}

.panel-label,
.microcopy,
.fulfilment {
  margin: 0;
  color: var(--muted);
}

.panel-label {
  font-size: 0.88rem;
  font-weight: 800;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.price {
  color: var(--coral);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1.1;
}

.price.is-attention {
  animation: pricePop 0.72s ease both;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.save {
  padding: 3px 8px;
  color: #75510a;
  background: #ffe5a6;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.deal-timer,
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.deal-timer + .quantity-control {
  border-top: 0;
}

.deal-timer span,
.quantity-control span {
  color: var(--muted);
}

.deal-timer strong {
  color: var(--teal);
  font-size: 1.35rem;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 54px 42px;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepper button {
  height: 42px;
  cursor: pointer;
  background: #fff8ed;
  border: 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.stepper output {
  text-align: center;
  font-weight: 900;
}

.cart-action,
.buy-action {
  width: 100%;
  min-height: 50px;
  font: inherit;
  cursor: pointer;
}

.cart-action {
  background: var(--teal);
  box-shadow: 0 14px 26px rgba(14, 119, 116, 0.18);
}

.fulfilment {
  font-size: 0.9rem;
  text-align: center;
}

section:not(.hero) {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.reason-band {
  background: #fff;
}

.reason-grid,
.bundle-grid,
.feature-list,
.learning-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reason-card,
.bundle-item,
.feature-list article,
.flow-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-dot {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.icon-dot.blue {
  background: var(--blue);
}

.icon-dot.coral {
  background: var(--coral);
}

.icon-dot.green {
  background: var(--green);
}

.reason-card p,
.bundle-item p,
.app-copy p,
.platform-points p,
.flow-card p,
.feature-list p,
.tab-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  overflow: hidden;
  background: #f3fbf9;
}

.app-copy {
  max-width: 580px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.store-row > img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(22, 33, 43, 0.12);
}

.store-row a img {
  width: 142px;
  height: auto;
}

.platform-overview-section {
  background: #f3fbf9;
}

.platform-overview-section .platform-card {
  max-width: 1320px;
  margin: 0 auto;
}

.platform-card {
  grid-column: 1 / -1;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.platform-card > img {
  width: 100%;
  aspect-ratio: 1957 / 332;
  object-fit: cover;
  background: #e9f6f4;
  border-bottom: 1px solid var(--line);
}

.platform-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.platform-points article {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.app-screen-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 210px));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--teal) rgba(14, 119, 116, 0.12);
  scrollbar-width: thin;
  touch-action: pan-x;
}

.app-screen-rail::-webkit-scrollbar {
  height: 10px;
}

.app-screen-rail::-webkit-scrollbar-track {
  background: rgba(14, 119, 116, 0.12);
  border-radius: 999px;
}

.app-screen-rail::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 999px;
}

.app-screen-rail figure {
  margin: 0;
  min-width: 0;
  scroll-snap-align: center;
  transition: transform 0.26s ease;
}

.app-screen-rail figure:hover {
  transform: translateY(-6px);
}

.app-screen-rail img {
  width: 100%;
  aspect-ratio: 600 / 1299;
  object-fit: cover;
  object-position: top;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(22, 33, 43, 0.12);
}

.app-screen-rail figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.bundle-section {
  background: #f3fbf9;
}

.learning-flow-section {
  background: #fff;
}

.learning-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.flow-card.wide {
  grid-column: auto;
}

.flow-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  padding: 10px;
  background: #fffaf2;
  border-radius: 8px;
}

.bundle-item img {
  width: 100%;
  height: 210px;
  margin-bottom: 18px;
  object-fit: contain;
  background: #fffaf2;
  border-radius: 8px;
}

.book-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  background: #fff;
}

.chapter-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.chapter-list li {
  position: relative;
  padding: 12px 14px 12px 48px;
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: chapter;
}

.chapter-list li::before {
  position: absolute;
  left: 14px;
  top: 12px;
  content: counter(chapter);
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 24px;
}

.dictionary-link {
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
}

.book-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.book-pages img {
  width: 100%;
  aspect-ratio: 1241 / 1754;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(22, 33, 43, 0.12);
}

.feature-band {
  background: var(--ink);
  color: #fff;
}

.feature-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-list article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.feature-list p {
  color: rgba(255, 255, 255, 0.74);
}

.testimonials-section {
  background:
    linear-gradient(135deg, rgba(40, 120, 185, 0.08), transparent 36%),
    #fffaf2;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(22, 33, 43, 0.08);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-head h3,
.testimonial-head p,
.testimonial-card blockquote {
  margin: 0;
}

.testimonial-head p {
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 900;
}

.testimonial-card blockquote {
  color: var(--muted);
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.faq-list details {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  position: relative;
  min-height: 58px;
  padding: 16px 52px 16px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 18px;
  top: 17px;
  content: "+";
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  text-align: center;
  line-height: 23px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.details-section {
  background: #f7efe3;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tab-panel {
  width: 100%;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-summary {
  max-width: none;
  margin-bottom: 18px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.delivery-card {
  padding: 18px;
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.delivery-card h3 {
  margin-bottom: 8px;
}

.delivery-card p + p {
  margin-top: 12px;
}

.delivery-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

.payment-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.payment-logos img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  padding: 10px;
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-buy,
.toast {
  position: fixed;
  z-index: 30;
}

.mobile-buy {
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  grid-template-columns: minmax(88px, 0.75fr) minmax(108px, 1fr) minmax(108px, 1fr);
  gap: 10px;
  padding: 12px max(14px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(255, 253, 249, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px rgba(22, 33, 43, 0.16);
  backdrop-filter: blur(12px);
}

.mobile-buy span {
  color: var(--coral);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.mobile-buy small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
}

.mobile-buy button,
.mobile-buy a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-cart-action {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: 0 8px 18px rgba(14, 119, 116, 0.2);
}

.mobile-purchase-action {
  color: #fff;
  background: var(--coral);
  border: 0;
  box-shadow: 0 8px 18px rgba(233, 95, 71, 0.22);
}

.toast {
  right: 18px;
  bottom: 18px;
  transform: translateY(24px);
  opacity: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  pointer-events: none;
  transition: 0.24s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.62s ease,
    transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelCue {
  0%,
  100% {
    box-shadow: var(--shadow);
  }

  45% {
    box-shadow:
      0 24px 60px rgba(22, 33, 43, 0.14),
      0 0 0 6px rgba(233, 95, 71, 0.14);
  }
}

@keyframes pricePop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.045);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }

  .purchase-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 0.8fr 0.8fr;
    align-items: center;
  }

  .cart-action,
  .buy-action {
    grid-column: span 1;
  }

  .fulfilment {
    grid-column: 1 / -1;
  }

  .app-section,
  .feature-list,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    min-height: 64px;
  }

  .top-nav {
    display: none;
  }

  .header-right {
    display: inline-flex;
    align-items: center;
  }

  .header-action {
    display: none;
  }

  .cart-menu {
    top: 38px;
    right: 0;
    z-index: 60;
  }

  .cart-menu-div {
    width: 100%;
    min-width: 0;
  }

  .cart-menu-content {
    width: 100%;
  }

  .cart-section p.title {
    width: auto;
    max-width: none;
  }

  .cart-section p.title.empty {
    max-width: none;
    white-space: nowrap;
  }

  .hero,
  .app-section,
  .book-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .reason-grid,
  .bundle-grid,
  .platform-points,
  .feature-list,
  .learning-flow-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .flow-card.wide {
    grid-column: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 100%;
  }

  .hero-stats span {
    padding: 10px 6px;
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .hero-stats strong {
    font-size: clamp(1.25rem, 7vw, 1.55rem);
  }

  .app-screen-rail {
    grid-template-columns: repeat(4, minmax(230px, 64vw));
    scroll-snap-type: x mandatory;
  }

  .gallery-stage {
    height: min(540px, 112vw);
  }

  .purchase-panel {
    display: none;
  }

  .book-pages {
    overflow-x: auto;
    grid-template-columns: repeat(3, 72vw);
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .book-pages img {
    scroll-snap-align: center;
  }

  .payment-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .mobile-buy {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .thumb {
    height: 78px;
  }

  .reason-card,
  .bundle-item,
  .flow-card,
  .feature-list article,
  .testimonial-card,
  .tab-panel {
    padding: 18px;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .mobile-buy {
    grid-template-columns: 0.74fr 1fr 1fr;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-buy span {
    font-size: 20px;
  }

  .mobile-buy button,
  .mobile-buy a {
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.9rem;
  }
}
