/* Conversion pass: preserve the approved dark-first language while putting
   product evidence, price, and purchase assurance ahead of secondary detail. */
.hero-section { padding-top: 56px; }

section[id] { scroll-margin-top: 88px; }

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  gap: 56px;
  align-items: center;
}

.hero-product-preview {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.hero-product-preview .taste-stage-wrapper {
  width: min(100%, var(--preview-phone-width));
}
.hero-product-preview .taste-tabs-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  width: 100%;
}

.hero-product-preview .taste-tab-btn {
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-main);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hero-product-preview .taste-tab-btn:hover:not(:disabled) {
  border-color: var(--brand-green);
  color: var(--text-main);
}

.hero-product-preview .taste-tab-btn.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.hero-product-preview .taste-tab-btn.coming-soon-tab {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.hero-product-preview .phone-frame {
  width: 100%;
  height: var(--preview-phone-height);
  margin-top: 0;
  padding: var(--preview-phone-shell);
  border-radius: var(--preview-phone-radius);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #0f1412;
  border: 2px solid #232d28;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-product-preview .phone-screen {
  min-height: 0;
  flex: 1;
  height: auto;
  border-radius: var(--preview-screen-radius);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--bg-surface);
  overflow: hidden;
}

.hero-product-preview .phone-notch {
  width: var(--preview-notch-width);
  height: var(--preview-notch-height);
  margin: 0 auto 6px;
  background: #000;
  border-radius: 999px;
  position: relative;
  flex: none;
}

.hero-product-preview .phone-notch::after {
  right: 10px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
}

.hero-product-preview .anki-topbar {
  padding: 0 2px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
}

.hero-product-preview .anki-deck {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-product-preview .anki-nav { gap: 4px; }
.hero-product-preview .taste-counter { font-size: 11px; }
.hero-product-preview .phone-screen #tasteFlipBtn {
  min-height: var(--preview-action-control);
  margin-top: 10px;
  flex: none;
  border-radius: var(--radius-btn);
  background: var(--brand-green);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 0;
  width: 100%;
}
.hero-product-preview .phone-screen #tasteFlipBtn[hidden],
.hero-product-preview .phone-screen .anki-grades[hidden] {
  display: none !important;
}
.hero-product-preview .phone-screen .anki-grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  flex: none;
}
.hero-product-preview .phone-screen .anki-grades .anki-grade {
  min-height: var(--preview-action-control);
  border-radius: 10px;
  padding: 4px 2px;
}
.hero-product-preview .phone-screen #tastePrevBtn,
.hero-product-preview .phone-screen #tasteNextBtn {
  min-width: var(--preview-nav-control);
  min-height: var(--preview-nav-control);
  font-size: 18px;
}
.hero-product-preview .taste-paywall-teaser { display: none !important; }

/* The preview can still scroll long card content without exposing a slider rail. */
.hero-product-preview .anki-card {
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg-surface-recessed);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
}

.hero-product-preview .anki-card::-webkit-scrollbar {
  display: none;
}

.rail-row {
  grid-template-columns: 88px minmax(0, 1fr);
}

.pillars-section,
.story-section,
.pricing-section,
.faq-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.story-section { border-top: 1px solid var(--border-subtle); }
.story-section .section-title { margin-bottom: 18px; }

.secondary-detail-section {
  padding: 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.secondary-details > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}

.secondary-details > summary::-webkit-details-marker { display: none; }

.secondary-details > summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  color: var(--brand-green);
  font-size: 24px;
  line-height: 1;
}

.secondary-details[open] > summary::after { content: "-"; }
.secondary-details-body { padding: 4px 0 56px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-note {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.verification-message,
.verification-support {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.verification-message { margin: 18px 0; }
.verification-support { margin: 14px 0 0; }
#verificationRetryBtn { width: 100%; padding: 13px; }
#verifyPanel > p:first-child { display: none; }

.purchase-facts {
  display: grid;
  gap: 0;
  margin: 18px 0 4px;
  border-top: 1px solid var(--border-subtle);
}

.purchase-facts > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.purchase-facts dt {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-facts dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .purchase-facts > div { grid-template-columns: 88px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-product-preview {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-section { padding-top: 36px; }
  .hero-grid { gap: 22px; }
  .hero-product-preview .taste-stage-wrapper,
  .hero-product-preview .phone-frame { width: min(100%, var(--preview-phone-compact-width)); }
  .hero-product-preview .phone-frame { height: var(--preview-phone-compact-height); }

  .pillars-section,
  .story-section,
  .pricing-section,
  .faq-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}




.checkout-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg-page);
}

.checkout-screen[hidden] { display: none; }

.checkout-screen-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border-main);
}

.checkout-screen-header > strong { color: var(--text-main); }
.checkout-screen-header > span { justify-self: end; color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; }
.checkout-screen-back { justify-self: start; border: 0; background: transparent; color: var(--text-main); font: inherit; font-weight: 700; cursor: pointer; }

.checkout-screen-body {
  min-height: 0;
  overflow: auto;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 32px);
}

.whop-checkout-embed {
  min-height: 560px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .checkout-screen-header { grid-template-columns: 1fr auto; }
  .checkout-screen-header > strong { display: none; }
  .checkout-screen-body { width: 100%; padding: 20px 16px 32px; }
}

/* Standard Pre-Checkout Tier Card (Refactoring UI / Linear / Gumroad Consensus) */
.pricing-section .pricing-card-wrapper {
  max-width: 780px;
  margin: 32px auto 0;
}

.pricing-section .pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-card, 16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  padding: 38px 36px 32px;
  position: relative;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .pricing-section .pricing-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[dir="rtl"] .pricing-section .pricing-card {
  text-align: right;
}

.pricing-badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(85, 203, 118, 0.12);
  color: var(--brand-green);
  border: 1px solid rgba(85, 203, 118, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 18px;
  position: static;
  transform: none;
  box-shadow: none;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.pricing-header-info {
  flex: 1;
  min-width: 260px;
}

.pricing-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-main);
}

.pricing-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.pricing-price-block {
  text-align: right;
}

[dir="rtl"] .pricing-price-block {
  text-align: left;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 2px;
}

[dir="rtl"] .pricing-price-row {
  justify-content: flex-start;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1;
}

.price-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.price-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
}

.pricing-features-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

@media (max-width: 640px) {
  .pricing-features-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pricing-features-list li {
  font-size: 14px;
  line-height: 1.45;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: none;
  color: var(--text-main);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(85, 203, 118, 0.15);
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Standard Two-Column Checkout Modal (Stripe / Whop / Shopify Consensus) */
.modal-checkout-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  max-width: 820px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  position: relative;
  scrollbar-width: thin;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .modal-checkout-card {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-checkout-card .modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.modal-checkout-card .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

[data-theme="dark"] .modal-checkout-card .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 520px;
}

/* Left Column: Order Summary */
.checkout-summary-pane {
  background: var(--bg-surface-recessed);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .checkout-summary-pane {
  background: #101618;
  border-right-color: rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .checkout-summary-pane {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

[dir="rtl"][data-theme="dark"] .checkout-summary-pane {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.checkout-product-meta {
  margin-bottom: 20px;
}

.checkout-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.checkout-product-flag {
  font-size: 13px;
  line-height: 1;
}

.checkout-product-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.checkout-product-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.checkout-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.checkout-line-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.checkout-line-name {
  color: var(--text-muted);
}

.checkout-line-val {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  white-space: nowrap;
}

.checkout-line-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-green);
  background: rgba(85, 203, 118, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.checkout-rail-label {
  font-size: 11px;
  color: var(--text-dim);
}

.checkout-total-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 14px 0 18px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.checkout-total-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.checkout-total-amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-green);
}

.checkout-fulfillment-note {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkout-fulfillment-note svg {
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-fulfillment-note strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.checkout-fulfillment-note p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Right Column: Checkout Form */
.checkout-form-pane {
  padding: 32px 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  max-height: 88vh;
}

.checkout-form-header {
  margin-bottom: 16px;
}

.checkout-form-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--text-main);
}

.checkout-form-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.checkout-terms-line {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  margin: 12px 0 0;
}

.checkout-terms-line a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Translation Language Choice Segmented Control */
.deck-language-choice {
  border: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  min-inline-size: 0 !important;
}

.deck-language-options {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  background: var(--bg-surface-recessed);
  border: 1px solid var(--border-subtle);
  padding: 4px !important;
  border-radius: 12px !important;
}

[data-theme="dark"] .deck-language-options {
  background: #141c1e;
  border-color: rgba(255, 255, 255, 0.08);
}

.deck-language-option {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-muted);
  transition: all var(--dur-fast) ease-out;
  border: 1px solid transparent !important;
  margin: 0 !important;
  user-select: none;
}

.deck-language-option:hover {
  color: var(--text-main);
}

.deck-language-option:has(input:checked) {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .deck-language-option:has(input:checked) {
  background: #1a2528 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.deck-language-option input[type="radio"] {
  accent-color: var(--brand-green);
  cursor: pointer;
  margin: 0 !important;
  width: 15px;
  height: 15px;
}

.modal-field-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 6px 2px 0;
  line-height: 1.4;
}

/* Payment Selector (2 symmetric columns) */
.checkout-line-check {
  color: var(--brand-green);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-rails-badges {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  margin-top: 18px !important;
}

.payment-rails-badges .payment-rail-mark,
.payment-rails-badges img {
  height: 22px !important;
  width: auto !important;
  max-width: 44px !important;
  object-fit: contain !important;
  display: block !important;
}

.payment-rails-badges img[src*="visa"],
.payment-rails-badges img[src*="mastercard"] {
  border-radius: 3px !important;
}

.payment-methods-selector {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.payment-method-btn {
  display: grid !important;
  grid-template-columns: 20px 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--bg-surface-recessed) !important;
  border: 1.5px solid var(--border-main) !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  text-align: left !important;
  gap: 12px !important;
  transition: all var(--dur-fast) ease-out !important;
  width: 100% !important;
}

[dir="rtl"] .payment-method-btn {
  text-align: right !important;
}

[data-theme="dark"] .payment-method-btn {
  background: #141c1e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.payment-method-btn:hover {
  border-color: var(--text-muted) !important;
}

.payment-method-btn.active {
  border-color: var(--brand-green) !important;
  background: rgba(85, 203, 118, 0.08) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .payment-method-btn.active {
  background: rgba(85, 203, 118, 0.12) !important;
  border-color: var(--brand-green) !important;
}

.pm-radio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-main);
  background: transparent;
  display: inline-block;
  position: relative;
  transition: all var(--dur-fast) ease;
}

.payment-method-btn.active .pm-radio {
  border-color: var(--brand-green);
}

.payment-method-btn.active .pm-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}

.pm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pm-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

.payment-method-amount {
  font-family: var(--font-mono) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--brand-green) !important;
}

.pm-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.pm-marks {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pm-marks img {
  height: 16px;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}

/* Field requirements */
.required-star {
  color: #ef4444;
  font-weight: 700;
  margin-left: 3px;
}

[dir="rtl"] .required-star {
  margin-left: 0;
  margin-right: 3px;
}

.optional-tag {
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 400;
  margin-left: 4px;
}

[dir="rtl"] .optional-tag {
  margin-left: 0;
  margin-right: 4px;
}

@media (max-width: 740px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 16px 0 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal-checkout-card {
    width: calc(100% - 24px) !important;
    max-width: 480px;
    margin: 12px auto 32px !important;
    border-radius: 16px;
    max-height: none;
    overflow: visible;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .checkout-summary-pane {
    border-right: none;
    border-left: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 22px 20px 16px;
  }

  .checkout-breakdown {
    gap: 8px;
    margin: 12px 0 10px;
  }

  .checkout-total-divider {
    margin: 10px 0 12px;
  }

  .checkout-total-row {
    margin-bottom: 0;
  }

  .checkout-fulfillment-note {
    display: none;
  }

  .checkout-form-pane {
    padding: 20px 20px 24px;
  }
}


/* Hero Ambient Background Backdrop */
.hero-section {
  position: relative;
  background-color: var(--bg-page);
  background-image: radial-gradient(circle at 50% 20%, rgba(20, 31, 35, 0.45) 0%, var(--bg-page) 85%), url('assets/img/hero-ambient-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

[data-theme="light"] .hero-section {
  background-image: radial-gradient(circle at 50% 20%, rgba(255, 255, 253, 0.88) 0%, #FFFFFD 90%), url('assets/img/hero-ambient-bg.jpg');
}

/* Reviews & Rating Section */
.reviews-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.reviews-rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.reviews-stars {
  color: #F59E0B;
  font-size: 20px;
  letter-spacing: 3px;
}

.reviews-score-line {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.reviews-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

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

@media (max-width: 860px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-card, 16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .review-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.review-stars-mini {
  color: #F59E0B;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  margin: 0 0 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(85, 203, 118, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.review-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Certificate Evidence Card */
.evidence-fig {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-main);
  background: var(--bg-surface-recessed);
}

.evidence-fig img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.evidence-fig figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

/* Flag & Target Language Strict Sizing */
.target-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.target-language__flag,
[data-target-language-flag],
[data-target-language-flag] img,
.target-language img {
  width: 20px !important;
  height: 14px !important;
  max-width: 20px !important;
  max-height: 14px !important;
  display: inline-block !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Mobile & Tablet Responsive Optimizations */
@media (max-width: 860px) {
  .nav-actions [data-open-checkout] {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .pricing-features-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .pricing-product-card {
    padding: 24px 18px !important;
  }
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .evidence-fig img {
    max-height: 280px !important;
    object-fit: cover !important;
  }
  .hero-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .story-stats {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   Sticky Mobile CTA Bar
   ========================================================================== */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.buy-bar.is-on {
  display: flex !important;
}

.buy-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.buy-bar-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.buy-bar-price {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-green);
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.2;
  white-space: nowrap;
}

.buy-bar-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.buy-bar-btn {
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (min-width: 861px) {
  .buy-bar,
  .buy-bar.is-on {
    display: none !important;
  }
}
