:root {
  --ink: #111822;
  --ink-soft: #2b3645;
  --muted: #505e70;
  --surface: #ffffff;
  --surface-tint: #f4f6f9;
  --surface-tray: #f1f4f8;
  --line: #dbe2ea;
  --line-strong: #c2cdd9;
  --brand-blue: #155694;
  --brand-blue-hover: #0f4170;
  --focus: #d95d2b;
  --wrap: 1248px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, fieldset, legend, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.token {
  font-weight: 600;
  color: var(--ink-soft);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.choice:focus-visible + label {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.sr,
.choice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mast-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-width: 0;
}

.brand img {
  width: 112px;
  height: auto;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.product-brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.mast-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mast-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.mast-nav a:hover {
  color: var(--ink);
}

.mast-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #fff;
  transition: background-color 120ms ease;
}

.mast-nav .nav-cta:hover {
  background: var(--brand-blue-hover);
  color: #fff;
}

/* Hero */
.hero-band {
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px, 4.4vw, 58px) clamp(44px, 4.8vw, 66px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
}

.hero-copy,
.hero-figure,
.copy-col,
.shot-figure,
.export-viewer,
.demo-col,
.license-col {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(15.5px, 1.03vw, 16.8px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}

.lead + .lead {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue);
}

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

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  background: #eef2f6;
  border-color: #96a7bb;
}

.btn-secondary .duration {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  flex: none;
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-block: 3.5px solid transparent;
  border-left: 5.5px solid currentColor;
  transform: translateX(1px);
}

.play-icon-sm {
  width: 15px;
  height: 15px;
  background: var(--brand-blue);
}

.hero-note {
  margin-top: 13px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 52ch;
}

/* Screenshot Frames & Captions */
.shot-frame {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.24), 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.shot-frame:hover {
  border-color: #889db5;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.3), 0 2px 5px rgba(15, 23, 42, 0.08);
}

.shot-hero {
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.shot-frame .image-thumb,
.shot-frame img {
  width: 100%;
}

.shot-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--muted);
}

.zoom-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
  flex: none;
  cursor: zoom-in;
}

.zoom-link:hover {
  color: var(--brand-blue-hover);
}

/* The image and Zoom control follow the same native radio selection. */
.hero-figure .builder-shot,
.hero-figure:has(#show-builder:checked) .viewer-shot {
  display: none;
}

.hero-figure:has(#show-builder:checked) .builder-shot {
  display: block;
}

.hero-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 4px;
  gap: 0;
}

.hero-pagination,
.hero-choices {
  display: flex;
  align-items: center;
}

.hero-pagination { grid-column: 2; }
.hero-shot-label {
  grid-column: 1;
  justify-self: start;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.hero-choices { padding: 0; border: 0; }

.hero-choices label,
.shot-step:not([hidden]) {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  cursor: pointer;
}

.hero-choices label::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.hero-choices input:checked + label::after {
  color: var(--brand-blue);
  background: currentColor;
}

.shot-step {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.shot-step::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}

.shot-step[data-step="-1"]::after { transform: rotate(135deg); }
.shot-step:hover, .hero-choices label:hover { color: var(--brand-blue); }
.hero-caption .zoom-link { grid-column: 3; justify-self: end; min-height: 32px; }

@media (max-width: 720px) {
  .hero-choices label, .shot-step:not([hidden]), .hero-caption .zoom-link { height: 44px; }
  .hero-choices label { width: 30px; }
  .shot-step:not([hidden]), .hero-caption .zoom-link { min-width: 44px; }
  .hero-caption .zoom-link { text-align: right; }
}

@media (forced-colors: active) {
  .hero-choices input:checked + label::after {
    forced-color-adjust: none;
    color: Highlight;
  }
}

/* Bands & Direct Headings */
.band {
  padding-block: clamp(48px, 5vw, 72px);
  scroll-margin-top: 58px;
}

.band-white {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.band-tint {
  background: var(--surface-tint);
}

.section-head {
  margin-bottom: clamp(26px, 3vw, 36px);
}

.section-head-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.band h2 {
  font-size: clamp(26px, 2.35vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

.section-sub {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

.copy-col h3 {
  font-size: clamp(19px, 1.35vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.copy-col p,
.mapping-copy {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.copy-col p + p {
  margin-top: 11px;
}

.comparison {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "timeline timeline" "filters filters" "messages output";
  gap: clamp(22px, 2.6vw, 36px) clamp(24px, 4vw, 52px);
  align-items: start;
}
.viewer-example {
  display: grid;
  grid-template-columns: inherit;
  column-gap: inherit;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.timeline-example { grid-area: timeline; }
.example-filters { grid-area: filters; border-bottom: 1px solid var(--line); }
.filter-intro h3 { font-size: 1.2rem; margin-bottom: 6px; }
.filter-intro p { max-width: 42ch; margin-bottom: 8px; font-size: 0.94rem; color: var(--muted); line-height: 1.55; }
.comparison-source { grid-area: messages; }
.export-viewer { grid-area: output; container: export-example / inline-size; }
.filter-shot .image-thumb { overflow: hidden; aspect-ratio: 1450 / 574; }
.filter-shot img { transform: translateY(-17%); }
.viewer-intro {
  margin-bottom: clamp(20px, 2.3vw, 32px);
}
.viewer-intro p {
  max-width: 70ch;
  margin: 10px 0 6px;
  color: var(--muted);
  line-height: 1.6;
}
.comparison-source .shot-caption { justify-content: flex-end; }
.comparison, #examples { scroll-margin-top: 76px; }
.source-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 12px;
}
.source-heading h3, #export-heading { font-size: 1.06rem; font-weight: 650; }
#export-heading { display: flex; align-items: center; min-height: 36px; margin-bottom: 12px; }
.comparison .zoom-link { color: var(--brand-blue); }
.viewer-tools {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}
.builder-output .copy-col > .text-link { margin-top: 8px; }

.tab-bar {
  border: 0;
  padding: 0;
  min-width: 0;
}

.tab-bar > label {
  display: inline-block;
  padding: 6px 13px;
  line-height: 22px;
  margin: 0 6px 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.tab-bar > label:hover {
  border-color: #8ea2b8;
  color: var(--ink);
}

.tab-bar input:checked + label {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-stage {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
}

.panel {
  display: none;
}

#epdf:checked ~ .tab-stage .epdf,
#ersmf:checked ~ .tab-stage .ersmf,
#ecsv:checked ~ .tab-stage .ecsv {
  display: block;
}

.pdf-page {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.panel-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .86rem;
}
.preview-actions { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-note a {
  color: var(--brand-blue);
}
.panel.ersmf img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.csv-sheet {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.sheet-bar span:last-child {
  font-size: 0.77rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.csv-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.csv-sheet th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--ink-soft);
}

.csv-sheet th,
.csv-sheet td {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.csv-sheet td:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-soft);
}

.csv-sheet :is(.compact-timestamp, .compact-file) { display: none; }
.csv-sheet td:nth-child(2) { min-width: 7em; }
.csv-sheet td:last-child { overflow-wrap: anywhere; }
@container export-example (max-width: 32rem) {
  .csv-sheet :is(td,th):is(:first-child,:last-child) { display: none; }
  .csv-sheet .compact-file { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
  .csv-sheet td:nth-child(2) { min-width: 0; width: 30%; }
  .csv-sheet .compact-timestamp {
    display: block;
    margin-top: 6px;
    white-space: nowrap;
    color: var(--muted);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
  }
}
.builder-band { background: #f6f8fa; }
.delivery-files { font-size: .88rem; }
.delivery-files div { display: grid; grid-template-columns: minmax(10rem, .8fr) 1.4fr; gap: 4px 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.delivery-files div:first-child { border-top: 1px solid var(--line); }
.delivery-files dt { font-weight: 600; }
.delivery-files dd { color: var(--muted); }

.export-details {
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}
.export-details summary {
  padding: 5px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.export-details dl { margin: 8px 0 12px; }
.export-details dt { margin-top: 8px; font-weight: 600; color: var(--ink); }
.export-details p + p { margin-top: 4px; }
.export-details a { color: var(--brand-blue); }

/* Builder */
.video-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex: none;
}

.builder-mapping {
  padding-top: clamp(24px, 3vw, 32px);
  padding-bottom: clamp(32px, 3.8vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mapping-copy {
  max-width: 74ch;
  margin-bottom: 18px;
}

.builder-output {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(28px, 4.2vw, 48px);
  padding-top: clamp(30px, 3.5vw, 42px);
}

/* Download & License */
.acquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.acquire-lead {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}

.windows-downloads {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.windows-downloads caption { text-align: left; color: var(--muted); font-size: .85rem; padding: 17px 0 8px; }
.windows-downloads th, .windows-downloads td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.windows-downloads th:first-child { padding-left: 0; }
.windows-downloads thead th { font-size: .85rem; }
.windows-downloads th small { display: block; color: var(--muted); font-size: .81rem; font-weight: 400; }
.windows-downloads a { display: inline-block; padding: 6px 0; color: var(--brand-blue); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.install-note { margin-top: 14px; font-size: .87rem; }
.license-cta-box summary { cursor: pointer; font-weight: 600; }
.license-cta-box details p { margin-top: 8px; }

.extra-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.extra-links a {
  color: var(--brand-blue);
  font-weight: 600;
}

.spec-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  font-weight: 600;
  color: var(--ink);
}

.spec-list dd {
  color: var(--muted);
}

.license-col {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(22px, 2.6vw, 30px);
  scroll-margin-top: 74px;
}

.license-col h2 {
  font-size: clamp(23px, 2vw, 28px);
}

.license-price { margin-top: 12px; color: var(--muted); font-size: .94rem; }
.license-price strong { margin-right: 4px; font-size: 1.5rem; font-weight: 650; color: var(--ink); }

.license-cta-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .91rem;
}
.license-cta-box .btn { margin-top: 20px; }
.btn:disabled { color: var(--muted); border-color: var(--line-strong); background: var(--surface-tint); cursor: default; }
/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.foot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.83rem;
  color: var(--muted);
}

.foot-brand,
.foot-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand strong {
  color: var(--ink);
}

.foot-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.foot-links a:hover {
  text-decoration: underline;
  color: var(--ink);
}

.foot-links a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-links [aria-current="page"] { text-decoration: underline; }

.policy-page { min-height: 100vh; display: flex; flex-direction: column; }
.policy-page main { flex: 1; }
.policy-copy { max-width: 66ch; margin: clamp(28px, 5vw, 64px) auto; }
.policy-copy h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); line-height: 1.14; letter-spacing: -.03em; }
.policy-copy h2 { margin: 26px 0 5px; font-size: 1.14rem; line-height: 1.35; }
.policy-copy p { color: var(--ink-soft); margin-top: 8px; }
.policy-copy a, .license-cta-box details a { color: var(--brand-blue); }

.support-form { margin: 24px 0; }
.support-form label { display: block; font-weight: 600; margin-bottom: 5px; }
.support-form input, .support-form textarea {
  display: block; width: 100%; padding: 9px 11px; color: var(--ink);
  background: var(--surface); border: 1px solid #778697; border-radius: var(--radius-sm); font: inherit;
}
.support-form input { max-width: 42ch; margin-bottom: 19px; }
.support-form textarea { resize: vertical; min-height: 8.5rem; }
.support-form :is(input, textarea):focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.support-form [aria-invalid="true"] { border-color: #95341d; }
.support-form .support-note { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.support-form button { margin-top: 18px; font-family: inherit; }
.support-form .form-error { border-left: 3px solid #95341d; padding-left: 12px; margin-bottom: 16px; }
.support-alternative { border-top: 1px solid var(--line); padding-top: 16px; }

/* Interactive Triggers */
.image-trigger {
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.image-thumb {
  display: block;
  max-width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.text-link:hover {
  color: var(--brand-blue-hover);
}

/* Dialogs */
#image-viewer {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  width: min(calc(100% - 32px), max(300px, calc(var(--image-width, 960px) + 2px)), 1600px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

#image-viewer::backdrop,
#product-film::backdrop {
  background: rgba(11, 16, 25, 0.78);
}

.image-toolbar,
.film-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.image-toolbar h2,
.film-head h2 {
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0;
}

.image-toolbar > div,
.film-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.image-toolbar form,
.film-head form {
  margin: 0;
}

.image-toolbar button,
.film-head button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.image-toolbar button:enabled:hover,
.film-head button:hover {
  background: var(--surface-tint);
}

.image-toolbar button:disabled {
  color: #8a97a6;
  border-color: var(--line);
  cursor: default;
}

.image-scroll {
  width: 100%;
  aspect-ratio: var(--image-ratio, 16 / 9);
  max-height: calc(100dvh - 94px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #eef2f6;
}

.image-scroll img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#image-viewer.actual-size .image-scroll {
  height: min(var(--image-height), calc(100dvh - 94px));
  aspect-ratio: auto;
}

#image-viewer.actual-size .image-scroll img {
  width: auto;
  height: auto;
  max-width: none;
  margin-inline: auto;
}

.image-scroll img[hidden] {
  display: none;
}

#image-unavailable {
  padding: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

#product-film {
  width: min(60rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  overscroll-behavior: contain;
}

#product-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 11rem);
  background: #0f151e;
}

#product-film details {
  padding: 12px 14px;
  font-size: 0.87rem;
  color: var(--muted);
}

#product-film summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

#product-film details p {
  max-width: 72ch;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .hero,
  .builder-output,
  .acquire-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .comparison {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "timeline" "filters" "messages" "output";
    grid-template-rows: auto;
  }
  .comparison-source { max-width: 480px; }
  .viewer-example { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .filter-shot .image-thumb { position: relative; aspect-ratio: 1070 / 315; }
  .filter-shot img {
    position: absolute; top: 0; left: 0; width: 135.514%; max-width: none;
    transform: translate(-1.6%, -49%);
  }
  .mapping-frame .image-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 546 / 365;
  }
  .mapping-frame img {
    position: absolute;
    width: 357.51%;
    max-width: none;
    top: -14.5%;
    left: 0;
  }
  .delivery-files div { grid-template-columns: 1fr; }
  .hero-band { padding-block: 28px 32px; }
  .mast {
    position: static;
  }
  .mast-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px;
  }
  .brand img {
    width: 96px;
  }
  .product-brand {
    padding-left: 12px;
    font-size: 0.96rem;
  }
  .mast-nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    gap: 10px;
  }
  .nav-links {
    gap: 14px;
  }
  .mast-nav a {
    font-size: 0.84rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .mast-nav .nav-cta {
    padding: 5px 11px;
    min-height: 30px;
    font-size: 0.81rem;
  }
  .tab-bar > label {
    padding: 6px 10px;
    font-size: 0.81rem;
    margin-right: 4px;
  }
  .spec-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 16px;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .brand img {
    width: 84px;
  }
  .product-brand {
    padding-left: 10px;
    font-size: 0.92rem;
  }
  .nav-links {
    gap: 11px;
  }
  .mast-nav a {
    font-size: 0.8rem;
  }
  .mast-nav .nav-cta {
    padding: 4px 9px;
    min-height: 28px;
    font-size: 0.78rem;
  }
  .sheet-bar { flex-wrap: wrap; gap: 2px 8px; font-size: .74rem; }
  .sheet-bar span { white-space: nowrap; }
  .hero-actions { gap: 6px 12px; }
  .hero-actions .btn { padding-inline: 12px; }
  .hero-actions .btn-secondary { padding-inline: 0; background: transparent; border-color: transparent; color: var(--brand-blue); }
  .hero-actions .play-icon { background: var(--brand-blue); }

}

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

@media print {
  .mast,
  .hero-actions,
  .foot-links,
  .video-jump,
  .zoom-link {
    display: none;
  }
  .tab-bar input:checked + label {
    background: #e9eef4;
    color: #000;
    border-color: #666;
  }
}
