/* Homepage hero: the four CamSwitch modes as an interactive Mac window.
   Everything inside .mx-window is sized in container units (cqw), so the window scales like a screenshot
   but stays sharp at any size. Motion is driven by hero-modes.js and respects prefers-reduced-motion. */

.mx-hero {
  --mx-accent: #ff723b;
  --mx-rec: #ff4e46;
  --mx-green: #34c759;
  --mx-ink: #f4f1e9;
  --mx-muted: #a9a79e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Kept tight so the app video shows on first load on a laptop screen. */
  padding: clamp(24px, 2.6vw, 44px) 0 clamp(40px, 5vw, 72px);
  background: #0c0d0e;
  color: var(--mx-ink);
}
.mx-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(40% 34% at 50% 58%, #ff723b38, transparent 70%),
    radial-gradient(30% 26% at 18% 30%, #ff4e4618, transparent 70%),
    radial-gradient(30% 26% at 84% 26%, #ffb08814, transparent 70%);
  filter: blur(10px);
  animation: mx-breathe 9s ease-in-out infinite alternate;
}
.mx-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
@keyframes mx-breathe {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(2%, -3%, 0) scale(1.06); opacity: 1; }
}

/* Intro copy */
.mx-intro {
  text-align: center;
  display: grid;
  justify-items: center;
}
.mx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: #ffffff08;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8d5cc;
}
.mx-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mx-rec);
  box-shadow: 0 0 0 0 #ff4e4680;
  animation: mx-pulse 1.8s ease-out infinite;
}
@keyframes mx-pulse {
  70% { box-shadow: 0 0 0 9px #ff4e4600; }
  100% { box-shadow: 0 0 0 0 #ff4e4600; }
}
.mx-title {
  margin: 0;
  font-size: clamp(40px, 5vw, 78px);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}
.mx-title .mx-line {
  display: block;
}
.mx-title em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 0.06em;
}
.mx-title em > span {
  padding: 0 0.04em 0.08em;
  color: #ffb088;
  background: linear-gradient(90deg, #ffd2b8, #ff8a5c 45%, #ffb088);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mx-title .mx-line > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  animation: mx-word 0.8s cubic-bezier(.2,.7,.2,1) forwards;
}
.mx-title .mx-line > span:nth-child(2) { animation-delay: 0.08s; }
.mx-title .mx-line > span:nth-child(3) { animation-delay: 0.16s; }
.mx-title .mx-line > span:nth-child(4) { animation-delay: 0.24s; }
.mx-title em.mx-line > span { animation-delay: 0.38s; }
@keyframes mx-word {
  to { opacity: 1; transform: none; filter: none; }
}
.mx-lead {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.5;
  color: #c9c7bf;
  opacity: 0;
  animation: mx-fade 0.8s 0.45s ease forwards;
}
.mx-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  opacity: 0;
  animation: mx-fade 0.8s 0.55s ease forwards;
}
@keyframes mx-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.mx-ctas .btn {
  min-height: 46px;
  font-size: 15px;
  padding-inline: 20px;
}
.mx-buy {
  box-shadow: 0 10px 40px #ff723b40, 0 1px 0 #ffb48f inset;
}
.mx-ghost {
  color: var(--mx-ink);
  border: 1px solid #ffffff30;
  background: #ffffff08;
  backdrop-filter: blur(8px);
}
.mx-ghost:hover {
  border-color: #ffffff70;
  background: #ffffff12;
}
.mx-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: #d8d5cc;
  font-weight: 600;
}
.mx-watch svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  background: #ffffff14;
}
.mx-watch:hover {
  color: #fff;
}
.mx-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 12px 0 0;
  font: 400 12px var(--mono);
  color: #8f8d85;
  opacity: 0;
  animation: mx-fade 0.8s 0.65s ease forwards;
}
.mx-trust > span::before {
  content: "✓ ";
  color: var(--mx-accent);
}

/* Mode tabs */
.mx-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: clamp(20px, 2.2vw, 30px);
  max-width: 1080px;
}
.mx-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff0b, #ffffff04);
  color: #bdbbb3;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}
.mx-tab:hover {
  color: var(--mx-ink);
  border-color: #ffffff2e;
  transform: translateY(-2px);
}
.mx-tab svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
  background: #ffffff0d;
  transition: background 0.3s, color 0.3s;
}
.mx-tab-text {
  display: grid;
  gap: 2px;
}
.mx-tab b {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: inherit;
}
.mx-tab small {
  font-size: 12px;
  color: #8f8d85;
}
.mx-tab[aria-selected="true"] {
  color: #fff;
  border-color: #ff723b8c;
  background: linear-gradient(180deg, #ff723b24, #ff723b08);
  box-shadow: 0 12px 40px #ff723b1f;
}
.mx-tab[aria-selected="true"] svg {
  color: #17120f;
  background: var(--mx-accent);
}
.mx-tab[aria-selected="true"] small {
  color: #f2c3a8;
}
.mx-tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--mx-accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Stage + 3D window */
.mx-stage {
  width: min(1240px, 94vw);
  margin: 16px auto 0;
  perspective: 2200px;
}
.mx-window {
  --rx: 0deg;
  --ry: 0deg;
  --enter: 1;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9.6;
  border-radius: clamp(10px, 1.1vw, 16px);
  overflow: hidden;
  background: #161719;
  border: 1px solid #ffffff1c;
  box-shadow:
    0 0 0 1px #00000080,
    0 40px 120px -20px #000000d0,
    0 30px 90px -30px #ff723b40;
  transform: rotateX(calc(var(--rx) + var(--enter) * 14deg)) rotateY(var(--ry)) translateY(calc(var(--enter) * 40px)) scale(calc(1 - var(--enter) * 0.06));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  font-family: var(--sans);
  font-size: 1.05cqw;
  color: #e9e7e1;
}
.mx-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff10, transparent 35%);
}
.mx-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 3.6cqw;
  padding: 0 1.3cqw;
  background: #202124;
  border-bottom: 1px solid #ffffff10;
}
.mx-lights {
  display: flex;
  gap: 0.6cqw;
}
.mx-lights i {
  width: 0.95cqw;
  height: 0.95cqw;
  border-radius: 50%;
  background: #ff5f57;
}
.mx-lights i:nth-child(2) { background: #febc2e; }
.mx-lights i:nth-child(3) { background: #28c840; }
.mx-apptitle {
  margin-left: 1.6cqw;
  font-weight: 650;
  font-size: 1.05cqw;
  color: #cfcdc6;
}
.mx-seg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 6.4cqw);
  padding: 0.25cqw;
  border-radius: 0.8cqw;
  background: #2d2e31;
  font-size: 0.92cqw;
  font-weight: 600;
  color: #b6b4ad;
}
.mx-seg span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.35cqw 0;
  transition: color 0.3s;
}
.mx-seg-thumb {
  position: absolute;
  top: 0.25cqw;
  bottom: 0.25cqw;
  left: 0.25cqw;
  width: 6.4cqw;
  border-radius: 0.6cqw;
  background: #4a4b4f;
  transition: transform 0.45s cubic-bezier(.3,.8,.2,1);
}
.mx-stage[data-mode="presenter"] .mx-seg-thumb { transform: translateX(6.4cqw); }
.mx-stage[data-mode="screen"] .mx-seg-thumb { transform: translateX(12.8cqw); }
.mx-stage[data-mode="edit"] .mx-seg-thumb { transform: translateX(19.2cqw); }
.mx-stage[data-mode="aroll"] [data-seg="aroll"],
.mx-stage[data-mode="presenter"] [data-seg="presenter"],
.mx-stage[data-mode="screen"] [data-seg="screen"],
.mx-stage[data-mode="edit"] [data-seg="edit"] {
  color: #fff;
}
.mx-title-icons {
  margin-left: auto;
  display: flex;
  gap: 0.8cqw;
}
.mx-title-icons i {
  width: 1.5cqw;
  height: 1.1cqw;
  border-radius: 0.25cqw;
  border: 1px solid #ffffff38;
}

/* Panes */
.mx-pane {
  position: absolute;
  inset: 3.6cqw 0 0;
  display: grid;
  grid-template-rows: 1fr auto;
}
.mx-pane[hidden] {
  display: none;
}
.mx-pane.is-entering {
  animation: mx-pane-in 0.55s cubic-bezier(.2,.7,.2,1);
}
@keyframes mx-pane-in {
  from { opacity: 0; transform: translateY(1.2cqw) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.mx-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45cqw;
  padding: 0.35cqw 0.7cqw;
  border-radius: 0.5cqw;
  background: #0d0e0fcc;
  backdrop-filter: blur(6px);
  font: 600 0.85cqw/1 var(--mono);
  letter-spacing: 0.04em;
  color: #fff;
  z-index: 3;
}
.mx-badge svg {
  width: 1.05cqw;
  height: 1.05cqw;
}
.mx-rec i,
.pr-onair i {
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: var(--mx-rec);
  animation: mx-blink 1.1s steps(2) infinite;
}
@keyframes mx-blink {
  50% { opacity: 0.25; }
}

/* Dock */
.mx-dock {
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  margin: 0 auto 1.1cqw;
  padding: 0.55cqw 0.7cqw;
  border-radius: 1.1cqw;
  background: #232427e6;
  border: 1px solid #ffffff14;
  box-shadow: 0 1cqw 3cqw #00000066;
  font-size: 0.8cqw;
  color: #a9a79e;
}
.mx-dock .dk {
  padding: 0.45cqw 0.6cqw;
  border-radius: 0.5cqw;
  white-space: nowrap;
}
.mx-dock .dk.on {
  color: #ffb088;
  background: #ff723b1a;
}
.mx-dock .dk-main {
  padding: 0.5cqw 0.9cqw;
  border-radius: 0.6cqw;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
}
.dk-vc { background: #3a3b3f; }
.dk-live { background: #5b49d6; }
.dk-live.is-live { background: var(--mx-rec); }
.dk-rec { background: var(--mx-rec); }
.dk-export { background: var(--mx-accent); color: #17120f !important; }

/* A-ROLL */
.ar-body {
  display: grid;
  grid-template-rows: auto auto;
  justify-content: center;
  align-content: center;
  gap: 1.1cqw;
  padding-top: 0.6cqw;
}
.ar-program {
  position: relative;
  width: 69cqw;
  aspect-ratio: 16 / 9;
  border-radius: 0.8cqw;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px #ffffff14;
}
.ar-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.35s ease, transform 6s linear;
}
.ar-shot.is-live {
  opacity: 1;
  transform: scale(1);
}
.ar-cut-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.ar-cut-flash.go {
  animation: ar-flash 0.35s ease-out;
}
@keyframes ar-flash {
  0% { opacity: 0.18; }
  100% { opacity: 0; }
}
.ar-program .mx-rec { top: 1cqw; left: 1cqw; }
.ar-cam-label { left: 1cqw; bottom: 1cqw; }
.ar-auto { right: 1cqw; bottom: 1cqw; color: #ffd2b8; }
.ar-vertical {
  position: absolute;
  top: 1cqw;
  right: 1cqw;
  z-index: 3;
  display: grid;
  gap: 0.35cqw;
  justify-items: center;
  font: 600 0.75cqw var(--mono);
  color: #fff;
}
.ar-vertical span {
  padding: 0.2cqw 0.45cqw;
  border-radius: 0.35cqw;
  background: #0d0e0fcc;
}
.ar-vertical-frame {
  width: 7cqw;
  aspect-ratio: 9 / 16;
  border-radius: 0.6cqw;
  overflow: hidden;
  border: 0.15cqw solid #fff;
  box-shadow: 0 0.8cqw 2cqw #00000080;
}
.ar-vshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transition: opacity 0.3s;
}
.ar-strip {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.ar-tile {
  position: relative;
  width: 11.5cqw;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 0.6cqw;
  overflow: hidden;
  border: 0.18cqw solid transparent;
  box-shadow: 0 0 0 1px #ffffff1f;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.ar-tile:hover {
  transform: translateY(-0.2cqw);
}
.ar-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-tile span {
  position: absolute;
  left: 0.4cqw;
  bottom: 0.4cqw;
  display: flex;
  align-items: center;
  gap: 0.35cqw;
  padding: 0.2cqw 0.45cqw;
  border-radius: 0.35cqw;
  background: #0d0e0fcc;
  font: 600 0.72cqw var(--sans);
  color: #fff;
}
.ar-tile kbd,
.ar-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.15cqw;
  height: 1.15cqw;
  padding: 0 0.2cqw;
  border-radius: 0.25cqw;
  background: #ffffff26;
  font: 600 0.7cqw var(--mono);
  color: #fff;
}
.ar-tile.is-live {
  border-color: var(--mx-rec);
}
.ar-tile.is-live::after {
  content: "LIVE";
  position: absolute;
  top: 0.4cqw;
  right: 0.4cqw;
  padding: 0.15cqw 0.35cqw;
  border-radius: 0.25cqw;
  background: var(--mx-rec);
  font: 700 0.6cqw var(--mono);
  color: #fff;
}
.ar-hint {
  margin: 0 0 0 1cqw;
  font-size: 0.85cqw;
  color: #9a988f;
}

/* PRESENTER */
.pr-body {
  display: grid;
  grid-template-columns: 11.5cqw 1fr 13.5cqw;
  gap: 1.1cqw;
  padding: 1.1cqw 1.3cqw 0;
  align-items: start;
  align-content: center;
}
.pr-scenes,
.pr-side {
  display: grid;
  gap: 0.6cqw;
  padding: 0.9cqw;
  border-radius: 0.9cqw;
  background: #1f2023;
  border: 1px solid #ffffff10;
  font-size: 0.85cqw;
}
.pr-scenes b,
.pr-side b {
  font-size: 0.9cqw;
  color: #fff;
  margin-bottom: 0.2cqw;
}
.pr-scene {
  display: grid;
  gap: 0.35cqw;
  padding: 0.4cqw;
  border-radius: 0.6cqw;
  border: 0.14cqw solid transparent;
  color: #bdbbb3;
  font-size: 0.78cqw;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.pr-scene.is-on {
  border-color: var(--mx-accent);
  background: #ff723b14;
  color: #fff;
}
.pr-scene .th {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 0.4cqw;
  background-size: cover;
  background-position: center;
}
.th-int { background: url(media/hero/host-front-1200.webp) left/50% 100% no-repeat, url(media/guest-1.webp) right/50% 100% no-repeat, #333; background-size: 50% 100%, 50% 100%; background-position: left center, right center; }
.th-solo { background-image: url(media/hero/host-close-1200.webp); }
.th-slides { background: linear-gradient(135deg, #2b1d16, #5a3322); position: relative; }
.pr-program {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.8cqw;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff14;
}
.pr-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 10%, #ff8a5c55, transparent 60%),
    radial-gradient(60% 80% at 90% 90%, #6b3cff33, transparent 60%),
    linear-gradient(135deg, #221713, #120f12);
}
.pr-layer {
  position: absolute;
  overflow: hidden;
  border-radius: 0.8cqw;
  box-shadow: 0 0.8cqw 2.2cqw #00000070;
  transition: all 0.7s cubic-bezier(.3,.8,.2,1);
}
.pr-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pr-slide {
  background: linear-gradient(135deg, #fbf4ea, #f1e2d1);
  color: #241c16;
  border-radius: 0.8cqw;
}
.slide-in {
  display: grid;
  gap: 0.6cqw;
  padding: 7% 8%;
  height: 100%;
  align-content: center;
}
.slide-in small {
  font: 600 0.8cqw var(--mono);
  color: #c4562b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slide-in strong {
  font-size: 2.3cqw;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.slide-in span {
  font-size: 0.95cqw;
  line-height: 1.55;
  color: #5c534c;
}
/* Layout: interview */
.pr-program[data-layout="interview"] .pr-host { left: 4%; top: 9%; width: 45%; height: 70%; }
.pr-program[data-layout="interview"] .pr-guest { left: 51%; top: 9%; width: 45%; height: 70%; }
.pr-program[data-layout="interview"] .pr-slide { left: 104%; top: 9%; width: 60%; height: 70%; opacity: 0; }
/* Layout: solo + headline */
.pr-program[data-layout="solo"] .pr-host { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
.pr-program[data-layout="solo"] .pr-guest { left: 74%; top: 6%; width: 22%; height: 30%; opacity: 0; }
.pr-program[data-layout="solo"] .pr-slide { left: 104%; top: 9%; width: 60%; height: 70%; opacity: 0; }
/* Layout: slides + camera */
.pr-program[data-layout="slides"] .pr-slide { left: 4%; top: 8%; width: 66%; height: 78%; opacity: 1; }
.pr-program[data-layout="slides"] .pr-host { left: 72%; top: 8%; width: 24%; height: 36%; }
.pr-program[data-layout="slides"] .pr-guest { left: 72%; top: 48%; width: 24%; height: 36%; }
.pr-lower {
  position: absolute;
  display: grid;
  padding: 0.5cqw 0.9cqw;
  border-left: 0.35cqw solid var(--mx-accent);
  border-radius: 0.3cqw;
  background: #0d0e0fe6;
  font-size: 0.85cqw;
  color: #cfcdc6;
  opacity: 0;
  transform: translateY(1cqw);
  transition: opacity 0.4s 0.35s, transform 0.4s 0.35s;
}
.pr-lower b {
  font-size: 1.05cqw;
  color: #fff;
}
.pr-lower-host { left: 6%; bottom: 13%; }
.pr-lower-guest { left: 53%; bottom: 13%; }
.pr-program[data-layout="interview"] .pr-lower {
  opacity: 1;
  transform: none;
}
.pr-headline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.8cqw 1.2cqw;
  background: linear-gradient(90deg, #0d0e0ff2, #0d0e0fb3);
  font-size: 1.1cqw;
  transform: translateY(105%);
  transition: transform 0.5s 0.25s cubic-bezier(.3,.8,.2,1);
}
.pr-headline span {
  padding: 0.25cqw 0.55cqw;
  border-radius: 0.3cqw;
  background: var(--mx-rec);
  font: 700 0.8cqw var(--mono);
}
.pr-program[data-layout="solo"] .pr-headline {
  transform: none;
}
.pr-onair {
  top: 1cqw;
  left: 1cqw;
  background: #ff4e46;
}
.pr-onair i {
  background: #fff;
}
.pr-dest {
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  color: #dedcd5;
}
.pr-dest i {
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: var(--mx-green);
  box-shadow: 0 0 0.6cqw var(--mx-green);
}
.pr-dest small {
  margin-left: auto;
  color: #8f8d85;
  font-family: var(--mono);
}
.pr-health {
  font-size: 0.72cqw;
  color: #7fd492;
  font-family: var(--mono);
}
.pr-air {
  margin-top: 0.4cqw;
  padding: 0.65cqw;
  border-radius: 0.6cqw;
  background: var(--mx-rec);
  font: 700 0.9cqw var(--sans);
  color: #fff;
  cursor: pointer;
}
.pr-air:active {
  transform: scale(0.97);
}

/* SCREEN */
.sc-body {
  position: relative;
  padding: 1.3cqw 1.3cqw 0;
}
.sc-viewport {
  position: relative;
  height: 100%;
  border-radius: 0.8cqw;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff14;
  background: #0f1012;
}
.sc-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform 0.9s cubic-bezier(.45,.05,.2,1);
}
.sc-app {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 15cqw 1fr;
  background: #f7f6f3;
  color: #1d1c1a;
  font-size: 0.95cqw;
}
.sc-side {
  display: grid;
  align-content: start;
  gap: 0.4cqw;
  padding: 1.4cqw 1cqw;
  background: #eeece7;
  border-right: 1px solid #e0ddd6;
  color: #66625b;
}
.sc-side b {
  margin-bottom: 1cqw;
  color: #1d1c1a;
  font-size: 1.1cqw;
}
.sc-side span {
  padding: 0.5cqw 0.7cqw;
  border-radius: 0.5cqw;
}
.sc-side .on {
  background: #fff;
  color: #1d1c1a;
  font-weight: 650;
  box-shadow: 0 1px 2px #0000000f;
}
.sc-main {
  display: grid;
  align-content: start;
  gap: 1.2cqw;
  padding: 1.6cqw 2cqw;
}
.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-top strong {
  font-size: 1.8cqw;
  letter-spacing: -0.03em;
}
.sc-btn {
  padding: 0.6cqw 1.1cqw;
  border-radius: 0.6cqw;
  background: #1d1c1a;
  color: #fff;
  font-weight: 650;
  transition: transform 0.15s;
}
.sc-btn.press {
  transform: scale(0.94);
  background: #ff723b;
  color: #17120f;
}
.sc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
}
.sc-kpis span {
  display: grid;
  gap: 0.2cqw;
  padding: 1cqw;
  border-radius: 0.8cqw;
  background: #fff;
  box-shadow: 0 1px 3px #0000000f;
}
.sc-kpis small {
  color: #7d786f;
}
.sc-kpis b {
  font-size: 1.8cqw;
  letter-spacing: -0.03em;
}
.sc-kpis em {
  font-style: normal;
  color: #1f9d55;
  font-weight: 650;
  font-size: 0.85cqw;
}
.sc-chart {
  height: 11cqw;
  padding: 0.8cqw;
  border-radius: 0.8cqw;
  background: #fff;
  box-shadow: 0 1px 3px #0000000f;
}
.sc-chart svg {
  width: 100%;
  height: 100%;
}
.sc-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.mx-pane[data-pane="screen"]:not([hidden]) .sc-line {
  animation: sc-draw 2.4s 0.3s ease forwards;
}
@keyframes sc-draw {
  to { stroke-dashoffset: 0; }
}
.sc-rows {
  display: grid;
  gap: 0.5cqw;
}
.sc-rows span {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.6cqw 0.8cqw;
  border-radius: 0.6cqw;
  background: #fff;
}
.sc-rows i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb088, #ff723b);
}
.sc-rows b {
  margin-left: auto;
}
.sc-cursor {
  position: absolute;
  left: 60%;
  top: 60%;
  width: 2cqw;
  height: 2cqw;
  filter: drop-shadow(0 0.2cqw 0.4cqw #0006);
  transition: left 0.9s cubic-bezier(.45,.05,.2,1), top 0.9s cubic-bezier(.45,.05,.2,1);
  z-index: 4;
}
.sc-ripple {
  position: absolute;
  width: 3cqw;
  height: 3cqw;
  margin: -1.5cqw 0 0 -1.5cqw;
  border-radius: 50%;
  border: 0.2cqw solid #ff723b;
  opacity: 0;
  z-index: 3;
}
.sc-ripple.go {
  animation: sc-ripple 0.6s ease-out;
}
@keyframes sc-ripple {
  from { opacity: 1; transform: scale(0.3); }
  to { opacity: 0; transform: scale(1.6); }
}
.sc-bubble {
  position: absolute;
  left: 2.6cqw;
  bottom: 1.6cqw;
  width: 11cqw;
  height: 11cqw;
  border-radius: 50%;
  object-fit: cover;
  border: 0.3cqw solid #fff;
  box-shadow: 0 1cqw 3cqw #00000070;
  z-index: 5;
  animation: sc-float 5s ease-in-out infinite alternate;
}
@keyframes sc-float {
  to { transform: translateY(-0.5cqw); }
}
.sc-keys {
  position: absolute;
  left: 50%;
  bottom: 2.4cqw;
  display: flex;
  gap: 0.4cqw;
  transform: translate(-50%, 1cqw);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 5;
}
.sc-keys.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sc-keys kbd {
  min-width: 3cqw;
  padding: 0.6cqw 0.8cqw;
  border-radius: 0.6cqw;
  background: #1d1c1aeb;
  box-shadow: 0 0.3cqw 0 #000, 0 1cqw 2cqw #0006;
  font: 650 1.4cqw var(--sans);
  color: #fff;
  text-align: center;
}
.sc-rec {
  bottom: 2.3cqw;
  right: 2.3cqw;
}
.sc-zoomtag {
  bottom: 2.3cqw;
  right: 12cqw;
  color: #ffd2b8;
}

/* EDIT */
.ed-body {
  display: grid;
  grid-template-columns: 57cqw 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1.1cqw;
  padding: 0.8cqw 1.3cqw 0;
}
.ed-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.8cqw;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff14;
}
.ed-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-angle {
  top: 1cqw;
  left: 1cqw;
}
.ed-caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  margin: 0;
  text-align: center;
  font: 800 1.9cqw/1.15 var(--sans);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0.2cqw 0.8cqw #000a;
  min-height: 2.2cqw;
}
.ed-caption .w {
  display: inline-block;
  margin: 0 0.25cqw;
  animation: ed-pop 0.25s ease-out;
}
.ed-caption .w.now {
  color: #17120f;
  background: #ffb088;
  padding: 0 0.35cqw;
  border-radius: 0.35cqw;
}
@keyframes ed-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ed-script {
  display: grid;
  align-content: center;
  gap: 1cqw;
  padding: 1.1cqw 1.3cqw;
  border-radius: 0.9cqw;
  background: #1f2023;
  border: 1px solid #ffffff10;
}
.ed-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1cqw;
}
.ed-magic {
  padding: 0.45cqw 0.9cqw;
  border-radius: 0.6cqw;
  background: linear-gradient(135deg, #ff8a5c, #ff4e46);
  font: 700 0.85cqw var(--sans);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0.4cqw 1.4cqw #ff723b55;
}
.ed-magic.press {
  transform: scale(0.95);
}
.ed-words {
  margin: 0;
  font-size: 1.25cqw;
  line-height: 1.65;
  color: #dedcd5;
}
.ed-words s {
  text-decoration: none;
  border-radius: 0.3cqw;
  padding: 0 0.15cqw;
  transition: color 0.3s, background 0.3s;
  cursor: pointer;
}
.ed-words s.cut {
  color: #8b4a3a;
  text-decoration: line-through 0.12cqw #ff4e46;
  background: #ff4e4614;
}
.ed-words .ed-now {
  color: #fff;
  background: #ff723b33;
  border-radius: 0.25cqw;
}
.ed-saved {
  margin: 0;
  font: 600 0.85cqw var(--mono);
  color: #7fd492;
}
.ed-timeline {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 0.5cqw;
  padding: 0.9cqw 1.1cqw;
  border-radius: 0.9cqw;
  background: #1f2023;
  border: 1px solid #ffffff10;
  align-self: start;
}
.ed-track {
  display: flex;
  gap: 0.25cqw;
  height: 2.6cqw;
}
.ed-track i {
  width: var(--w);
  border-radius: 0.35cqw;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 70%, #000));
  opacity: 0.85;
}
.ed-captrack {
  height: 1.2cqw;
}
.ed-captrack i {
  background: #6f6dfa99;
}
.ed-playhead {
  position: absolute;
  top: 0.4cqw;
  bottom: 0.4cqw;
  left: 1.1cqw;
  width: 0.18cqw;
  background: #fff;
  box-shadow: 0 0 0.6cqw #fff;
}

/* Proof line under the window */
.mx-proof {
  margin-top: 26px;
  min-height: 46px;
}
.mx-proof-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.mx-proof-set.is-active {
  animation: mx-fade 0.5s ease;
}
.mx-proof-set span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff17;
  background: #ffffff07;
  font-size: 14px;
  color: #d4d2ca;
}
.mx-proof-set a {
  padding: 8px 6px;
  font-weight: 650;
  color: #ffb088;
}
.mx-proof-set a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .mx-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .mx-tab {
    padding: 12px;
    gap: 10px;
  }
  .mx-tab svg {
    width: 30px;
    height: 30px;
  }
  .mx-tab b {
    font-size: 15px;
  }
  .mx-tab small {
    font-size: 12px;
  }
  .mx-window {
    aspect-ratio: 16 / 11;
  }
  .mx-trust {
    gap: 4px 14px;
    font-size: 12px;
  }
  .mx-proof-set span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-glow,
  .mx-live-dot,
  .sc-bubble,
  .mx-rec i {
    animation: none;
  }
  .mx-title .mx-line > span,
  .mx-lead,
  .mx-ctas,
  .mx-trust {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .mx-window {
    --enter: 0 !important;
    transition: none;
  }
  .ar-shot {
    transition: opacity 0.2s;
    transform: none !important;
  }
}
.mx-proof-set[hidden] {
  display: none;
}

/* Scroll reveal for the sections below the hero (added by hero-modes.js only, so no-JS stays visible). */
.mx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.mx-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .mx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Real app recordings in the hero window. The recordings include the app's own title bar. */
.mx-window.mx-real {
  aspect-ratio: 16 / 10;
  background: #000;
  font-size: initial;
}
.mx-real .mx-pane {
  inset: 0;
  display: block;
}
.mx-real .mx-pane[hidden] {
  display: none;
}
.mx-clip {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.mx-real-note {
  margin: 14px 0 0;
  text-align: center;
  font: 400 12px var(--mono);
  color: #77756e;
}
