/* ============================================================
   LANDING PAGE STYLES
   Custom CSS — no framework dependencies
   ============================================================ */

/* ---- Sora (self-hosted, variable) ------------------------- */
/* Two woff2 files cover all 5 weights × latin + latin-ext.   */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/sora/sora-latin-716e8a43.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/sora/sora-latin-ext-5e97735e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/sora/sora-latin-716e8a43.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/sora/sora-latin-ext-5e97735e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/sora/sora-latin-716e8a43.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/sora/sora-latin-ext-5e97735e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/sora/sora-latin-716e8a43.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/sora/sora-latin-ext-5e97735e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/sora/sora-latin-716e8a43.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/sora/sora-latin-ext-5e97735e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Custom properties ------------------------------------ */
:root {
  /* Scribe brand colours */
  --color-primary:       #5b5ef4;
  --color-primary-dark:  #4a4dd4;
  --color-primary-light: #eeeeff;
  --color-green:         #28bc77;   /* progress bars, success */
  --color-navy:          #070d2b;   /* dark hero backgrounds */
  --color-teal:          #00dcc4;   /* gradient accent */

  /* Neutrals */
  --color-text:          #0f172a;
  --color-text-muted:    #64748b;
  --color-border:        #e2e8f0;
  --color-surface:       #ffffff;
  --color-error:         #dc2626;
  --color-error-bg:      #fef2f2;

  --color-bg: #ffffff;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius:    0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.75rem;

  --shadow-card: 0 2px 6px rgba(0,0,0,.09), 0 12px 36px rgba(0,0,0,.13);

  --font-heading: "Sora", system-ui, -apple-system, sans-serif;
  --font-sans: "Sora", system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.65;
}

/* ---- Reset ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

/* ---- Base ------------------------------------------------- */
.landing-body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 90% -5%,
      rgba(255, 180, 140, 0.35) 0%,
      rgba(200, 185, 255, 0.22) 50%,
      transparent 72%),
    #ffffff;
  background-attachment: fixed;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ----------------------------------------------- */
.landing-header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  padding: var(--space-md) var(--space-xl);
}

.landing-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.landing-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.landing-logo-img {
  display: block;
  height: 34px;
  width: auto;
}

/* ---- Main ------------------------------------------------- */
.landing-main {
  /* sections handle their own bottom spacing */
}

/* ---- Social proof ----------------------------------------- */
.social-proof {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.social-proof__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.social-proof__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.logo-pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.testimonial {
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-lg);
  margin: 0;
}

.testimonial__quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
}

.testimonial__attribution {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---- Form card -------------------------------------------- */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(91, 94, 244, 0.1);
  padding: var(--space-xl);
  position: sticky;
  top: var(--space-xl);
}

@media (max-width: 819px) {
  .form-card {
    position: static;
  }
}

/* ---- Progress bar ----------------------------------------- */
.form-progress {
  margin-bottom: var(--space-xl);
}

.form-progress__track {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.form-progress__fill {
  height: 100%;
  background: var(--color-green);
  border-radius: 2px;
  transition: width 0.35s ease;
  will-change: width;
}

.form-progress__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---- Form step -------------------------------------------- */
.form-step__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.01em;
}

.form-step__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ---- Form fields ------------------------------------------ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-label__optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91,94,244,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select--lg {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  font-size: 1rem;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Error states */
.form-input.field-error,
.form-select.field-error,
.form-textarea.field-error {
  border-color: var(--color-error);
}

.form-input.field-error:focus,
.form-select.field-error:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.field-error-msg {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.form-error-summary {
  background: var(--color-error-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-error);
  margin-bottom: var(--space-md);
}

/* ---- Radio buttons (pill style — kept for compatibility) --- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.radio-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.radio-option:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.radio-label {
  pointer-events: none;
}

/* ---- Choice buttons (big vertical radio cards) ------------ */
.choice-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.choice-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  min-height: 3.25rem;
  background: var(--color-primary);
}

.choice-option:hover {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(91,94,244,0.25);
}

.choice-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice-label {
  flex: 1;
  min-width: 0;
  pointer-events: none;
  line-height: 1.4;
}

.choice-check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  pointer-events: none;
}

.choice-option:has(input[type="radio"]:checked) {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(91,94,244,0.3);
}

.choice-option:has(input[type="radio"]:checked) .choice-check {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--color-primary);
}

.choice-option:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: #9ca3af;
  color: var(--color-text);
}

.btn--full {
  width: 100%;
}

.btn--cta {
  flex: 1;
  justify-content: center;
}

/* ---- Trust badge ------------------------------------------ */
.form-trust {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.form-trust__icon {
  font-size: 0.875rem;
}

/* ---- Success state ---------------------------------------- */
.form-success {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(40, 188, 119, 0.15);
  color: var(--color-green);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.form-success__heading {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.form-success__body {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Footer ----------------------------------------------- */
/* New Scribe brand footer — light theme, dark text, no logo invert.
   Individual themes can still override colours via .landing-body:has(...)
   selectors when they need a darker (or branded) footer treatment. */
.landing-footer {
  background: #f9fafc;
  border-top: 1px solid #e5e7eb;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.landing-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .landing-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.landing-footer__logo-link {
  text-decoration: none;
}

.landing-footer__logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.landing-footer__email {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.5rem 1.125rem;
  border: 1px solid #020617;
  border-radius: 999px;
  color: #020617;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.landing-footer__email:hover {
  border-color: #84888d;
  color: #84888d;
}

.landing-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 480px) {
  .landing-footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.landing-footer__nav-heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #84888d;
  margin-bottom: var(--space-sm);
}

.landing-footer__nav-link {
  font-size: 0.875rem;
  color: #475258;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer__nav-link:hover {
  color: #020617;
}

.landing-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.landing-footer__legal {
  font-size: 0.8125rem;
  color: #84888d;
  margin: 0;
}

.landing-footer__link {
  color: #475258;
  text-decoration: none;
}

.landing-footer__link:hover {
  color: #020617;
}

.landing-footer__social {
  display: flex;
  gap: var(--space-md);
}

.landing-footer__social-link {
  color: #84888d;
  transition: color 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.landing-footer__social-link:hover {
  color: #020617;
}

/* ---- Embed: inline card ----------------------------------- */
.embed-inline-card {
  width: 100%;
}

/* ---- Embed: lightbox trigger card ------------------------- */
.embed-lightbox-trigger {
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-xl, 32px) var(--space-lg, 24px);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.embed-lightbox-trigger__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
  margin: 0;
}

.embed-lightbox-trigger__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
  margin: 0;
}

/* ---- Embed: lightbox overlay & modal ---------------------- */
.embed-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 16px;
}

.embed-lightbox-overlay[hidden] {
  display: none;
}

.embed-lightbox-modal {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.embed-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
  transition: color 0.15s, background 0.15s;
}

.embed-lightbox-close:hover {
  color: var(--color-text, #1e293b);
  background: var(--color-bg-muted, #f1f5f9);
}

.embed-lightbox-body {
  flex: 1;
  overflow: auto;
  min-height: 480px;
}

.embed-lightbox-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}


/* ── Shared lightbox (generalised — supports iframe + video, multiple triggers) ──────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 43, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 16px;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-modal {
  position: relative;
  background: #0b0b0f;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  transition: color 0.15s, background 0.15s;
}

.lightbox-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.lightbox-title {
  margin: 0;
  padding: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lightbox-title:not(:empty) {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  padding: 16px 56px 0 20px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.lightbox-body {
  flex: 1;
  overflow: hidden;
  min-height: 480px;
  display: flex;
}

.lightbox-iframe,
.lightbox-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  background: #000;
}


/* ── Form spotlight overlay (shared across themes) ──────────────── */
.form-spotlight-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 40;
  pointer-events: none;
  transition: background 0.35s ease;
}
.form-spotlight-overlay.is-active {
  background: rgba(7, 13, 43, 0.55);
  pointer-events: auto;
  cursor: pointer;
}
