/* Home page sections, on top of site.css (top bar, hero frame, plans, questions, closing). Layout only; values from /design/. */

/* ---------- hero: same layout, richer around the phones ---------- */
.swap {
  position: relative;
  overflow: hidden;
}
.swap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swap img + img {
  position: absolute;
  inset: 0;
  animation: swap 12s ease-in-out infinite;
}
.swap-late img + img {
  animation-delay: -6s;
}
@keyframes swap {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
/* a viewer's comment, as it would scroll by on the stream */
.say {
  position: absolute;
  z-index: 1;
  max-width: 190px;
  padding: 8px 13px;
  border-radius: 16px 16px 16px 5px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(24, 20, 70, 0.16), inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  animation: say 9s ease-in-out infinite both;
}
.say b {
  margin-right: 4px;
  color: var(--violet-deep);
}
.say-like b {
  color: var(--tt-red);
}
.say-1 { top: 6%; right: -6%; }
.say-2 { top: 44%; left: -4%; animation-delay: -3s; }
.say-3 { top: 10%; left: -8%; animation-delay: -5s; }
.say-4 { top: 48%; right: -2%; animation-delay: -7s; }
@keyframes say {
  0%, 8% { opacity: 0; transform: translateY(10px); }
  16%, 78% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- a wide section with its heading on the left ---------- */
.band {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter) 0;
}
.band-head {
  max-width: 640px;
}
.band-head .sub,
.try .sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- sections ---------- */
.band-tinted {
  max-width: none;
  margin-top: clamp(56px, 9vh, 104px);
  padding-bottom: clamp(56px, 9vh, 104px);
  padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  background: var(--surface);
}
.band-head.center {
  margin-inline: auto;
  text-align: center;
}

/* 2. the problem: a quiet stream next to what it costs */
.split {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.quiet {
  padding: 18px;
  border-radius: 26px;
  background: var(--ink);
  color: #c9cbe0;
  font-size: 14px;
  box-shadow: var(--shadow-float);
}
.quiet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 150px; /* the empty stage above the chat */
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}
.stream-live {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tt-red);
  color: var(--paper);
}
.quiet ul {
  display: grid;
  gap: 8px;
}
.quiet li {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.quiet b {
  color: var(--tt-cyan);
}
.quiet i {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  opacity: 0.6;
}
.quiet-empty {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.6;
}
.pains {
  margin-top: 26px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr);
}
.pains dt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.pains dt:first-child {
  border-top: 0;
}
.pains dd {
  color: var(--muted);
}

/* 3. the answer: comments become players */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 44px;
}
.feed {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 320px);
}
.feed li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feed p {
  font-size: 15px;
}
.feed b {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.av {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--paper);
  font-weight: 800;
}
.av-1 { background: var(--violet); }
.av-2 { background: var(--tt-red); }
.av-3 { background: var(--ok); }
.av-4 { background: var(--ink-soft); }
.flow-arrow {
  width: 80px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-phone {
  width: 250px;
  aspect-ratio: 9 / 18;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 0 7px var(--ink), var(--shadow-float);
}
.flow-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flow-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  max-width: 320px;
  margin: 0;
}
.flow-points dt {
  margin-top: 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.flow-points dt:first-child {
  margin-top: 0;
}

/* 4. the catalogue: one title has the room, the two in the works are a quiet line */
.shelf {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.title-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--violet), var(--shadow-lift);
}
.title-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 18px;
}
.title-card h3 {
  font-size: 30px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.title-card p {
  max-width: 56ch;
  margin-top: 10px;
  color: var(--muted);
}
.title-card .facts {
  margin-top: 14px;
}
.cta-left {
  justify-content: flex-start;
  margin-top: 22px;
}
.coming {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.coming li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.coming h3,
.coming p {
  grid-column: 1;
}
.coming p {
  color: var(--muted);
  font-size: 15px;
}
.coming .soon {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* 5. three steps */
.three {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: var(--wide);
  margin: 44px auto 0;
}
.three li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}
.three li::before {
  content: counter(step);
  display: block;
  color: var(--violet);
  font-size: 44px;
  font-weight: var(--weight-heading);
  line-height: 1;
  letter-spacing: var(--track-display);
}
.three h3 {
  margin-top: 12px;
  font-size: 21px;
}
.three p {
  margin-top: 6px;
  color: var(--muted);
}

/* 6. why us: plain rows, no icons */
.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 72px);
  margin-top: 28px;
  padding-bottom: 8px;
}
.why > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.why dt {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}
.why dd {
  margin-top: 4px;
  color: var(--muted);
}

/* 7. the offer */
.offer-note {
  max-width: 60ch;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.offer-note a,
.faq a {
  color: var(--violet-deep);
  font-weight: 600;
}

/* ---------- footer: the page ends on the dark ink, with everything a visitor may look for ---------- */
.site-foot {
  margin-top: 0; /* the closing block above brings its own space */
  background: var(--ink);
  color: #b9bcd3;
  font-size: 15px;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 40px;
}
.site-foot .brand {
  color: var(--paper);
}
.site-foot .brand svg {
  fill: var(--paper);
}
.foot-about p {
  max-width: 34ch;
  margin-top: 14px;
}
.site-foot h2 {
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.site-foot ul {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.site-foot a {
  color: inherit;
  text-decoration: none;
}
.site-foot li a {
  display: inline-block;
  padding: 5px 0; /* a comfortable target for a thumb */
}
.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-about a {
  color: var(--paper);
  font-weight: 600;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}
@media (max-width: 860px) {
  .foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* the buy bar: phones only */
.buybar {
  display: none;
}

@media (max-width: 980px) {
  .split,
  .flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .feed {
    justify-self: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .say {
    display: none; /* the phones sit close to the text on small screens */
  }
  .three,
  .why,
  .coming {
    grid-template-columns: minmax(0, 1fr);
  }
  .title-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .title-card img {
    aspect-ratio: 4 / 3; /* a wide crop: the card should not be mostly picture on a phone */
    object-position: 50% 45%;
  }
}
@media (max-width: 720px) {
  .buybar {
    position: fixed;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 0 -10px 30px rgba(24, 20, 70, 0.12), inset 0 1px 0 var(--line);
    font-size: 15px;
  }
  .foot-base {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)); /* room for the buy bar */
  }
}
@media (prefers-reduced-motion: reduce) {
  .swap img + img,
  .say {
    animation: none;
  }
  .swap img + img {
    opacity: 0;
  }
}

/* description lists here are stacked: no browser indent */
.pains dd,
.flow-points dd,
.why dd {
  margin-left: 0;
}
.band-more {
  margin-top: 10px;
}
.band-more a {
  color: var(--violet-deep);
  font-weight: 700;
}
