/**
 * Brand Collaboration page — layout only.
 *
 * Partner-as-hero. Page-specific structural rules. Colours and typography
 * come from tokens (consumed below). Partner brand colour comes in via
 * --partner-accent (set inline on .with-page via define:vars).
 *
 * Used by: apps/web/src/pages/[country]/with/[slug].astro
 * Prefix:  with-  (one prefix per template, per CSS architecture rules)
 */

/* ============================================================
   ROOT WRAPPER
   ============================================================ */
.with-page {
  --partner-accent: #1E3A5F;
  --partner-accent-soft: #EEF2F7;
  --section-linen: #f7f5f1;
  --section-warm: #faf8f4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary, #1a1a1a);
  line-height: 1.6;
  background: var(--surface-0, #ffffff);
  scroll-behavior: smooth;
}

html:has(.with-page) { scroll-behavior: smooth; }

/* Highlighted text uses the partner accent, not the global CMB purple, so it
   doesn't clash with each collaboration's brand colour. */
.with-page ::selection {
  background-color: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.with-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.with-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.with-reveal--d1 { transition-delay: 0.08s; }
.with-reveal--d2 { transition-delay: 0.16s; }
.with-reveal--d3 { transition-delay: 0.24s; }
.with-reveal--d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .with-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.with-page *,
.with-page *::before,
.with-page *::after {
  box-sizing: border-box;
}

/* ============================================================
   CONTAINERS + SECTIONS
   ============================================================ */
.with-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.with-container--narrow {
  max-width: 760px;
}

.with-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.with-section--invitation {
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0;
}

.with-section--invitation::before,
.with-section--cmb::before,
.with-section--how::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
}

.with-section--cmb {
  background: var(--section-warm);
  position: relative;
}

.with-section--book {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.with-section--how {
  background: var(--section-linen);
  position: relative;
}

.with-section--close {
  padding: clamp(80px, 10vw, 128px) 0;
  background: linear-gradient(180deg, var(--partner-accent-soft) 0%, var(--surface-0, #fff) 100%);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.with-section__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--partner-accent);
  font-weight: 600;
  margin: 0 0 12px;
}

.with-section__title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 28px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.with-section__title--centred {
  text-align: center;
}

.with-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 20px;
}

.with-prose--centred {
  text-align: center;
}

.with-link {
  color: var(--partner-accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.with-link:hover {
  opacity: 0.75;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.with-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.with-btn--primary {
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
}

.with-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.with-btn--ghost {
  background: transparent;
  color: var(--text-primary, #1a1a1a);
  border-color: var(--border-subtle, #e5e5e5);
}

.with-btn--ghost:hover {
  border-color: var(--partner-accent);
  color: var(--partner-accent);
}

.with-btn--block {
  width: 100%;
}

.with-btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ============================================================
   HERO
   ============================================================ */
.with-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  background: linear-gradient(180deg, var(--partner-accent-soft) 0%, var(--surface-0, #fff) 100%);
}

.with-hero__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.with-hero__lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle, #e5e5e5);
}

.with-hero__partner-logo {
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.with-hero__lockup-meta {
  font-size: 13px;
  color: var(--text-secondary, #666);
  letter-spacing: 0.02em;
}

.with-hero__lockup-meta strong {
  color: var(--text-primary, #1a1a1a);
  font-weight: 600;
}

.with-hero__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--partner-accent);
  font-weight: 700;
  margin: 0 0 16px;
}

.with-hero__headline {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 300;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.with-hero__subheading {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-secondary, #555);
  margin: 0 0 32px;
  line-height: 1.6;
  max-width: 540px;
}

.with-hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.with-hero__visual {
  position: relative;
}

.with-hero__image {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22),
              0 6px 24px rgba(0, 0, 0, 0.10);
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.with-hero__image:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26),
              0 8px 32px rgba(0, 0, 0, 0.12);
}

/* subtle accent glow behind hero image */
.with-hero__visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--partner-accent-soft) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.6;
  border-radius: 24px;
}

@media (max-width: 880px) {
  .with-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .with-hero__visual {
    order: -1;
  }

  .with-hero__image {
    max-height: 360px;
  }

  .with-hero__cta-row .with-btn {
    flex: 1;
  }
}

/* ============================================================
   ABOUT — 2-column with secondary photo
   ============================================================ */
.with-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.with-about-grid__copy .with-section__title {
  margin-top: 0;
}

.with-about-grid__visual {
  position: relative;
}

.with-about-grid__image {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18),
              0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.with-about-grid__image:hover {
  transform: translateY(-4px);
}

.with-about-grid__visual::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: radial-gradient(ellipse at center, var(--partner-accent-soft) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.55;
  border-radius: 24px;
}

@media (max-width: 880px) {
  .with-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .with-about-grid__visual {
    order: -1;
  }

  .with-about-grid__image {
    max-height: 320px;
  }
}

/* ============================================================
   CREDENTIALS LIST
   ============================================================ */
.with-credentials {
  list-style: none;
  padding: 20px 24px;
  margin: 28px 0;
  background: var(--surface-1, #f5f5f5);
  border-left: 3px solid var(--partner-accent);
  border-radius: 4px;
}

.with-credentials li {
  font-size: 14px;
  color: var(--text-secondary, #555);
  font-weight: 500;
  margin: 4px 0;
}

/* ============================================================
   CMB BENEFITS BLOCK
   ============================================================ */
.with-cmb-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.with-cmb-intro .with-section__title {
  text-align: center;
}

.with-benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
}

.with-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: var(--surface-0, #fff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.with-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--partner-accent);
}

.with-benefit__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--partner-accent-soft);
  color: var(--partner-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.with-benefit:hover .with-benefit__icon {
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
  transform: scale(1.06);
}

.with-benefit__icon svg {
  width: 22px;
  height: 22px;
}

.with-benefit__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary, #1a1a1a);
  font-weight: 500;
}

/* ============================================================
   BOOKING CARD
   ============================================================ */
.with-book-card {
  background: var(--surface-0, #fff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-top: 5px solid var(--partner-accent);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

.with-book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.10),
              0 6px 16px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .with-book-card {
    padding: 32px 24px;
  }
}

.with-book-card .with-btn + .with-btn {
  margin-top: 12px;
}

.with-book-card__note {
  font-size: 13px;
  color: var(--text-secondary, #666);
  margin: 16px 0 0;
  text-align: center;
  line-height: 1.5;
}

.with-voucher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--partner-accent-soft);
  border: 1px dashed var(--partner-accent);
  border-radius: 8px;
  margin: 24px 0 18px;
}

.with-voucher__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #666);
  font-weight: 600;
}

.with-voucher__code {
  font-size: 22px;
  font-weight: 600;
  color: var(--partner-accent);
  letter-spacing: 0.06em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* ============================================================
   STEPS
   ============================================================ */
.with-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.with-step {
  background: var(--surface-0, #fff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

.with-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.with-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

.with-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 8px;
}

.with-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary, #555);
  margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.with-faq {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.with-faq__item details {
  background: var(--surface-0, #fff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-radius: 8px;
  padding: 18px 22px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.with-faq__item details[open] {
  border-color: var(--partner-accent);
  background: var(--partner-accent-soft);
}

.with-faq__q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.with-faq__q::-webkit-details-marker {
  display: none;
}

.with-faq__q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--partner-accent);
  font-weight: 300;
  line-height: 1;
}

.with-faq__item details[open] .with-faq__q::after {
  content: '−';
}

.with-faq__a {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, #e5e5e5);
}

.with-faq__a p {
  font-size: 15px;
  color: var(--text-secondary, #555);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CLOSING
   ============================================================ */
.with-close {
  text-align: center;
}

.with-close .with-prose {
  font-size: 18px;
  color: var(--text-secondary, #555);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ============================================================
   INVITATION — pull-quote on partner colour
   ============================================================ */
.with-section--invitation .with-section__title {
  text-align: center;
  font-size: clamp(28px, 3.8vw, 40px);
  margin-bottom: 36px;
  color: var(--partner-on-accent, #fff);
  font-weight: 300;
}

.with-section--invitation .with-prose {
  font-size: 19px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--partner-on-accent, #fff) 92%, transparent);
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.with-section--invitation .with-prose:first-of-type::before {
  content: '“';
  display: block;
  font-size: 96px;
  line-height: 0.6;
  color: var(--partner-on-accent, #fff);
  opacity: 0.28;
  margin: -8px auto 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  text-align: center;
}

.with-section--invitation .with-prose:last-of-type {
  margin-top: 24px;
  font-style: italic;
  opacity: 0.8;
  font-size: 17px;
}

/* ============================================================
   STEP NUMBER POLISH
   ============================================================ */
.with-step__num {
  width: 44px;
  height: 44px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   FAQ — smoother open
   ============================================================ */
.with-faq__item details {
  transition: border-color 0.25s ease,
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.with-faq__item details:hover {
  border-color: var(--partner-accent);
}

.with-faq__item details[open] {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.with-faq__q::after {
  transition: transform 0.3s ease;
}

.with-faq__item details[open] .with-faq__q::after {
  transform: translateY(-50%) rotate(180deg);
}

.with-faq__a {
  animation: with-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes with-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.with-sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
  border-radius: 12px;
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.with-sticky-cta.is-visible {
  transform: translateY(0);
}

.with-sticky-cta__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.with-sticky-cta__action {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .with-sticky-cta {
    display: flex;
  }
}

/* ============================================================
   CMB STRIP (top) + FOOTER (bottom) — minimal site presence
   ============================================================ */
.with-cmb-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  background: var(--partner-accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.with-cmb-strip__partner {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.with-cmb-strip__partner-logo {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

.with-cmb-strip__cmb {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.with-cmb-strip__cmb:hover {
  opacity: 1;
}

.with-cmb-strip__cmb-logo {
  height: 38px;
  width: auto;
  display: block;
}

.with-cmb-strip__right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .with-cmb-strip {
    padding: 16px 20px;
  }

  .with-cmb-strip__partner-logo {
    height: 56px;
    max-width: 200px;
  }

  .with-cmb-strip__cmb-logo {
    height: 36px;
  }

  .with-cmb-strip__right {
    gap: 10px;
  }
}

.with-cmb-footer {
  padding: 56px 0 64px;
  background: var(--partner-accent);
  color: var(--partner-on-accent, #fff);
  position: relative;
}

.with-cmb-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.with-cmb-footer__logo {
  height: 36px;
  width: auto;
  display: inline-block;
  margin-bottom: 18px;
  filter: brightness(0) invert(var(--partner-logo-invert, 1));
  opacity: 0.95;
}

.with-cmb-footer__line {
  font-size: 15px;
  color: color-mix(in srgb, var(--partner-on-accent, #fff) 88%, transparent);
  margin: 0 0 10px;
}

.with-cmb-footer__line a {
  color: var(--partner-on-accent, #fff);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--partner-on-accent, #fff) 50%, transparent);
  transition: text-decoration-color 0.2s ease;
}

.with-cmb-footer__line a:hover {
  text-decoration-color: var(--partner-on-accent, #fff);
}

.with-cmb-footer__legal {
  font-size: 12px;
  color: color-mix(in srgb, var(--partner-on-accent, #fff) 65%, transparent);
  margin: 0;
  letter-spacing: 0.02em;
}

.with-cmb-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.with-cmb-footer__legal a:hover {
  color: color-mix(in srgb, var(--partner-on-accent, #fff) 90%, transparent);
}

/* Collaboration terms footnote — subtle, but readable so the commercial
   terms carried by the voucher code are clearly stated. */
.with-cmb-footer__terms {
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--partner-on-accent, #fff) 78%, transparent);
  max-width: 640px;
  margin: 0 auto 14px;
}

.with-cmb-footer__terms a {
  color: var(--partner-on-accent, #fff);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--partner-on-accent, #fff) 50%, transparent);
  transition: text-decoration-color 0.2s ease;
}

.with-cmb-footer__terms a:hover {
  text-decoration-color: var(--partner-on-accent, #fff);
}

@media (max-width: 480px) {
  .with-cmb-strip__meta {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 640px) {
  .with-book-card {
    padding: 28px 22px;
  }

  .with-voucher {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .with-hero__lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .with-hero__partner-logo {
    height: 56px;
  }
}

/* ============================================================
   PREVIEW RIBBON
   Shown only when collaboration.status === 'preview' so a partner
   reviewing their page can see at a glance it is not yet signed off.
   Diagonal corner band, top-right of the page, ignores pointer
   events so it never blocks clicks underneath. Subtle subtext line
   below the hero reinforces the message in plain English.
   ============================================================ */
.with-page--preview {
  position: relative;
}

/* Full-width amber banner stuck to the top of the viewport. Loud enough
 * to be unmissable, completely out of the way of every logo, and stays
 * visible as the visitor scrolls the page. position:sticky keeps it in
 * the document flow so the brand strip below it isn't covered. */
.with-preview-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #F59E0B;     /* amber-500 */
  color: #1f1300;          /* near-black for legibility */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.with-preview-banner__pill {
  background: #1f1300;
  color: #F59E0B;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.with-preview-note {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  .with-preview-banner {
    font-size: 12px;
    padding: 9px 12px;
    letter-spacing: 0.12em;
    gap: 8px;
  }
  .with-preview-banner__pill { font-size: 11px; padding: 2px 8px; }
}
