/* Voxlar product page: Subtitle Track. Cinema black, letterbox bars, subtitles that land as they are spoken. */

:root {
  --bar: #050505;
  --black: #0b0b0b;
  --desk: #1c1d1f;          /* the Windows desktop behind each app window */
  --desk-edge: #0d0d0e;
  --taskbar: #202022;
  --white: #ffffff;
  --ink: #e9e9e4;           /* body text on black */
  --dim: #a3a39b;           /* secondary text on black, 7.6:1 */
  --timecode: #8f8f88;      /* timecode and fine print, 6.2:1 on the bars */
  --yellow: #ffd400;        /* the second subtitle colour, and the one action colour */
  --yellow-press: #e6bf00;
  --window: #f3f2ee;        /* app windows inside the shots */
  --window-ink: #1b1b1a;
  --window-dim: #575650;
  --rule: #26261f;

  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --title: "Big Shoulders Display", "Atkinson Hyperlegible Next", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --sub-size: clamp(18px, 2.35vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bar); color-scheme: dark; scroll-behavior: smooth; scrollbar-color: #3a3a34 var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--bar); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bar); }
::-webkit-scrollbar-thumb { background: #3a3a34; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--yellow); color: var(--bar); padding: 10px 16px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Letterbox bars ---------- */

.bar { background: var(--bar); padding-inline: var(--gutter); }

.bar--top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.wordmark { font-family: var(--title); font-weight: 800; font-size: 30px; letter-spacing: 0.06em; text-decoration: none; color: var(--white); }
.bar--top nav { display: flex; gap: 28px; margin-left: auto; }
.bar--top nav a, .bar-download { font-size: 15px; color: var(--dim); text-decoration: none; }
.bar--top nav a:hover, .bar-download:hover { color: var(--white); }
.bar-download { color: var(--yellow); font-weight: 700; }
.bar-download:hover { color: var(--yellow); text-decoration: underline; }

.bar--bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(20px, 2.4vw, 34px) clamp(24px, 3vw, 40px);
}

/* ---------- Frames and shots ---------- */

.frame {
  position: relative;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--desk) 0%, var(--desk-edge) 100%);
}
/* The taskbar along the foot of every shot, so each one reads as a Windows screen at work. */
.frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(26px, 5.5%);
  background: var(--taskbar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cg fill='%23d6d6d0'%3E%3Cpath d='M2 2h5v5H2zM8 2h5v5H8zM2 8h5v5H2zM8 8h5v5H8z'/%3E%3C/g%3E%3Cg fill='none' stroke='%238a8a84' stroke-width='1.2'%3E%3Crect x='26' y='3' width='10' height='10'/%3E%3Crect x='46' y='3' width='10' height='10'/%3E%3Crect x='66' y='3' width='10' height='10'/%3E%3Crect x='86' y='3' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E") center / auto 52% no-repeat;
  border-top: 1px solid #2c2c2f; z-index: 0;
}
.frame--offline { background: linear-gradient(180deg, #141416 0%, #08080a 100%); }
.frame--player { background: linear-gradient(180deg, #202024 0%, #0e0e10 100%); }
.frame .sub, .frame .timecode { z-index: 1; }

/* The first viewport holds the shot, the hook and the download: the frame gives up height before the action does. */
.scene--hero .frame { aspect-ratio: auto; height: clamp(300px, min(calc(100vw / 2.39), calc(100svh - 64px - 270px)), 720px); }

.shot { position: absolute; inset: 0; display: grid; place-items: center; padding: 4% 8% 13%; }

.window {
  width: min(64%, 860px);
  background: var(--window);
  color: var(--window-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  font-size: clamp(11px, 1.15vw, 18px);
  line-height: 1.5;
}
.window--small { width: min(52%, 700px); }
.window-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0.55em 0.6em 0.55em 1em;
  background: #e2e0da;
  color: var(--window-dim);
  font-size: 0.82em;
}
.win-controls svg { display: block; width: 4.4em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 1.1; }

.mail-head { display: grid; grid-template-columns: auto 1fr; gap: 0.35em 1em; margin: 0; padding: 0.9em 1.4em; border-bottom: 1px solid #dddad3; }
.mail-head dt { color: var(--window-dim); }
.mail-head dd { margin: 0; }

.typed { margin: 0; padding: 1.1em 1.4em 1.6em; min-height: 4.4em; white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--window-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chat-msg { margin: 0; padding: 1em 1.4em 0.2em; }
.chat-msg b { margin-right: 0.5em; }
.chat-input { margin: 0.8em 1.4em 1.2em; padding: 0.7em 0.9em; min-height: 0; border: 1px solid #cfccc4; }
.doc-h { margin: 0; padding: 1.2em 1.4em 0; font-size: 1.35em; font-weight: 700; }
.window--term { background: #161616; color: #e4e4de; font-family: var(--mono); }
.window--term .window-title { background: #262626; color: #9a9a92; font-family: var(--sans); }
.window--term .caret { background: #e4e4de; }
.term-line { margin: 0; padding: 1.2em 1.4em 1.8em; }
.term-line .typed { padding: 0; min-height: 0; }
.search-box { margin: 1.4em; padding: 0.8em 1.1em; min-height: 0; border: 1px solid #cfccc4; border-radius: 999px; background: #fff; }

/* ---------- Subtitles ---------- */

.sub {
  position: absolute; left: 0; right: 0; bottom: max(34px, 8.5%);
  margin: 0 auto; padding-inline: 8%;
  text-align: center;
  font-size: var(--sub-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  -webkit-text-stroke: 0.14em #000;
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0.18em rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}
.sub-tag { margin-right: 0.4em; color: var(--yellow); font-size: 0.72em; letter-spacing: 0.04em; }
.sub.is-second .sub-line { color: var(--yellow); }

.timecode {
  position: absolute; right: 1.4%; top: 4%;
  font-family: var(--mono); font-size: 13px; color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- Hook and action ---------- */

.hook h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.hook h1 em { display: block; font-style: normal; color: var(--yellow); }
.hook-sub { margin: 14px 0 0; max-width: 56ch; color: var(--dim); font-size: clamp(16px, 1.25vw, 19px); }

.cta { display: grid; gap: 12px; justify-items: start; }
.cta-note { margin: 0; color: var(--timecode); font-size: 15px; max-width: 34ch; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid #4a4a42;
  background: transparent; color: var(--white);
  font: 700 17px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background 120ms var(--ease-out), border-color 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.button:hover { border-color: var(--white); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--yellow); border-color: var(--yellow); color: var(--bar); }
.button--primary:hover { background: var(--yellow-press); border-color: var(--yellow-press); }
.button[aria-disabled="true"] { background: transparent; border-color: #4a4a42; color: var(--dim); cursor: not-allowed; }
.cta .button--primary { min-height: 60px; padding-inline: 28px; font-size: 19px; }

/* ---------- Scenes ---------- */

.scene { position: relative; padding: clamp(80px, 11vw, 160px) var(--gutter) 0; }
.scene--hero { padding: 0; }
.scene--framed { margin-top: clamp(80px, 11vw, 160px); padding-top: 0; background: var(--bar); padding-bottom: clamp(28px, 3vw, 44px); }
.scene--framed .scene-title { margin: 0; padding-block: clamp(22px, 2.6vw, 36px); max-width: none; font-size: clamp(26px, 2.8vw, 44px); }
.scene--framed > .frame, .scene--framed > .player { margin-inline: calc(var(--gutter) * -1); }
.scene--private.scene--framed { padding-top: 0; }
.scene--private.scene--framed > .frame { margin-inline: calc(var(--gutter) * -1) 0; }
.scene-title {
  margin: 0 0 clamp(32px, 4vw, 56px);
  max-width: 20ch;
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.scene-copy, .scene-note, .fine { max-width: 62ch; color: var(--dim); }
.scene-copy { margin: 28px 0 0; font-size: clamp(17px, 1.3vw, 20px); }
.scene-note { margin: 22px 0 0; font-size: 15px; color: var(--timecode); }
.fine { font-size: 14px; color: var(--timecode); }

/* Scene 2: a subtitle editor's track */
.track {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(100, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cue {
  grid-column: calc(var(--start) + 1) / span var(--len);
  display: grid; align-content: start; gap: 6px;
  padding: 18px 18px 22px;
  border-left: 1px solid #3a3a34;
  border-top: 2px solid transparent;
  color: var(--dim);
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.cue strong { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.1; color: var(--ink); }
.cue-time { font-family: var(--mono); font-size: 13px; color: var(--timecode); font-variant-numeric: tabular-nums; }
.cue.is-live { border-top-color: var(--yellow); background: rgba(255, 212, 0, 0.06); color: var(--ink); }
.cue.is-live strong { color: var(--yellow); }
.track-ruler {
  position: relative; height: 22px;
  background: repeating-linear-gradient(90deg, #3a3a34 0 1px, transparent 1px 2%);
  background-size: 100% 8px; background-repeat: no-repeat;
}
.playhead { position: absolute; top: -200px; bottom: 0; left: 0; width: 2px; background: var(--yellow); opacity: 0.9; }

/* Scene 3: cuts between apps */
.frame--cuts .shot--cut { visibility: hidden; }
.frame--cuts .shot--cut.is-on { visibility: visible; }

.marquee { display: flex; overflow: hidden; margin-top: 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none; animation: roll 48s linear infinite; }
.marquee-row li { padding: 20px 34px; font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; color: var(--ink); white-space: nowrap; border-right: 1px solid var(--rule); }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-100%); } }
.scene--anywhere .fine { margin-top: 14px; }

/* Scene 4: offline */
.scene--private { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.status-chip {
  position: absolute; top: 9%; left: 50%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(0, 0, 0, 0.55); color: var(--ink);
  font-size: clamp(11px, 1vw, 15px);
}
.private-copy p { margin: 0 0 18px; max-width: 48ch; color: var(--dim); font-size: clamp(17px, 1.3vw, 20px); }
.private-copy .scene-title { margin-bottom: 26px; }

/* Scene 5: the player and its subtitle tracks */
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 0; background: var(--bar); }
.frame--player { aspect-ratio: auto; height: 100%; min-height: 380px; }
.tracks { padding: 22px 24px; border-left: 1px solid var(--rule); max-height: 100%; overflow: auto; }
.tracks-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--white); font-weight: 700; }
.track-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.track-option {
  display: flex; width: 100%; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 10px;
  background: transparent; border: 0; color: var(--dim);
  font: 400 16px/1.3 var(--sans); text-align: left; cursor: pointer;
}
.track-option::before { content: ""; width: 14px; height: 14px; flex: none; border: 1px solid #5a5a52; border-radius: 50%; }
.track-option:hover { color: var(--white); background: #141412; }
.track-option[aria-checked="true"] { color: var(--white); font-weight: 700; }
.track-option[aria-checked="true"]::before { background: var(--yellow); border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--bar); }
.track-option .beta { margin-left: auto; font-size: 12px; color: var(--yellow); font-weight: 700; }
.track-more { padding: 10px; color: var(--timecode); font-size: 14px; }
.languages-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin-top: 36px; }
.languages-copy p { margin: 0; max-width: 46ch; color: var(--dim); font-size: clamp(17px, 1.3vw, 20px); }
.languages-copy strong { color: var(--white); }

/* Scene 6: the end credits are the price list */
.billing { display: inline-flex; margin-bottom: 28px; border: 1px solid #3a3a34; }
.billing-option { min-height: 44px; padding: 10px 18px; background: transparent; border: 0; color: var(--dim); font: 700 15px/1 var(--sans); cursor: pointer; }
.billing-option:hover { color: var(--white); }
.billing-option.is-on { background: var(--white); color: var(--bar); }

.credits { width: 100%; max-width: 1080px; border-collapse: collapse; }
.credits th, .credits td { padding: 13px 18px; vertical-align: baseline; }
.credits tbody th { text-align: right; font-weight: 400; color: var(--dim); width: 40%; }
.credits tbody td { color: var(--ink); width: 30%; }
.credits tbody tr { border-top: 1px solid var(--rule); }
.credits tbody td:last-child { color: var(--white); font-weight: 700; }
.credits thead th { text-align: left; padding-bottom: 26px; vertical-align: bottom; }
.plan { display: block; font-family: var(--title); font-weight: 800; font-size: clamp(30px, 3vw, 46px); letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.plan--pro { color: var(--yellow); }
.price { display: block; margin: 4px 0 16px; font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.price small { font-size: max(14px, 0.48em); font-weight: 400; color: var(--dim); }
.link { padding: 0; background: none; border: 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link:hover { color: var(--white); }

/* The end */
.scene--end { display: grid; justify-items: center; text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.end-card { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(64px, 9vw, 150px); line-height: 1; letter-spacing: 0.08em; color: #2a2a25; }
.end-line {
  margin: 10px 0 30px;
  font-size: calc(var(--sub-size) * 1.15); font-weight: 700; color: var(--white);
  -webkit-text-stroke: 0.14em #000; paint-order: stroke fill;
}

.bar--foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 28px; color: var(--timecode); font-size: 14px; }
.bar--foot p { margin: 0; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--dim); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .bar--top nav { display: none; }
  .bar-download { margin-left: auto; }
  .bar--bottom, .scene--private, .player, .languages-copy { grid-template-columns: 1fr; }
  .frame, .scene--hero .frame { aspect-ratio: 16 / 10; height: auto; }
  .window, .window--small { width: 86%; }
  .tracks { border-left: 0; border-top: 1px solid var(--rule); }
  .frame--player { min-height: 0; height: auto; aspect-ratio: 4 / 3.4; }
  .scene--private.scene--framed > .frame { margin-inline: calc(var(--gutter) * -1); }
  .scene--private.scene--framed .private-copy { order: -1; }
  .track { grid-template-columns: 1fr; }
  .cue { grid-column: 1; border-left: 0; border-top: 2px solid var(--rule); }
  .track-ruler { display: none; }
  .credits tbody th { text-align: left; width: auto; }
  .credits th, .credits td { padding: 11px 8px; font-size: 15px; }
}

@media (max-width: 520px) {
  .frame, .scene--hero .frame { aspect-ratio: 4 / 3.4; }
  .shot { padding: 6% 5% 22%; }
  .window, .window--small { width: 100%; }
  .credits thead th { padding-bottom: 18px; }
  .credits .button { padding-inline: 10px; font-size: 14px; white-space: nowrap; }
  .price small { display: block; }
  .bar--foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .marquee-row { animation: none; }
  .marquee { mask-image: none; }
  .marquee-row { flex-wrap: wrap; flex: 1; }
  .marquee-row[aria-hidden="true"] { display: none; }
}

/* Privacy policy and other plain reading pages */
.legal { max-width: 46rem; margin-inline: auto; padding: 56px var(--gutter) 88px; }
.legal h1 { font-family: var(--title); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: 0.02em; margin: 0 0 12px; color: var(--white); }
.legal h2 { font-size: 22px; line-height: 1.3; margin: 48px 0 12px; color: var(--white); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--yellow); }
.legal strong { color: var(--white); }
.legal-date { font-family: var(--mono); font-size: 14px; color: var(--timecode); margin: 0 0 32px; }
.legal-lead { font-size: 21px; line-height: 1.5; }
.legal-table { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.legal th { color: var(--dim); font-weight: 700; font-size: 14px; }
.legal td:first-child { color: var(--white); font-weight: 700; }
