/* Unbind landing — the app, opened up as a website.
   Tokens are the app's (tailwind.config.js): cream surface, rust primary, peach container,
   warm browns. Text colours are chosen for WCAG AAA (7:1 body, 4.5:1 large) on their backgrounds. */

@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: optional; /* preloaded: used when it arrives in time, never a late re-paint of body text */
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* app surfaces */
  --surface: #fff9eb;
  --tint: #f5eed5; /* surface-container */
  --card: #fffdf7;
  --line: #eadfbe;
  /* text: ink 12:1, ink-2 8.4:1 on cream (7.5:1 on tint) */
  --ink: #37331e;
  --ink-2: #4f4a37;
  /* primary: rust for large type (6.1:1), rust-ink for small type and buttons (7.9:1) */
  --rust: #a14118;
  --rust-ink: #86350f;
  --rust-press: #6f2b0a;
  --peach: #ffad8f; /* primary-container */
  --peach-soft: #ffe1d3;
  --mint: #dcefdf;
  --butter: #fff0c8;
  --sky: #dcebf6;
  /* the app's dark surfaces (Octo's speech bubble, lecture, Live) */
  --night: #1c1820;
  --night-2: #2a2330;
  --night-text: #fff9eb;
  --night-muted: #ddd3c2;
  --night-accent: #ffad8f;
  --teal-hi: #7fd6c9;
  /* the reef */
  --reef-top: #dff4f1;
  --reef-bottom: #b4e0dc;
  --deep: #1f5f68; /* white on it: 7.3:1 */

  --font-head: "Epilogue", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow: 0 18px 40px rgba(55, 51, 30, 0.12);
  --shadow-sm: 0 6px 18px rgba(55, 51, 30, 0.08);

  --text-hero: clamp(3rem, 1.6rem + 6vw, 6.2rem);
  --text-h2: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  --space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-region="india"] .only-intl,
html[data-region="intl"] .only-india {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
  padding-bottom: 88px; /* room for the dock */
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--rust);
}
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--rust-ink);
  text-underline-offset: 4px;
}
/* stand-alone text links get a full 44px tap height */
.tap {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}
:focus-visible {
  outline: 3px solid var(--rust-ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- the app's drifting pastel orbs (fixed, behind everything) ---------- */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orbs i {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  opacity: 0.75;
  animation: drift 26s ease-in-out infinite alternate;
}
.orbs i:nth-child(1) { left: -12vmax; top: -10vmax; background: radial-gradient(circle, rgba(255, 190, 160, 0.55), transparent 65%); }
.orbs i:nth-child(2) { right: -14vmax; top: 10vh; background: radial-gradient(circle, rgba(200, 230, 205, 0.6), transparent 65%); animation-duration: 31s; }
.orbs i:nth-child(3) { left: 20vw; top: 55vh; background: radial-gradient(circle, rgba(255, 228, 160, 0.5), transparent 65%); animation-duration: 36s; }
.orbs i:nth-child(4) { right: 10vw; bottom: -20vmax; background: radial-gradient(circle, rgba(200, 222, 242, 0.55), transparent 65%); animation-duration: 29s; }
.orbs i:nth-child(5) { left: -10vmax; bottom: -16vmax; background: radial-gradient(circle, rgba(255, 200, 200, 0.4), transparent 65%); animation-duration: 40s; }
@keyframes drift {
  to {
    transform: translate(6vmax, 4vmax) scale(1.08);
  }
}

/* ---------- type helpers ---------- */
.eyebrow {
  font: 700 0.8rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust-ink);
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 560px;
}
.small {
  font-size: 0.92rem;
  color: var(--ink-2);
}
.head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.6rem);
}
.section h2 {
  font-size: var(--text-h2);
}
.head > p:not(.eyebrow) {
  color: var(--ink-2);
  max-width: 560px;
}
.head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.head--center img {
  width: 88px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--rust-ink);
  color: var(--surface);
  font: 700 1.05rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(134, 53, 15, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--rust-press);
  box-shadow: 0 14px 28px rgba(134, 53, 15, 0.32);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.btn--ghost:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--peach), var(--shadow-sm);
}
.btn--light {
  background: #fff;
  color: var(--deep);
  box-shadow: none;
}
.btn--light:hover {
  background: var(--surface);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  background: rgba(255, 249, 235, 0.92);
  border-bottom: 1px solid rgba(234, 223, 190, 0.7);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
.brand img {
  width: 104px;
}
.topbar__end {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ---------- phones (real app recordings) ---------- */
.phone {
  position: relative;
  width: clamp(200px, 24vw, 290px);
  aspect-ratio: 480 / 854;
  border-radius: 38px;
  border: 8px solid #231d26;
  background: #231d26;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(55, 51, 30, 0.22), 0 4px 10px rgba(55, 51, 30, 0.12);
  flex: none;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #2a2330;
}
.phone .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone--hero {
  width: clamp(230px, 30vw, 330px);
}
.phone--tilt-l {
  rotate: -3deg;
}
.phone--tilt-r {
  rotate: 3deg;
}
.phone--lift {
  translate: 0 -24px;
}
.phone--offset {
  translate: 0 40px;
}
.phone--night {
  border-color: #0f0c12;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

/* ---------- 1. hero ---------- */
.hero {
  overflow-x: clip; /* the floating subject bubbles may drift past the edge */
  padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.hero h1 {
  font-size: var(--text-hero);
}
.speech {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 520px;
}
.speech img {
  width: 64px;
  flex: none;
  animation: bob 3.2s ease-in-out infinite;
}
.speech p {
  position: relative;
  /* the typed text sits over an invisible copy of the whole line, so the bubble never grows */
  padding: 14px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--night-2);
  color: var(--night-text);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  min-height: 3.2em;
}
.speech .full {
  color: transparent;
}
.speech .typed {
  position: absolute;
  inset: 14px 18px;
}
.speech .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--teal-hi);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0;
  --px: 0;
  --py: 0;
}
.bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: clamp(92px, 9vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  font: 700 0.92rem var(--font-body);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(55, 51, 30, 0.08), var(--shadow-sm);
  translate: calc(var(--px) * 18px) calc(var(--py) * 14px);
  transition: translate 600ms var(--ease);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d);
}
.bubble::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 12%;
  width: 30%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  rotate: -20deg;
}
.bubble svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bubble--mint { background: var(--mint); }
.bubble--peach { background: var(--peach-soft); }
.bubble--butter { background: var(--butter); }
.bubble--sky { background: var(--sky); }
@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding-block: var(--space);
  scroll-margin-top: 64px;
}
.section--tint {
  background: rgba(245, 238, 213, 0.75);
}
.card {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.card h3 {
  font-size: 1.35rem;
  margin: 14px 0 6px;
}
.card p {
  color: var(--ink-2);
}
.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--peach { background: var(--peach-soft); }
.icon--mint { background: var(--mint); }
.icon--butter { background: var(--butter); }
.bring {
  display: grid;
  gap: 16px;
}

/* ---------- 3. module hub ---------- */
.hub {
  display: grid;
  gap: 32px;
}
.hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* the app's module grid is always two columns */
  gap: 12px;
  order: 2;
}
.mod {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 200ms var(--ease), box-shadow 200ms;
}
.mod:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1.5px var(--peach), var(--shadow-sm);
}
.mod svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--rust-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mod b {
  font: 700 1.05rem var(--font-head);
}
.mod small {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.mod[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--rust-ink), var(--shadow-sm);
}
/* the app's water fill: rises while this module is on screen */
.mod__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 173, 143, 0.28), rgba(255, 173, 143, 0.42));
  transform: translateY(100%);
}
.mod__fill::before {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 200%;
  height: 12px;
  background: radial-gradient(circle at 10px -2px, transparent 9px, rgba(255, 173, 143, 0.3) 10px) 0 0 / 20px 12px repeat-x;
  animation: wave 2.4s linear infinite;
}
@keyframes wave {
  to {
    transform: translateX(-50%);
  }
}
.mod[aria-pressed="true"] .mod__fill {
  animation: fill var(--fill-ms, 6000ms) linear forwards;
}
.hub.is-held .mod[aria-pressed="true"] .mod__fill {
  animation: none;
  transform: translateY(0);
}
@keyframes fill {
  to {
    transform: translateY(0);
  }
}
.hub__phone {
  order: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.hub__phone video {
  transition: opacity 220ms;
}
.hub__phone.is-swapping video {
  opacity: 0;
}
.hub__now {
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---------- 4. duo features ---------- */
.duo {
  display: grid;
  gap: 24px;
}
.duo--center {
  align-items: center;
}
.duo--center > .phone {
  justify-self: center;
}
.feature {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow);
}
.feature h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-2);
}
.feature--dark {
  background: var(--night-2);
  box-shadow: var(--shadow);
}
.feature--dark h3 {
  color: var(--night-text);
}
.feature--dark p {
  color: var(--night-muted);
}

/* ---------- 5. Octo Live (night) ---------- */
.section--night {
  background: var(--night);
  color: var(--night-text);
  overflow: hidden;
}
.section--night h2 em {
  color: var(--night-accent);
}
.section--night p {
  color: var(--night-muted);
}
.eyebrow--night {
  color: var(--night-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--night-accent);
  color: var(--night);
  letter-spacing: 0.08em;
}
.live {
  display: grid;
  gap: 48px;
  align-items: center;
}
.live__copy {
  display: grid;
  gap: 18px;
}
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modes li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 235, 0.18);
  font-size: 0.95rem;
}
.voice {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
}
.voice i {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: var(--teal-hi);
  transform-origin: center;
  animation: talk 1.1s ease-in-out infinite;
}
.voice i:nth-child(2) { animation-delay: -0.2s; }
.voice i:nth-child(3) { animation-delay: -0.5s; }
.voice i:nth-child(4) { animation-delay: -0.1s; }
.voice i:nth-child(5) { animation-delay: -0.7s; }
.voice i:nth-child(6) { animation-delay: -0.35s; }
.voice i:nth-child(7) { animation-delay: -0.9s; }
@keyframes talk {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}
.live__phones {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* ---------- 6. reef ---------- */
.section--reef {
  background: linear-gradient(180deg, var(--reef-top), var(--reef-bottom));
  overflow: hidden;
}
.rise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rise i {
  position: absolute;
  bottom: -40px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: up linear infinite;
}
.rise i:nth-child(1) { left: 6%; animation-duration: 11s; }
.rise i:nth-child(2) { left: 18%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: -3s; }
.rise i:nth-child(3) { left: 32%; width: 24px; height: 24px; animation-duration: 14s; animation-delay: -6s; }
.rise i:nth-child(4) { left: 49%; animation-duration: 10s; animation-delay: -1s; }
.rise i:nth-child(5) { left: 63%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: -5s; }
.rise i:nth-child(6) { left: 77%; width: 26px; height: 26px; animation-duration: 15s; animation-delay: -9s; }
.rise i:nth-child(7) { left: 88%; animation-duration: 12s; animation-delay: -2s; }
.rise i:nth-child(8) { left: 95%; width: 10px; height: 10px; animation-duration: 7s; animation-delay: -4s; }
@keyframes up {
  to {
    transform: translateY(-120vh);
  }
}
.trio,
.pair {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

/* ---------- 7. stream card ---------- */
.board-card {
  margin-block: 24px 12px;
  max-width: 420px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.board-card__title {
  font: 700 1.1rem var(--font-head);
  margin-bottom: 10px;
}
.board-card li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.board-card li + li {
  margin-top: 4px;
}
.board-card li.is-you {
  background: var(--peach-soft);
}
.board-card b {
  color: var(--rust-press); /* 8:1 on the peach "You" row too */
}

/* ---------- 8. spirits ---------- */
.spirit-card {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  max-width: 460px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.spirit-card img {
  width: 84px;
  border-radius: 14px;
}
.spirit-card > div {
  flex: 1;
  display: grid;
  gap: 8px;
}
.spirit-card__name {
  font: 700 1.5rem var(--font-head);
}
.spirit-card__name span {
  display: block;
  font: 500 0.9rem var(--font-body);
  color: var(--ink-2);
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: #ece3c6;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #5b7f3a;
  transform-origin: left;
  transform: scaleX(var(--s, 0.7));
  transition: transform 1.4s var(--ease) 0.2s;
}
.bar--streak i {
  background: var(--rust);
}
.four {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.spirit {
  display: grid;
  gap: 4px;
  padding: 10px 10px 14px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.spirit b {
  font: 700 1.3rem var(--font-head);
  margin-top: 6px;
}
.spirit small {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.spirit__area {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  overflow: hidden;
  container-type: inline-size;
  background: var(--tint);
}
.spirit__area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spirit__walk {
  position: absolute;
  left: 0;
  bottom: 10%;
  width: 36cqw;
  height: 36cqw;
  background-size: 144cqw 144cqw;
  background-position: 0 calc(var(--row) * -36cqw);
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.35));
  animation: frames 0.56s steps(4) infinite, walk 9s linear infinite;
}
@keyframes frames {
  to {
    background-position-x: -144cqw;
  }
}
@keyframes walk {
  from {
    transform: translateX(-40cqw);
  }
  to {
    transform: translateX(110cqw);
  }
}
.quiz {
  margin-top: 2.5rem;
  font: 700 clamp(1.4rem, 1rem + 1.4vw, 2rem) / 1.2 var(--font-head);
}
.quiz em {
  display: block;
  font-style: normal;
  color: var(--rust);
}

/* ---------- 9. exams ---------- */
#exams .reveal > img {
  width: 80px;
  margin-bottom: 8px;
}
#exams h2 {
  margin-block: 10px 16px;
}
.exam-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.exam-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.exam-tabs button.is-active {
  background: var(--ink);
  color: var(--surface);
}
.exam {
  display: grid;
  gap: 8px;
}
.exam span {
  font: 700 0.78rem var(--font-body);
  letter-spacing: 0.14em;
  color: var(--rust-ink);
}
.exam strong {
  font: 700 1.6rem var(--font-head);
}

/* ---------- 10. plans ---------- */
.plans {
  display: grid;
  gap: 18px;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.plan h3 {
  font-size: 1.5rem;
}
.plan__price {
  font: 700 2.8rem/1 var(--font-head);
  letter-spacing: -0.03em;
}
.plan__price small {
  font: 500 1rem var(--font-body);
  letter-spacing: 0;
  color: var(--ink-2);
}
.plan__budget {
  font-weight: 700;
  color: var(--rust-ink);
}
.plan ul {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}
.plan li {
  position: relative;
  padding-left: 22px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: -45deg;
}
.plan--main {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 24px 50px rgba(31, 95, 104, 0.35);
}
.plan--main .plan__budget,
.plan--main ul,
.plan--main .plan__price small {
  color: #fff;
}
.plan__flag {
  position: absolute;
  top: -14px;
  left: 22px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font: 700 0.82rem var(--font-body);
}
.plans__foot {
  margin-top: 20px;
}
.full-month {
  margin-top: 3rem;
  display: grid;
  gap: 10px;
}
.full-month h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
}
.full-month > p:not(.small) {
  color: var(--ink-2);
}
.full-month__scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.full-month table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.full-month th,
.full-month td {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid var(--line);
}
.full-month thead th {
  border-top: 0;
  background: var(--tint);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.full-month th[scope="row"],
.full-month thead th:first-child {
  text-align: left;
  font-weight: 700;
}
.full-month td {
  font: 700 1.05rem var(--font-head);
}
.full-month td:nth-child(2) {
  font-family: var(--font-body);
  color: var(--ink-2);
}

/* ---------- 11. closing + footer ---------- */
.closing__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.closing h2 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
}
.closing__octo {
  width: 140px;
  animation: bob 3s ease-in-out infinite;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 700 0.95rem var(--font-body);
  text-align: left;
}
.store small {
  display: block;
  font: 500 0.72rem var(--font-body);
  color: var(--ink-2);
}
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer .footer__social {
  gap: 4px;
}
.footer__social a {
  justify-content: center;
  min-width: 44px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--card);
  color: var(--rust-ink);
}
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__social .dot {
  fill: currentColor;
  stroke: none;
}
.footer__settings,
.footer .region {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.footer .region span {
  font-size: 0.8rem;
}
.footer .region button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 700 0.9rem var(--font-body);
  cursor: pointer;
}
.footer .region button[aria-pressed="true"] {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.motion-toggle {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font: 700 0.9rem var(--font-body);
  cursor: pointer;
}

/* ---------- the app's floating bottom menu ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4f1ef, #a8dfdc);
  box-shadow: 0 16px 34px rgba(31, 95, 104, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  translate: -50% 140%;
  transition: translate 450ms var(--ease);
}
.dock.is-shown {
  translate: -50% 0;
}
.dock a {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 58px;
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  font: 700 0.72rem var(--font-body);
  text-decoration: none;
  transition: background 250ms, color 250ms;
}
.dock svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock a.is-active {
  background: var(--rust-ink);
  color: var(--surface);
}
.dock__plans {
  align-content: center;
  margin-left: 4px;
  background: var(--card);
}

/* ---------- tour dialog ---------- */
.player {
  width: min(960px, 100vw - 24px);
  padding: 14px;
  border: 0;
  border-radius: 24px;
  background: var(--night);
  color: var(--night-text);
}
.player::backdrop {
  background: rgba(20, 16, 22, 0.8);
}
.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
}
.player__close {
  display: block;
  margin: 0 0 10px auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 249, 235, 0.12);
  color: var(--night-text);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
}

/* ---------- scroll reveals (only when scripts run) ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 700ms var(--ease), translate 700ms var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}
.js .reveal.phone--offset.is-in {
  translate: 0 40px;
}
.js .reveal.phone--lift.is-in {
  translate: 0 -24px;
}
.js .reveal:not(.is-in) .bar i {
  transform: scaleX(0);
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .bring {
    grid-template-columns: repeat(3, 1fr);
  }
  .four {
    grid-template-columns: repeat(4, 1fr);
  }
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .hub {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .hub__grid {
    order: 1;
  }
  .hub__phone {
    order: 2;
    position: sticky;
    top: 90px;
  }
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .live {
    grid-template-columns: 1fr 1.1fr;
  }
}
@media (max-width: 380px) {
  .brand img {
    width: 88px;
  }
  .topbar {
    gap: 8px;
    padding-inline: 14px;
  }
  .btn--small {
    padding: 0 14px;
  }
}
@media (max-width: 719px) {
  .trio,
  .pair,
  .live__phones {
    overflow-x: auto;
    justify-content: flex-start;
    margin-inline: calc(-1 * var(--gutter));
    padding: 30px var(--gutter) 50px;
    scroll-snap-type: x mandatory;
  }
  .trio .phone,
  .pair .phone,
  .live__phones .phone {
    width: 62vw;
    scroll-snap-align: center;
  }
  .full-month th,
  .full-month td {
    padding: 10px 8px;
  }
  .full-month td {
    font-size: 0.95rem;
  }
  .full-month thead th {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
  .bubble {
    width: 84px;
    font-size: 0.8rem;
  }
  .bubble svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- motion off: the system setting or the Pause button ---------- */
@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;
  }
}
html.is-still *,
html.is-still *::before,
html.is-still *::after {
  animation-play-state: paused !important;
}
