/* kapair.app, home page: the Liquid Glass look of the app, light and dark.
   No script: the reveals are scroll-driven animations where the browser has them. */

body.home {
  --h-bg: #f2f5f4;
  --h-text: #0d1413;
  --h-muted: #55615e;
  --h-faint: #7d8986;
  --h-accent: #0e7a66;
  --h-accent-text: #0b6b59;
  --h-accent-soft: rgba(14, 122, 102, 0.1);
  --h-accent-ink: #ffffff;
  --h-ok: #0b6b59;
  --h-ok-soft: rgba(14, 122, 102, 0.12);
  --h-glow: rgba(79, 209, 181, 0.34);
  --h-glow-2: rgba(80, 130, 210, 0.16);
  --h-glass: rgba(255, 255, 255, 0.56);
  --h-glass-strong: rgba(255, 255, 255, 0.8);
  --h-edge: rgba(13, 20, 19, 0.08);
  --h-edge-hi: rgba(255, 255, 255, 0.95);
  --h-shadow: 0 1px 2px rgba(13, 20, 19, 0.04), 0 24px 60px -28px rgba(13, 44, 37, 0.28);
  --h-phone-shadow: drop-shadow(0 34px 44px rgba(13, 30, 26, 0.28));
  --h-dot: rgba(13, 20, 19, 0.17);
  --h-line: rgba(13, 20, 19, 0.09);
  --h-solid: #0d1413;
  --h-solid-text: #f4f7f6;
  margin: 0;
  background: var(--h-bg);
  color: var(--h-text);
  overflow-x: clip;
}

@media (prefers-color-scheme: dark) {
  body.home {
    --h-bg: #05080a;
    --h-text: #f4f7f6;
    --h-muted: #a2aeaf;
    --h-faint: #74807f;
    --h-accent: #4fd1b5;
    --h-accent-text: #5fdcc1;
    --h-accent-soft: rgba(79, 209, 181, 0.14);
    --h-accent-ink: #06201a;
    --h-ok: #5fdcc1;
    --h-ok-soft: rgba(79, 209, 181, 0.16);
    --h-glow: rgba(79, 209, 181, 0.2);
    --h-glow-2: rgba(70, 120, 200, 0.14);
    --h-glass: rgba(30, 38, 40, 0.46);
    --h-glass-strong: rgba(28, 36, 38, 0.72);
    --h-edge: rgba(255, 255, 255, 0.11);
    --h-edge-hi: rgba(255, 255, 255, 0.16);
    --h-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --h-phone-shadow: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.6));
    --h-dot: rgba(255, 255, 255, 0.1);
    --h-line: rgba(255, 255, 255, 0.08);
    --h-solid: #f4f7f6;
    --h-solid-text: #06090a;
  }
}

body.home a {
  color: inherit;
}

/* Glows and floating cards reach past the edges: never a sideways scroll. */
.home main {
  overflow-x: clip;
}

.home h1,
.home h2,
.home p {
  margin: 0;
}

.home ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glass {
  background: var(--h-glass);
  border: 1px solid var(--h-edge);
  box-shadow: inset 0 1px 0 var(--h-edge-hi), var(--h-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

/* The dotted world map of the app, faded at its edges. */
.map {
  position: absolute;
  inset: 0;
  background: var(--h-dot);
  -webkit-mask: url('/world.svg') center / var(--map-size, 1500px) auto no-repeat, radial-gradient(closest-side, #000 40%, transparent);
  -webkit-mask-composite: source-in;
  mask: url('/world.svg') center / var(--map-size, 1500px) auto no-repeat, radial-gradient(closest-side, #000 40%, transparent);
  mask-composite: intersect;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow.g1 {
  background: radial-gradient(closest-side, var(--h-glow), transparent 72%);
}

.glow.g2 {
  background: radial-gradient(closest-side, var(--h-glow-2), transparent 72%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  color: var(--h-accent-text);
  margin-bottom: 18px !important;
}

.kicker .pro {
  font: 600 11px/1 Geist, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--h-accent-ink);
  background: var(--h-accent);
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 16px 0;
}

.nav-in {
  max-width: 1180px;
  height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 9px 0 14px;
  border-radius: 20px;
  background: var(--h-glass);
  border: 1px solid var(--h-edge);
  box-shadow: inset 0 1px 0 var(--h-edge-hi), var(--h-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

.home .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--h-text);
}

.home .brand svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav nav a {
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--h-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav nav a:hover {
  color: var(--h-text);
  background: var(--h-accent-soft);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--h-solid);
  color: var(--h-solid-text) !important;
  transition: transform 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  margin-top: -70px;
  padding-top: 70px;
}

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

.hero-bg .map {
  --map-size: max(1500px, 120vw);
  inset: 0 -10%;
  opacity: 0.9;
}

.hero-bg .g1 {
  width: 980px;
  height: 980px;
  right: -180px;
  top: -160px;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-bg .g2 {
  width: 820px;
  height: 820px;
  left: -260px;
  top: 220px;
  animation: drift 22s ease-in-out -6s infinite alternate-reverse;
}

.hero-in {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 104px;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 12px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--h-muted);
  background: var(--h-glass);
  border: 1px solid var(--h-edge);
  box-shadow: inset 0 1px 0 var(--h-edge-hi);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h-accent);
  box-shadow: 0 0 0 0 var(--h-glow);
  animation: ping 2.6s ease-out infinite;
}

.hero h1 {
  margin: 26px 0 24px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 600;
}

.hero h1 span {
  color: var(--h-accent-text);
}

.lead {
  max-width: 31em;
  margin-bottom: 34px !important;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
  color: var(--h-muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stores.center {
  justify-content: center;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 172px;
  height: 58px;
  padding: 0 20px;
  border-radius: 17px;
  background: var(--h-solid);
  color: var(--h-solid-text);
}

.store small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.68;
}

.store b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.store.alt {
  background: var(--h-glass);
  color: var(--h-text);
  border: 1px solid var(--h-edge);
  box-shadow: inset 0 1px 0 var(--h-edge-hi);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px !important;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--h-muted);
}

.assure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.assure svg {
  color: var(--h-accent);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(330px, 80vw);
}

.phone {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--h-phone-shadow);
}

.hero-art .phone {
  animation: float 8s ease-in-out infinite;
}

.float {
  position: absolute;
  z-index: 2;
  border-radius: 22px;
  background: var(--h-glass-strong);
}

.note {
  top: 4.5%;
  left: -34%;
  width: 312px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  animation: float 8s ease-in-out -2.5s infinite;
}

.note .app svg {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.note b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.note div span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--h-muted);
}

.note time {
  font-size: 12px;
  color: var(--h-faint);
  white-space: nowrap;
}

.pred {
  right: -24%;
  bottom: 17%;
  width: 206px;
  padding: 16px 18px 18px;
  animation: float 8s ease-in-out -5s infinite;
}

.pred .lbl {
  display: block;
  font-size: 13px;
  color: var(--h-muted);
}

.pred b {
  display: block;
  margin: 4px 0 10px;
  font: 600 40px/1 'Geist Mono', ui-monospace, monospace;
  letter-spacing: -0.04em;
}

.pred .ok,
.chip-ok {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--h-ok);
  background: var(--h-ok-soft);
}

/* ------------------------------------------------------------------ moments */

.moments {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 72px 0;
}

.moment:nth-child(even) .m-art {
  order: -1;
}

.moment h2,
.section-head h2,
.last h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.moment .body {
  max-width: 30em;
  margin: 22px 0 28px !important;
  font-size: 18px;
  line-height: 1.6;
  color: var(--h-muted);
}

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

.ticks li,
.plan li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 500;
}

.ticks svg,
.plan li svg {
  flex: none;
  color: var(--h-accent);
}

.m-art {
  position: relative;
}

.m-art::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(closest-side, var(--h-glow), transparent 74%);
  pointer-events: none;
}

.stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 0 36px;
  border-radius: 40px;
}

.stage .map {
  --map-size: 1300px;
  opacity: 0.8;
}

.stage .phone {
  position: relative;
  width: min(330px, 74%);
}

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

.more,
.pricing,
.faq {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}

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

.section-head > p:not(.kicker) {
  margin-top: 18px !important;
  font-size: 18px;
  line-height: 1.55;
  color: var(--h-muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile,
.promise {
  padding: 24px 22px 26px;
  border-radius: 24px;
}

.ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 13px;
  color: var(--h-accent-text);
  background: var(--h-accent-soft);
}

.tile b,
.promise b {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tile > span:last-child,
.promise > span:last-child {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--h-muted);
}

.privacy {
  position: relative;
  padding: 96px 24px;
}

.privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--h-accent-soft) 50%, transparent);
  pointer-events: none;
}

.privacy-in {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.more-link {
  margin-top: 30px !important;
  text-align: center;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--h-accent-text) !important;
  text-decoration: none;
}

.more-link a:hover svg {
  transform: translateX(3px);
}

.more-link svg {
  transition: transform 0.2s;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: 32px 30px 34px;
  border-radius: 30px;
}

.plan.pro {
  border-color: color-mix(in srgb, var(--h-accent) 45%, transparent);
  box-shadow: inset 0 1px 0 var(--h-edge-hi), 0 0 0 1px color-mix(in srgb, var(--h-accent) 25%, transparent), 0 30px 80px -30px var(--h-glow);
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--h-muted);
}

.plan.pro .plan-name {
  color: var(--h-accent-text);
}

.price {
  margin: 10px 0 26px !important;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--h-line);
}

.price b {
  display: block;
  font: 600 46px/1.05 'Geist Mono', ui-monospace, monospace;
  letter-spacing: -0.05em;
}

.price span {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--h-muted);
}

.plan ul {
  display: grid;
  gap: 13px;
}

.gift {
  margin-top: 26px !important;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--h-accent-text);
  background: var(--h-accent-soft);
}

.qa {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.qa details {
  border-radius: 20px;
  overflow: hidden;
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.qa summary i {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--h-accent-soft);
  transition: transform 0.25s;
}

.qa summary i::before,
.qa summary i::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--h-accent-text);
}

.qa summary i::after {
  transform: rotate(90deg);
  transition: transform 0.25s;
}

.qa details[open] summary i::after {
  transform: rotate(0deg);
}

.qa details p {
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--h-muted);
}

.last {
  position: relative;
  padding: 130px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.last-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.last-bg .map {
  --map-size: 1400px;
}

.last-bg .g1 {
  width: 900px;
  height: 700px;
  left: 50%;
  top: 50%;
  margin: -350px 0 0 -450px;
}

.last-in {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.last p:not(.mail) {
  margin: 22px auto 34px !important;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--h-muted);
}

.mail {
  margin-top: 22px !important;
  font-size: 14.5px;
}

.mail a {
  color: var(--h-muted) !important;
}

.hfoot {
  border-top: 1px solid var(--h-line);
  padding: 34px 24px 44px;
}

.hfoot-in {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hfoot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}

.hfoot nav a {
  color: var(--h-muted) !important;
  text-decoration: none;
}

.hfoot nav a:hover {
  color: var(--h-text) !important;
}

.hfoot small {
  margin-left: auto;
  font-size: 13px;
  color: var(--h-faint);
}

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

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

@keyframes drift {
  to {
    translate: -60px 40px;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 var(--h-glow);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 36px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes lift {
  from {
    translate: 0 70px;
    scale: 0.94;
  }
  to {
    translate: 0 0;
    scale: 1;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 0.32s;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .stage .phone {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .phone,
  .float,
  .glow,
  .eyebrow i {
    animation: none !important;
  }
}

/* ------------------------------------------------------------------ narrower */

@media (max-width: 1060px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .note {
    left: -22%;
  }
  .pred {
    right: -14%;
  }
}

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 56px 20px 88px;
  }
  .hero-art {
    width: min(340px, 74vw);
  }
  .moment {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }
  .moment:nth-child(even) .m-art {
    order: 0;
  }
  .promises,
  .plans {
    grid-template-columns: 1fr;
  }
  .plans {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 10px 12px 0;
  }
  .nav-in {
    height: 54px;
  }
  .moments,
  .more,
  .pricing,
  .faq,
  .privacy {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-in {
    padding: 40px 16px 72px;
  }
  .note {
    left: -12%;
    top: 4%;
    width: min(300px, 88vw);
    grid-template-columns: 36px 1fr;
    padding: 12px 14px;
  }
  .note .app svg {
    width: 36px;
    height: 36px;
  }
  .note time {
    display: none;
  }
  .pred {
    right: -6%;
    bottom: 12%;
    width: 172px;
    padding: 14px 15px 15px;
  }
  .pred b {
    font-size: 32px;
  }
  .store {
    flex: 1 1 150px;
    min-width: 0;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .stage {
    border-radius: 30px;
    padding: 32px 0 26px;
  }
  .more,
  .pricing,
  .faq,
  .privacy {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .last {
    padding: 96px 16px 88px;
  }
  .hfoot small {
    margin-left: 0;
  }
}
