/* The home page only; the legal and help pages use styles.css alone. */

:root {
  --brand: #4658db;
  --brand-soft: #eef0ff;
  --green: #0aaa40;
  --green-soft: #e7f6ec;
  --ink: #19213b;
  --tv-bg: #0b1020;
  --tv-panel: #121a2b;
  --tv-text: #f5f7fb;
  --tv-muted: #a9b3c6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8b96ff;
    --brand-soft: #1d2340;
    --green-soft: #12291b;
    --ink: #e9ebef;
  }
}

.home main { max-width: none; padding: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* Hero */

.hero { padding: 56px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero h1 em { font-style: normal; color: var(--brand); }

.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
}

.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.85; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }

.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.phone {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 200px;
  border: 9px solid #19213b;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 50px rgba(25, 33, 59, 0.28);
}

.phone img { display: block; width: 100%; height: auto; }

/* Hero scene: a 14-second loop. The phone publishes (≈1.6 s), the signal goes out, then the TV
   leaves its waiting screen and plays three ads in turn. Every part runs on the same 14 s clock. */

.scene {
  --loop: 14s;
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
}

.scene-glow {
  position: absolute;
  inset: 8% 4% 6% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--brand-soft), transparent 70%);
}

.tv { position: absolute; top: 2%; right: 0; width: 82%; }

.tv-frame {
  background: #141a2c;
  border-radius: 14px;
  padding: 2.4%;
  box-shadow: 0 26px 50px rgba(25, 33, 59, 0.3);
}

.tv-display {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #0b1020;
  container-type: inline-size;
}

.tv-foot { width: 30%; height: 12px; margin: 0 auto; background: #141a2c; border-radius: 0 0 8px 8px; }

.tv-wait {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #a9b3c6;
  font-size: 3.6cqw;
  animation: tv-wait var(--loop) infinite;
}

.tv-wait img { width: 9cqw; height: auto; margin-bottom: 4px; }
.tv-wait b { color: #fff; font-size: 4.6cqw; }

.ad {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Picture on the left, text on the right: the phone overlaps the TV's lower-left corner */
  flex-direction: row-reverse;
  padding: 0 7cqw 0 16cqw;
  color: #fff;
  opacity: 0;
}

.ad-1 { background: linear-gradient(120deg, #7a3a12, #e0882f); animation: ad-1 var(--loop) infinite; }
.ad-2 { background: linear-gradient(120deg, #3b1a7a, #b0368f); animation: ad-2 var(--loop) infinite; }
.ad-3 { background: linear-gradient(120deg, #0d5a5a, #2bb39a); animation: ad-3 var(--loop) infinite; }

.ad-copy { display: flex; flex-direction: column; gap: 1.2cqw; }
.ad-kicker { font-size: 3.4cqw; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ad-title { font-size: 8.4cqw; font-weight: 800; line-height: 1.02; }
.ad-price {
  align-self: flex-start;
  margin-top: 1cqw;
  background: #fff;
  color: #19213b;
  font-weight: 800;
  font-size: 3.8cqw;
  padding: 0.8cqw 2.6cqw;
  border-radius: 99px;
}
.ad-emoji { font-size: 20cqw; line-height: 1; filter: drop-shadow(0 1cqw 2cqw rgba(0, 0, 0, 0.25)); }

/* Each ad gently zooms while on screen, like a slide on a real signage screen */
.ad .ad-copy, .ad .ad-emoji { animation: inherit; animation-name: ad-zoom; }

.tv-live {
  position: absolute;
  top: 3cqw;
  right: 3cqw;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2.6cqw;
  font-weight: 700;
  padding: 0.8cqw 2cqw;
  border-radius: 99px;
  opacity: 0;
  animation: tv-live var(--loop) infinite;
}
.tv-live i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #34d36b; }

.waves { position: absolute; left: 27%; top: 18%; width: 13%; aspect-ratio: 1; z-index: 2; }
.waves i {
  position: absolute;
  left: 0;
  bottom: 0;
  border: 4px solid var(--green);
  border-color: var(--green) var(--green) transparent transparent;
  border-radius: 0 100% 0 0;
  opacity: 0;
  animation: wave var(--loop) infinite;
}
.waves i:nth-child(1) { width: 34%; height: 34%; }
.waves i:nth-child(2) { width: 67%; height: 67%; animation-delay: 0.15s; }
.waves i:nth-child(3) { width: 100%; height: 100%; animation-delay: 0.3s; }

.mini-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 27%;
  z-index: 1;
  aspect-ratio: 9 / 18.5;
  background: #19213b;
  border-radius: 22px;
  padding: 2.2%;
  box-shadow: 0 24px 44px rgba(25, 33, 59, 0.32);
}

.mp-screen {
  height: 100%;
  border-radius: 16px;
  background: #f7f8fc;
  padding: 9% 7%;
  display: flex;
  flex-direction: column;
  gap: 5%;
  container-type: inline-size;
  color: #19213b;
}

.mp-bar { font-weight: 800; font-size: 8cqw; }
.mp-label { font-size: 6cqw; color: #70788e; }

.mp-row {
  display: flex;
  align-items: center;
  gap: 6cqw;
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 6cqw;
  padding: 4cqw;
}
.mp-row i { width: 16cqw; height: 16cqw; border-radius: 3cqw; flex: none; }
.mp-row .t1 { background: linear-gradient(120deg, #7a3a12, #e0882f); }
.mp-row .t2 { background: linear-gradient(120deg, #3b1a7a, #b0368f); }
.mp-row .t3 { background: linear-gradient(120deg, #0d5a5a, #2bb39a); }
.mp-row span { display: flex; flex-direction: column; line-height: 1.25; }
.mp-row b { font-size: 6.6cqw; }
.mp-row em { font-style: normal; font-size: 5.4cqw; color: #70788e; }

.mp-btn {
  position: relative;
  margin-top: auto;
  height: 22cqw;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 7.4cqw;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: press var(--loop) infinite;
}
.mp-btn span { grid-area: 1 / 1; }
.mp-publish { animation: label-publish var(--loop) infinite; }
.mp-done { opacity: 0; animation: label-done var(--loop) infinite; }
.mp-tap {
  position: absolute;
  width: 30cqw;
  height: 30cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: tap var(--loop) infinite;
}

/* The clock: 1.6 s ≈ 11%, 3 s ≈ 21%, 6.5 s ≈ 46%, 10 s ≈ 71%, 13.5 s ≈ 96% */
@keyframes press { 0%, 10% { transform: scale(1); } 12% { transform: scale(0.92); } 15%, 100% { transform: scale(1); } }
@keyframes tap { 0%, 10% { transform: scale(0); opacity: 1; } 18% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
@keyframes label-publish { 0%, 13% { opacity: 1; } 15%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes label-done { 0%, 13% { opacity: 0; } 15%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes wave { 0%, 13% { opacity: 0; } 16% { opacity: 1; } 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes tv-wait { 0%, 21% { opacity: 1; } 24%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tv-live { 0%, 22% { opacity: 0; } 25%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ad-1 { 0%, 21% { opacity: 0; } 24%, 46% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes ad-2 { 0%, 46% { opacity: 0; } 49%, 71% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes ad-3 { 0%, 71% { opacity: 0; } 74%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ad-zoom { 0% { transform: scale(1); } 100% { transform: scale(1.06); } }

/* Without motion: the end result, published and playing */
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before { animation: none !important; }
  .tv-wait, .mp-publish { opacity: 0; }
  .ad-1, .tv-live, .mp-done { opacity: 1; }
}

.businesses {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.businesses ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  color: var(--muted);
  font-weight: 600;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 22px;
}

.step img { width: 100%; height: auto; display: block; margin-bottom: 8px; }

.step h3 { margin: 6px 0 6px; font-size: 18px; }
.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--bg);
}

.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.feature .ico.green { background: var(--green-soft); color: var(--green); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Showcase */

.alt { background: var(--surface); }

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase + .showcase { margin-top: 72px; }
.showcase.flip .shots { order: 2; }

.shots { display: flex; justify-content: center; }
.shots .phone { position: static; width: 240px; }
.shots .shot-art { width: 100%; max-width: 480px; height: auto; }

.showcase h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 14px; }
.showcase p { color: var(--muted); font-size: 17px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%230aaa40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* TV app band: always dark, like the TV app itself */

.tv-band { background: var(--tv-bg); color: var(--tv-text); }
.tv-band .eyebrow { background: rgba(110, 153, 255, 0.16); color: #8fb0ff; }
.tv-band p, .tv-band .ticks li { color: var(--tv-muted); }
.tv-band h2 { color: var(--tv-text); }
.tv-band .ticks li::before { background-color: rgba(10, 170, 64, 0.18); }

.tv-screen {
  border: 12px solid #1b2236;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.tv-screen img { display: block; width: 100%; height: auto; }
.tv-stand { width: 28%; height: 10px; margin: 0 auto; background: #1b2236; border-radius: 0 0 8px 8px; }

.tv-band .btn-ghost { border-color: #2b3550; color: var(--tv-text); }

/* Uses */

.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.use {
  border-radius: 18px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.use .tag { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.use h3 { margin: 0 0 6px; font-size: 18px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  background: var(--bg);
}

.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .for { color: var(--muted); margin: 0 0 14px; }
.plan .ticks li { font-size: 15px; }
.plan .price { margin: 0 0 6px; color: var(--muted); }
.plan .price b { font-size: 26px; color: var(--text); }
.plan .price span { display: block; font-size: 14px; }
.credits-note a { font-weight: 700; }

.credits-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

/* FAQ */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 12px 0;
  background: var(--bg);
}

.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.faq .more { text-align: center; margin-top: 22px; }

/* Final call to action; follows the FAQ closely */
#get { padding-top: 0; }

.cta-band {
  background: linear-gradient(135deg, #4f62e6, #2b36a3);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 56px 24px;
}

.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; color: #fff; }
.cta-band p { margin: 0 0 26px; color: #e1e5ff; font-size: 18px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: #2b36a3; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }


/* Smaller screens */

@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; }
  .scene { max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .uses, .plans { grid-template-columns: repeat(2, 1fr); }
  .showcase.flip .shots { order: 0; }
}

@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding-top: 32px; }
  .phone { width: 150px; border-width: 7px; border-radius: 24px; }
  .shots .phone { width: 220px; }
  .steps, .features, .uses, .plans { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .tv-screen { border-width: 8px; }
}
