/* Final reference pass: merge safety into the call chapter, v2 color language. */
@font-face {
  font-family: 'Lexend Black';
  src: url('../new-home-v2/assets/fonts/Lexend-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

#safety,
#faq,
.rail-link[data-rail="safety"],
.rail-link[data-rail="faq"] { display: none !important; }

.friends {
  background:
    radial-gradient(60% 52% at 82% 4%, rgba(137, 112, 255, .5), transparent 70%),
    radial-gradient(46% 44% at 8% 8%, rgba(255, 122, 47, .10), transparent 72%),
    #644af1;
  color: #fff;
}
.friends::after { background: none; }
.friends .kicker,
.friends .kicker-line { color: rgba(255, 255, 255, .65); }
.friends .kicker-line { background: rgba(255, 255, 255, .3); }
.friends-title,
.together-safety-title,
.together-safety .safety-facts h3 {
  font-family: 'Lexend Black', var(--font-display);
  font-weight: 900;
}
.friends-title { color: #fff; }
.friends-title .marked { color: var(--yellow); }
.friends-title .marked svg path { stroke: var(--yellow); }
.friends-side .lede { color: rgba(255, 255, 255, .78); }
.friends .mode-switch { background: rgba(0, 0, 0, .22); }

.together-safety {
  width: 100%;
  max-width: var(--max);
  margin: clamp(46px, 5.6vw, 76px) auto 0;
  padding: 0 var(--pad);
  color: #fff;
}
.together-safety-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr);
  align-items: end;
  gap: clamp(28px, 4vw, 68px);
  padding-top: clamp(28px, 3.2vw, 42px);
  border-top: 1px solid rgba(255, 255, 255, .24);
}
.together-safety-title {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(38px, 4.25vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.safe-accent { color: var(--yellow); }
.together-safety-copy {
  max-width: 38ch;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
}
.together-safety .safety-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.together-safety .safety-facts li,
.together-safety .safety-facts li + li {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  border: 0;
  border-radius: 24px;
  background: #f3eefc;
  color: #35213c;
}
.together-safety .safety-facts li:nth-child(2) { background: #fdf1e7; }
.together-safety .safety-facts li:nth-child(3) { background: #f1ebf5; }
.together-safety .fact-num {
  margin-bottom: 12px;
  color: #6741b2;
  font-size: 10px;
}
.together-safety .safety-facts h3 {
  margin: 0;
  color: #35213c;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
}
.together-safety .safety-facts p {
  max-width: 31ch;
  margin-top: 7px;
  color: #55414e;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .together-safety-head { grid-template-columns: 1fr; gap: 18px; }
  .together-safety .safety-facts { grid-template-columns: 1fr; }
}

/* No rule above the safety copy. */
.together-safety {
  margin: clamp(28px, 3.4vw, 42px) auto clamp(34px, 4vw, 52px);
}
.together-safety-head {
  padding-top: 0;
  border-top: 0;
}

/* Screen 2: name + country on each portrait. */
.cast-tile figcaption {
  left: 11px;
  bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 7px;
  max-width: calc(100% - 22px);
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
  line-height: 1.1;
}
.cast-tile figcaption::before { display: none; }
.cast-tile figcaption b {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.cast-tile figcaption .cast-country {
  color: rgba(255, 255, 255, .72);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cast-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 82px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(12, 9, 16, .58));
}
.cast-tile figcaption { z-index: 2; }

/* Final screen: one large purple panel, copy left, 2x2 call right. */
#together {
  background: #17141c;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 10vh, 124px) var(--pad);
}
#together .friends-watermark { opacity: .045; }
.together-safety { display: none !important; }

#together .friends-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 4.6vw, 72px);
  width: 100%;
  max-width: 1480px;
  min-height: min(720px, calc(100svh - 180px));
  padding: clamp(28px, 3.2vw, 48px);
  border-radius: clamp(28px, 3.2vw, 52px);
  background:
    radial-gradient(64% 58% at 78% 0%, #8a72ff 0%, transparent 64%),
    radial-gradient(50% 55% at 0% 100%, #5b3fe8 0%, transparent 64%),
    #644af1;
  overflow: hidden;
}
#together .friends-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.6vw, 34px);
}
#together .friends-title {
  margin-top: 0;
  font-size: clamp(52px, 5.4vw, 92px);
  line-height: .94;
  letter-spacing: -.06em;
}
#together .friends-title .marked { white-space: nowrap; color: var(--yellow); }
#together .friends-title .marked path { stroke: var(--yellow); }
#together .friends-side {
  gap: 22px;
  max-width: 42ch;
  padding-bottom: 0;
}
#together .friends-side .lede {
  max-width: 36ch;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}
#together .mode-switch {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(34, 22, 60, .34);
}
#together .call-stage {
  width: 100%;
  height: clamp(520px, 42vw, 660px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: clamp(24px, 2.4vw, 36px);
  background: #1b1423;
  box-shadow: 0 34px 80px -52px rgba(0, 0, 0, .9);
}
#together .call-stage.is-switching { border-color: rgba(255, 255, 255, .28); }
#together .call-topbar { height: 56px; padding: 0 20px; gap: 16px; }
#together .call-room,
#together .call-score { display: none; }
#together .call-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: rgba(255, 255, 255, .9);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
#together .call-ai-badge svg {
  width: 16px;
  height: 18px;
  fill: none;
  stroke: #c9ff4a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#together .call-grid { flex: 1; }
@media (max-width: 1000px) {
  #together { padding: 90px var(--pad); align-items: flex-start; }
  #together .friends-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 24px;
    border-radius: 30px;
  }
  #together .friends-title { font-size: clamp(44px, 9vw, 64px); }
  #together .call-stage { height: 560px; }
}

/* Match the reference toggle and monitoring badge weight. */
#together .mode-switch button[aria-pressed="true"] {
  background: #fff;
  color: #35213c;
}
#together .mode-switch .mode-thumb { background: #fff; }
#together .call-ai-badge {
  padding: 9px 14px;
  font-size: 12.5px;
}
#together .call-ai-badge svg { width: 18px; height: 20px; }

/* The redesigned call panel is the final screen. */
.foot-cta { display: none !important; }

/* Remove the extra footer and make the composed panel exactly the final screen. */
footer { display: none !important; }
#together {
  height: 100svh;
  min-height: 100svh;
  padding: clamp(64px, 8vh, 84px) var(--pad);
}
#together .friends-inner {
  height: calc(100svh - 150px);
  min-height: 0;
}

/* Remove the extra section kicker/watermark from the final screen. */
#together .kicker,
#together .friends-watermark { display: none !important; }

/* All-purple final screen with a wider content panel. */
#together {
  background: #644af1;
  padding-left: 24px;
  padding-right: 24px;
}
#together .friends-inner {
  width: calc(100vw - 48px);
  max-width: 1740px;
  background:
    radial-gradient(68% 60% at 76% 0%, #8069f7 0%, transparent 64%),
    radial-gradient(54% 58% at 0% 100%, #6d54f3 0%, transparent 64%),
    #644af1;
}
@media (max-width: 1000px) {
  #together { padding-left: 20px; padding-right: 20px; }
  #together .friends-inner { width: 100%; }
}

/* No separate panel ground: continuous purple, no underline, Squad label. */
#together .friends-inner {
  background: none;
  border-radius: 0;
  box-shadow: none;
}
#together .friends-title .marked svg { display: none; }

/* Screen 2: no kicker/underline, aligned side copy, flag + age labels. */
.world .kicker { display: none !important; }
.world-title { margin-top: 0; }
.world-title .marked svg { display: none; }
.world-head { align-items: stretch; }
.world-side {
  align-self: stretch;
  justify-content: space-between;
  padding-bottom: 0;
}
.world-side .lede { margin: 0; }

.cast-tile figcaption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: nowrap;
}
.cast-tile figcaption .cast-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cast-tile figcaption .cast-flag { font-size: 13px; line-height: 1; }

/* Screen 2: larger subtitle, no micro copy, no dark caption strip. */
.world-side .lede {
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.45;
  max-width: 30ch;
}
.world-side { justify-content: flex-start; }
.cast-frame::after { display: none !important; }
.cast-tile figcaption {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .52), 0 0 12px rgba(0, 0, 0, .32);
}

/* Restore the caption scrim and enlarge name + flag + age. */
.cast-frame::after {
  display: block !important;
  height: 104px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 9, 16, .72) 100%);
}
.cast-tile figcaption {
  left: 13px;
  bottom: 11px;
  gap: 9px;
  max-width: calc(100% - 26px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.cast-tile figcaption b {
  font-size: clamp(15px, 1.2vw, 20px);
  letter-spacing: -.015em;
}
.cast-tile figcaption .cast-meta {
  gap: 5px;
  font-size: 12.5px;
  letter-spacing: .03em;
}
.cast-tile figcaption .cast-flag { font-size: 18px; }

#together .call-stage { touch-action: pan-y; }

/* Brand opening curtain. */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 44%, #3b2568 0%, #17131f 66%);
  transition: opacity .48s ease, visibility .48s ease;
}
.intro-curtain.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-mark {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: intro-mark-in .8s cubic-bezier(.19, 1, .22, 1) both;
}
.intro-mark img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 24px 54px rgba(0, 0, 0, .4);
}
.intro-mark span {
  color: #fff;
  font: 800 34px/1 var(--font-display);
  letter-spacing: -.055em;
  animation: intro-word-in .7s cubic-bezier(.19, 1, .22, 1) .1s both;
}
@keyframes intro-mark-in {
  from { opacity: 0; transform: scale(.75) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes intro-word-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-curtain { display: none !important; }
}

:root { --yellow: #FFFC01; }

/* Purple opening; shadowless logo; monkey/banana burst. */
.intro-curtain {
  background: radial-gradient(circle at 50% 44%, #816bf7 0%, #644af1 62%, #5337d9 100%);
  overflow: hidden;
}
.intro-mark img {
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
}
.intro-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro-burst span {
  position: absolute;
  font-size: var(--s, 34px);
  line-height: 1;
  opacity: 0;
  animation: intro-burst .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) both;
}
@keyframes intro-burst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.35); }
  60% { opacity: 1; }
  100% {
    opacity: .95;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
}
@media (max-width: 760px) {
  .intro-burst span { --x: calc(var(--x) * .55); --y: calc(var(--y) * .55); }
}

@media (max-width: 760px) {
  .intro-burst { transform: scale(.62); }
}

/* Screen 2: align cast strip to the content edge, larger cards. */
.cast-strip {
  gap: clamp(8px, .9vw, 12px);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + 16px));
}
.cast-tile {
  flex: 1 1 0;
  min-width: 160px;
  cursor: pointer;
  outline: none;
}
.cast-tile:focus-visible .cast-frame {
  box-shadow: 0 0 0 3px var(--yellow);
}

/* Hover: push into the portrait and show a reaction. */
.cast-tile .cast-reaction {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 13, 25, .58);
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: scale(.55) rotate(-12deg);
  transition: opacity .22s ease, transform .3s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
.cast-tile.is-hover .cast-reaction,
.cast-tile:focus-visible .cast-reaction {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.cast-tile.is-hover .cast-frame img,
.cast-tile:focus-visible .cast-frame img {
  transform: scale(1.07) translateY(1.2%);
  filter: saturate(1.1) contrast(1.04);
}

/* Click: say hi. */
.cast-tile .cast-hello {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 15px 15px 15px 4px;
  background: var(--yellow);
  color: #17131f;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(5px) scale(.82);
  transform-origin: 0 100%;
  transition: opacity .18s ease, transform .28s cubic-bezier(.2, 1.5, .4, 1);
  pointer-events: none;
}
.cast-tile .cast-hello span {
  display: inline-block;
  font-size: 16px;
}
.cast-tile.is-saying-hi .cast-hello {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cast-tile.is-saying-hi .cast-hello span {
  animation: cast-wave .75s ease-in-out 2;
}
.cast-tile.is-saying-hi .cast-frame {
  box-shadow: 0 0 0 3px var(--yellow);
}
@keyframes cast-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(18deg); }
  55% { transform: rotate(-16deg); }
  78% { transform: rotate(12deg); }
}

/* Compact tab bar, no divider line under it. */
.nav { padding-top: 10px; padding-bottom: 10px; }
.nav::before,
.nav.is-scrolled::before {
  border-bottom: 0 !important;
}
.nav { padding-top: 6px; padding-bottom: 6px; }

/* Call tiles: remove role labels, add name/age/flag and report. */
.team-label,
.divider-score { display: none !important; }
.call-tile { position: relative; }
.call-tile .tile-meta {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(13, 9, 18, .42);
  color: rgba(255, 255, 255, .92);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.call-tile .tile-meta b {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.call-tile .tile-flag { font-size: 12px; }
.call-tile .tile-report {
  position: absolute;
  z-index: 5;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(13, 9, 18, .42);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .2s ease;
}
.call-tile .tile-report:hover { background: rgba(255, 255, 255, .18); transform: scale(1.05); }
.call-tile .tile-report img { width: 17px; height: 17px; object-fit: contain; }

/* Hover swaps to the same person's second expression/action frame. */
.cast-tile .cast-reaction { display: none !important; }
.cast-frame img.cast-alt {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .26s ease;
}
.cast-tile.is-hover .cast-frame img.cast-alt,
.cast-tile:focus-visible .cast-frame img.cast-alt,
.cast-tile:hover .cast-frame img.cast-alt { opacity: 1; }
.cast-frame::after { z-index: 2; }
.cast-tile figcaption { z-index: 3; }
.cast-tile .cast-hello { z-index: 4; }

/* Align the cast row with the last-screen title and use the extra width. */
.cast-strip {
  padding-left: max(var(--pad), calc((100vw - 1740px) / 2 + 48px));
}

/* New final-screen copy: keep two headline lines inside the left column. */
#together .friends-title {
  font-size: clamp(42px, 4.4vw, 74px);
}
#together .friends-side .lede {
  max-width: none;
}

#together .friends-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
#together .friends-title { font-size: clamp(42px, 4.2vw, 70px); }

/* Safety cards inside the final screen. */
#together .friends-inner {
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 18px;
}
#together .call-stage {
  height: 100%;
  min-height: 0;
}
.last-safety-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}
.last-safety-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: clamp(16px, 1.5vw, 22px);
  border-radius: clamp(18px, 1.8vw, 26px);
  color: #35213c;
}
.last-safety-card.card-ai { background: #f8e6a3; }
.last-safety-card.card-age { background: #f8dfd2; }
.last-safety-card.card-report { background: #f0e4f2; }
.last-safety-card .safety-num {
  position: absolute;
  top: 4px;
  right: 14px;
  color: rgba(53, 33, 60, .075);
  font-family: 'Lexend Black', var(--font-display);
  font-size: clamp(48px, 4.2vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}
.last-safety-card .safety-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .64);
}
.last-safety-card .safety-ico-emoji { font-size: 21px; }
.last-safety-card .safety-ico-18 {
  color: #d8382c;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.last-safety-card .safety-ico-18::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #d8382c;
  border-radius: 50%;
}
.last-safety-card .safety-ico-police img { width: 21px; height: 21px; object-fit: contain; }
.last-safety-card h4 {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  font-family: 'Lexend Black', var(--font-display);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.last-safety-card p {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin-top: 6px;
  color: #56424d;
  font-size: clamp(11.5px, .9vw, 13.5px);
  line-height: 1.42;
}
@media (max-width: 900px) {
  .last-safety-cards { grid-template-columns: 1fr; }
  .last-safety-card { min-height: 0; }
}

/* Final screen: dark page, purple rounded panel, one restrained safety row. */
#together {
  background: #17141c;
  padding: clamp(56px, 7vh, 78px) 24px;
}
#together .friends-inner {
  width: calc(100vw - 48px);
  max-width: 1740px;
  height: calc(100svh - 140px);
  min-height: 0;
  padding: clamp(24px, 3vw, 44px);
  border-radius: clamp(30px, 3.4vw, 52px);
  background:
    radial-gradient(62% 58% at 78% 0%, #8069f7 0%, transparent 64%),
    radial-gradient(48% 52% at 0% 100%, #6d54f3 0%, transparent 62%),
    #644af1;
}
.last-safety-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 4px 0 0;
}
.last-safety-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 clamp(18px, 2vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.last-safety-item:first-child { border-left: 0; padding-left: 4px; }
.last-safety-item:last-child { padding-right: 4px; }
.last-safety-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}
.last-safety-ico svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.last-safety-item:first-child .last-safety-ico { color: var(--yellow); }
.last-safety-item b {
  display: block;
  color: #fff;
  font-family: 'Lexend Black', var(--font-display);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.last-safety-item span:not(.last-safety-ico) {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .64);
  font-size: clamp(11.5px, .88vw, 13px);
  line-height: 1.3;
}
#together .call-ai-badge svg { stroke: var(--yellow); }
@media (max-width: 900px) {
  #together { padding: 90px 20px 30px; }
  #together .friends-inner { width: 100%; height: auto; }
  .last-safety-row { grid-template-columns: 1fr; gap: 14px; }
  .last-safety-item,
  .last-safety-item:first-child { border-left: 0; padding: 0; }
}

/* Keep the whole final screen purple. */
#together { background: #644af1; }

/* Balance the info row and remove its dividers. */
#together .friends-inner {
  row-gap: clamp(28px, 3vw, 44px);
}
.last-safety-row {
  gap: clamp(18px, 2vw, 36px);
}
.last-safety-item,
.last-safety-item:first-child {
  border-left: 0;
  padding: 0;
}

/* Remove the inner panel boundary; one continuous purple field. */
#together .friends-inner {
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Flatter stage with equal inner padding. */
#together .friends-inner {
  height: auto;
  min-height: 0;
}
#together .call-stage {
  height: clamp(430px, 52vh, 560px);
  align-self: center;
}
#together .call-grid {
  padding-bottom: 12px;
}

#together .friends-inner { height: calc(100svh - 140px); }
#together .call-stage {
  height: auto;
  max-height: 560px;
  aspect-ratio: 16 / 10;
}

#together .call-stage {
  aspect-ratio: 4 / 3;
  max-height: 620px;
}

#together .friends-inner { height: auto; }

/* One horizontal divider between the call and the info row. */
.last-safety-row {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

/* One viewport per chapter, one snap per scroll. */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
#top,
#world,
#together {
  height: 100svh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#world {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(74px, 9vh, 104px);
  padding-bottom: 0;
  overflow: clip;
}

/* Larger mode switch; full-screen horizontal swipe. */
#together { touch-action: pan-y; }
#together .mode-switch {
  padding: 5px;
  border-color: rgba(255, 255, 255, .26);
}
#together .mode-switch button {
  height: 50px;
  padding: 0 27px;
  font-size: 15px;
  font-weight: 600;
}
#together .mode-thumb {
  top: 5px;
  bottom: 5px;
  left: 5px;
}

/* Taller hero video. */
#top.hero-shot {
  padding-top: 76px;
  padding-bottom: 0;
}
#top.hero-shot .shot {
  min-height: 0;
  height: calc(100svh - 76px);
}

/* Stable dark tab bar: no background/theme transition while snapping. */
#nav::before {
  opacity: 1 !important;
  background: #0b0a0f !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}
#nav .brand-word,
#nav .nav-links a,
#nav .nav-login { color: rgba(255, 255, 255, .92) !important; }
#nav .brand-age {
  border-color: rgba(255, 255, 255, .3) !important;
  color: rgba(255, 255, 255, .62) !important;
}
#nav .nav-links a:hover,
#nav .nav-login:hover {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}
#nav .menu-toggle { background: rgba(255, 255, 255, .12) !important; }
#nav .menu-toggle span { background: #fff !important; }
#nav .nav-start {
  background: var(--yellow) !important;
  color: #17131f !important;
  transition: none !important;
}

/* Restore a pronounced staggered entrance for screen 2. */
@media (prefers-reduced-motion: no-preference) {
  .js .world .cast-tile.reveal {
    opacity: 0;
    transform: translateY(54px);
    transition: opacity .7s ease, transform 1s cubic-bezier(.2, .75, .2, 1);
  }
  .js .world .cast-tile.reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .world .cast-tile .cast-frame {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    transition: -webkit-clip-path .95s cubic-bezier(.2, .75, .2, 1),
                clip-path .95s cubic-bezier(.2, .75, .2, 1);
    transition-delay: inherit;
  }
  .js .world .cast-tile.is-in .cast-frame {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

/* Match the hero video's bottom gap to its left/right gap. */
#top.hero-shot {
  padding-bottom: clamp(14px, 2.4vw, 34px);
}
#top.hero-shot .shot {
  height: auto;
  min-height: 0;
  flex: 1;
}

/* Equal left/right/bottom margins around the hero video. */
#top.hero-shot {
  padding-left: clamp(14px, 2.4vw, 34px) !important;
  padding-right: clamp(14px, 2.4vw, 34px) !important;
  padding-bottom: clamp(14px, 2.4vw, 34px) !important;
}

/* Yellow button labels are always black. */
#nav .nav-start,
#nav .nav-start:hover,
#nav .nav-start:focus-visible {
  color: #0b0a0f !important;
}

/* Social buttons 15% smaller on desktop. */
@media (min-width: 901px) {
  .hero-shot .shot-soc {
    width: clamp(47.6px, 3.74vw, 71.4px);
    height: clamp(47.6px, 3.74vw, 71.4px);
  }
}

/* Yellow Log in pill: black label and arrow. */
#nav .nav-login,
#nav .nav-login:hover,
#nav .nav-login:focus-visible {
  color: #0b0a0f !important;
}
#nav .nav-login:hover { background: #fff !important; }

/* Lexend Black titles with 10% letter spacing. */
.hero-shot .shot-title,
.world-title,
#together .friends-title {
  font-family: 'Lexend Black', var(--font-display);
  font-weight: 900;
  letter-spacing: .1em;
}
.hero-shot .shot-big { font-size: clamp(42px, 4.4vw, 86px); }
.world-title { font-size: clamp(44px, 4.2vw, 66px); line-height: 1.02; }
#together .friends-title { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.04; }

#together .friends-title { font-size: clamp(30px, 3vw, 46px); }

/* Uppercase titles with breathing room between lines. */
.hero-shot .shot-title,
.world-title,
#together .friends-title {
  text-transform: uppercase;
}
.hero-shot .shot-title { line-height: 1.05; }
.hero-shot .shot-big { line-height: 1.04; }
.world-title { line-height: 1.08; }
#together .friends-title { line-height: 1.06; }

.hero-shot .shot-title,
.world-title,
#together .friends-title {
  letter-spacing: normal;
}

#together .friends-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
#together .friends-title {
  font-size: clamp(40px, 3.9vw, 66px);
  line-height: 1.06;
}

#together .friends-title { font-size: clamp(38px, 3.5vw, 66px); }

/* Evenly center the three info groups. */
.last-safety-item { justify-content: center; }

/* Clean call tiles: no scrim, center the portrait video. */
#together .call-tile::after { display: none !important; }
#together .call-tile video { object-position: center center; }

#together .call-tile video { object-position: center top; }

/* Topbar left shows the current mode instead of LIVE. */
.call-mode-tag {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Firework-like emoji burst. */
.intro-mark { position: relative; z-index: 2; }
.intro-burst { z-index: 1; }
.intro-burst span {
  animation-name: intro-firework;
  animation-duration: var(--dur, 1.15s);
  animation-timing-function: cubic-bezier(.16, .72, .3, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}
@keyframes intro-firework {
  0% { opacity: 0; transform: translate(0, 0) scale(.18) rotate(0); }
  12% { opacity: 1; transform: translate(calc(var(--x) * .25), calc(var(--y) * .25)) scale(1.06) rotate(calc(var(--r) * .4)); }
  58% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.12), calc(var(--y) + 64px)) scale(.88) rotate(calc(var(--r) * 1.7)); }
}

/* JS-driven simultaneous firework; disable the old CSS animation. */
.intro-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  line-height: 1;
  opacity: 0;
  animation: none !important;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* Hero entrance after the opening curtain. */
@media (prefers-reduced-motion: no-preference) {
  body:not(.hero-ready) .hero-shot .shot-title,
  body:not(.hero-ready) .hero-shot .shot-lede,
  body:not(.hero-ready) .hero-shot .shot-chips,
  body:not(.hero-ready) .hero-shot .shot-social,
  body:not(.hero-ready) .hero-shot .shot-status {
    opacity: 0;
  }
  body.hero-ready .hero-shot .shot-title {
    animation: hero-title-in .9s cubic-bezier(.19, 1, .22, 1) .05s both;
  }
  body.hero-ready .hero-shot .shot-lede {
    animation: hero-copy-in .7s cubic-bezier(.19, 1, .22, 1) .16s both;
  }
  body.hero-ready .hero-shot .shot-chips {
    animation: hero-copy-in .7s cubic-bezier(.19, 1, .22, 1) .26s both;
  }
  body.hero-ready .hero-shot .shot-social {
    animation: hero-social-in .8s cubic-bezier(.19, 1, .22, 1) .3s both;
  }
  body.hero-ready .hero-shot .shot-status {
    animation: hero-copy-in .7s ease .38s both;
  }
}
@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-social-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Keep the social column vertically centered during its entrance. */
@keyframes hero-social-in {
  from { opacity: 0; transform: translate(18px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

/* Faster screen-2 card entrance. */
@media (prefers-reduced-motion: no-preference) {
  .js .world .cast-tile.reveal {
    transition-duration: .42s, .6s;
  }
  .js .world .cast-tile .cast-frame {
    transition-duration: .52s;
  }
}

/* Expanding shockwave rings behind the emoji burst. */
.intro-shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.4);
  animation: intro-shockwave .95s cubic-bezier(.16, .7, .3, 1) var(--ring-delay, 0s) both;
}
.intro-shockwave:nth-of-type(2) { border-color: rgba(255, 252, 1, .5); }
@keyframes intro-shockwave {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(.4); }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); }
}

/* Waving hand after the hero entrance. */
.hero-shot .shot-wave {
  display: inline-block;
  transform-origin: 72% 82%;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  body.hero-ready .hero-shot .shot-wave {
    animation: hero-wave 2.8s ease-in-out 1s infinite;
  }
}
@keyframes hero-wave {
  0%, 52%, 100% { transform: rotate(0); }
  7% { transform: rotate(17deg); }
  14% { transform: rotate(-12deg); }
  21% { transform: rotate(15deg); }
  28% { transform: rotate(-9deg); }
  35% { transform: rotate(11deg); }
  43% { transform: rotate(-4deg); }
}

body.hero-ready .hero-shot .shot-wave {
  animation: hero-wave 2.2s ease-in-out 0s infinite;
}
@keyframes hero-wave {
  0%, 52%, 100% { transform: rotate(0); }
  7% { transform: rotate(28deg); }
  14% { transform: rotate(-22deg); }
  21% { transform: rotate(25deg); }
  28% { transform: rotate(-17deg); }
  35% { transform: rotate(19deg); }
  43% { transform: rotate(-8deg); }
}

/* Alternate cast cards entering from above / below. */
@media (prefers-reduced-motion: no-preference) {
  .js .world .cast-tile.reveal.cast-from-top {
    transform: translateY(-58px);
  }
  .js .world .cast-tile.reveal.cast-from-top.is-in {
    transform: none;
  }
  .js .world .cast-tile.cast-from-top .cast-frame {
    -webkit-clip-path: inset(0 0 100% 0);
    clip-path: inset(0 0 100% 0);
  }
  .js .world .cast-tile.cast-from-top.is-in .cast-frame {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

#together .call-grid { will-change: transform, opacity; }
#together .call-tile video { -webkit-user-drag: none; user-select: none; }

/* Soft, playful world map behind screen 2. */
#world { isolation: isolate; }
#world::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    url("../assets/world-routes.svg"),
    url("../assets/world-playful.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center 55%;
  background-size: 100% auto, min(82vw, 1280px) auto;
  opacity: .2;
  filter: saturate(.85);
  transform: scale(1.03) rotate(-.5deg);
  transform-origin: 50% 55%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
#world .world-head,
#world .cast-strip {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  #world::before {
    animation: world-map-drift 18s ease-in-out infinite alternate;
  }
}
@keyframes world-map-drift {
  from { transform: scale(1.03) translateX(-6px) rotate(-.5deg); }
  to { transform: scale(1.045) translateX(8px) rotate(.3deg); }
}

/* Yellow second headline line. */
.hero-shot .shot-big { color: var(--yellow); }

.hero-shot .shot-big { color: #fff; }
.hero-shot .hero-accent { color: var(--yellow); }

/* Reel-style replacements: keep faces in frame on vertical sources. */
.hero-shot .hero-video { object-position: 62% 30%; }
.call-tile video { object-position: 50% 28%; }

/* Vertical UGC sources: keep a phone-video panel on the right instead of extreme crop. */
@media (min-width: 901px) {
  .hero-shot .shot-vid {
    left: auto;
    right: 0;
    width: 58%;
    object-fit: cover;
    object-position: 50% 24%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  }
}

/* Bigger header logo. */
#nav .brand img { width: 44px; height: 44px; border-radius: 12px; }
#nav .brand-word { font-size: 26px; }
#nav .brand-age { font-size: 9px; padding: 2px 6px; }
#nav .brand { gap: 11px; }
@media (max-width: 900px) {
  #nav .brand img { width: 38px; height: 38px; border-radius: 10px; }
  #nav .brand-word { font-size: 23px; }
}

/* Purple atmosphere outside the hero card. */
.hero.hero-shot {
  background:
    radial-gradient(1050px 680px at 12% 6%, rgba(100, 74, 241, .48), transparent 66%),
    radial-gradient(760px 560px at 92% 100%, rgba(100, 74, 241, .22), transparent 72%),
    #0b0a0f;
}

/* Emoji icons in the bottom safety row. */
.last-safety-item .last-safety-emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  margin: 0;
  background: none;
  border: 0;
  color: initial;
  font-size: 27px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}

/* Police report control: emoji only, no circular background. */
.call-tile .tile-report {
  width: auto;
  height: auto;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.45));
}
.call-tile .tile-report:hover { background: none; transform: scale(1.08); }
.tile-report-emoji { display: block; font-size: 23px; line-height: 1; }

/* Make emoji icons actual size (subtext rule would shrink them). */
.last-safety-item .last-safety-emoji {
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  color: initial !important;
  font-size: 28px !important;
  line-height: 1 !important;
}
.call-tile .tile-report-emoji { font-size: 26px; }
#top.hero-shot {
  background:
    radial-gradient(80% 60% at 15% 10%, #3a2387 0%, transparent 60%),
    radial-gradient(60% 50% at 85% 100%, #2a1766 0%, transparent 70%),
    #0e0918;
}

#nav .brand img { width: 50px; height: 50px; border-radius: 14px; }
#nav .brand-word { font-size: 28px; }
#nav .brand { gap: 12px; }
@media (max-width: 900px) {
  #nav .brand img { width: 42px; height: 42px; border-radius: 11px; }
  #nav .brand-word { font-size: 24px; }
}
#top.hero-shot {
  background:
    radial-gradient(780px 520px at 0% 0%, rgba(100, 74, 241, .55), transparent 62%),
    linear-gradient(135deg, #241154 0%, #0b0a0f 42%, #1b0e3c 100%);
}

/* Aya: zoom the full-body clip to a face-level crop. */
.call-tile video.aya-reel {
  object-position: 50% 42%;
  transform: scale(1.18);
  transform-origin: 50% 42%;
}

/* Larger opening mark and wider burst. */
.intro-mark { gap: 20px; }
.intro-mark img { width: 120px !important; height: 120px !important; border-radius: 28px !important; }
.intro-mark span { font-size: 56px !important; }
@media (max-width: 760px) {
  .intro-mark { gap: 14px; }
  .intro-mark img { width: 92px !important; height: 92px !important; border-radius: 22px !important; }
  .intro-mark span { font-size: 42px !important; }
}
