/* ---------- Play Karlo palette (dark theme) ---------- */
:root {
  --bg: #101010;
  --surface: #171717;
  --surface-2: #1d1d1d;
  --text: #F5F5F5;
  --text-2: #929292;
  --text-3: #707070;
  --accent: #FF6545;
  --accent-strong: #FF5A36;
  /* pulled from the app mark, used only for ambient glows */
  --violet: #7C5CFF;
  --cyan: #35D7E8;
  --outline: #2A2A2A;
  --outline-strong: #3D3D3D;
  --error: #FF8A80;

  --r-field: 12px;
  --r-button: 14px;
  --r-card: 16px;

  --maxw: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none
}

img,
svg {
  display: block
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit
}

input {
  font: inherit
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px
}

.section {
  padding: 80px 0
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px
}

.lead {
  color: var(--text-2);
  font-size: 17px;
  max-width: 640px
}

.center {
  text-align: center
}

.center .lead {
  margin-inline: auto
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 16, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain
}

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

nav.links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .18s
}

nav.links a:hover {
  color: var(--text)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--r-button);
  font-weight: 600;
  transition: .18s;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font-size: 14px
}

.btn-accent:hover {
  background: var(--accent-strong)
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 11px 18px;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: var(--outline-strong);
  background: var(--surface-2)
}

.btn-lg {
  padding: 16px 26px;
  font-size: 16px;
  border-radius: var(--r-button)
}

.btn-block {
  width: 100%
}

@media(max-width:860px) {
  nav.links {
    display: none
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 620px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, .26), transparent 70%),
    radial-gradient(closest-side at 62% 60%, rgba(255, 101, 69, .18), transparent 70%);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent)
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 20px 0 16px;
  max-width: 840px;
  margin-inline: auto
}

.hero h1 em {
  font-style: normal;
  color: var(--accent)
}

.hero p.lead {
  margin-inline: auto;
  margin-bottom: 34px
}

@media(max-width:640px) {
  .hero {
    padding: 20px 0 44px
  }

  .hero .pill {
    display: none
  }

  .hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 8vw, 40px)
  }

  .hero p.lead {
    font-size: 15.5px;
    margin-bottom: 26px
  }

  .hero::before {
    top: -340px;
    height: 540px
  }

  .chips {
    margin-top: 26px
  }

  .section {
    padding: 56px 0
  }
}

/* ---------- search ---------- */
.searchbox {
  max-width: 680px;
  margin: 0 auto
}

.searchrow {
  display: flex;
  gap: 10px
}

.field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--outline);
  border-radius: var(--r-field);
  transition: border-color .18s;
}

.field:focus-within {
  border-color: var(--outline-strong)
}

.field input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  min-width: 0
}

.field input::placeholder {
  color: var(--text-3)
}

.searchrow .btn-accent {
  height: 56px;
  padding-inline: 28px;
  font-size: 15px
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center
}

.err {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: rgba(255, 138, 128, .08);
  border: 1px solid rgba(255, 138, 128, .25);
  color: var(--error);
  font-size: 14px;
}

.err.show {
  display: block
}

@media(max-width:560px) {
  .searchrow {
    flex-direction: column
  }

  /* flex:1 collapses the field's height in a column container — pin it */
  .field {
    flex: none;
    width: 100%;
    height: 58px
  }

  /* 16px keeps iOS Safari from zooming in on focus */
  .field input {
    font-size: 16px
  }

  .searchrow .btn-accent {
    width: 100%;
    height: 58px;
    font-size: 16px
  }
}

/* ---------- resolving ---------- */
.resolving {
  display: none;
  max-width: 680px;
  margin: 22px auto 0;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-card);
  padding: 20px;
  align-items: center;
  gap: 14px;
}

.resolving.show {
  display: flex
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--outline-strong);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.resolving b {
  display: block;
  font-size: 15px;
  font-weight: 600
}

.resolving span {
  font-size: 13px;
  color: var(--text-2)
}

/* ---------- result card ---------- */
.result {
  display: none;
  max-width: 680px;
  margin: 22px auto 0
}

.result.show {
  display: block;
  animation: rise .35s ease both
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-card);
  overflow: hidden
}

.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0c0c0c
}

.thumb .art {
  position: absolute;
  inset: -14%;
  filter: blur(26px);
  transform: scale(1.15)
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .4));
}

.lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lock .ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 101, 69, .16);
  border: 1px solid rgba(255, 101, 69, .45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .75)
}

.badge-src {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(0, 0, 0, .6);
  border: 1px solid var(--outline-strong);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text);
}

.card-body {
  padding: 18px
}

/* real artwork from the API: sharp, edge to edge */
.thumb .art.real {
  inset: 0;
  filter: none;
  transform: none;
  background-size: cover;
  background-position: center;
}

.thumb.live::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%)
}

.thumb.live .lock {
  display: none
}

.thumb .play-over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
}

.thumb.live .play-over {
  display: flex
}

.play-over span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(16, 16, 16, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .18s;
}

.play-over:hover span {
  background: var(--accent);
  border-color: var(--accent)
}

.blurred {
  filter: blur(5.5px);
  user-select: none;
  pointer-events: none;
  opacity: .9
}

.vtitle {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden
}

.vmeta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.actions .btn {
  height: 52px
}

.unlock {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.unlock p {
  font-size: 13.5px;
  color: var(--text-2)
}

.unlock p b {
  color: var(--text);
  font-weight: 600
}

@media(max-width:460px) {
  .actions {
    grid-template-columns: 1fr
  }
}

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px
}

.chip {
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.chip b {
  color: var(--text);
  font-weight: 600
}

/* ---------- generic grids ---------- */
.grid {
  display: grid;
  gap: 16px;
  margin-top: 44px
}

.g3 {
  grid-template-columns: repeat(3, 1fr)
}

.g4 {
  grid-template-columns: repeat(4, 1fr)
}

.g2 {
  grid-template-columns: repeat(2, 1fr)
}

@media(max-width:900px) {

  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:620px) {

  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr
  }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-card);
  padding: 24px;
  transition: border-color .2s, transform .2s;
}

.tile:hover {
  border-color: var(--outline-strong);
  transform: translateY(-2px)
}

.tile .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(255, 101, 69, .12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile h3 {
  font-size: 16.5px;
  margin-bottom: 8px
}

.tile p {
  font-size: 14px;
  color: var(--text-2)
}

.step .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.stat {
  text-align: center;
  padding: 28px 18px
}

.stat b {
  display: block;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em
}

.stat span {
  font-size: 13.5px;
  color: var(--text-2)
}

/* ---------- app cta ---------- */
.cta {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 22px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .20), transparent 70%);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center
}

.cta ul {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 11px
}

.cta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2)
}

.tick {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent)
}

.phone {
  border: 1px solid var(--outline-strong);
  border-radius: 22px;
  background: var(--bg);
  padding: 26px 20px;
  text-align: center;
}

.phone .mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px
}

.phone h4 {
  font-size: 18px;
  margin-bottom: 4px
}

.phone small {
  font-size: 13px;
  color: var(--text-2)
}

.phone .fake-field {
  margin-top: 20px;
  height: 46px;
  border-radius: var(--r-field);
  background: var(--surface);
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.phone .fake-field span {
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: var(--outline-strong)
}

.phone .fake-btn {
  margin-top: 10px;
  height: 46px;
  border-radius: var(--r-button);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

@media(max-width:860px) {
  .cta {
    padding: 30px
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 28px
  }
}

/* ---------- faq ---------- */
.faq {
  margin-top: 40px;
  display: grid;
  gap: 10px
}

details {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-card);
  padding: 18px 20px;
}

details[open] {
  border-color: var(--outline-strong)
}

summary {
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1
}

details[open] summary::after {
  content: "−"
}

details p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-2)
}

/* ---------- prose ---------- */
.prose {
  margin-top: 40px;
  display: grid;
  gap: 26px;
  max-width: 900px
}

.prose h3 {
  font-size: 19px;
  margin-bottom: 10px
}

.prose p {
  font-size: 15px;
  color: var(--text-2)
}

.prose b {
  color: var(--text);
  font-weight: 600
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--outline);
  margin-top: 20px;
  padding: 52px 0 32px
}

.fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px
}

.fgrid p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 340px;
  margin-top: 14px
}

.fgrid h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px
}

.fgrid ul {
  list-style: none;
  display: grid;
  gap: 10px
}

.fgrid ul a {
  font-size: 14px;
  color: var(--text-2)
}

.fgrid ul a:hover {
  color: var(--text)
}

.fbottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}

@media(max-width:760px) {
  .fgrid {
    grid-template-columns: 1fr 1fr
  }

  .fgrid>div:first-child {
    grid-column: 1/-1
  }
}

/* ---------- inline video player ----------
   The video sits exactly where the preview art is, and the browser's own
   fullscreen control takes it fullscreen from there.

   Targeted by id, never by `.thumb video`: the IMA SDK builds its own
   <video> inside #adContainer, and a tag selector here would hide it —
   the ad would then play, count down and report impressions with a black
   box on screen. */
#video {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.thumb.playing #video {
  display: block
}

/* ---------- Vidy embed slot ----------
   A vidy.st link has no direct file behind it — the stream lives inside
   their iframe. So the iframe takes the same slot #video uses, sits at
   the same layer, and everything around it (ads, buttons, layout) is
   untouched. Its own controls handle fullscreen. */
#embed {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.thumb.embedding #embed {
  display: block
}

.thumb.playing::after,
.thumb.playing .play-over,
.thumb.playing .lock,
.thumb.playing .badge-src,
.thumb.embedding::after,
.thumb.embedding .art,
.thumb.embedding .play-over,
.thumb.embedding .lock,
.thumb.embedding .badge-src {
  display: none
}

#video:fullscreen {
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ---------- IMA ad overlay ----------
   Sits on top of the preview art, one layer above the content video so a
   linear ad covers it completely. Hidden — and therefore click-through —
   whenever no ad is on screen.

   No background here. In custom playback mode (most mobile browsers) the
   SDK plays the ad through #video underneath and renders only its UI —
   "Learn More", the countdown — into this container. A solid fill would
   cover the ad and leave just the chrome on screen. The black comes from
   .thumb.ad-showing below instead. */
#adContainer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  background: transparent;
}

#adContainer>div {
  width: 100%;
  height: 100%
}

/* Nothing else here on purpose. The SDK styles the creative itself, and
   it also inserts helper iframes it keeps hidden — forcing those visible
   stretches an opaque box across the slot and buries the ad, audio still
   playing underneath. Leave its children alone. */

.thumb.ad-showing {
  background: #000
}

/* On iOS the SDK plays the ad through the content element instead of
   making its own, so that element has to be on screen during the break. */
.thumb.ad-showing #video {
  display: block
}

.thumb.ad-showing::after,
.thumb.ad-showing .art,
.thumb.ad-showing .lock,
.thumb.ad-showing .play-over,
.thumb.ad-showing .badge-src {
  display: none
}

.ad-wait {
  position: absolute;
  inset: 0;
  /* above #adContainer's black fill, or the loading state is invisible */
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  pointer-events: none;
}

.thumb.ad-showing .ad-wait {
  display: flex
}

.btn[disabled] {
  opacity: .7;
  cursor: default
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-top-color: #fff
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  padding: 13px 20px;
  border-radius: var(--r-button);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0)
}