/* HeroCall landing page — "comic night sky": ink outlines, stickers, halftone paper, neon glow. */

:root {
  --night: #0e0b2b;
  --night-2: #1c1650;
  --night-3: #2a1f73;
  --ink: #150f3d;
  --brand: #6c4dff;
  --brand-2: #3a1fb8;
  --sun: #ffc83d;
  --mint: #2ee6a6;
  --coral: #ff5c7a;
  --cyan: #34d6f5;
  --paper: #fff8ec;
  --paper-2: #fff1d6;
  --text-on-paper: #1b1440;
  --muted-on-paper: #5b5585;
  --text-on-night: #f4f1ff;
  --muted-on-night: #c9c2f2;
  --answer: #22c55e;
  --hangup: #ef4444;
  --radius: 22px;
  --shadow-ink: 5px 5px 0 var(--ink);
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-on-night);
  background: var(--night);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(16px, calc((100% - var(--wrap)) / 2));
  background: rgb(14 11 43 / 0.8);
  background: color-mix(in srgb, var(--night) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 10px rgb(108 77 255 / 0.5));
}

.topnav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted-on-night);
  transition: color 0.2s, background 0.2s;
}

.topnav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 50;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 2px;
  background: var(--paper);
  color: var(--text-on-paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-ink);
}

.lang__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.lang__menu a:hover,
.lang__menu a[aria-current] {
  background: var(--sun);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--sun);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn--brand {
  --bg: var(--brand);
  --fg: #fff;
}

.btn--ghost {
  --bg: rgb(255 255 255 / 0.08);
  --fg: #fff;
  border-color: rgb(255 255 255 / 0.6);
  box-shadow: none;
}

.btn--ghost:hover {
  box-shadow: none;
  background: rgb(255 255 255 / 0.16);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--ink);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgb(108 77 255 / 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgb(52 214 245 / 0.25), transparent 60%),
    linear-gradient(180deg, #1b1464 0%, #120d3a 55%, var(--night) 100%);
}

.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 25% 40%, rgb(46 230 166 / 0.28), transparent 70%),
    radial-gradient(35% 45% at 70% 30%, rgb(255 92 122 / 0.22), transparent 70%),
    radial-gradient(45% 55% at 50% 60%, rgb(108 77 255 / 0.35), transparent 70%);
  filter: blur(30px);
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  from {
    transform: translate3d(-4%, 0, 0) rotate(-3deg) scale(1);
  }
  to {
    transform: translate3d(5%, 4%, 0) rotate(4deg) scale(1.12);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 2px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  color: var(--mint);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: rgb(46 230 166 / 0.08);
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 30px rgb(8 5 30 / 0.6);
  text-wrap: balance;
}

.sticker {
  display: inline-block;
  position: relative;
  padding: 0 0.22em 0.04em;
  margin: 0.06em 0;
  color: var(--ink);
  background: var(--sun);
  border: 4px solid var(--ink);
  border-radius: 0.28em;
  box-shadow: 6px 6px 0 var(--coral);
  transform: rotate(-3deg);
  text-shadow: none;
}

@media (min-width: 861px) {
  .sticker {
    white-space: nowrap;
  }
}

.js .sticker {
  animation: wobble 5s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(-1deg) translateY(-3px);
  }
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--muted-on-night);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  color: var(--text-on-night);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------------ phone + fake call */
.hero__demo {
  display: grid;
  justify-items: center;
  gap: 22px;
  scroll-margin-top: 90px;
}

.phone {
  --accent: var(--mint);
  position: relative;
  width: min(292px, 76vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #2b2750, #0b0920 60%, #231d4d);
  box-shadow:
    0 0 0 2px rgb(255 255 255 / 0.12) inset,
    0 30px 80px rgb(0 0 0 / 0.55),
    0 0 0 3px var(--ink);
  transform: rotate(2deg);
}

.phone__glow {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 64px;
  background: conic-gradient(from var(--spin, 0deg), var(--cyan), var(--brand), var(--coral), var(--sun), var(--mint), var(--cyan));
  filter: blur(26px);
  opacity: 0.55;
  animation: spin 8s linear infinite;
}

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--night);
  color: #fff;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 96px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.call-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  filter: blur(26px) saturate(1.4);
}

.phone__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 5 30 / 0.35), rgb(8 5 30 / 0.55) 45%, rgb(8 5 30 / 0.85));
}

.call,
.accepted {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

/* One screen for the whole call, like the app: the hero stays in the middle while the
   buttons under it change from answer/decline to the in-call controls. */
.call {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 108px;
  text-align: center;
}

.call-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-block: auto;
}

.avatar {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
}

.avatar__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgb(255 255 255 / 0.92);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wave, var(--accent));
  opacity: 0;
}

/* rings while it rings, then voice waves for whoever talks: the hero in its color, the child in mint */
[data-state='incoming'] .ring,
[data-state='answering'] .ring,
[data-talk] .ring {
  animation: ring var(--period, 2.4s) ease-out infinite;
}

.ring:nth-child(2) {
  animation-delay: calc(var(--period, 2.4s) / -3);
}

.ring:nth-child(3) {
  animation-delay: calc(var(--period, 2.4s) / -1.5);
}

[data-talk='hero'] .avatar {
  --period: 1.5s;
}

[data-talk='kid'] .avatar {
  --period: 1s;
  --wave: var(--mint);
}

[data-talk] .ring {
  border-width: 3px;
  background: color-mix(in srgb, var(--wave, var(--accent)) 16%, transparent);
}

[data-talk='hero'] .avatar__img {
  animation: voice 0.42s ease-in-out infinite alternate;
}

@keyframes voice {
  to {
    transform: scale(1.035);
    box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 85%, transparent);
  }
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* no name under the picture: the hero is recognised by it */
.call-status {
  margin-top: 22px;
  color: rgb(255 255 255 / 0.85);
  font-weight: 700;
  font-size: 1rem;
}

.call-timer {
  display: none;
  font-variant-numeric: tabular-nums;
}

[data-state='live'] .call-calling,
[data-state='ended'] .call-calling {
  display: none;
}

[data-state='live'] .call-timer,
[data-state='ended'] .call-timer {
  display: inline;
}

.call-buttons,
.call-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-inline: 13%;
  transition:
    opacity 0.35s ease,
    translate 0.35s ease;
}

.call-controls {
  align-items: center;
  justify-content: space-evenly;
  padding-inline: 6%;
  opacity: 0;
  translate: 0 12px;
}

[data-state='live'] .call-buttons,
[data-state='ended'] .call-buttons {
  opacity: 0;
  translate: 0 12px;
}

[data-state='live'] .call-controls,
[data-state='ended'] .call-controls {
  opacity: 1;
  translate: none;
}

.ctl svg {
  display: block;
  width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

.ctl--end svg {
  width: 60px;
  height: 60px;
  padding: 16px;
  background: var(--hangup);
  transform: rotate(135deg);
}

.callbtn {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.85);
}

.callbtn svg {
  width: 60px;
  height: 60px;
  padding: 16px;
  border-radius: 50%;
  color: #fff;
}

.callbtn--decline svg {
  background: var(--hangup);
  transform: rotate(135deg);
}

.callbtn--answer svg {
  background: var(--answer);
}

[data-state='incoming'] .callbtn--answer svg {
  animation: nudge 1.2s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px) rotate(-8deg);
  }
}

.callbtn--answer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.5);
  opacity: 0;
  pointer-events: none;
}

[data-state='answering'] .callbtn--answer::after {
  animation: tap 0.6s ease-out;
}

@keyframes tap {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* live captions, a sentence at a time as the app shows them */
.caption {
  position: absolute;
  inset-inline: 14px;
  bottom: 106px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.38;
  text-wrap: balance;
  opacity: 0;
  translate: 0 8px;
  transition:
    opacity 0.25s ease,
    translate 0.25s ease;
}

[data-state='live'] .caption.is-on {
  opacity: 1;
  translate: none;
}

.caption--kid {
  border-color: rgb(46 230 166 / 0.65);
  background: rgb(46 230 166 / 0.22);
}

.caption--kid::before {
  content: '🧒 ';
}

.accepted {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

.burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  translate: -50% -58%;
  fill: var(--sun);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  filter: drop-shadow(6px 6px 0 var(--coral));
}

.accepted__text {
  position: relative;
  max-width: 80%;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
  transform: rotate(-6deg);
}

.accepted__star {
  position: relative;
  padding: 4px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  transform: rotate(3deg);
}

[data-state='ended'] .call {
  opacity: 0;
  transform: scale(0.96);
}

[data-accepted='true'] .accepted {
  opacity: 1;
  animation: slam 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes slam {
  from {
    transform: scale(2.2) rotate(-14deg);
    opacity: 0;
  }
}

.picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 420px;
}

.picker__label {
  width: 100%;
  text-align: center;
  color: var(--muted-on-night);
  font-weight: 700;
  font-size: 0.92rem;
}

.pick {
  padding: 7px 13px;
  border: 2px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

.pick:hover {
  transform: translateY(-2px);
  border-color: #fff;
}

.pick[aria-pressed='true'] {
  background: var(--mint);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

/* ------------------------------------------------------------------ bands */
.band {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
}

.paper {
  color: var(--text-on-paper);
  background-color: var(--paper);
  background-image: radial-gradient(rgb(108 77 255 / 0.1) 1.2px, transparent 1.6px);
  background-size: 16px 16px;
}

.night {
  color: var(--text-on-night);
  background:
    radial-gradient(800px 400px at 90% 0%, rgb(108 77 255 / 0.35), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
}

/* comic zig-zag seam between a night band and a paper band */
.paper::before,
.night + .night::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 18px;
  background:
    linear-gradient(135deg, var(--night) 12px, transparent 0) 0 0 / 24px 18px repeat-x,
    linear-gradient(225deg, var(--night) 12px, transparent 0) 0 0 / 24px 18px repeat-x;
}

.paper + .paper::before {
  display: none;
}

.night::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 18px;
  background:
    linear-gradient(135deg, var(--paper) 12px, transparent 0) 0 0 / 24px 18px repeat-x,
    linear-gradient(225deg, var(--paper) 12px, transparent 0) 0 0 / 24px 18px repeat-x;
}

.title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
}

.sub {
  max-width: 44em;
  margin: 16px auto 0;
  text-align: center;
  font-size: 1.12rem;
  text-wrap: pretty;
}

.paper .sub,
.paper p {
  color: var(--muted-on-paper);
}

.night .sub {
  color: var(--muted-on-night);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step,
.card,
.herocard {
  position: relative;
  padding: 28px 24px 26px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-ink);
}

.step:nth-child(odd),
.herocard:nth-child(odd) {
  rotate: -1deg;
}

.step:nth-child(even),
.herocard:nth-child(even) {
  rotate: 1deg;
}

.step__num {
  position: absolute;
  top: -22px;
  inset-inline-start: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  rotate: -8deg;
}

.step__icon {
  display: block;
  font-size: 2.6rem;
  margin: 10px 0 8px;
}

.step h3,
.card h3,
.herocard h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

/* mission chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 44px auto 0;
  padding: 0;
  max-width: 980px;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text-on-paper);
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink);
}

.js.ready .chip.is-in {
  animation: bob 3.2s ease-in-out var(--bob, 0s) infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}

.chip__emoji {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 1.3rem;
}

.chip--custom {
  background: var(--mint);
  border-style: dashed;
}

/* hero cards */
.herocards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.herocard {
  padding: 18px 18px 22px;
  text-align: center;
  transition: rotate 0.25s, transform 0.25s;
}

.herocard:hover {
  rotate: 0deg;
  transform: translateY(-6px);
}

.herocard__art {
  aspect-ratio: 1;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c2, var(--sun)), var(--c1, var(--brand)), var(--c2, var(--sun)));
  border: 3px solid var(--ink);
}

.herocard__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.herocard p {
  font-size: 0.98rem;
}

.herocard__tagline {
  font-weight: 700;
}

.herocard--studio {
  background: var(--paper-2);
  border-style: dashed;
}

.studio-art {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr 1fr;
  font-size: 3.4rem;
  background: conic-gradient(from 0deg, var(--coral), var(--sun), var(--mint), var(--cyan), var(--brand), var(--coral));
}

/* parents */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--night-3);
  color: var(--text-on-night);
  border-color: rgb(255 255 255 / 0.9);
  box-shadow: 5px 5px 0 var(--brand);
}

.card p {
  color: var(--muted-on-night);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.12);
  font-size: 1.8rem;
}

/* languages + pricing */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.split .title,
.split .sub {
  text-align: start;
  margin-inline: 0;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a {
  display: inline-block;
  padding: 8px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s;
}

.langs a:hover,
.langs a[aria-current] {
  background: var(--sun);
  transform: translateY(-2px);
}

.pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
  padding: 34px 38px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(120deg, #fff, var(--paper-2));
  box-shadow: 8px 8px 0 var(--brand);
}

.pricing .title {
  text-align: start;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

/* faq */
.narrow {
  width: min(820px, 100% - 32px);
}

.qa {
  margin-top: 16px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
}

.qa:first-of-type {
  margin-top: 40px;
}

.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  font-weight: 800;
  transition: rotate 0.2s;
}

.qa[open] summary::after {
  rotate: 45deg;
}

.qa h3 {
  font-size: 1.2rem;
}

.qa p {
  padding: 0 22px 20px;
}

/* get the app */
.get {
  text-align: center;
  overflow: hidden;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 16px;
  background: #000;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.store--soon {
  opacity: 0.8;
  cursor: default;
}

.store__icon {
  font-size: 1.4rem;
}

.soon {
  margin-top: 16px;
  color: var(--mint);
  font-weight: 700;
}

/* footer */
.footer {
  padding: 48px 0 32px;
  background: #07051a;
  color: var(--muted-on-night);
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.footer .brand {
  color: #fff;
  margin-bottom: 10px;
}

.footer nav {
  display: grid;
  gap: 8px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ reveal on scroll */
/* reveals move with `translate`, so hover effects keep `transform` and `rotate` to themselves */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.7s ease var(--d, 0ms),
    translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms),
    transform 0.25s ease,
    rotate 0.25s ease;
  /* if the script never runs, show everything anyway */
  animation: failsafe 0s linear 2.5s forwards;
}

.js.ready .reveal {
  animation: none;
}

@keyframes failsafe {
  to {
    opacity: 1;
    translate: none;
  }
}

.js .reveal.is-in {
  opacity: 1;
  translate: none;
}

/* the fx canvas for celebration bursts sits above everything, never catches clicks */
.fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* ------------------------------------------------------------------ languages without spaces, RTL */
.fonts-ja .hero__title,
.fonts-zh .hero__title,
.fonts-ko .hero__title {
  line-height: 1.25;
}

/* Korean breaks lines between words (at the spaces), not between syllables */
.fonts-ko body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Thai stacks vowels and tone marks above and below the letters: give the lines room */
.fonts-th h1,
.fonts-th h2,
.fonts-th h3 {
  line-height: 1.45;
}

.fonts-th .caption,
.fonts-th .accepted__text {
  line-height: 1.5;
}

/* Japanese and Chinese have no spaces: keep each headline phrase whole, break between them */
.fonts-ja .hero__title > span,
.fonts-zh .hero__title > span {
  white-space: nowrap;
}

[dir='rtl'] .phone {
  transform: rotate(-2deg);
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .topnav {
    display: none;
  }

  .lang {
    margin-inline-start: auto;
  }

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

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .hero__ctas,
  .trust {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .pricing {
    flex-direction: column;
    text-align: center;
  }

  .pricing .title {
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 10px;
  }

  .topbar .btn--small {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .herocards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .herocard h3 {
    font-size: 1.15rem;
  }

  .herocard p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
