/* hivup website styles. Plain CSS, no build step. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-warm: #fff8ec;
  --card: #ffffff;
  --honey: #ffb020;
  --honey-deep: #ff7a1a;
  --brand-grad: linear-gradient(135deg, #ffc233 0%, #ff7a1a 100%);
  --focus: #2563eb;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 24px 60px rgba(15, 23, 42, 0.12);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e293b;
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --bg-warm: #1a1408;
    --card: #111a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--bg);
  padding: 8px 14px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 820px;
}
.section {
  padding: 96px 0;
}
.section.soft {
  background: var(--bg-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 680px;
}
.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}
.text-link,
.lead a,
.narrow a:not(.btn),
details a,
.prose a {
  color: var(--honey-deep);
  font-weight: 700;
}
.grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ---------- Buttons, pills, cards ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: var(--shadow);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink-2);
}
.btn-light {
  background: #fff;
  color: #0f172a;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-warm);
  color: var(--honey-deep);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 6px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card.dashed {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.card.dashed a {
  color: var(--honey-deep);
  font-weight: 700;
  text-decoration: none;
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--bg-warm);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.head-row .grid {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current='page'] {
  color: var(--ink);
}
.main-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.main-nav .btn {
  padding: 10px 18px;
  font-size: 0.95rem;
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 64px 0 28px;
  font-size: 0.95rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand p {
  color: var(--muted);
  margin: 14px 0 10px;
  max-width: 320px;
}
.site-footer .mail {
  color: var(--honey-deep);
  font-weight: 600;
  text-decoration: none;
}
.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer ul a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-footer ul a:hover {
  color: var(--ink);
}
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- App cards ---------- */
.app-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.app-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.app-card .top img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.app-card .status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--a1);
}
.app-card h3 {
  font-size: 1.4rem;
  margin: 0;
}
.app-card .cat {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 2px 0 10px;
}
.app-card p {
  color: var(--ink-2);
}
.app-card .more {
  margin-top: auto;
  font-weight: 700;
  color: var(--a1);
}
@media (prefers-color-scheme: dark) {
  .app-card .status {
    background: color-mix(in srgb, var(--a1) 22%, transparent);
    color: #fff;
  }
}

/* ---------- Phone frame ---------- */
.phone {
  margin: 0;
  flex: 0 0 auto;
  transform: rotate(var(--tilt, 0deg));
}
.phone .frame {
  width: 250px;
  aspect-ratio: 390 / 844;
  border-radius: 38px;
  padding: 9px;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.phone figcaption {
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.phones {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* ---------- Store buttons ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 10px 20px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  border: 1px solid #0f172a;
}
.store.soon {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--muted);
}
.store .small {
  font-size: 0.72rem;
  opacity: 0.8;
}
.store .big {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--display);
}

/* ---------- Home ---------- */
.home-hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--honey) 18%, transparent), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, #1e88e5 10%, transparent), transparent 60%);
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hive {
  position: relative;
  min-height: 302px;
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-auto-rows: 130px;
  justify-content: center;
  gap: 0 12px;
}
.cell {
  width: 150px;
  height: 172px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-items: center;
  text-decoration: none;
  /* Rows shift opposite ways so the offset honeycomb stays centred. */
  --x: -40px;
  translate: var(--x) 0;
  scale: var(--s, 1);
  transition: scale 0.25s ease, filter 0.25s ease;
}
.cell:nth-child(n + 4) {
  --x: 41px;
}
.cell.app {
  background: linear-gradient(160deg, #eaf4ff 0%, #ffe9f0 100%);
}
.cell.app img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
}
.cell.app:hover {
  --s: 1.05;
}
.cell.empty {
  background: color-mix(in srgb, var(--honey) 14%, var(--bg));
  color: var(--honey-deep);
  font-weight: 700;
  font-size: 0.85rem;
}
.cell.empty:nth-child(2) {
  background: color-mix(in srgb, var(--honey) 30%, var(--bg));
}
.cell.empty:nth-child(5) {
  background: color-mix(in srgb, var(--honey) 22%, var(--bg));
}
.app-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.app-title img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.app-title h2 {
  margin: 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.ticks li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #1f9d55;
  font-weight: 800;
  font-size: 0.8rem;
}

/* ---------- App page ---------- */
.app-hero {
  padding: 64px 0 88px;
  background:
    radial-gradient(800px 480px at 90% 0%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--a2) 14%, transparent), transparent 60%);
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.app-icon {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.lead.big {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-grad);
  font-weight: 800;
  color: #1f1300;
}
.shots {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 24px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 32px;
  scroll-snap-type: x mandatory;
}
.shots .phone {
  scroll-snap-align: center;
}
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after {
  content: '–';
}
details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}
.cta-band {
  padding: 0 0 96px;
}
.cta-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--a1), var(--a2));
  color: #fff;
  max-width: calc(var(--max) - 48px);
}
.cta-box img {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cta-box h2 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}
.cta-box p {
  margin: 0;
  opacity: 0.9;
}

/* ---------- Support ---------- */
.support-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.support-cols h2 {
  font-size: 1.5rem;
}
.side ul {
  padding-left: 1.1em;
  margin: 0 0 24px;
}
.side li {
  margin-bottom: 6px;
}
.side a,
.contact-card a {
  color: var(--honey-deep);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

/* ---------- Legal / long text ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .two-col,
  .faq-wrap,
  .support-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-col .phones.first-mobile-last {
    order: 2;
  }
  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
@media (max-width: 760px) {
  .menu-button {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  body {
    font-size: 16px;
  }
}
@media (max-width: 560px) {
  .hive {
    min-height: 171px;
    grid-template-columns: repeat(3, 84px);
    grid-auto-rows: 74px;
    gap: 0 6px;
    justify-content: start;
  }
  .cell {
    width: 84px;
    height: 97px;
  }
  .cell {
    --x: 0px;
  }
  .cell:nth-child(n + 4) {
    --x: 45px;
  }
  .cell.app img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .phones {
    gap: 12px;
  }
  .phones .phone .frame {
    width: 140px;
    border-radius: 26px;
    padding: 6px;
  }
  .phones .phone img {
    border-radius: 21px;
  }
}
/* ---------- Motion ---------- */
/* Keeps the space for the header until main.js adds it, so the page does not jump. */
[data-include='header'] {
  height: 73px;
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--brand-grad);
  transform-origin: 0 50%;
  scale: var(--p, 0) 1;
  pointer-events: none;
}
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

/* Hero: drifting colour blobs and a staggered entrance. */
.home-hero,
.app-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before,
.home-hero::after,
.app-hero::before,
.app-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.home-hero::before {
  top: -160px;
  right: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--honey) 30%, transparent), transparent 68%);
}
.home-hero::after {
  bottom: -200px;
  left: 20%;
  background: radial-gradient(circle, color-mix(in srgb, #f25c8a 14%, transparent), transparent 68%);
  animation-duration: 23s;
  animation-direction: alternate-reverse;
}
.app-hero::before {
  top: -160px;
  right: -40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 22%, transparent), transparent 68%);
}
.app-hero::after {
  bottom: -220px;
  left: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--a2) 18%, transparent), transparent 68%);
  animation-duration: 23s;
  animation-direction: alternate-reverse;
}
.home-hero .two-col > div:first-child > *,
.app-hero .two-col > div:first-child > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.home-hero .two-col > div:first-child > :nth-child(2),
.app-hero .two-col > div:first-child > :nth-child(2) {
  animation-delay: 0.1s;
}
.home-hero .two-col > div:first-child > :nth-child(3),
.app-hero .two-col > div:first-child > :nth-child(3) {
  animation-delay: 0.2s;
}
.home-hero .two-col > div:first-child > :nth-child(4),
.app-hero .two-col > div:first-child > :nth-child(4) {
  animation-delay: 0.3s;
}
.home-hero .two-col > div:first-child > :nth-child(n + 5),
.app-hero .two-col > div:first-child > :nth-child(n + 5) {
  animation-delay: 0.4s;
}
.grad-text {
  background: linear-gradient(90deg, #ffc233, #ff7a1a, #ff4d6d, #ff7a1a, #ffc233);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

/* Honeycomb: cells pop in, then float gently. Bees fly around it. */
.cell {
  animation:
    pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
    float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms), calc(var(--i, 0) * -1.1s);
}
.cell.empty:hover {
  --s: 1.04;
}
.bee {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  offset-path: path('M 0 250 C 40 60, 220 -40, 330 40 S 560 220, 420 300 S 120 340, 0 250 Z');
  offset-rotate: auto;
  animation: fly 16s linear infinite;
}
.bee.two {
  offset-rotate: reverse;
  scale: 0.75;
  animation-duration: 21s;
  animation-direction: reverse;
  animation-delay: -7s;
}
.bee .wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: flap 0.12s linear infinite;
}
@supports not (offset-path: path('M 0 0')) {
  .bee {
    display: none;
  }
}

/* Phones bob, and tilt towards the pointer. */
.phones {
  perspective: 1200px;
}
.phones .phone {
  transform: rotate(var(--tilt, 0deg)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.4s ease-out;
  animation: bob 6s ease-in-out infinite;
}
.phones .phone:nth-child(2) {
  animation-delay: -3s;
}
.app-hero .phones .phone {
  animation:
    rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards,
    bob 6s ease-in-out 1.25s infinite;
}
.app-hero .phones .phone:nth-child(2) {
  animation-delay: 0.4s, 4.4s;
}

/* Scroll reveal (main.js adds .reveal, then .in when the element is on screen). */
@media (prefers-reduced-motion: no-preference) {
  /* Doubled class so it beats the card and phone transition rules. */
  body .reveal.reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 0.7s ease var(--d, 0ms),
      translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
  }
  body .reveal.reveal.in {
    opacity: 1;
    translate: 0 0;
  }
}

/* Cards: lift and a soft glow that follows the pointer. */
.card,
.app-card {
  position: relative;
  overflow: hidden;
}
.grid > .card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.grid > .card:not(.dashed):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card::after,
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a1, var(--honey)) 13%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::after,
.app-card:hover::after {
  opacity: 1;
}
.icon-badge {
  transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.3s ease;
}
.card:hover .icon-badge {
  scale: 1.12;
  rotate: -6deg;
}

/* Buttons: a light sweep on hover. */
.btn {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.7s ease;
  pointer-events: none;
}
.btn-light::after {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 176, 32, 0.3) 50%, transparent 70%);
}
.btn-primary:hover::after,
.btn-light:hover::after {
  translate: 120% 0;
}

/* Values band */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-warm);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Numbers band on the app page */
.stats-band {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding-bottom: 48px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, #1e88e5, #f25c8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Screenshot strip: drag with the mouse, or use the arrows. */
.shots {
  cursor: grab;
  scrollbar-width: thin;
}
.shots img {
  -webkit-user-drag: none;
  user-select: none;
}
.shots.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.shots .phone {
  transition: scale 0.3s ease;
}
.shots .phone:hover {
  scale: 1.03;
}
.shots-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.shots-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s ease, scale 0.2s ease;
}
.shots-nav button:hover {
  border-color: var(--ink-2);
  scale: 1.08;
}

/* Call-to-action boxes: a slowly moving honeycomb pattern. */
.cta-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66v34' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  animation: pan 40s linear infinite;
}
.hive-cta {
  --a1: #ffb020;
  --a2: #ff7a1a;
  color: #1f1300;
}
.hive-cta img {
  box-shadow: none;
  animation: bob 5s ease-in-out infinite;
}

details[open] p {
  animation: rise 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    scale: 0.4;
  }
}
@keyframes float {
  50% {
    translate: var(--x) -10px;
  }
}
@keyframes bob {
  50% {
    translate: 0 -12px;
  }
}
@keyframes drift {
  to {
    translate: -60px 50px;
    scale: 1.15;
  }
}
@keyframes shimmer {
  to {
    background-position: 300% 0;
  }
}
@keyframes fly {
  to {
    offset-distance: 100%;
  }
}
@keyframes flap {
  50% {
    scale: 1 0.35;
  }
}
@keyframes marquee {
  to {
    translate: -50% 0;
  }
}
@keyframes pan {
  to {
    background-position: 56px 100px;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat strong {
    font-size: 2rem;
  }
}
@media (max-width: 560px) {
  .bee {
    offset-path: path('M 0 140 C 20 20, 140 -20, 200 30 S 330 140, 250 175 S 60 200, 0 140 Z');
  }
  .home-hero::before,
  .home-hero::after,
  .app-hero::before,
  .app-hero::after {
    width: 300px;
    height: 300px;
  }
}

/* ---------- Fun ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--honey-deep);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Floating stickers behind hero content */
.stickers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sticker {
  position: absolute;
  font-size: calc(30px * var(--ss, 1));
  opacity: 0.55;
  animation: sticker 9s ease-in-out var(--sd, 0s) infinite;
}
@keyframes sticker {
  0%,
  100% {
    translate: 0 0;
    rotate: -8deg;
  }
  50% {
    translate: 10px -22px;
    rotate: 10deg;
  }
}

/* Heart bursts */
.burst {
  position: fixed;
  z-index: 200;
  font-size: 22px;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Three numbers */
.stats-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pillars */
.pillar {
  border-top: 6px solid var(--pc);
  --a1: var(--pc);
}
.pillar-emoji {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 38px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--pc) 16%, var(--card));
  margin-bottom: 12px;
  transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.3s ease;
}
.pillar:hover .pillar-emoji {
  scale: 1.12;
  rotate: -8deg;
}
.pillar .ticks {
  margin: 14px 0 0;
  font-size: 0.95rem;
}
.pillar .ticks li {
  display: flex;
  gap: 4px;
}
.pillar .ticks li::before {
  flex: 0 0 22px;
  background: color-mix(in srgb, var(--pc) 18%, var(--card));
  color: color-mix(in srgb, var(--pc) 75%, #000);
}

/* Try a real moment */
.moment {
  max-width: 760px;
  margin: 36px auto 0;
}
.moment-tabs,
.tour-list {
  scrollbar-width: none;
}
.moment-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.moment-tab {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, scale 0.2s ease;
}
.moment-tab:hover {
  scale: 1.04;
}
.moment-tab[aria-selected='true'] {
  border-color: var(--honey);
  background: var(--bg-warm);
}
.moment-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.moment-card.pop {
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.moment-scene {
  display: flex;
  gap: 18px;
  align-items: center;
}
.moment-npc {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  font-size: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, #eaf4ff, #ffe9f0);
  animation: bob 4s ease-in-out infinite;
}
.moment-place {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.moment-situation {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}
.moment-ask {
  margin: 22px 0 10px;
  font-weight: 700;
  color: var(--ink-2);
}
.moment-choices {
  display: grid;
  gap: 10px;
}
.moment-choice {
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, translate 0.2s ease, background 0.2s ease;
}
.moment-choice:hover:not(:disabled) {
  border-color: var(--honey);
  translate: 4px 0;
}
.moment-choice:disabled {
  cursor: default;
  opacity: 0.55;
}
.moment-choice.kind {
  opacity: 1;
  border-color: #22a06b;
  background: color-mix(in srgb, #22a06b 12%, var(--card));
}
.moment-choice.kind::after {
  content: ' 💚';
}
.moment-choice.oops {
  border-color: #f59f00;
  animation: shake 0.45s ease;
}
@keyframes shake {
  20%,
  60% {
    translate: -6px 0;
  }
  40%,
  80% {
    translate: 6px 0;
  }
}
.moment-feedback:not(:empty) {
  margin-top: 18px;
  animation: rise 0.4s ease;
}
.pip-says {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-warm);
  border-radius: 18px;
  padding: 14px 16px;
}
.pip-says p {
  margin: 0;
}
.pip-mini {
  flex: 0 0 44px;
  width: 44px;
}
.moment-thanks {
  background: color-mix(in srgb, #22a06b 10%, var(--card));
  border-radius: 18px;
  padding: 18px;
}
.moment-quote {
  font-weight: 700;
  font-size: 1.1rem;
}
.moment-home {
  margin-bottom: 16px;
}
.moment-stars {
  text-align: center;
  margin-top: 16px;
  font-weight: 700;
  color: var(--ink-2);
}

/* App tour */
.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.tour-list {
  display: grid;
  gap: 10px;
}
.tour-tab {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  color: var(--ink-2);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, translate 0.25s ease;
}
.tour-tab strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
}
.tour-tab:hover {
  background: var(--bg-soft);
}
.tour-tab[aria-selected='true'] {
  background: var(--card);
  border-color: var(--honey);
  box-shadow: var(--shadow);
  translate: 6px 0;
}
.tour-emoji {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: var(--bg-warm);
}
.tour-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.tour-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 100%;
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, #ffd166, #ff8fa3 55%, #7cc6fe);
  opacity: 0.35;
  animation: morph 12s ease-in-out infinite alternate;
}
@keyframes morph {
  to {
    border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%;
    rotate: 30deg;
  }
}
.tour-phone .frame {
  width: 270px;
}
.tour-phone.swap img {
  animation: swap 0.5s ease;
}
@keyframes swap {
  from {
    opacity: 0;
    scale: 0.96;
  }
}
.tour-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tour-fx span {
  position: absolute;
  font-size: 40px;
  animation: fx-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, sticker 6s ease-in-out infinite;
  animation-delay: calc(var(--n) * 0.12s), calc(var(--n) * -2s);
}
.tour-fx span:nth-child(1) {
  left: 4%;
  top: 14%;
}
.tour-fx span:nth-child(2) {
  right: 4%;
  top: 40%;
}
.tour-fx span:nth-child(3) {
  left: 10%;
  bottom: 12%;
}
@keyframes fx-in {
  from {
    opacity: 0;
    scale: 0;
  }
}

/* Family challenge wheel */
.spin-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.spin-result {
  margin-top: 24px;
  min-height: 150px;
}
.spin-hint {
  color: var(--muted);
}
.spin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--wc);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spin-card p:last-child {
  margin-bottom: 0;
}
.spin-value {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.wheel-box {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 10px solid var(--card);
  box-shadow: var(--shadow-lg), inset 0 0 0 4px rgba(255, 255, 255, 0.5);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 1);
}
.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 30px;
  translate: -50% -50%;
  transform: rotate(var(--a)) translateY(-118px) rotate(calc(-1 * var(--a)));
}
.wheel-pointer {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -14px;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 34px solid var(--ink);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}
.wheel-button {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid var(--card);
  background: var(--brand-grad);
  color: #1f1300;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: scale 0.2s ease;
}
.wheel-button:hover:not(:disabled) {
  scale: 1.08;
}
.wheel-button:disabled {
  cursor: wait;
}

/* Meet Pip (home page) */
.meet-pip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.meet-pip-face {
  width: 200px;
  animation: bob 4s ease-in-out infinite;
}
.meet-pip-face .pip-face {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(242, 106, 33, 0.25));
}

/* ---------- Pip chat ---------- */
.pip-face {
  display: block;
  width: 100%;
  height: auto;
}
.pip-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5s infinite;
}
@keyframes blink {
  0%,
  92%,
  100% {
    scale: 1 1;
  }
  95% {
    scale: 1 0.1;
  }
}
.pip-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  font-size: 15px;
}
.pip-launcher {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-left: auto;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: #fff4e8;
  box-shadow: 0 10px 30px rgba(242, 106, 33, 0.35);
  cursor: pointer;
  animation: bob 3.5s ease-in-out infinite;
  transition: scale 0.2s ease;
}
.pip-launcher:hover {
  scale: 1.08;
}
.pip-launcher.happy {
  animation: hop 0.6s ease, bob 3.5s ease-in-out 0.6s infinite;
}
@keyframes hop {
  30% {
    translate: 0 -14px;
    rotate: -8deg;
  }
  60% {
    translate: 0 0;
    rotate: 6deg;
  }
}
.pip-widget.open .pip-launcher {
  animation: none;
}
.pip-bubble {
  position: absolute;
  right: 6px;
  bottom: 84px;
  width: max-content;
  max-width: 240px;
  padding: 12px 34px 12px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  cursor: pointer;
  animation: rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pip-bubble p {
  margin: 0;
}
.pip-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.pip-panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pip-panel[hidden] {
  display: none;
}
.pip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #ffc233, #ff7a1a);
  color: #1f1300;
}
.pip-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
}
.pip-head span {
  font-size: 0.8rem;
  opacity: 0.85;
}
.pip-head div {
  flex: 1;
}
.pip-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  background: #fff4e8;
}
.pip-avatar.small {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  padding: 3px;
}
.pip-close {
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  color: #1f1300;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.pip-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-soft);
}
.pip-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: rise 0.3s ease;
}
.pip-msg.visitor {
  justify-content: flex-end;
}
.pip-text {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pip-msg.pip .pip-text {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.pip-msg.visitor .pip-text {
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.pip-text a {
  color: var(--honey-deep);
  font-weight: 700;
}
.pip-alert {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff3bf;
  color: #5c3d00;
  font-size: 0.9rem;
}
.dots {
  display: inline-flex;
  gap: 4px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1s ease-in-out infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  50% {
    translate: 0 -5px;
    opacity: 0.5;
  }
}
.pip-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-soft);
}
.pip-suggest:not(:empty) {
  padding-bottom: 10px;
}
.pip-chip {
  border: 1px solid var(--honey);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.pip-chip:hover {
  background: var(--bg-warm);
}
.pip-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.pip-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}
.pip-form input:focus {
  outline: none;
  border-color: var(--honey);
}
.pip-form button {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #1f1300;
  font-size: 18px;
  cursor: pointer;
}
.pip-note {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 0.72rem;
  color: var(--muted);
}
.pip-note a {
  color: inherit;
}

@media (max-width: 960px) {
  .tour,
  .spin-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-stage {
    order: -1;
    min-height: 520px;
  }
}
@media (max-width: 760px) {
  .stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .stats-3 .stat {
    padding: 16px 8px;
  }
  .stats-3 .stat span {
    font-size: 0.8rem;
  }
  .meet-pip {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }
  .meet-pip .actions {
    justify-content: center;
  }
  .meet-pip-face {
    width: 150px;
  }
}
@media (max-width: 560px) {
  .moment-card {
    padding: 20px;
  }
  .moment-npc {
    width: 64px;
    height: 64px;
    font-size: 36px;
  }
  .moment-situation {
    font-size: 1.1rem;
  }
  .tour-phone .frame {
    width: 220px;
  }
  .tour-stage {
    min-height: 500px;
  }
  .wheel-label {
    font-size: 24px;
    transform: rotate(var(--a)) translateY(-104px) rotate(calc(-1 * var(--a)));
  }
  .pip-widget {
    right: 12px;
    bottom: 12px;
  }
  .pip-launcher {
    width: 62px;
    height: 62px;
  }
  .pip-panel {
    bottom: 74px;
    height: min(540px, calc(100vh - 110px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Show the values as a wrapped list, without the copy used for looping. */
  .marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .chip[aria-hidden],
  .bee,
  .stickers,
  .tour-fx {
    display: none;
  }
}
