/* CastPanda page styles. Loaded after main.css; every class is prefixed with "ap-"
   so nothing here touches Bulma or the other pages. */

.ap {
  /* Brand colors come from the app icon: its graphite tile, top to bottom, and a cool silver
     that stands in for it on dark sections. */
  --ap-graphite: #3A3D44;
  --ap-graphite-2: #2B2E35;
  --ap-silver: #D3D6DC;
  /* One accent, the app's own blue, used sparingly against the graphite: links, labels, icons,
     the cast waves. The brighter shade is for dark sections. */
  --ap-accent: #336BFA;
  --ap-accent-bright: #5B93FF;
  --ap-gradient: linear-gradient(180deg, var(--ap-graphite) 0%, #0E0F12 100%);
  --ap-gradient-silver: linear-gradient(120deg, #FFFFFF 0%, #C9CDD4 50%, #8E949E 100%);
  --ap-gradient-accent: linear-gradient(120deg, #FFFFFF 0%, #A9C6FF 45%, #5B93FF 100%);
  --ap-button: linear-gradient(180deg, #3A3D44 0%, #0E0F12 100%);
  --ap-ink: #0B0C0F;
  --ap-ink-2: #17181C;
  --ap-text: #1D1D1F;
  --ap-muted: #5F5F68;
  --ap-line: rgba(15, 15, 40, 0.08);
  --ap-light: #F6F6F6;
  --ap-card: #FFFFFF;
  --ap-on-dark: #FFFFFF;
  --ap-on-dark-muted: #B6BAC2;
  --ap-radius: 20px;
  --ap-max: 1160px;
  --ap-gutter: clamp(20px, 4vw, 40px);

  color: var(--ap-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.ap strong {
  color: inherit;
  font-weight: 600;
}

.ap a {
  color: var(--ap-accent);
}

.ap a:hover {
  color: #0E0F12;
}

.ap :focus-visible {
  outline: 3px solid var(--ap-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.ap-dark :focus-visible {
  outline-color: var(--ap-accent-bright);
}

.ap-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.ap-wrap {
  width: 100%;
  max-width: var(--ap-max);
  margin: 0 auto;
  padding-left: var(--ap-gutter);
  padding-right: var(--ap-gutter);
}

.ap-section {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.ap-section--light {
  background: var(--ap-light);
}

.ap-dark {
  background-color: var(--ap-ink);
  color: var(--ap-on-dark);
}

.ap-section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

/* ---------- Type ---------- */

.ap-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-accent);
}

.ap-dark .ap-eyebrow {
  color: var(--ap-accent-bright);
}

.ap-h1,
.ap-h2,
.ap-h3 {
  margin: 0;
  text-wrap: balance;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ap-h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.ap-h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
}

.ap-h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ap-lead {
  margin: 20px 0 0;
  text-wrap: pretty;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ap-muted);
}

.ap-dark .ap-lead {
  color: var(--ap-on-dark-muted);
}

.ap-gradient-text {
  background: var(--ap-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.ap-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ap-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.ap .ap-btn--primary,
.ap .ap-btn--primary:hover {
  color: #FFFFFF;
  background: var(--ap-button);
  box-shadow: 0 10px 30px -8px rgba(14, 15, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* On dark sections a graphite button would sink into the background, so it turns white. */
.ap .ap-dark .ap-btn--primary,
.ap .ap-dark .ap-btn--primary:hover {
  color: #0E0F12;
  background: #FFFFFF;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.ap-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(14, 15, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ap .ap-btn--secondary {
  color: var(--ap-text);
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(15, 15, 40, 0.14);
}

.ap .ap-btn--secondary:hover {
  color: var(--ap-text);
  box-shadow: inset 0 0 0 1.5px rgba(15, 15, 40, 0.32);
}

.ap .ap-dark .ap-btn--secondary {
  color: var(--ap-on-dark);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}

.ap .ap-dark .ap-btn--secondary:hover {
  color: var(--ap-on-dark);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.ap-fineprint {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--ap-muted);
}

.ap-dark .ap-fineprint {
  color: var(--ap-on-dark-muted);
}

/* ---------- Hero ---------- */

.ap-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(72px, 9vw, 128px);
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(74, 133, 255, 0.22), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(201, 205, 212, 0.08), transparent 70%),
    radial-gradient(40% 40% at 50% 110%, rgba(120, 126, 138, 0.14), transparent 70%),
    var(--ap-ink);
}

.ap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}

.ap-hero-copy {
  text-align: center;
}

.ap-hero-copy .ap-lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ap-hero-copy .ap-buttons {
  justify-content: center;
}

.ap-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ap-on-dark);
}

.ap-app-badge img {
  width: 56px;
  height: 56px;
  margin: -4px;
  /* White icon tile on a dark surface: a soft dark shadow grounds it so it doesn't glare. */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.ap-app-badge span {
  color: var(--ap-on-dark-muted);
  font-weight: 500;
}

@media (min-width: 1000px) {
  .ap-hero-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  }

  .ap-hero-copy {
    text-align: left;
  }

  .ap-hero-copy .ap-lead {
    margin-left: 0;
  }

  .ap-hero-copy .ap-buttons {
    justify-content: flex-start;
  }
}

/* ---------- Product visual: TV + Mac window ---------- */

.ap-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 6%;
}

.ap-tv {
  position: relative;
}

.ap-tv-frame {
  padding: 1.4%;
  border-radius: 16px;
  background: linear-gradient(180deg, #24242C, #0D0D12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -20px rgba(91, 147, 255, 0.2);
}

.ap-tv-stand {
  width: 26%;
  height: 14px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #1A1A22, #2A2A33);
}

.ap-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  container-type: inline-size;
  background:
    radial-gradient(circle at 50% 70%, #FFE3B0 0 3.5%, rgba(255, 196, 128, 0.9) 5.5%, rgba(255, 140, 92, 0.38) 16%, transparent 36%),
    linear-gradient(180deg, #110C36 0%, #261861 26%, #6A3488 50%, #D9705E 68%, #F6A95F 78%, #F7B970 82%);
}

.ap-scene::before,
.ap-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.ap-scene::before {
  height: 40%;
  background: linear-gradient(180deg, #4B2B6E, #24163F);
  clip-path: polygon(0 58%, 9% 40%, 18% 52%, 30% 18%, 41% 46%, 52% 34%, 63% 56%, 74% 22%, 86% 44%, 94% 30%, 100% 40%, 100% 100%, 0 100%);
}

.ap-scene::after {
  height: 27%;
  background: linear-gradient(180deg, #1B1030, #0B0718);
  clip-path: polygon(0 44%, 14% 70%, 27% 36%, 39% 62%, 50% 48%, 61% 74%, 76% 30%, 88% 60%, 100% 42%, 100% 100%, 0 100%);
}

.ap-scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 12cqw rgba(0, 0, 0, 0.45);
}

.ap-subtitle-line {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  max-width: 86%;
  padding: 0.5cqw 1.6cqw;
  border-radius: 0.8cqw;
  background: rgba(0, 0, 0, 0.62);
  color: #FFFFFF;
  font-size: max(11px, 3.4cqw);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* Mac window, casting to the TV: signal arcs pulse out of its top-right corner. The
   wrapper places the window and holds the arcs, which the window's own clipping would cut. */

.ap-caster {
  position: relative;
  width: 92%;
  margin: -14% auto 0;
  z-index: 2;
}

.ap-waves {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ap-waves i {
  --r: 24px;
  position: absolute;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border: 3px solid transparent;
  border-top-color: var(--ap-accent-bright);
  border-radius: 50%;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(91, 147, 255, 0.7));
  opacity: 0.15;
  animation: ap-wave 1.8s ease-in-out infinite;
}

.ap-waves i:nth-child(2) {
  --r: 44px;
  animation-delay: 0.3s;
}

.ap-waves i:nth-child(3) {
  --r: 64px;
  animation-delay: 0.6s;
}

@keyframes ap-wave {
  0% { opacity: 0.15; }
  30% { opacity: 1; }
  60%, 100% { opacity: 0.15; }
}

.ap-window {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(30, 30, 40, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px -18px rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 13px;
  text-align: left;
}

@media (min-width: 560px) {
  .ap-caster {
    position: absolute;
    left: -5%;
    bottom: 0;
    width: 60%;
    min-width: 330px;
    margin: 0;
  }
}

@media (min-width: 1000px) {
  .ap-caster {
    left: -9%;
  }
}

.ap-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF5F57;
}

.ap-window-bar i:nth-child(2) {
  background: #FEBC2E;
}

.ap-window-bar i:nth-child(3) {
  background: #28C840;
}

.ap-window-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.ap-window-body {
  padding: 16px 16px 14px;
}

.ap-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-thumb {
  flex: none;
  width: 64px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ap-now-text {
  min-width: 0;
}

.ap-file-name {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ap-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.ap-status-dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-accent-bright);
}

.ap-status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ap-accent-bright);
  opacity: 0;
  animation: ap-pulse 2.4s ease-out infinite;
}

@keyframes ap-pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ap-timeline {
  margin-top: 16px;
}

.ap-track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.ap-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-accent-bright));
}

.ap-track-knob {
  position: absolute;
  top: 50%;
  left: 36%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ap-times {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
}

.ap-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ap-transport {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-transport svg {
  display: block;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.ap-play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
}

.ap .ap-play svg {
  width: 16px;
  height: 16px;
  color: var(--ap-ink);
}

.ap-route-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ap-route-pill svg {
  width: 15px;
  height: 15px;
  color: var(--ap-accent-bright);
}

/* ---------- Works-with strip ---------- */

.ap-works {
  padding: clamp(48px, 6vw, 72px) 0 clamp(44px, 5.5vw, 64px);
  background: #FFFFFF;
  text-align: center;
}

.ap-works .ap-eyebrow {
  margin-bottom: 26px;
}

.ap-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .ap-devices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.ap-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 14px 24px;
  border-radius: var(--ap-radius);
  background: linear-gradient(180deg, #FFFFFF 0%, #F9F9FC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(15, 15, 40, 0.07),
    0 1px 2px rgba(15, 15, 40, 0.04),
    0 14px 30px -22px rgba(14, 15, 18, 0.3);
}

.ap-device-glyph {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 22px;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(135deg, rgba(58, 61, 68, 0.1), rgba(58, 61, 68, 0.05));
  box-shadow: inset 0 0 0 1px rgba(58, 61, 68, 0.1);
}

.ap-device-glyph svg {
  width: 52px;
  height: 52px;
  overflow: visible;
}

.ap-device-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ap-text);
}

.ap-device-note {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ap-muted);
}

.ap-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
}

.ap-brands-label {
  margin-right: 4px;
  font-size: 0.9375rem;
  color: var(--ap-muted);
}

.ap-brands ul {
  display: contents;
  list-style: none;
}

.ap-brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ap-light);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 40, 0.06);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #3A3A44;
}

.ap .ap-brand--more {
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  font-weight: 500;
  color: var(--ap-muted);
}

@media (max-width: 480px) {
  .ap-device {
    padding: 22px 10px 20px;
  }

  .ap-device-glyph {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .ap-device-glyph svg {
    width: 44px;
    height: 44px;
  }

  .ap-device-name {
    font-size: 1rem;
  }

  .ap-brands {
    gap: 8px;
  }

  .ap-brands-label {
    flex-basis: 100%;
    margin: 0 0 2px;
  }

  .ap-brand {
    height: 32px;
    padding: 0 11px;
    font-size: 0.875rem;
  }
}

/* ---------- Features ---------- */

.ap-icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--ap-gradient);
  box-shadow: 0 8px 20px -8px rgba(14, 15, 18, 0.45);
  color: #FFFFFF;
}

.ap-icon-tile svg {
  width: 24px;
  height: 24px;
}

.ap-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .ap-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .ap-extras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ap-extras li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ap-muted);
}

.ap-extras strong {
  display: block;
  color: var(--ap-text);
}

.ap-extras svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--ap-accent);
}

/* ---------- Spotlights ---------- */

.ap-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 900px) {
  .ap-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ap-split--flip .ap-split-visual {
    order: 2;
  }
}

.ap-checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ap-checks li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--ap-text);
}

.ap-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--ap-gradient);
}

.ap-dark .ap-checks li {
  color: var(--ap-on-dark);
}

/* Subtitles visual */

.ap-scene--night {
  background:
    radial-gradient(circle at 74% 26%, #FFFFFF 0 2.4%, rgba(210, 228, 255, 0.55) 3.6%, rgba(160, 200, 255, 0.12) 12%, transparent 24%),
    linear-gradient(180deg, #050B24 0%, #0C2257 40%, #1F5596 66%, #4C9BD0 78%, #7CC3E6 82%);
}

.ap-scene--night::before {
  background: linear-gradient(180deg, #1C3566, #0E1C3D);
}

.ap-scene--night::after {
  background: linear-gradient(180deg, #0A1430, #050A1C);
}

.ap-subs-visual {
  width: 100%;
}

.ap-subs-visual .ap-tv-frame {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(10, 10, 40, 0.55);
}

/* The settings panel tucks under the TV's bottom edge, clear of the subtitle line. */
.ap-subs-panel {
  position: relative;
  z-index: 2;
  width: min(320px, 88%);
  margin: -28px 4% 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(15, 15, 40, 0.08), 0 24px 48px -16px rgba(15, 15, 40, 0.35);
  font-size: 13px;
  color: var(--ap-text);
}

.ap-subs-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.ap-subs-panel-title span {
  font-weight: 500;
  color: var(--ap-muted);
}

.ap-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--ap-line);
}

.ap-setting-label {
  color: var(--ap-muted);
}

.ap-mini-slider {
  position: relative;
  flex: 1;
  max-width: 120px;
  height: 4px;
  border-radius: 2px;
  background: rgba(15, 15, 40, 0.12);
}

.ap-mini-slider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  border-radius: inherit;
  background: var(--ap-gradient);
}

.ap-mini-slider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ap-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ap-stepper i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 15, 40, 0.06);
  font-style: normal;
  font-weight: 600;
  color: var(--ap-muted);
}

.ap-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--ap-graphite-2);
}

.ap-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ---------- Formats ---------- */

.ap-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ap-formats li {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--ap-line), 0 4px 14px -10px rgba(15, 15, 40, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ap-text);
}

.ap-formats li.is-more {
  font-family: inherit;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(58, 61, 68, 0.3);
  color: var(--ap-graphite-2);
}

/* ---------- Pricing ---------- */

.ap-price-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 44px clamp(24px, 5vw, 44px) 40px;
  border-radius: 28px;
  background: #FFFFFF;
  text-align: center;
  box-shadow: 0 30px 70px -30px rgba(14, 15, 18, 0.3);
}

.ap-price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--ap-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.ap-price-card img {
  width: 88px;
  height: 88px;
  margin: -12px auto 6px;
  /* The light sky-blue icon needs a little edge on the white card. */
  filter: drop-shadow(0 0 0.5px rgba(15, 15, 40, 0.25)) drop-shadow(0 6px 12px rgba(14, 15, 18, 0.22));
}

.ap-price {
  margin: 14px 0 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ap-text);
}

.ap-price-note {
  margin: 6px 0 0;
  font-weight: 600;
  color: var(--ap-accent);
}

.ap-price-card .ap-checks {
  display: inline-block;
  margin: 26px auto 0;
  text-align: left;
}

.ap-price-card .ap-buttons {
  flex-direction: column;
  margin-top: 30px;
}

.ap-price-card .ap-btn {
  width: 100%;
}

/* ---------- FAQ ---------- */

.ap-faq {
  max-width: 800px;
  margin: 0 auto;
}

.ap-faq details {
  border-bottom: 1px solid rgba(15, 15, 40, 0.12);
}

.ap-faq details:first-child {
  border-top: 1px solid rgba(15, 15, 40, 0.12);
}

.ap-faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ap-text);
  cursor: pointer;
  list-style: none;
}

.ap-faq summary::-webkit-details-marker {
  display: none;
}

.ap-faq summary::before,
.ap-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--ap-accent);
  transition: transform 0.2s ease;
}

.ap-faq summary::after {
  transform: rotate(90deg);
}

.ap-faq details[open] summary::after {
  transform: rotate(0deg);
}

.ap-faq summary:hover {
  color: var(--ap-accent);
}

.ap-faq-answer {
  padding: 0 48px 24px 0;
  color: var(--ap-muted);
}

.ap-faq-answer p {
  margin: 0;
}

.ap-faq-answer p + p {
  margin-top: 10px;
}

.ap-help {
  margin: 40px 0 0;
  text-align: center;
  color: var(--ap-muted);
}

/* ---------- Final call to action ---------- */

.ap-final {
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(74, 133, 255, 0.22), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(201, 205, 212, 0.1), transparent 70%),
    var(--ap-ink);
}

.ap-final img {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  /* White icon tile on a dark surface: a soft dark shadow grounds it so it doesn't glare. */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.ap-final .ap-lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ap-final .ap-buttons {
  justify-content: center;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .ap-buttons .ap-btn {
    width: 100%;
  }

  .ap-window-body {
    padding: 14px 12px 12px;
  }

  .ap-transport {
    gap: 10px;
  }

  .ap-subs-panel {
    margin-top: -12px;
  }

  .ap-faq summary {
    font-size: 1.0625rem;
  }

  .ap-faq-answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-status-dot::after {
    animation: none;
  }

  .ap-waves i {
    animation: none;
    opacity: 0.8;
  }

  .ap-btn {
    transition: none;
  }
}

/* The site's nav draws a light 2px shadow under its content-width bar. On white pages it
   reads as a hairline; against this page's dark hero it shows as a stray white stripe. */
.hero-head .navbar.has-shadow {
  box-shadow: none;
}

/* ---------- Dark site header (this page only) ----------
   The shared nav sits transparently over the hero, which is pulled up underneath it, so
   header and hero read as one continuous dark band with no seam in the gradient. */

.ap-nav {
  position: relative;
  z-index: 31;
  background: transparent;
}

.ap-hero {
  margin-top: -3.25rem;
  padding-top: calc(clamp(24px, 3vw, 40px) + 3.25rem);
}

.ap-nav .navbar-brand img {
  /* The pixel "F" is grey on transparent; invert it and lift the shades so it reads on dark. */
  filter: invert(1) brightness(1.35);
}

.ap-nav a.navbar-item {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ap-nav a.navbar-item:hover,
.ap-nav a.navbar-item:focus,
.ap-nav a.navbar-item:focus-within {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.ap-nav .navbar-brand a.navbar-item:hover,
.ap-nav .navbar-brand a.navbar-item:focus {
  background-color: transparent;
}

.ap-nav a.navbar-item:focus-visible,
.ap-nav .navbar-burger:focus-visible {
  outline: 3px solid var(--ap-silver, #D3D6DC);
  outline-offset: -3px;
  border-radius: 8px;
}

.ap-nav .navbar-burger {
  color: #FFFFFF;
}

.ap-nav .navbar-burger span {
  height: 1.5px;
}

.ap-nav .navbar-burger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

@media screen and (min-width: 1024px) {
  .ap-nav a.navbar-item:not(:focus):not(:hover) {
    background-color: transparent;
  }
}

@media screen and (max-width: 1023px) {
  /* Open menu: a dark dropdown card that floats over the hero instead of pushing it down. */
  .ap-nav .navbar-menu {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    padding: 6px;
    border-radius: 14px;
    background-color: rgba(22, 22, 40, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  }

  .ap-nav .navbar-menu a.navbar-item {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-nav a.navbar-item {
    transition: none;
  }
}

/* Translated pages: break Japanese at phrase boundaries and Korean between words, as a
   reader would, instead of anywhere inside a word. */
:lang(ja) .ap {
  line-break: strict;
  word-break: auto-phrase;
}

:lang(ko) .ap {
  word-break: keep-all;
}
