/*
 * Chamani landing page.
 *
 * The colours are the app's own (mobile/src/theme/palette.js), so the page and
 * the phone in someone's hand look like the same thing. One typeface, self
 * hosted, so the page makes no requests to anyone but its own host.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f7f5ef;
  --surface: #ffffff;
  --sunken: #efece3;
  --line: #e6e2d8;
  --ink: #14201a;
  --muted: #5c6660;
  --faint: #646c66;

  --primary: #125e45;
  --primary-soft: #ddf1e7;
  --primary-glow: #1a7f5c;
  --primary-deep: #0c4432;
  --on-primary: #ffffff;

  --positive: #17733f;
  --positive-soft: #e1f3e8;
  --danger: #b03a2a;
  --danger-soft: #fbe8e4;
  --highlight: #6d28d9;
  --highlight-soft: #f0eafc;
  --sun: #ffb938;
  --sun-deep: #e0951f;
  --sun-soft: #fff1d2;
  --coral: #ff7a59;
  --coral-soft: #ffe6de;
  --mint: #bfebd6;
  --mint-soft: #e9f8f0;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(20, 32, 26, 0.08);
  --shadow-lg: 0 30px 70px rgba(20, 32, 26, 0.16);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #0c100e;
    --surface: #171c19;
    --sunken: #212823;
    --line: #2c342f;
    --ink: #f2f5f3;
    --muted: #a0aaa4;
    --faint: #8a938e;
    --primary: #5ec79e;
    --primary-soft: #12291f;
    --primary-glow: #1a6b50;
    --primary-deep: #0a2e23;
    --on-primary: #052018;
    --positive: #5fd08d;
    --positive-soft: #10281b;
    --danger: #f08c7e;
    --danger-soft: #2d1512;
    --highlight: #c4a7f5;
    --highlight-soft: #211430;
    --sun-soft: #2e2410;
    --coral-soft: #301a14;
    --mint: #2f6b55;
    --mint-soft: #15261e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme='dark'] {
  --canvas: #0c100e;
  --surface: #171c19;
  --sunken: #212823;
  --line: #2c342f;
  --ink: #f2f5f3;
  --muted: #a0aaa4;
  --faint: #8a938e;
  --primary: #5ec79e;
  --primary-soft: #12291f;
  --primary-glow: #1a6b50;
  --primary-deep: #0a2e23;
  --on-primary: #052018;
  --positive: #5fd08d;
  --positive-soft: #10281b;
  --danger: #f08c7e;
  --danger-soft: #2d1512;
  --highlight: #c4a7f5;
  --highlight-soft: #211430;
  --sun-soft: #2e2410;
  --coral-soft: #301a14;
  --mint: #2f6b55;
  --mint-soft: #15261e;
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--sun);
  border-radius: 999px;
  z-index: -1;
  transform-origin: left;
  animation: underline 0.9s 0.6s var(--ease) both;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

.narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 12px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.8s ease-in-out infinite;
}

.eyebrow.on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--primary);
  --btn-ink: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s var(--ease),
    background 0.2s;
  box-shadow: 0 10px 24px rgba(18, 94, 69, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 94, 69, 0.32);
}

.btn:active {
  transform: scale(0.96);
}

.btn .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
  box-shadow: none;
}

.btn-light {
  --btn-bg: #ffffff;
  --btn-ink: #125e45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn.is-disabled {
  --btn-bg: var(--sunken);
  --btn-ink: var(--muted);
  box-shadow: none;
  cursor: default;
}

.btn-light.is-disabled {
  --btn-bg: rgba(255, 255, 255, 0.18);
  --btn-ink: rgba(255, 255, 255, 0.85);
}

.btn.is-disabled:hover {
  transform: none;
}

/* The ripple a tap leaves behind (added by main.js). */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  transform: scale(0);
  animation: ripple 0.6s var(--ease) forwards;
  pointer-events: none;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: #0b0f0d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.25s var(--spring);
}

.play-badge:hover {
  transform: translateY(-2px);
}

.play-badge small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.play-badge strong {
  font-size: 1.05rem;
}

.play-icon {
  width: 26px;
  height: 26px;
}

.play-badge.is-soon {
  opacity: 0.72;
}

.release-meta {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.release-meta.on-dark {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  transition: transform 0.5s var(--spring);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.06);
}

.nav {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 40px 0 28px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.blob-a {
  width: 460px;
  height: 460px;
  background: var(--mint);
  top: -140px;
  right: -140px;
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-b {
  width: 360px;
  height: 360px;
  background: var(--sun-soft);
  bottom: -60px;
  left: -160px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}

/* ----------------------------------------------------------------- phone */

.phone {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 300 / 610;
  border-radius: 44px;
  background: #1d2923;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px #3a4741;
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 90px;
  height: 22px;
  margin-left: -45px;
  background: #1d2923;
  border-radius: 999px;
  z-index: 3;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #f7f5ef;
  color: #14201a;
  padding: 44px 13px 70px;
  font-size: 11px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-title {
  font-weight: 800;
  font-size: 15px;
}

.app-sub {
  color: #5c6660;
  font-weight: 600;
  font-size: 10px;
}

.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
}

.a-sun {
  background: #fff1d2;
  color: #9a5b08;
}
.a-coral {
  background: #ffe6de;
  color: #b03a2a;
}
.a-mint {
  background: #e9f8f0;
  color: #125e45;
}
.a-purple {
  background: #f0eafc;
  color: #6d28d9;
}

.app-hero {
  border-radius: 18px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1a7f5c, #0c4432);
  position: relative;
  overflow: hidden;
}

.app-hero::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.app-hero-row,
.app-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.app-label {
  font-weight: 700;
  opacity: 0.9;
}

.app-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.app-hero-main {
  margin-top: 8px;
}

.app-caption {
  font-size: 9.5px;
  opacity: 0.8;
}

.app-caption.muted {
  color: #5c6660;
  opacity: 1;
  font-weight: 600;
}

.app-caption.purple {
  color: #6d28d9;
  opacity: 1;
  font-weight: 700;
}

.app-figure {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.app-paid {
  font-weight: 700;
  margin-top: 2px;
}

.ring {
  width: 68px;
  height: 68px;
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.18);
}

.ring-fill {
  stroke: #ffb938;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 79.2;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s var(--spring);
}

.ring-text {
  fill: #fff;
  font-weight: 800;
  font-size: 19px;
  font-family: inherit;
}

.app-pill {
  margin-top: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 10px;
  position: relative;
}

.app-card {
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(20, 32, 26, 0.06);
}

.app-owe {
  font-weight: 800;
  font-size: 19px;
  color: #b03a2a;
}

.app-due {
  color: #5c6660;
  font-size: 9.5px;
}

.app-button {
  margin-top: 8px;
  background: #125e45;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  padding: 8px;
  font-weight: 700;
  transition: transform 0.2s var(--spring);
}

.app-button.is-pressed {
  transform: scale(0.92);
}

.app-turn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0eafc;
  box-shadow: none;
}

.app-turn-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 10px;
}

.app-turn-amount {
  font-weight: 800;
  font-size: 15px;
}

.app-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 8px 16px;
  box-shadow: 0 -4px 14px rgba(20, 32, 26, 0.06);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #5c6660;
  padding: 4px 8px;
  border-radius: 12px;
}

.tab small {
  font-size: 8px;
  font-weight: 600;
}

.tab.on {
  background: #ddf1e7;
  color: #125e45;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

.chip-paid {
  top: 46%;
  left: max(0px, calc(50% - 250px));
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--spring);
}

.chip-paid.is-shown {
  opacity: 1;
  transform: none;
}

.chip-turn {
  bottom: 16%;
  right: max(0px, calc(50% - 235px));
  animation: bob 5s 1s ease-in-out infinite;
}

.chip-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--positive);
  color: #fff;
  font-weight: 800;
}

.chip-gift {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--highlight-soft);
}

@media (max-width: 480px) {
  .chip-paid {
    left: 0;
    top: 6%;
  }
  .chip-turn {
    right: 0;
    bottom: 4%;
  }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  animation: fall 1.6s var(--ease) forwards;
}

/* --------------------------------------------------------- trust strip */

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 0;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 110px 0;
  }
}

.section-tint {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ----------------------------------------------------------------- steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--spring);
}

.step:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.step:hover .art {
  transform: scale(1.06) rotate(3deg);
}

.step h3 {
  margin-top: 8px;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.art {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  transition: transform 0.45s var(--spring);
}

/* Illustration fills, as classes so the art follows the colour scheme. */
.f-primary { fill: var(--primary); }
.f-primary-soft { fill: var(--primary-soft); }
.f-deep { fill: var(--primary-deep); }
.f-mint { fill: var(--mint); }
.f-mint-soft { fill: var(--mint-soft); }
.f-sun { fill: var(--sun); }
.f-sun-deep { fill: var(--sun-deep); }
.f-sun-soft { fill: var(--sun-soft); }
.f-coral { fill: var(--coral); }
.f-coral-soft { fill: var(--coral-soft); }
.f-highlight { fill: var(--highlight); }
.f-highlight-soft { fill: var(--highlight-soft); }
.f-surface { fill: var(--surface); }
.f-line { fill: var(--line); }
.s-sun-deep { stroke: var(--sun-deep); }
.s-mint { stroke: var(--mint); }

/* ----------------------------------------------------------------- split */

.split {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-copy h2 {
  margin-top: 0;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.ticks li::before {
  content: '✓';
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--positive-soft);
  color: var(--positive);
  font-weight: 800;
  font-size: 0.85rem;
}

.members-mock {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 32, 26, 0.05);
}

.mock-row .avatar {
  width: 42px;
  height: 42px;
  font-size: 0.85rem;
}

.mock-row.turn {
  background: var(--highlight-soft);
}

.ring-purple {
  box-shadow: 0 0 0 3px var(--canvas), 0 0 0 5px var(--highlight);
}

.mock-name {
  flex: 1;
  line-height: 1.25;
}

.mock-name small,
.owe small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

.owe {
  text-align: right;
  color: var(--danger);
  line-height: 1.2;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-green {
  background: var(--positive-soft);
  color: var(--positive);
}

/* -------------------------------------------------------------- features */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--spring);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature:hover .feature-icon {
  transform: rotate(-10deg) scale(1.1);
}

.feature h3 {
  margin-top: 16px;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  transition: transform 0.4s var(--spring);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-green {
  background: var(--primary-soft);
  color: var(--primary);
}
.i-coral {
  background: var(--coral-soft);
  color: var(--coral);
}
.i-sun {
  background: var(--sun-soft);
  color: var(--sun-deep);
}
.i-purple {
  background: var(--highlight-soft);
  color: var(--highlight);
}

/* ----------------------------------------------------------- get the app */

.get-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  color: #fff;
  background: linear-gradient(140deg, #1a7f5c 0%, #125e45 45%, #0c4432 100%);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .get-card {
    padding: 56px;
  }
}

.blob-c {
  width: 380px;
  height: 380px;
  background: #ffb938;
  opacity: 0.22;
  top: -120px;
  right: -100px;
  z-index: 0;
}

.get-grid {
  position: relative;
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .get-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.get-card h2 {
  color: #fff;
}

.get-lead {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.qr {
  display: none;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 900px) and (hover: hover) {
  .qr:not([hidden]) {
    display: flex;
  }
}

.qr-code {
  flex: none;
  width: 124px;
  height: 124px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  max-width: 16em;
}

.install {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px;
}

.install ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 16px;
}

.install li {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}

.install strong {
  color: #fff;
}

.install .n {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffb938;
  color: #14201a;
  font-weight: 800;
}

.safety {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.35s var(--spring);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq details[open] p {
  animation: reveal-down 0.35s var(--ease);
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------- motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.8s var(--spring);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Without JavaScript nothing would ever be revealed; main.js sets this class. */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* The member rows slide in one after another once the list is on screen. */
html.js .mock-row {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--spring);
  transition-delay: calc(var(--i, 0) * 120ms + 250ms);
}

html.js .is-visible .mock-row {
  opacity: 1;
  transform: none;
}

@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--dx), 420px) rotate(var(--r)); opacity: 0; }
}

@keyframes reveal-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  html.js .mock-row {
    opacity: 1;
    transform: none;
  }
  .phone,
  .chip-turn {
    animation: none;
  }
}

/* ------------------------------------------------------------------ icons */

.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-sm {
  width: 15px;
  height: 15px;
}

.ic-xs {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}

.trust-strip .ic {
  color: var(--primary);
}

.chip-gift {
  color: var(--highlight);
}

.app-turn-icon {
  color: #6d28d9;
}

.safety {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------- checksum */

.checksum {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.checksum summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.checksum p {
  margin-top: 8px;
}

.checksum code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  word-break: break-all;
  user-select: all;
}

/* ------------------------------------------------------------ invite page */

.join-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.join-card {
  max-width: 720px;
  margin: 0 auto;
}

.join-body {
  position: relative;
  z-index: 1;
}

.join-body h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
}

.join-steps {
  margin: 28px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.join-more {
  margin-top: 24px;
}

.join-more a {
  color: #fff;
  font-weight: 700;
}
