/* ==========================================================================
   GhostVoice — Home (v2)
   One object on black: the scroll film carries the brand, everything after
   it is quiet type, real screenshots and a single accent colour.
   Loaded after style.css + theme.css (which hold the shared look) and only
   on index.html.
   ========================================================================== */

body.home section{ padding-block: 120px; }

/* nav floats over the film */
body.home .nav{
  position: fixed;
  inset-inline: 0;
}

.kicker{
  display: block;
  font: 600 13px/1 var(--font-body);
  color: var(--neon);
  margin-bottom: 18px;
}
.sec-head{ max-width: 680px; margin-bottom: 56px; }
.sec-head.center{ margin-inline: auto; text-align: center; }
.sec-head h2,
.voices-copy h2{
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}
html[dir="ltr"] .sec-head h2,
html[dir="ltr"] .voices-copy h2,
html[dir="ltr"] .film h1,
html[dir="ltr"] .film h2{ letter-spacing: -0.035em; }
.sec-head p{ font-size: 18px; }

.anchor{ display: block; position: relative; top: -40px; }

/* ---------------------------------------------------------------------- */
/* The film                                                                */
/* ---------------------------------------------------------------------- */
.film{
  position: relative;
  height: 460vh;
  padding: 0 !important;
}
.film-stage{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.film-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.film-shade{                                  /* lets captions sit on the frame and fades into the page */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000 0%, transparent 14%, transparent 86%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 22%, transparent 70%, #000 100%);
}

.film-cap{
  position: absolute;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility .5s;
  will-change: opacity, transform;
}
.film-cap.on{ opacity: 1; visibility: visible; transform: none; }

.film-hero{
  inset-inline: 0;
  top: 13vh;
  text-align: center;
  padding-inline: 20px;
}
.film-hero h1{
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--ink);
}
.film-hero h1 .hl{ color: var(--neon); }
.film-hero p{
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(16px, 1.8vw, 19px);
  color: #c9d1db;
}
.film-cta{
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.film-side{                                   /* low, on the dark floor under the neon line */
  bottom: 9vh;
  text-shadow: 0 2px 18px #000, 0 0 40px #000;
  inset-inline-start: max(24px, calc((100vw - 1180px) / 2));
  max-width: 400px;
}
.film-side.end{
  inset-inline-start: auto;
  inset-inline-end: max(24px, calc((100vw - 1180px) / 2));
}
.film-side h2{
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
}
.film-side p{ font-size: 17px; color: #c9d1db; margin: 0; }
.film-k{
  display: block;
  font: 600 13px/1 var(--font-body);
  color: var(--neon);
  margin-bottom: 16px;
}

.film-end{
  inset-inline: 0;
  bottom: 10vh;
  text-align: center;
}
.film-word{
  font: 700 clamp(30px, 4vw, 48px)/1 var(--font-brand);
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  margin: 0 0 10px !important;
  direction: ltr;
}
.film-end p{ margin: 0; font-size: 17px; }

.film-hint{
  position: absolute;
  bottom: 28px;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--soft);
  transition: opacity .4s ease;
}
.film-hint i{
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--neon), transparent);
  animation: hint 1.8s ease-in-out infinite;
  transform-origin: top;
}
.film.past-start .film-hint{ opacity: 0; }
@keyframes hint{ 0%{ transform: scaleY(0); } 50%{ transform: scaleY(1); } 100%{ transform: scaleY(1); opacity: 0; } }

/* phones: captions go to the bottom third, under the object */
@media (max-width: 760px){
  .film{ height: 380vh; }
  .film-hero{ top: 12vh; }
  .film-hero h1 span{ display: block; }
  .film-side,
  .film-side.end{
    top: auto;
    margin-top: 0;
    bottom: 12vh;
    inset-inline: 20px;
    max-width: none;
    text-align: center;
  }
  .film-side p{ font-size: 15.5px; }
}

/* no motion: the film becomes a still of the logo with the story stacked */
.film.static{ height: auto; }
.film.static .film-stage{ position: relative; height: auto; padding: 120px 20px 60px; }
.film.static .film-canvas{ position: relative; height: 56vw; max-height: 520px; }
.film.static .film-shade,
.film.static .film-hint{ display: none; }
.film.static .film-cap{
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin: 0 auto 40px;
  max-width: 560px;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Stats                                                                   */
/* ---------------------------------------------------------------------- */
body.home .stats{ padding-block: 40px 100px; }
.stats-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat{
  padding: 36px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat + .stat{ border-inline-start: 1px solid var(--line); padding-inline-start: 32px; }
.stat b{
  font: 700 clamp(56px, 8vw, 96px)/1 var(--font-brand);
  color: var(--ink);
  letter-spacing: -0.04em;
}
.stat span{ color: var(--soft); font-size: 15.5px; }
@media (max-width: 700px){
  .stats-row{ grid-template-columns: 1fr; }
  .stat + .stat{ border-inline-start: 0; padding-inline-start: 8px; border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------------------------------------------------------------------- */
/* AI voices — a voice channel, because that is where people will hear it */
/* ---------------------------------------------------------------------- */
.voices-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.voices-copy p{ font-size: 18px; max-width: 520px; }
.ticks{ list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li{
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink);
  font-size: 15.5px;
}
.ticks li::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 12px;
  height: 2px;
  background: var(--neon);
}

.vc{
  background: #111214;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 20px;
  font-family: var(--font-body);
  box-shadow: 0 40px 100px -40px rgba(62,224,255,0.25);
}
.vc-head{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.vc-head svg{ width: 18px; height: 18px; color: var(--soft); }
.vc-group{
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dim);
  padding: 12px 8px 6px;
  letter-spacing: .02em;
}
.vc-list{ list-style: none; margin: 0; padding: 0; }
.vc-user{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  color: var(--soft);
  transition: background .25s ease, color .25s ease;
}
.vc-user span{ direction: ltr; font-weight: 500; }
.vc-user em{
  margin-inline-start: auto;
  font-style: normal;
  font-size: 12px;
  color: #3ba55d;
  opacity: 0;
  transition: opacity .25s ease;
}
.vc-av{
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 38%, hsla(var(--h), 90%, 70%, .9) 40%, transparent 44%),
    radial-gradient(circle at 50% 50%, hsla(var(--h), 80%, 60%, .35), hsla(var(--h), 60%, 20%, .9));
  box-shadow: 0 0 0 2px #111214;
  transition: box-shadow .2s ease;
}
.vc-user.talking{ background: rgba(255,255,255,0.04); color: var(--ink); }
.vc-user.talking em{ opacity: 1; }
.vc-user.talking .vc-av{ box-shadow: 0 0 0 2px #111214, 0 0 0 4px #3ba55d; }
.vc-chips{ display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 8px 0; }
.vc-chips span{
  font-size: 13px;
  color: var(--soft);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 5px 12px;
}
@media (max-width: 900px){
  .voices-grid{ grid-template-columns: 1fr; gap: 48px; }
}

/* ---------------------------------------------------------------------- */
/* Bento of real screenshots                                               */
/* ---------------------------------------------------------------------- */
.bento{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile{
  position: relative;
  margin: 0;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  grid-column: span 2;
  min-height: 260px;
}
.tile-big{ grid-column: span 4; grid-row: span 2; }
.tile-half{ grid-column: span 3; }
.bento .tile-full{ grid-column: 1 / -1; }   /* full row at every width */
.shot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.shot:hover img{ transform: scale(1.03); }
.shot figcaption{
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 60px 22px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 55%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile b{ color: var(--ink); font-size: 17px; font-family: var(--font-display); }
.tile-big b{ font-size: 24px; }
.tile span{ color: var(--soft); font-size: 14.5px; line-height: 1.55; }
.shot.is-missing{ display: none; }

.tile-text{
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.keys{ display: flex; gap: 8px; margin-top: auto; direction: ltr; }
.keys kbd{
  font: 600 14px var(--font-mono);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-hi);
  border-bottom-width: 3px;
}
.meter{ display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: auto; }
.meter i{
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: var(--neon);
  opacity: .85;
  animation: meter 1.3s ease-in-out infinite alternate;
}
.meter i:nth-child(2n){ animation-duration: .9s; }
.meter i:nth-child(3n){ animation-duration: 1.6s; }
.meter i:nth-child(4n){ animation-delay: -.4s; }
.meter i:nth-child(5n){ animation-duration: 1.1s; animation-delay: -.8s; }
@keyframes meter{ to{ height: 100%; } }

@media (max-width: 980px){
  .bento{ grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* minmax(0): long text never widens a column past the screen */
  .tile, .tile-big{ grid-column: span 1; grid-row: auto; }
  .tile-big{ grid-column: span 2; min-height: 320px; }
}
@media (max-width: 620px){
  .bento{ grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-big{ grid-column: auto; min-height: 220px; }
}

/* ---------------------------------------------------------------------- */
/* How                                                                     */
/* ---------------------------------------------------------------------- */
.how-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.how-list li{ padding: 34px 28px 0 0; display: flex; flex-direction: column; gap: 22px; }
html[dir="rtl"] .how-list li{ padding: 34px 0 0 28px; }
.how-list li + li{ border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.how-n{
  font: 700 64px/1 var(--font-brand);
  color: transparent;
  -webkit-text-stroke: 1px rgba(62,224,255,0.55);
}
.how-list h3{ font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.how-list p{ margin: 0; font-size: 15.5px; }
@media (max-width: 860px){
  .how-list{ grid-template-columns: 1fr; }
  .how-list li, html[dir="rtl"] .how-list li{ padding: 28px 0; }
  .how-list li + li{ border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------------- */
/* Voice lab: real in-browser effects (voicelab.js)                       */
/* ---------------------------------------------------------------------- */
.lab{
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  overflow: hidden;
}
.lab-modes{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.lab-mode{
  font: 600 15px var(--font-body);
  color: var(--soft);
  background: transparent;
  border: 0;
  padding: 16px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lab-mode:hover{ color: var(--ink); }
.lab-mode.on{ color: var(--ink); border-bottom-color: var(--neon); background: rgba(255,255,255,0.02); }
.lab-warn.calm{ color: var(--soft); background: transparent; }
.lab-warn.calm svg{ color: var(--dim); }
.lab-play svg{ width: 16px; height: 16px; }
.lab-play[hidden]{ display: none; }      /* .btn sets display, which beats [hidden] */
.lab-warn{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: #ffe0a8;
  font-size: 14.5px;
  background: rgba(245,158,11,0.06);
}
.lab-warn svg{ width: 22px; height: 22px; flex: none; color: #f5b041; }
.lab-presets{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 22px 22px 6px;
}
.lab-chip{
  font: 600 15px var(--font-body);
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  touch-action: manipulation;
}
.lab-chip:hover{ color: var(--ink); border-color: rgba(255,255,255,0.32); }
.lab-chip.on{ color: var(--neon-ink); background: var(--neon); border-color: var(--neon); }

.lab-screen{ position: relative; }
.lab-screen canvas{ display: block; width: 100%; height: 220px; }
.lab-tags{
  position: absolute;
  inset-inline: 0;
  top: 12px;
  display: flex;
  justify-content: space-between;
  padding-inline: 22px;
  pointer-events: none;
}
.lab-tags b{
  font: 600 11px var(--font-mono);
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  color: #ff9a9a;
}
html[dir="rtl"] .lab-tags b{ font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.lab-tags .out{ color: var(--neon); border-color: rgba(62,224,255,0.35); }
.lab-ghost{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--line-hi);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.lab-ghost img{ width: 46px; height: 46px; border-radius: 10px; }
.lab.live .lab-ghost{ border-color: var(--neon); box-shadow: 0 0 40px -6px rgba(62,224,255,0.6); }

.lab-foot{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
}
.lab.live .lab-btn{ background: #d92d3a; color: #fff; }
.lab-status{ font-size: 14px; color: var(--soft); min-height: 1.4em; }
.lab-note{ text-align: center; margin: 22px auto 0; max-width: 560px; font-size: 15px; }

/* ---------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ---------------------------------------------------------------------- */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.price-card.featured{ border-color: rgba(62,224,255,0.5); background: #0a1114; }
.price-name{
  font: 600 12px var(--font-mono);
  letter-spacing: .16em;
  color: var(--dim);
  margin-bottom: 16px;
}
.price-card.featured .price-name{ color: var(--neon); }
.price-amount{
  font: 700 40px/1.1 var(--font-brand);
  color: var(--ink);
  letter-spacing: -0.02em;
}
html[dir="rtl"] .price-amount span:first-child:not(:only-child){ font-family: var(--font-display); }
.price-amount small{ font: 500 14px var(--font-body); color: var(--soft); letter-spacing: 0; }
.price-desc{ font-size: 14.5px; margin: 12px 0 20px; }
.price-list{ list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-list li{ display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #c9d1db; }
.price-list li svg{ width: 16px; height: 16px; flex: none; color: var(--neon); }
.featured-badge{
  position: absolute;
  top: 26px;
  inset-inline-end: 24px;
  font: 600 12px var(--font-body);
  color: var(--neon-ink);
  background: var(--neon);
  padding: 4px 12px;
  border-radius: 999px;
}
@media (max-width: 900px){
  .pricing-grid{ grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------- */
/* Last call                                                         */
/* ---------------------------------------------------------------------- */

.last-cta{
  text-align: center;
  padding: 40px 0 20px;
}
.last-logo{
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 0 60px -10px rgba(62,224,255,0.5);
}
.last-cta h2{ font-size: clamp(32px, 5vw, 56px); color: var(--ink); }
.last-cta p{ font-size: 18px; max-width: 480px; margin: 0 auto 30px; }


@media (prefers-reduced-motion: reduce){
  .film-cap{ transition: none; }
  .meter i, .film-hint i{ animation: none; }
  .meter i{ height: 60%; }
  .shot img{ transition: none; }
}
