/* PlainBytes Redactor — marketing site (light theme) */

:root {
  --bg: #f0efeb;
  --bg-panel: #fafaf8;
  --bg-white: #ffffff;
  --bg-band-gray: #f5f5f5;
  --bg-band-dark: #2d2d2d;
  --text: #2c2c2a;
  --text-secondary: #5f5e5a;
  --text-muted: #888780;
  --accent: #9a0413;
  --accent-soft: #a32d2d;
  --accent-text: #fcebeb;
  --stroke: #e5e3db;
  --stroke-strong: #d3d1c7;
  --maxw: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body.site-light {
  padding-top: 64px;
}

.site-home {
  background: var(--bg-white);
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — fixed so it stays visible for the full page scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(240, 239, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--stroke);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav-link--current {
  color: var(--text);
  font-weight: 500;
}

.site-home .site-header--on-dark .site-nav-link {
  color: #d0cec8;
}

.site-home .site-header--on-dark .site-nav-link:hover {
  color: #ffffff;
}

.site-home .site-header--on-dark .site-nav-link--current {
  color: #ffffff;
}

.lang-select {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.lang-select:focus {
  outline: 2px solid var(--stroke-strong);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-accent:hover {
  background: #7f0310;
  color: var(--accent-text);
}

.btn-accent--sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 0.5px solid var(--stroke-strong);
}

.btn-outline:hover {
  background: var(--bg-white);
  color: var(--text);
}

main {
  padding: 24px 0 48px;
}

.site-home main.site-main {
  padding: 0;
}

/* Full-width color bands (home) */
.screen-band {
  padding: 64px 0;
}

.screen-band--gray {
  background: var(--bg-band-gray);
}

.screen-band--white {
  background: var(--bg-white);
}

.screen-band__inner--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.screen-band__inner--scenarios {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 0.5px solid var(--stroke);
}

.screen-band__inner--scenarios .panel-heading--center {
  margin-bottom: 24px;
}

.screen-band--pricing {
  padding-top: 72px;
  padding-bottom: 72px;
}

.screen-band--footer {
  padding: 36px 0 44px;
}

.screen-band--dark {
  background: linear-gradient(180deg, #2d2d2d 0%, #282828 55%, #232323 100%);
}

.screen-band--footer.screen-band--dark {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.site-home .screen-band--footer .panel-footer__support,
.site-home .screen-band--footer .panel-footer__legal {
  color: #8a8880;
}

.site-home .screen-band--footer .panel-footer__support a,
.site-home .screen-band--footer .panel-footer__legal a {
  color: #c8c6c0;
}

.site-home .screen-band--footer .panel-footer__support a:hover,
.site-home .screen-band--footer .panel-footer__legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#why-local.screen-band {
  padding-bottom: 36px;
}

.screen-band__inner--compliance {
  margin-top: 40px;
  margin-bottom: 8px;
}

/* Compliance section (matches compliance_section_preview.html) */
.compliance-section__kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b3362b;
  text-align: center;
}

.compliance-section__title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}

.compliance-section__sub {
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  text-align: center;
  color: #5c5650;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compliance-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e8e3dc;
  border-radius: 12px;
}

.compliance-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compliance-card__badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.compliance-card__badge--eu {
  background: #eef2fa;
  color: #1b3a6b;
}

.compliance-card__badge--us {
  background: #fbe9e9;
  color: #8c2920;
}

.compliance-card__badge--ca {
  background: #fbf0e4;
  color: #7a4209;
}

.compliance-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1a17;
  line-height: 1.2;
}

.compliance-card__region {
  font-size: 0.72rem;
  font-weight: 400;
  color: #9a938b;
}

.compliance-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.6;
  color: #5c5650;
}

.compliance-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f2f0ec;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5c5650;
}

.compliance-disclaimer {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: #f2f0ec;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  color: #9a938b;
}

.compliance-disclaimer strong {
  font-weight: 600;
  color: #5c5650;
}

#included.screen-band {
  padding-top: 32px;
  padding-bottom: 56px;
}

.screen-band__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dark first screen: header + hero */
.hero-screen {
  background: linear-gradient(180deg, #232323 0%, #2d2d2d 58%, #352626 100%);
  margin-top: -64px;
  padding-top: 64px;
}

.site-header--on-dark {
  background: rgba(35, 35, 35, 0.92);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.site-home .site-header--on-dark .brand {
  color: #ffffff;
}

.site-home .site-header--on-dark .brand:hover {
  color: #f5f4f0;
}

.site-home .site-header--on-dark .lang-select {
  color: #d0cec8;
}

.site-home .site-header--on-dark .lang-select option {
  color: var(--text);
  background: #ffffff;
}

.hero--dark {
  padding: 40px 0 64px;
}

.btn-outline--on-dark {
  color: #f5f4f0;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline--on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn__play {
  font-size: 0.65em;
  line-height: 1;
  margin-right: 7px;
  opacity: 0.92;
  transform: translateY(-0.5px);
}

/* Single landing panel (legacy / subpages if needed) */
.landing-panel {
  background: var(--bg-panel);
  border: 0.5px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-section {
  border-top: 0.5px solid var(--stroke);
  padding: 56px 40px;
}

.panel-section--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  padding: 48px 40px 56px;
}

.hero--centered .hero-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-copy {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-copy--actions {
  margin-top: 4px;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 36px auto 40px;
  padding: 0;
  perspective: 1400px;
}

.hero-mockup__shell {
  transform: rotateX(7deg);
  transform-origin: center bottom;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-mockup__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 10px;
}

.hero-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-mockup__screen {
  margin: 0 10px 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
  line-height: 0;
}

.hero-mockup__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-mockup::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -8px;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(154, 4, 19, 0.22) 0%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent-soft);
  text-transform: lowercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.hero .lead {
  margin: 0 auto 36px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
}

.hero-badge {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-secondary);
  border: 0.5px solid var(--stroke-strong);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Dark hero typography — must follow base .hero rules */
.hero--dark .hero-kicker {
  color: #e8a0a0;
}

.hero--dark h1 {
  color: #ffffff;
}

.hero--dark .lead {
  color: #c8c6c0;
}

.hero--dark .hero-badge {
  color: #e0ded8;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero--dark .hero-note {
  color: #a8a6a0;
}

/* Workflow */
.workflow-strip__head {
  text-align: center;
  margin-bottom: 40px;
}

.workflow-strip__head .section-kicker {
  margin-bottom: 10px;
}

.workflow-strip__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-step__visual {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  height: 132px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.workflow-step__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.workflow-step__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.workflow-step__num {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-soft);
}

.workflow-step__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.workflow-step__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Panel typography */
.panel-heading {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.panel-heading--center {
  text-align: center;
}

.panel-copy {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.panel-copy:last-child {
  margin-bottom: 0;
}

/* Use cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--bg-white);
  border: 0.5px solid var(--stroke);
  border-radius: 10px;
  padding: 20px 22px;
}

.screen-band--white .use-case-card {
  background: var(--bg-band-gray);
  border-color: rgba(0, 0, 0, 0.06);
}

.use-case-card__label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-soft);
}

.use-case-card__body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Pricing */
.pricing-block {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.pricing-block .panel-heading {
  margin-bottom: 16px;
}

.pricing-card {
  background: var(--bg-white);
  border: 0.5px solid var(--stroke);
  border-radius: 10px;
  padding: 28px;
}

.pricing-card--dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #2d2d2d 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card--dark .pricing-card__price {
  color: #fafaf8;
}

.pricing-card--dark .pricing-card__suffix {
  color: #a8a6a0;
}

.pricing-card--dark .pricing-card__body {
  color: #b8b6b0;
}

.pricing-card__price {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.pricing-card__suffix {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__body {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Included */
.included-pills {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.included-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border: 0.5px solid var(--stroke-strong);
  padding: 7px 16px;
  border-radius: 20px;
}

.screen-band--gray .included-pill {
  background: var(--bg-white);
  border-color: rgba(0, 0, 0, 0.08);
}

.included-pill::before {
  content: "✓";
  color: var(--accent-soft);
  margin-right: 6px;
  font-size: 0.8125rem;
}

.included-roadmap {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.included-roadmap a {
  color: var(--accent-soft);
}

#included .panel-heading {
  margin-bottom: 12px;
}

/* Panel footer (legacy) */
.panel-footer {
  border-top: 0.5px solid var(--stroke);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-footer__support,
.panel-footer__legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-footer a {
  color: var(--accent-soft);
}

.panel-footer a:hover {
  color: var(--accent);
}

/* Subpages */
.page-hero {
  padding: 48px 0 32px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 500;
}

.page-body {
  padding-bottom: 48px;
  max-width: 720px;
}

.page-body p {
  color: var(--text-secondary);
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-effective {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-doc {
  padding-bottom: 48px;
}

.legal-doc > p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-doc > p {
  margin: 0 0 1rem;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.legal-doc h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35em;
  color: var(--text-secondary);
}

.legal-doc a {
  color: var(--accent-soft);
}

.legal-sep {
  border: none;
  border-top: 0.5px solid var(--stroke);
  margin: 2rem 0;
}

.legal-short {
  padding: 16px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: rgba(154, 4, 19, 0.05);
  color: var(--text-secondary);
}

.site-footer {
  padding: 24px 0;
}

.site-footer > .container.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
  border-top: 0.5px solid var(--stroke);
}

@media (max-width: 900px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .panel-section {
    padding: 32px 20px;
  }

  .hero--dark {
    padding: 32px 0 48px;
  }

  .hero-mockup {
    margin: 28px auto 32px;
    perspective: 900px;
  }

  .hero-mockup__shell {
    transform: rotateX(4deg);
  }

  .screen-band {
    padding: 48px 0;
  }

  .screen-band--pricing {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .screen-band--footer {
    padding: 32px 0 40px;
  }

  .screen-band__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .included-pills {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* Image lightbox */
body.lightbox-open,
body.video-modal-open {
  overflow: hidden;
}

.js-lightbox {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
  cursor: zoom-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f4f0;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  max-width: calc(70vw + 104px);
  padding: 24px 12px;
  box-sizing: border-box;
}

.lightbox__figure {
  margin: 0;
  flex: 0 0 auto;
  width: 70vw;
  max-width: 70vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(78vh, 860px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox__caption {
  margin: 14px 0 0;
  max-width: 100%;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #e8e6e0;
}

.lightbox__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f4f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .lightbox__dialog {
    gap: 8px;
    padding: 16px 8px;
    max-width: calc(70vw + 80px);
  }

  .lightbox__figure {
    width: 70vw;
    max-width: 70vw;
  }

  .lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox__img {
    max-height: 68vh;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.375rem;
  }
}

/* YouTube video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.9);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 70vw;
  max-width: 70vw;
  padding: 16px;
  box-sizing: border-box;
}

.video-modal__caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e8e6e0;
}

.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Release notes subpages */
.release-notes-main {
  padding: 48px 0 64px;
}

.release-notes-inner {
  max-width: 720px;
  margin: 0 auto;
}

.release-notes-card {
  background: var(--bg-white);
  border: 0.5px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.release-notes-card h2 {
  font-size: 1.125rem;
  margin: 0 0 12px;
  color: var(--text);
}

.release-notes-inner ul {
  margin: 0;
  padding-left: 1.25rem;
}

.release-notes-inner li {
  margin: 0.35rem 0;
}

.release-notes-foot {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
