/* Product-family pages extend the operator system in site.css without replacing it. */
:root { --product-glass: color-mix(in srgb, var(--surface) 72%, transparent); }
html[data-theme="dark"] { --product-glass: color-mix(in srgb, var(--surface) 82%, transparent); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
  min-height: 650px;
  padding: 70px 0 58px;
}
.product-hero-copy { position: relative; z-index: 2; }
.product-hero h1 {
  max-width: 760px;
  margin-top: 23px;
  color: var(--ink);
  font: 800 clamp(58px, 7.8vw, 108px)/.91 "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.085em;
  text-wrap: balance;
}
.product-hero h1 .marked {
  display: inline-block;
  margin-top: .08em;
  padding: 0 .08em .04em;
  color: var(--on-accent);
  background: var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.product-hero-sub { max-width: 600px; margin-top: 28px; color: var(--text); font-size: 17px; line-height: 1.65; }
.product-hero-note { margin-top: 20px; color: var(--ink); font: 12px/1.5 "IBM Plex Mono", monospace; }
.product-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--ink);
}
.product-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .6;
  background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.visual-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 15px;
  border-bottom: 2px solid var(--ink);
  color: #f4f4ee;
  background: var(--bg-deep);
  font: 700 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-status { display: inline-flex; align-items: center; gap: 8px; }
.live-status::before { width: 8px; height: 8px; content: ""; background: var(--mint); }
.visual-shot { position: absolute; z-index: 1; inset: 76px 28px 28px; width: calc(100% - 56px); height: calc(100% - 104px); border: 2px solid var(--ink); object-fit: contain; object-position: center top; box-shadow: 7px 7px 0 var(--ink); }
.visual-label { position: absolute; z-index: 2; right: 18px; bottom: 17px; padding: 11px 13px; border: 2px solid var(--ink); color: var(--ink); background: var(--surface); box-shadow: 4px 4px 0 var(--ink); font: 700 9px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.visual-label strong { display: block; margin-top: 5px; font: 800 18px/1 "Space Grotesk", sans-serif; text-transform: none; }
.product-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 32px; border: 2px solid var(--ink); background: var(--ink); }
.product-rail--two { grid-template-columns: repeat(2, 1fr); }
.product-stat { min-height: 82px; padding: 17px; background: var(--product-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.product-stat strong { display: block; color: var(--ink); font: 800 22px/1 "Space Grotesk", sans-serif; }
.product-stat span { display: block; margin-top: 8px; color: var(--muted); font: 700 9px/1.3 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.product-section { padding: 96px 0 0; }
.product-section-head { display: flex; align-items: end; justify-content: space-between; gap: 46px; margin-bottom: 35px; }
.product-section-head .section-lead { max-width: 450px; margin: 0; }
.family-grid, .feature-grid, .path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.family-grid--two { grid-template-columns: repeat(2, 1fr); }
.family-grid--two .family-card--lead { grid-column: auto; }
.family-card, .feature-card, .path-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  border: 2px solid var(--ink);
  color: var(--text);
  background: var(--product-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.path-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); }
.card-topline { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.card-number { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--ink); color: var(--on-accent); background: var(--accent); font: 800 12px/1 "IBM Plex Mono", monospace; }
.card-tag { padding: 6px 8px; border: 1px solid var(--ink); color: var(--muted); font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.family-card h3, .feature-card h3, .path-card h3 { margin-top: 29px; color: var(--ink); font: 700 27px/1 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.family-card p, .feature-card p, .path-card p { margin-top: 13px; color: var(--text); font: 12px/1.65 "IBM Plex Mono", monospace; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 23px; }
.card-meta span { padding: 6px 8px; border: 1px solid var(--line-strong); color: var(--muted); font: 700 9px/1 "IBM Plex Mono", monospace; }
.family-card--lead {
  grid-column: span 2;
  min-height: 340px;
  color: var(--text);
  background: var(--product-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.family-card--lead h3 { color: var(--ink); }
.family-card--lead p { color: var(--text); }
.family-card--lead .card-number { color: var(--on-accent); background: var(--accent); }
.family-card--lead .card-tag, .family-card--lead .card-meta span { border-color: var(--line-strong); color: var(--muted); }
.family-card .text-button, .path-card .text-button { align-self: flex-start; margin-top: 24px; }
.family-preview { overflow: hidden; margin: 24px 0 4px; border: 2px solid var(--ink); background: #111; }
.family-preview img { display: block; width: 100%; height: clamp(320px, 38vw, 480px); object-fit: contain; object-position: center; }
.family-preview--assistant img { object-position: center; }
.family-card--lead .text-button { color: var(--ink); }
.family-card--support { min-height: 310px; }
.family-grid--two .family-card--wide { grid-column: 1 / -1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.card-actions .text-button { margin-top: 24px; }
.flow-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: transparent; }
.product-visual > .flow-board { position: absolute; z-index: 1; inset: 94px 35px 45px; grid-template-columns: 1fr auto 1fr; }
.flow-node { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 24px; color: var(--ink); background: var(--surface); text-align: center; }
.flow-node span { color: var(--muted); font: 700 9px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.flow-node strong { margin-top: 14px; font: 800 clamp(25px, 3vw, 40px)/1 "Space Grotesk", sans-serif; }
.flow-arrow { display: grid; width: 64px; place-items: center; color: var(--on-accent); background: var(--accent); font-size: 30px; }
.flow-step { min-height: 235px; padding: 25px; background: var(--surface); }
.flow-step .mono { color: var(--muted); font-size: 10px; }
.flow-step h3 { margin-top: 48px; color: var(--ink); font: 700 25px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.flow-step p { margin-top: 13px; color: var(--text); font: 12px/1.65 "IBM Plex Mono", monospace; }
.flow-step + .flow-step { border-left: 1px solid var(--line-strong); }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.gallery-card { overflow: hidden; border: 2px solid var(--ink); background: var(--product-glass); box-shadow: 5px 5px 0 var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .18s ease, box-shadow .18s ease; }
.gallery-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: contain; object-position: top; }
.gallery-grid--assistant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-card--tool img { aspect-ratio: 989 / 768; object-fit: contain; object-position: top; background: #111; }
.gallery-card--square img { aspect-ratio: 1; }
.gallery-copy { padding: 20px; border-top: 2px solid var(--ink); }
.gallery-copy h3 { color: var(--ink); font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.gallery-copy p { margin-top: 10px; color: var(--muted); font: 11px/1.6 "IBM Plex Mono", monospace; }
.gallery-side { display: grid; gap: 16px; }
.security-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.security-callout { padding: clamp(28px, 4vw, 46px); border: 2px solid var(--ink); color: var(--on-accent); background: var(--accent); box-shadow: 6px 6px 0 var(--ink); }
.security-callout h3 { margin-top: 34px; font: 800 clamp(34px, 4vw, 54px)/.96 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.security-callout p { margin-top: 18px; font-size: 14px; line-height: 1.7; }
.guard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border: 2px solid var(--ink); background: var(--ink); }
.guard { min-height: 170px; padding: 22px; background: var(--surface); }
.guard strong { display: block; color: var(--ink); font: 700 18px/1.15 "Space Grotesk", sans-serif; }
.guard span { display: block; margin-top: 11px; color: var(--muted); font: 11px/1.6 "IBM Plex Mono", monospace; }
.download-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border: 2px solid var(--ink); background: var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.download-card { display: flex; min-height: 350px; flex-direction: column; align-items: stretch; gap: 0; padding: clamp(25px, 4vw, 42px); border: 0; box-shadow: none; background: var(--surface); }
.download-card h3 { margin-top: 28px; color: var(--ink); font: 800 clamp(32px, 3.8vw, 50px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.download-card p { margin-top: 15px; color: var(--text); font: 14px/1.7 "Inter", sans-serif; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; }
.download-actions .secondary-button { color: var(--ink); border-color: var(--ink); background: transparent; }
.download-actions .secondary-button:hover { color: var(--ink); background: var(--accent-soft); }
.compatibility-table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--surface); }
.compatibility-table th, .compatibility-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compatibility-table th { color: var(--on-accent); background: var(--accent); font: 700 10px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.compatibility-table td { color: var(--text); font: 11px/1.55 "IBM Plex Mono", monospace; }
.compatibility-table td:first-child { color: var(--ink); font-weight: 700; }
.steps-board { border: 2px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.step-row { display: grid; grid-template-columns: 74px 1fr; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: 0; }
.step-row > span { display: grid; min-height: 120px; place-items: center; border-right: 1px solid var(--line); color: var(--on-accent); background: var(--accent); font: 800 12px/1 "IBM Plex Mono", monospace; }
.step-row > div { padding: 25px; }
.step-row strong { color: var(--ink); font: 700 20px/1.2 "Space Grotesk", sans-serif; }
.step-row p { margin-top: 8px; color: var(--muted); font: 11px/1.6 "IBM Plex Mono", monospace; }
.mini-panel { position: absolute; z-index: 1; inset: 82px 38px 43px; border: 2px solid var(--ink); background: var(--surface); box-shadow: 7px 7px 0 var(--ink); }
.mini-panel > div { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; min-height: 84px; padding: 16px; border-bottom: 1px solid var(--line); }
.mini-panel > div:last-child { border-bottom: 0; }
.mini-panel span { color: var(--muted); font: 700 9px/1 "IBM Plex Mono", monospace; }
.mini-panel strong { color: var(--ink); font: 700 16px/1.2 "Space Grotesk", sans-serif; }
.redirect-main { display: grid; min-height: calc(100vh - 76px); place-items: center; padding: 50px 0; }
.redirect-card { max-width: 700px; padding: clamp(28px, 6vw, 64px); border: 2px solid var(--ink); background: var(--surface); box-shadow: 8px 8px 0 var(--ink); text-align: center; }
.redirect-card h1 { color: var(--ink); font: 800 clamp(40px, 7vw, 72px)/.95 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.redirect-card p { margin: 20px auto 0; color: var(--text); line-height: 1.7; }
.redirect-card .primary-button { margin-top: 28px; }

/* One glass language across cards and grouped boards. */
.product-rail { gap: 0; background: transparent; }
.product-stat:not(:last-child) { border-right: 2px solid var(--ink); }
.download-board, .guard-grid { gap: 0; background: transparent; }
.download-card, .guard, .flow-step, .steps-board, .compatibility-table, .mini-panel, .redirect-card {
  background: var(--product-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.download-card:not(:last-child) { border-right: 2px solid var(--ink); }
html[data-theme="dark"] .download-card { background: var(--product-glass); }
.guard:nth-child(odd) { border-right: 2px solid var(--ink); }
.guard:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; min-height: 0; }
  .product-hero-copy { max-width: 780px; }
  .product-visual { min-height: 520px; }
  .family-grid, .feature-grid, .path-grid { grid-template-columns: 1fr; }
  .family-card--lead { grid-column: auto; }
  .gallery-grid, .security-layout { grid-template-columns: 1fr; }
  .gallery-side { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .product-hero { gap: 44px; padding: 52px 0 44px; }
  .product-hero h1 { font-size: clamp(52px, 16.5vw, 78px); }
  .product-visual { min-height: 400px; }
  .visual-shot { inset: 68px 17px 18px; width: calc(100% - 34px); height: calc(100% - 86px); }
  .product-rail { grid-template-columns: repeat(2, 1fr); }
  .product-section { padding-top: 76px; }
  .product-section-head { display: block; }
  .product-section-head .section-lead { margin-top: 18px; }
  .flow-board, .guard-grid, .download-board { grid-template-columns: 1fr; }
  .download-card:not(:last-child) { border-right: 0; border-bottom: 2px solid var(--ink); }
  .guard:nth-child(odd) { border-right: 0; }
  .guard:not(:last-child) { border-bottom: 2px solid var(--ink); }
  .flow-step { min-height: 205px; }
  .flow-step + .flow-step { border-left: 0; border-top: 1px solid var(--line-strong); }
  .flow-step h3 { margin-top: 34px; }
  .gallery-side { grid-template-columns: 1fr; }
  .compatibility-wrap { overflow-x: auto; }
  .compatibility-table { min-width: 680px; }
  .product-visual > .flow-board { inset: 78px 17px 24px; }
  .flow-arrow { width: 44px; }
  .mini-panel { inset: 70px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .family-card, .feature-card, .path-card, .gallery-card { transition: none; }
  .family-card:hover, .feature-card:hover, .path-card:hover, .gallery-card:hover { transform: none; }
}

/* Complete app frames, including tall phone screens and desktop toolbars. */
.family-preview { padding: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.visual-shot { background: var(--surface); }
.family-preview img, .gallery-card img { min-width: 0; }
/* Host mark over the engraved loggia, then Control and Stream as ink plates. */
.product-visual--sync {
  scroll-margin-top: 100px;
  --sync-ink: var(--ink);
  --sync-muted: var(--muted);
  --sync-glass: var(--product-glass);
  min-height: 0;
  padding: 22px 22px 20px;
  color: var(--sync-ink);
  background: #ede9df url("sync-loggia.png") center / cover;
}
.product-visual--sync::before { background: linear-gradient(135deg, #f8f4e652, #ced9e14d); }
.sync-scene-heading, .sync-scene-caption { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sync-scene-heading { font: 600 10px/1.5 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.sync-private { display: inline-flex; align-items: center; gap: 4px; }
.sync-private svg { width: 17px; height: 17px; }
.sync-diagram { position: relative; z-index: 1; display: grid; gap: 22px; width: min(100%, 420px); margin: 28px auto 20px; }
.sync-host { display: grid; justify-items: center; text-align: center; }
.sync-mark-tile {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 28px;
  color: #f3eee4;
  background: var(--bg-deep);
  box-shadow: 6px 6px 0 var(--ink);
}
.sync-mark-tile svg { width: 58px; height: 58px; }
.sync-host h2 { margin-top: 16px; font: 700 28px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.sync-host p { margin-top: 6px; color: var(--sync-muted); font: 12px/1.45 "IBM Plex Mono", monospace; }
.sync-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sync-destination {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 16px 14px;
  border: 2px solid var(--ink);
  color: var(--sync-ink);
  background: var(--sync-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sync-destination-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--on-accent);
  background: var(--accent);
  font: 800 11px/1 "IBM Plex Mono", monospace;
}
.sync-destination-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.sync-destination strong { margin-top: auto; padding-top: 18px; font: 700 18px/1.1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.sync-destination > span:not(.sync-destination-arrow):not(.sync-destination-index) {
  margin-top: 6px;
  color: var(--sync-muted);
  font: 10px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .02em;
}
.sync-destination-arrow { position: absolute; top: 14px; right: 14px; font-size: 14px; }
.sync-destination:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.sync-destination:active { transform: none; box-shadow: 5px 5px 0 var(--ink); }
.sync-destination:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sync-scene-caption { align-items: end; padding-top: 16px; border-top: 2px solid var(--ink); }
.sync-scene-caption > span:first-child { max-width: 240px; color: var(--ink); font: 600 13px/1.4 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.sync-scene-caption > span:last-child { white-space: nowrap; color: var(--sync-muted); font: 9px/1.5 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
html[data-theme="dark"] .product-visual--sync::before { background: #0e1926a6; }
html[data-theme="dark"] .sync-mark-tile { color: #f3eee4; background: #12110e; }
@media (max-width: 720px) {
  .family-preview { padding: 12px; }
  .family-preview img { height: 380px; }
  .product-visual--sync { padding: 18px 16px 16px; }
  .sync-diagram { margin: 22px auto 16px; gap: 18px; }
  .sync-mark-tile { width: 96px; height: 96px; border-radius: 24px; }
  .sync-mark-tile svg { width: 54px; height: 54px; }
  .sync-host h2 { font-size: 24px; }
  .sync-destinations { gap: 10px; }
  .sync-destination { min-height: 112px; padding: 14px 12px 12px; }
  .sync-destination strong { font-size: 16px; }
  .sync-scene-caption { align-items: start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-transparency: reduce) {
  .sync-destination { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sync-destination { transition: none; }
  .sync-destination:hover, .sync-destination:active { transform: none; box-shadow: 5px 5px 0 var(--ink); }
}

/* The product film is framed like an edition plate, not a generic media player. */
.promo-film-section { padding: 26px 0 38px; }
.promo-film-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: end;
  margin-bottom: 28px;
}
.promo-film-intro h2 {
  max-width: 720px;
  margin-top: 15px;
  color: var(--ink);
  font: 800 clamp(38px, 5.5vw, 72px)/.95 "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.07em;
}
.promo-film-intro p {
  max-width: 480px;
  color: var(--text);
  font: 16px/1.65 "Inter", sans-serif;
}
.promo-film-frame {
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.promo-film-bar,
.promo-film-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  padding: 0 16px;
  color: #f4f4ee;
  background: var(--bg-deep);
  font: 700 10px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.promo-film-bar { border-bottom: 2px solid var(--ink); }
.promo-film-stage {
  position: relative;
  overflow: hidden;
  background: #080a0d;
}
.promo-film-stage::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px #ffffff16;
}
.promo-film-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080a0d;
  object-fit: contain;
}
.promo-film-caption {
  min-height: 60px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  background: var(--surface);
}
.promo-film-caption .text-button { color: var(--ink); white-space: nowrap; }
.promo-film-caption > span:first-child { letter-spacing: .08em; }
html[data-theme="dark"] .promo-film-caption { background: var(--surface); }

@media (max-width: 720px) {
  .promo-film-section { padding: 8px 0 24px; }
  .promo-film-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  .promo-film-intro h2 { font-size: clamp(36px, 11vw, 52px); }
  .promo-film-intro p { font-size: 15px; }
  .promo-film-frame { box-shadow: 6px 6px 0 var(--ink); }
  .promo-film-bar { min-height: 42px; padding: 0 12px; font-size: 8px; }
  .promo-film-caption { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 12px; }
  .promo-film-caption .text-button { min-height: 40px; }
}

/* Keep engraved paper below readable light text in the dark theme. */
html[data-theme="dark"] body::before { opacity: .38; mix-blend-mode: normal; filter: saturate(.8) brightness(.55); }

.family-preview { display: block; }
.family-preview:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Clear setup order and platform choices within the existing visual system. */
.flow-step .text-button { display: inline-block; margin-top: 20px; }
.download-version { font: 12px/1.5 "IBM Plex Mono", monospace; color: var(--muted); }
.install-notes { margin-top: 24px; padding: 24px; border: 1px solid var(--line-strong); background: var(--product-glass); font-size: 13px; line-height: 1.7; }
.install-notes .card-actions { margin-top: 12px; }
.optional-assistant { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 36px; }
.optional-assistant .family-preview { margin: 0; }
.optional-assistant .family-preview img { height: auto; }
.optional-assistant .text-button { display: inline-block; }
.stream-preview > a { position: relative; display: block; height: 540px; padding: 24px; }
.stream-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-details { padding: 24px; border: 2px solid var(--ink); background: var(--product-glass); }
.product-details summary { cursor: pointer; color: var(--ink); font: 700 22px/1.4 "Space Grotesk", sans-serif; }
.product-details p { margin: 18px 0; max-width: 75ch; font-size: 14px; line-height: 1.7; }
@media (max-width: 720px) {
  .optional-assistant { grid-template-columns: 1fr; gap: 24px; }
  .optional-assistant .family-preview { width: 100%; }
  .stream-preview > a { height: 420px; }
}

/* Assistant features are grouped by the work people want to do. */
.feature-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assistant-extra { margin-top: 24px; }
.feature-note { margin-top: 22px; max-width: 90ch; color: var(--text); font: 13px/1.7 "IBM Plex Mono", monospace; }
.assistant-index { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding: 18px 0; border-block: 1px solid var(--line-strong); }
.assistant-index a { padding: 8px 0; }
@media (max-width: 720px) { .feature-grid--two { grid-template-columns: 1fr; } }

/* Editorial cards: app imagery leads, copy stays readable, metadata stays quiet. */
.product-section { scroll-margin-top: 24px; }
[id^="download-"] { scroll-margin-top: 100px; }
.feature-card { min-height: 0; padding: 28px; }
.feature-card .card-number {
  width: auto; height: auto; min-height: 24px; border: 0;
  color: var(--muted); background: transparent; letter-spacing: .08em;
}
.feature-card h3 { margin-top: 16px; font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.feature-card p, .family-card p { font: 14px/1.7 "Inter", sans-serif; }
.suite-home .product-section-head { align-items: start; }
.suite-home .product-section-head > div { flex: 1.2; }
.suite-home .product-section-head .section-lead { flex: 1; padding-top: 36px; }
.suite-home .section-title { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -.055em; }
.suite-home .flow-board { gap: 24px; border: 0; background: transparent; }
.suite-home .flow-step { display: flex; flex-direction: column; padding: 28px; min-height: 0; border: 2px solid var(--ink); }
.suite-home .flow-step .card-number { width: 32px; height: 32px; }
.suite-home .flow-step h3 { margin-top: 24px; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.suite-home .flow-step p { font: 14px/1.65 "Inter", sans-serif; }
.suite-home .flow-step > .text-button { align-self: start; margin-top: auto; padding-top: 24px; }
.suite-home .family-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.client-card { padding: 28px; min-height: 0; }
.client-card h3 { margin-top: 20px; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.control-card-logo { display: block; width: 40px; height: 40px; flex: none; object-fit: contain; }
.client-card .card-number { width: 32px; height: 32px; }
.client-card .card-tag { font-size: 10px; border: 0; padding: 8px 0; }
.client-preview {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  margin: 24px 0 8px; padding: 24px;
  border: 0; background: transparent;
}
.client-preview::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 -12px;
  background: radial-gradient(ellipse at center, #758ca326, transparent 68%);
}
.client-preview img {
  display: block; width: auto; max-width: 100%; height: 360px; object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 2px 4px #19283a14, 0 12px 28px #19283a26;
}
html[data-theme="dark"] .client-preview::before { background: radial-gradient(ellipse at center, #9bb2cc16, transparent 68%); }
html[data-theme="dark"] .client-preview img { box-shadow: 0 0 0 1px #ffffff12, 0 12px 28px #00000038; }
.client-preview:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.client-card > .text-button, .client-card .card-actions .text-button { margin-top: 18px; }
.section-anchor { display: block; scroll-margin-top: 100px; }
.host-download { margin-top: auto; padding-top: 24px; }
.host-download .platform-requirement { margin-top: 14px; }
.platform-requirement { display: block; margin-top: 5px; color: var(--muted); font: 11px/1.6 "Inter", sans-serif; }
.release-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--muted); font: 10px/1.5 "IBM Plex Mono", monospace; }
.checksum-link { text-decoration: underline; text-underline-offset: 3px; }
.client-downloads { margin-top: auto; padding-top: 24px; }
.client-download { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.client-download strong { color: var(--ink); font: 600 15px/1.4 "Inter", sans-serif; }
.client-download .secondary-button { padding-inline: 12px; }
.client-card .client-detail-link { display: inline-flex; margin-top: 4px; min-height: 44px; }
.suite-home details.install-notes { padding: 0; }
.install-notes summary { padding: 20px 24px; cursor: pointer; color: var(--ink); font: 600 14px/1.5 "Inter", sans-serif; }
.install-notes[open] summary { border-bottom: 1px solid var(--line); }
.suite-home details.install-notes > p { padding: 20px 24px 0; }
.suite-home details.install-notes .card-actions { padding: 0 24px 20px; }
.optional-assistant h3 { margin-top: 22px; font-size: 36px; line-height: 1.1; }
.optional-assistant .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
.optional-assistant .assistant-desktop-preview { border: 0; padding: 0; background: transparent; }
.assistant-desktop-preview img { border-radius: 10px; box-shadow: 0 12px 28px #00000030; }
@media (min-width: 721px) and (max-width: 980px) {
  .suite-home .nav-links a { display: none; }
  .suite-home .nav-links a:first-child, .suite-home .nav-links a:last-child { display: inline-flex; }
}
@media (max-width: 720px) {
  .suite-home .family-grid--two { grid-template-columns: 1fr; }
  .suite-home .product-section-head .section-lead { padding-top: 0; }
  .suite-home .flow-step, .client-card, .feature-card { padding: 24px; }
  .suite-home .flow-step h3 { margin-top: 16px; }
  .client-preview { padding: 20px; }
  .client-preview img { height: 340px; }
  .optional-assistant { padding: 24px; }
  .optional-assistant .assistant-desktop-preview { grid-row: 1; }
  .optional-assistant h3 { font-size: 32px; }
}

/* Assistant landing: Yaps rhythm, Vamp page language. */
body.assistant-page .hero-platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
body.assistant-page .assistant-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .72fr);
  gap: 16px;
}
body.assistant-page .assistant-bento .gallery-card--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
}
body.assistant-page .assistant-bento .gallery-card--ios {
  grid-column: 3;
  grid-row: 1 / span 2;
}
body.assistant-page .assistant-bento .gallery-card--lead img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  object-position: top;
  background: #111;
}
body.assistant-page .assistant-bento .gallery-card--ios img {
  aspect-ratio: 1206 / 2622;
  max-height: 720px;
  margin: 16px auto 0;
  object-fit: contain;
  object-position: top;
  background: transparent;
}
body.assistant-page .assistant-bento .gallery-card--tool img {
  object-fit: contain;
  object-position: top;
  background: #111;
}
body.assistant-page .tile-lab {
  display: block;
  color: var(--muted);
  font: 700 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.assistant-page .assistant-bento .gallery-copy h3 { margin-top: 8px; }
body.assistant-page .assistant-jobs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
body.assistant-page .assistant-jobs .feature-card {
  grid-column: span 2;
  min-height: 220px;
  scroll-margin-top: 100px;
}
body.assistant-page .assistant-jobs .feature-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 980px) {
  body.assistant-page .assistant-bento,
  body.assistant-page .assistant-jobs { grid-template-columns: 1fr 1fr; }
  body.assistant-page .assistant-bento .gallery-card--lead,
  body.assistant-page .assistant-bento .gallery-card--ios {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  body.assistant-page .assistant-bento .gallery-card--lead img { min-height: 280px; }
  body.assistant-page .assistant-bento .gallery-card--ios img { max-height: 520px; }
  body.assistant-page .assistant-jobs .feature-card,
  body.assistant-page .assistant-jobs .feature-card:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 720px) {
  body.assistant-page .assistant-bento,
  body.assistant-page .assistant-jobs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.assistant-page .assistant-bento .gallery-card,
  body.assistant-page .assistant-jobs .feature-card { transition: none; }
  body.assistant-page .assistant-bento .gallery-card:hover,
  body.assistant-page .assistant-jobs .feature-card:hover { transform: none; }
}

/* Current Assistant captures retain the site's glass cards and native window edges. */
body.assistant-page .assistant-settings-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
body.assistant-page .assistant-screenshot-link { display: block; background: transparent; }
body.assistant-page .assistant-screenshot-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
body.assistant-page .gallery-card--current img { aspect-ratio: 1240 / 840; height: auto; background: transparent; }
body.assistant-page .assistant-bento .gallery-card--lead img { height: auto; min-height: 0; aspect-ratio: 1240 / 840; background: transparent; }


@media (max-width: 720px) { body.assistant-page .assistant-settings-gallery { grid-template-columns: 1fr; } }

@media (min-width: 981px) {
  body.assistant-page .assistant-bento .gallery-card--lead { grid-row: 1; }
  body.assistant-page .assistant-bento .gallery-card--general { grid-column: 1; grid-row: 2; }
}

/* Full-size previews use the active page theme and a native modal focus trap. */
.preview-enlarge { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-visual > .preview-enlarge { display: contents; }
.preview-enlarge:focus-visible img, a[aria-haspopup="dialog"]:focus-visible img { outline: 3px solid var(--accent); outline-offset: -3px; }
a[aria-haspopup="dialog"] img { cursor: zoom-in; }
.preview-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 24px 24px; border: 0; background: transparent; }
.preview-lightbox[open] { display: grid; place-items: center; }
.preview-lightbox::backdrop { background: #080808e8; backdrop-filter: blur(12px); }
.preview-lightbox > img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 88px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 80px #0008; }
.preview-lightbox-close { position: absolute; top: 12px; right: 20px; width: 40px; height: 40px; border: 1px solid #ffffff70; border-radius: 50%; color: #fff; background: #222; font: 28px/1 sans-serif; cursor: pointer; }
.preview-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 720px) { .preview-lightbox { padding-inline: 8px; } }
