/* بناء جيل — الهوية البصرية والتصميم الأساسي (الإصدار 3 — تعديلات المالك) */
@font-face {
  font-family: 'Amiri';
  src: url('assets/fonts/Amiri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('assets/fonts/Amiri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('assets/fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('assets/fonts/NotoNaskhArabic-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('assets/fonts/NotoNaskhArabic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root, [data-theme="light"] {
  --paper: #F6EFE2;
  --sand: #F1E6D2;
  --sand-deep: #E7D6BA;
  --surface: #FAF6EE;
  --ink: #2B2118;
  --muted: #6B5A45;
  --accent: #9C5B2E;
  --accent-hover: #824921;
  --accent-soft: #9C5B2E18;
  --on-accent: #FFFFFF;
  --sunrise: #F2B544;
  --sunrise-soft: #F2B54428;
  --sky: #2F6FA8;
  --on-sky: #FFFFFF;
  --olive: #5E744B;
  --olive-hover: #4C5F3C;
  --olive-glow: rgba(94, 116, 75, 0.34);
  --olive-soft: #6B7F5A22;
  --gold: #B8863B;
  --hairline: #2B211822;
  --scrim: #1A120BD9;
  --scrim-soft: #1A120B73;
  --on-image: #FFF8EC;
  --whatsapp: #1E7E45;
  --whatsapp-hover: #166335;
  --shadow-sm: 0 4px 14px rgba(43, 33, 24, 0.07);
  --shadow-md: 0 12px 32px rgba(43, 33, 24, 0.12);
  --shadow-lg: 0 20px 48px rgba(43, 33, 24, 0.18);
}

[data-theme="dark"] {
  --paper: #1F1812;
  --sand: #2B2118;
  --sand-deep: #382B20;
  --surface: #251C15;
  --ink: #F6EFE2;
  --muted: #C9B9A0;
  --accent: #E3A573;
  --accent-hover: #EEB88B;
  --accent-soft: #E3A57322;
  --on-accent: #1F1812;
  --sunrise: #F2B544;
  --sunrise-soft: #F2B54424;
  --sky: #8FBFE8;
  --on-sky: #1F1812;
  --olive: #829D6B;
  --olive-hover: #94B07C;
  --olive-glow: rgba(130, 157, 107, 0.38);
  --olive-soft: #A9BE9624;
  --gold: #E0B15C;
  --hairline: #F6EFE222;
  --scrim: #1A120BE6;
  --scrim-soft: #1A120B8C;
  --on-image: #FFF8EC;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5A;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.56);
}

:root {
  --font-head: 'Amiri', 'Noto Naskh Arabic', serif;
  --font-body: 'Noto Naskh Arabic', 'Amiri', serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --container-max: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 999;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-head);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 48px;
  width: auto;
  min-width: 142px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle,
.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
  transform: scale(1.05);
  background: var(--sand-deep);
}

.mobile-menu-toggle {
  display: none;
  border-radius: var(--radius-sm);
}

.mobile-nav-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 2px solid var(--hairline);
  padding: 1rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
  background: var(--sand);
}

.mobile-nav-list a:hover {
  background: var(--sand-deep);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Order Button: Illuminated Olive (زيتي منير) */
.btn-olive {
  background-color: var(--olive);
  color: #FFFFFF;
  box-shadow: 0 6px 20px var(--olive-glow);
}

.btn-olive:hover {
  background-color: var(--olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--olive-glow);
}

/* Base / Sample Button: Site Primary Brown (اللون العادي الأساسي للموقع) */
.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.34);
}

.btn-whatsapp:hover {
  background-color: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-sand {
  background-color: var(--sand);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-sand:hover {
  background-color: var(--sand-deep);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.08rem;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-pill);
  background-color: var(--sand);
  border: 1px solid var(--hairline);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.badge-olive {
  background-color: var(--olive-soft);
  color: var(--olive);
  border-color: transparent;
}

.badge-sunrise {
  background-color: var(--sunrise-soft);
  color: var(--ink);
  border-color: var(--sunrise);
}

/* Hero Section */
.hero-section {
  padding: 3.25rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-sunrise-glow {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sunrise);
  opacity: 0.12;
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-quote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--accent);
  background: var(--sand);
  padding: 0.55rem 1.1rem;
  border-right: 4px solid var(--sunrise);
  border-radius: var(--radius-sm);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.25rem 0;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-showcase-card {
  background: var(--sand);
  border: 2px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.video-wrapper {
  position: relative;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: #1A120B;
  aspect-ratio: 4 / 5;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.5rem 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

/* Section Generic */
.section {
  padding: 4.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.section-alt {
  background-color: var(--sand);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin: 0.55rem 0 0.7rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Inside a Book Anatomy — Always 1 horizontal row of 4 cards on all screen sizes */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.4vw, 1.2rem);
}

.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: clamp(8px, 1.5vw, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: right;
  width: 100%;
  min-width: 0;
}

.anatomy-card:hover,
.anatomy-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.anatomy-img-wrap {
  aspect-ratio: 3 / 4;
  background: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  width: 100%;
}

.anatomy-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(0.15rem, 0.5vw, 0.45rem);
  transition: transform 0.35s ease;
}

.anatomy-card:hover .anatomy-img-wrap img {
  transform: scale(1.03);
}

.anatomy-step-badge {
  position: absolute;
  top: clamp(0.25rem, 0.7vw, 0.6rem);
  right: clamp(0.25rem, 0.7vw, 0.6rem);
  background: var(--olive);
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(0.5rem, 1.05vw, 0.78rem);
  padding: clamp(0.1rem, 0.3vw, 0.2rem) clamp(0.3rem, 0.7vw, 0.65rem);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.anatomy-body {
  padding: clamp(0.4rem, 1.2vw, 1.1rem);
}

.anatomy-body h3 {
  font-size: clamp(0.68rem, 1.4vw, 1.15rem);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.anatomy-body p {
  font-size: clamp(0.56rem, 1.05vw, 0.9rem);
  line-height: 1.4;
  color: var(--muted);
}

/* Practical Parent Guide Box — Always 1 horizontal row of 3 steps */
.parent-guide-box {
  margin-top: 2rem;
  background: var(--sand);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.parent-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.4vw, 1.25rem);
  margin-top: 1.1rem;
}

.parent-step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: clamp(8px, 1.5vw, 20px);
  padding: clamp(0.5rem, 1.4vw, 1.25rem);
  min-width: 0;
}

.parent-step-num {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: clamp(0.52rem, 1vw, 0.82rem);
  padding: clamp(0.1rem, 0.3vw, 0.15rem) clamp(0.32rem, 0.8vw, 0.65rem);
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
}

.parent-step-card h4 {
  font-size: clamp(0.68rem, 1.35vw, 1.15rem) !important;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.parent-step-card p {
  font-size: clamp(0.54rem, 1.05vw, 0.9rem) !important;
  line-height: 1.4;
}

/* Books Catalog Grid — Strictly 2 compact rows (5x2) on ALL screen sizes */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.32rem, 1.1vw, 1rem);
}

.book-card {
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: clamp(8px, 1.4vw, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  cursor: pointer;
  text-align: right;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.book-card:hover,
.book-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.book-card.selected-in-bundle {
  border: 2px solid var(--olive);
  box-shadow: 0 0 0 2px var(--olive-soft);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 595 / 842;
  background: var(--sand);
  overflow: hidden;
  width: 100%;
  display: block;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.03);
}

.book-num-tag {
  position: absolute;
  top: clamp(0.2rem, 0.6vw, 0.5rem);
  right: clamp(0.2rem, 0.6vw, 0.5rem);
  background: var(--scrim);
  color: var(--on-image);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.5rem, 0.95vw, 0.78rem);
  padding: clamp(0.08rem, 0.25vw, 0.16rem) clamp(0.28rem, 0.6vw, 0.55rem);
  border-radius: var(--radius-pill);
}

.book-body {
  padding: clamp(0.35rem, 0.95vw, 0.85rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(0.18rem, 0.45vw, 0.4rem);
  width: 100%;
}

.book-title {
  font-size: clamp(0.6rem, 1.25vw, 1.02rem);
  line-height: 1.25;
  color: var(--ink);
}

.book-hook {
  font-size: clamp(0.5rem, 0.92vw, 0.8rem);
  line-height: 1.32;
  color: var(--muted);
  font-weight: 600;
}

/* Book Intro Card inside Modal */
.book-intro-card {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.book-intro-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}

.book-intro-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.book-intro-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.book-intro-hook {
  background: var(--sand);
  border-right: 3px solid var(--sunrise);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.book-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 640px) {
  .book-intro-card {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .book-intro-cover {
    max-width: 170px;
    margin: 0 auto;
  }
}

/* Pricing & Interactive Bundle Builder — Always 2 rows (2x2) on all screen sizes */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1.15rem);
  max-width: 820px;
  margin: 0 auto 2rem;
}

.tier-card {
  background: var(--surface);
  border: 2px solid var(--hairline);
  border-radius: clamp(8px, 1.5vw, 20px);
  padding: clamp(0.42rem, 1.4vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.28rem, 0.8vw, 0.7rem);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-align: right;
  min-width: 0;
}

.tier-card:hover {
  transform: translateY(-3px);
  border-color: var(--olive);
}

.tier-card.active {
  border-color: var(--olive);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--olive-soft), var(--shadow-md);
}

.tier-card.featured {
  border-color: var(--gold);
}

.tier-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: clamp(6px, 1vw, 12px);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--hairline);
}

.tier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tier-ribbon {
  position: absolute;
  top: clamp(-9px, -1vw, -12px);
  left: clamp(0.25rem, 1vw, 1rem);
  background: var(--olive);
  color: #FFFFFF;
  font-size: clamp(0.46rem, 0.9vw, 0.78rem);
  font-weight: 700;
  padding: clamp(0.08rem, 0.25vw, 0.18rem) clamp(0.3rem, 0.8vw, 0.8rem);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tier-name {
  font-size: clamp(0.66rem, 1.45vw, 1.3rem);
  line-height: 1.2;
  color: var(--ink);
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.tier-price {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.tier-currency {
  font-size: clamp(0.54rem, 1.05vw, 0.95rem);
  font-weight: 700;
  color: var(--muted);
}

.tier-per-book {
  font-size: clamp(0.5rem, 0.95vw, 0.85rem);
  line-height: 1.3;
  color: var(--olive);
  font-weight: 700;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.4vw, 0.35rem);
  font-size: clamp(0.48rem, 0.92vw, 0.86rem);
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: auto;
}

.tier-card .btn {
  padding: clamp(0.28rem, 0.65vw, 0.48rem) clamp(0.3rem, 0.9vw, 1.1rem);
  font-size: clamp(0.52rem, 0.95vw, 0.88rem);
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

/* Interactive Order Builder Box */
.order-builder-box {
  background: var(--surface);
  border: 2px solid var(--olive);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.builder-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.selection-counter {
  background: var(--sand);
  border: 1px solid var(--hairline);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
}

.book-selector-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.selector-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  text-align: right;
  width: 100%;
}

.selector-item:hover {
  border-color: var(--olive);
}

.selector-item.checked {
  border-color: var(--olive);
  background: var(--olive-soft);
  font-weight: 700;
}

.selector-item img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.selector-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  font-size: 0.8rem;
  color: transparent;
  flex-shrink: 0;
}

.selector-item.checked .selector-check {
  background: var(--olive);
  border-color: var(--olive);
  color: #FFFFFF;
}

/* Pay What You Can Toggle */
.pwyc-banner {
  background: var(--sand);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pwyc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pwyc-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pwyc-input-wrap {
  display: none;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--hairline);
}

.pwyc-input-wrap.visible {
  display: flex;
}

.pwyc-input {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: var(--surface);
  font-size: 1rem;
  width: 210px;
}

/* Numbered Steps for Ordering & Payment */
.order-steps-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.order-step-item {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-step-item strong {
  color: var(--accent);
  font-size: 0.92rem;
}

.order-step-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Checkout Summary & Payment Info */
.checkout-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--paper);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.payment-method-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vodafone-number-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.vodafone-num {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  direction: ltr;
}

.checkout-cta-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* FAQ Section */
/* Compact Single-Dropdown FAQ Wrapper */
.faq-dropdown-shell {
  max-width: 860px;
  margin: 0 auto;
  background: var(--sand);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-dropdown-trigger {
  width: 100%;
  padding: 1rem 1.35rem;
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-dropdown-trigger:hover {
  background: var(--sand);
  color: var(--accent);
}

.faq-dropdown-arrow {
  font-size: 0.95rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-dropdown-shell.open .faq-dropdown-arrow {
  transform: rotate(180deg);
}

.faq-dropdown-panel {
  display: none;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--hairline);
}

.faq-dropdown-shell.open .faq-dropdown-panel {
  display: block;
}

.faq-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.faq-tab {
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.faq-tab.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: right;
  padding: 0.65rem 0.95rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.05rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0.5rem 0.95rem 0.7rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
  border-top: 1px solid var(--hairline);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Modal (Sample Viewer & Book Details) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 93vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.35rem;
  background: var(--sand);
  border-bottom: 1px solid var(--hairline);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.15rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

/* Book Switcher Bar inside Modal (so viewer works for ALL 10 books) */
.modal-book-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}

.modal-book-pill {
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.modal-book-pill:hover {
  border-color: var(--accent);
}

.modal-book-pill.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.sample-viewer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.sample-page-frame {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  max-height: 58vh;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.sample-page-frame img {
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.sample-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stories-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.stories-table th,
.stories-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
  text-align: right;
}

.stories-table th {
  background: var(--sand);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--sand);
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.footer-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.footer-icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-vodafone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Floating WhatsApp Button — Icon Only Circular Button */
.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-wa:hover {
  transform: scale(1.08);
  background: #1EBE5A;
}

.floating-wa svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal tabs + helpers */
.modal-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.only-m { display: none; }

.sample-page-frame { position: relative; touch-action: pan-y; }

/* Sticky order bar (mobile only) */
.sticky-order-bar { display: none; }

.hero-grid > *,
.checkout-footer > *,
.builder-header > * { min-width: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.75rem;
  }
  .order-steps-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 66px; }

  .container { padding: 0 1rem; }

  .nav-links,
  .header-cta-desktop { display: none; }

  .mobile-menu-toggle { display: inline-flex; }

  .header-inner { min-height: 58px; }

  .brand-logo img { height: 40px; min-width: 0; }

  .theme-toggle,
  .mobile-menu-toggle { width: 44px; height: 44px; }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    min-height: 44px;
  }

  .btn-sm { min-height: 40px; }

  /* Hero */
  .hero-section { padding: 1.25rem 0 1.75rem; }

  /* Title and video share the first row; the rest runs full width below */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 43%;
    grid-template-areas:
      "badge badge"
      "title video"
      "sub sub"
      "quote quote"
      "cta cta";
    gap: 0.8rem 0.75rem;
    align-items: center;
  }

  .hero-content { display: contents; }

  .hero-content > .badge-pill {
    grid-area: badge;
    justify-self: start;
    font-size: 0.76rem;
    padding: 0.25rem 0.7rem;
  }

  .hero-title { grid-area: title; font-size: 1.5rem; line-height: 1.45; }

  .hero-subtitle { grid-area: sub; }

  .hero-quote { grid-area: quote; }

  .hero-cta-group { grid-area: cta; }

  .hero-visual { grid-area: video; }

  .hero-subtitle { font-size: 0.98rem; line-height: 1.7; }

  .hero-quote { font-size: 1rem; padding: 0.5rem 0.85rem; }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin: 0;
  }

  .hero-cta-group .btn { width: 100%; font-size: 1rem; padding: 0.75rem 1rem; }


  .video-showcase-card {
    padding: 0.35rem;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }

  .video-wrapper { border-radius: 13px; }

  .video-caption-bar {
    flex-direction: column;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 0.35rem 0.1rem 0.1rem;
    gap: 0;
  }

  /* Sections */
  .section { padding: 2.25rem 0; }

  .section-header { margin-bottom: 1.15rem; }

  .section-header .badge-pill { font-size: 0.78rem; }

  .section-title { font-size: 1.55rem; margin: 0.4rem 0 0.4rem; }

  .section-desc { font-size: 0.93rem; line-height: 1.65; }

  /* Swipeable rows: readable cards without adding page length */
  .anatomy-grid,
  .parent-steps-grid,
  .books-grid {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    margin-inline: -1rem;
    padding: 0.25rem 1rem 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .anatomy-grid::-webkit-scrollbar,
  .parent-steps-grid::-webkit-scrollbar,
  .books-grid::-webkit-scrollbar,
  .modal-book-switcher::-webkit-scrollbar { display: none; }

  .anatomy-grid > *,
  .parent-steps-grid > *,
  .books-grid > * { scroll-snap-align: start; flex-shrink: 0; }

  .anatomy-card { flex-basis: 52%; border-radius: 14px; }

  .anatomy-card:hover,
  .book-card:hover,
  .tier-card:hover { transform: none; }

  .anatomy-step-badge { font-size: 0.7rem; top: 0.4rem; right: 0.4rem; padding: 0.12rem 0.55rem; }

  .anatomy-body { padding: 0.6rem 0.7rem 0.7rem; }

  .anatomy-body h3 { font-size: 0.98rem; }

  .anatomy-body p { font-size: 0.8rem; line-height: 1.5; }

  .parent-guide-box { margin-top: 1.25rem; padding: 1rem; border-radius: 20px; }

  .parent-guide-box > h3 { font-size: 1.2rem !important; }

  .parent-guide-box > p { font-size: 0.88rem !important; }

  .parent-steps-grid { margin-top: 0.7rem; padding-bottom: 0.2rem; }

  .parent-step-card { flex-basis: 82%; border-radius: 14px; padding: 0.8rem 0.9rem; }

  .parent-step-num { font-size: 0.74rem; padding: 0.12rem 0.6rem; }

  .parent-step-card h4 { font-size: 1.02rem !important; }

  .parent-step-card p { font-size: 0.84rem !important; line-height: 1.6; }

  .book-card { flex-basis: 39%; border-radius: 12px; }

  .book-num-tag { font-size: 0.72rem; top: 0.35rem; right: 0.35rem; padding: 0.1rem 0.5rem; }

  .book-body { padding: 0.5rem 0.55rem 0.6rem; gap: 0.2rem; }

  .book-title { font-size: 0.92rem; }

  .book-hook { font-size: 0.74rem; line-height: 1.45; }

  /* Pricing 2x2 */
  .pricing-cards-grid { gap: 0.6rem; margin-bottom: 1.25rem; }

  .tier-card { padding: 0.55rem; gap: 0.3rem; border-radius: 14px; }

  .tier-thumb { border-radius: 9px; }

  .tier-ribbon { font-size: 0.66rem; top: -10px; left: 0.5rem; padding: 0.1rem 0.55rem; }

  .tier-name { font-size: 0.98rem; }

  .tier-price { font-size: 1.6rem; }

  .tier-currency { font-size: 0.8rem; }

  .tier-features { font-size: 0.74rem; }

  .tier-card .btn { display: none; }

  .tier-card.active::after {
    content: "✓";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--olive);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Order builder */
  .order-builder-box { padding: 1rem; border-radius: 20px; box-shadow: var(--shadow-md); }

  .builder-header { gap: 0.6rem; margin-bottom: 0.85rem; padding-bottom: 0.75rem; }

  .builder-header h3 { font-size: 1.15rem !important; }

  #builder-dynamic-hint { font-size: 0.84rem !important; }

  .selection-counter { font-size: 0.8rem; padding: 0.3rem 0.7rem; flex: 1 1 100%; text-align: center; }

  .builder-header .btn { flex: 1; }

  #free-upgrade-banner { padding: 0.75rem !important; }

  #free-upgrade-banner .btn { width: 100%; }

  .book-selector-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin-bottom: 1rem; }

  .selector-item { position: relative; gap: 0.5rem; padding: 0.45rem 0.5rem; min-height: 56px; }

  .selector-item > div { min-width: 0; }

  .selector-item > div > div:first-child { font-size: 0.86rem !important; line-height: 1.35; }

  .selector-item > div > div:last-child { font-size: 0.7rem !important; white-space: nowrap; }

  .selector-item img { width: 30px; height: 42px; }

  .selector-check {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border-width: 1.5px;
    font-size: 0.66rem;
    margin: 0;
    background: var(--surface);
  }

  .pwyc-banner { padding: 0.85rem; margin-bottom: 1rem; }

  .pwyc-title { font-size: 1.05rem; }

  .pwyc-input { width: 100%; font-size: 16px; }

  /* Steps: compact list instead of four stacked boxes */
  .order-steps-bar { grid-template-columns: 1fr; gap: 0; margin-bottom: 1rem; }

  .order-step-item {
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--hairline);
    border-radius: 0;
    padding: 0.5rem 0;
    gap: 0.1rem;
  }

  .order-step-item:last-child { border-bottom: 0; }

  .order-step-item span { font-size: 0.82rem; line-height: 1.55; }

  .checkout-footer { grid-template-columns: 1fr; gap: 1rem; padding: 0.9rem; }

  .vodafone-number-bar { width: 100%; justify-content: space-between; }

  .vodafone-number-bar .btn { white-space: nowrap; }

  .vodafone-num { font-size: 1.25rem; }

  #summary-package-name { text-align: left; font-size: 0.9rem !important; }

  /* FAQ */
  .faq-dropdown-trigger { font-size: 1rem; padding: 0.85rem 1rem; }

  .faq-tab { min-height: 36px; }

  .faq-question { min-height: 46px; }

  /* Footer */
  .site-footer { padding: 1.75rem 0 5.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

  .footer-bottom { gap: 0.3rem; padding-top: 1rem; font-size: 0.82rem; }

  /* Modal becomes a full-screen sheet */
  .modal-backdrop { padding: 0; }

  .modal-dialog {
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .modal-header { padding: 0.6rem 1rem; gap: 0.75rem; }

  .modal-header h3 { font-size: 1rem !important; line-height: 1.4; }

  .modal-close { width: 44px; height: 44px; flex-shrink: 0; }

  .modal-body { padding: 0.75rem 1rem 1rem; }

  .modal-book-switcher {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -1rem;
    padding: 0 1rem 0.6rem;
    margin-bottom: 0.65rem;
  }

  .modal-book-pill { flex-shrink: 0; min-height: 36px; font-size: 0.84rem; }

  .modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .modal-tabs .btn { padding: 0.35rem 0.3rem; font-size: 0.82rem; }

  .hide-m { display: none; }

  .only-m { display: inline; }

  .sample-viewer-stage { gap: 0.6rem; }

  .sample-controls { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0.4rem; }

  .sample-controls .badge-pill { font-size: 0.78rem; padding: 0.3rem 0.6rem; white-space: nowrap; }

  .sample-page-frame { max-height: none; padding: 0.3rem; border-radius: 14px; }

  .sample-page-frame img {
    max-height: calc(100vh - 275px);
    max-height: calc(100dvh - 275px);
  }

  .book-intro-actions .btn { flex: 1 1 100%; }

  .book-intro-actions .btn-sand,
  .book-intro-actions .btn-primary { flex: 1 1 45%; }

  .stories-table { font-size: 0.84rem; }

  .stories-table th,
  .stories-table td { padding: 0.45rem 0.35rem; vertical-align: top; }

  .stories-table .badge-pill { font-size: 0.74rem !important; padding: 0.2rem 0.55rem; }

  /* Sticky order bar */
  .sticky-order-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -8px 24px rgba(43, 33, 24, 0.14);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  .sticky-order-bar.show { transform: none; visibility: visible; }

  .sticky-order-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }

  .sticky-order-info span {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-order-info strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--accent); }

  .sticky-order-bar .btn { flex-shrink: 0; padding: 0.55rem 1.25rem; white-space: nowrap; }

  .floating-wa {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    left: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .floating-wa svg { width: 26px; height: 26px; }

  body.has-order-bar .floating-wa { transform: translateY(-4.4rem); opacity: 1; visibility: visible; }

  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 5rem;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.32rem; }
  .book-card { flex-basis: 42%; }
  .anatomy-card { flex-basis: 58%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
