/* PhoGone site. The palette is the app icon's: its deep green and its six petals (Theme.swift). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --bg: #010d09;
  --bg-2: #03231a;
  --deep: #034f39;
  --green: #0b8a5f;
  --yellow: #fed224;
  --orange: #fd6a35;
  --pink: #fd449e;
  --purple: #7a49fd;
  --blue: #158dfc;
  --mint: #40de5a;
  --keep: #22c55e;
  --delete: #ef4444;
  --text: #ecfff6;
  --muted: rgb(236 255 246 / 0.62);
  --faint: rgb(236 255 246 / 0.38);
  --line: rgb(236 255 246 / 0.1);
  --glass: rgb(16 48 36 / 0.42);
  --glass-hi: rgb(236 255 246 / 0.06);
  --rainbow: linear-gradient(100deg, var(--yellow), var(--orange) 22%, var(--pink) 42%, var(--purple) 62%, var(--blue) 80%, var(--mint));
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.defs {
  position: absolute;
}

/* Background: drifting petal-coloured light over a fading perspective grid */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
  background: var(--green);
  top: -16vmax;
  left: -10vmax;
  opacity: 0.55;
}

.aurora i:nth-child(2) {
  background: var(--purple);
  top: 4vmax;
  right: -18vmax;
  animation-delay: -8s;
}

.aurora i:nth-child(3) {
  background: var(--pink);
  bottom: -22vmax;
  left: 18vmax;
  opacity: 0.18;
  animation-delay: -14s;
}

.aurora i:nth-child(4) {
  background: var(--blue);
  bottom: -10vmax;
  right: 6vmax;
  opacity: 0.2;
  animation-delay: -20s;
}

@keyframes drift {
  to {
    transform: translate(8vmax, 6vmax) scale(1.15);
  }
}

.grid-floor {
  position: absolute;
  inset: 0 0 auto;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}

/* Navigation and footer */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 12px auto 0;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(1 13 9 / 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 900 18px var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name small {
  color: var(--muted);
  font: 600 11px/1.2 var(--body);
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgb(11 138 95 / 0.45);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}

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

.nav-cta svg {
  width: 14px;
  height: 17px;
  margin-top: -2px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer .brand {
  font-size: 15px;
  color: var(--text);
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer a {
  text-decoration: none;
}

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

/* Reveal on scroll (app.js adds .js; without it everything is visible) */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  min-height: min(92vh, 900px);
  margin: 0 auto;
  padding: 56px 0 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 900;
  text-wrap: pretty;
  --d: 0.08s;
}

.shine {
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: -200% 0;
  }
}

.lead {
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  --d: 0.16s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 36px;
  --d: 0.24s;
}

.cta-note {
  color: var(--faint);
  font-size: 14px;
  line-height: 1.4;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 20px;
  border-radius: 18px;
  background: #000;
  color: #fff;
  font: 800 22px/1.05 var(--body);
  letter-spacing: -0.01em;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.25s;
}

.store::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 19.5px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: shine 6s linear infinite;
}

.store::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: #000;
}

.store:hover {
  transform: translateY(-2px) scale(1.02);
}

.store svg {
  width: 24px;
  height: 30px;
}

.store small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
  --d: 0.2s;
}

.pinwheel {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  opacity: 0.22;
  filter: blur(2px) saturate(1.3);
}

.spin {
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Phone frame. Container units resolve against an ancestor container, never the element itself, so .phone is only
   the container and the screen draws the bezel as box-shadow rings outside its own rounded corners. */

.phone {
  container-type: inline-size;
  position: relative;
  width: 300px;
  aspect-ratio: 1320 / 2868;
}

.screen {
  position: absolute;
  inset: 3.4cqw;
  overflow: hidden;
  border-radius: 11.6cqw;
  background:
    radial-gradient(circle at 30% 20%, rgb(253 68 158 / 0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgb(21 141 252 / 0.35), transparent 50%),
    linear-gradient(160deg, var(--deep), #021a13);
  box-shadow:
    0 0 0 3.4cqw #0a100d,
    0 0 0 calc(3.4cqw + 1.5px) #3a4a43,
    0 0 0 calc(3.4cqw + 2.5px) #050807,
    0 40px 80px -10px rgb(0 0 0 / 0.75),
    0 0 120px -20px rgb(11 138 95 / 0.55);
}

.screen::after {
  content: "";
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  z-index: 2;
  width: 29cqw;
  height: 8.4cqw;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font: 600 5cqw var(--display);
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone {
  width: clamp(240px, 26vw, 330px);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(8 32 24 / 0.6);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.8), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.float b {
  color: var(--text);
  font: 900 16px var(--display);
}

.chip-a {
  top: 40%;
  left: -16%;
}

.chip-a b {
  color: var(--mint);
}

.chip-b {
  top: 48%;
  right: -6%;
  animation-delay: -2s;
}

.float .arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--delete);
  color: #fff;
  font-weight: 700;
}

.chip-c {
  bottom: 10%;
  left: 2%;
  animation-delay: -4s;
}

.chip-c .arrow {
  background: var(--green);
}

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

.lock {
  position: relative;
  width: 14px;
  height: 11px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--mint);
}

.lock::before {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 2.5px;
  width: 9px;
  height: 8px;
  border: 2px solid var(--mint);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
}

/* Ticker */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgb(1 13 9 / 0.5);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: 800 clamp(15px, 1.6vw, 19px) var(--display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ticker span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50% 0;
  background: var(--c, var(--yellow));
  transform: rotate(45deg);
}

.ticker span:nth-child(6n + 2) {
  --c: var(--orange);
}

.ticker span:nth-child(6n + 3) {
  --c: var(--pink);
}

.ticker span:nth-child(6n + 4) {
  --c: var(--purple);
}

.ticker span:nth-child(6n + 5) {
  --c: var(--blue);
}

.ticker span:nth-child(6n) {
  --c: var(--mint);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) 0 0;
}

.kicker {
  margin-bottom: 14px;
  color: var(--mint);
  font: 800 13px var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section > h2 {
  max-width: 14em;
  margin-bottom: 48px;
  font-size: clamp(32px, 4.6vw, 60px);
  --d: 0.08s;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "swipe swipe quick quick"
    "swipe swipe filters undo"
    "private private grid grid";
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgb(64 222 90 / 0.1), transparent 60%),
    linear-gradient(160deg, rgb(16 48 36 / 0.7), rgb(4 20 15 / 0.55));
  box-shadow: inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tile h3 {
  font-size: clamp(21px, 2vw, 26px);
}

.tile p {
  color: var(--muted);
  max-width: 24em;
}

.tile-swipe {
  grid-area: swipe;
  justify-content: flex-end;
  min-height: 560px;
}

.tile-quick {
  grid-area: quick;
}

.tile-filters {
  grid-area: filters;
}

.tile-undo {
  grid-area: undo;
}

.tile-private {
  grid-area: private;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 32px;
  align-items: center;
}

.tile-private .radar {
  grid-row: 1 / 3;
}

.tile-private h3 {
  align-self: end;
}

.tile-private p {
  align-self: start;
}

.tile-grid {
  grid-area: grid;
  padding-right: 46%;
}

/* Swipe demo: a card flies left as Delete, the next flies right as Keep */

.swipe-demo {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  min-height: 320px;
}

.card {
  position: absolute;
  width: min(62%, 260px);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.75), inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.card.back {
  background: linear-gradient(160deg, #1d3b31, #0c1d17);
  transform: translateY(22px) scale(0.9);
  opacity: 0.7;
}

.card.a {
  background:
    linear-gradient(rgb(255 255 255 / 0.9) 0 0) 14% 18% / 50% 5% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.5) 0 0) 14% 27% / 70% 3% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.5) 0 0) 14% 33% / 58% 3% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.18) 0 0) 50% 64% / 72% 34% no-repeat,
    linear-gradient(170deg, var(--purple), var(--blue));
  animation: fly-left 7s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

.card.b {
  background:
    radial-gradient(circle at 70% 30%, #ffe9a8 0 9%, transparent 10%),
    linear-gradient(transparent 60%, #0b6f8f 60% 72%, #f1d6a0 72%),
    linear-gradient(180deg, var(--orange), var(--pink) 45%, #ffb36b 60%);
  animation: fly-right 7s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

.tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stamp {
  position: absolute;
  top: 22px;
  padding: 4px 12px;
  border: 3px solid currentColor;
  border-radius: 10px;
  font: 900 22px var(--display);
  text-transform: uppercase;
  opacity: 0;
}

.stamp.del {
  right: 18px;
  color: var(--delete);
  background: rgb(255 255 255 / 0.85);
  transform: rotate(14deg);
  animation: stamp-a 7s infinite;
}

.stamp.keep {
  left: 18px;
  color: var(--keep);
  background: rgb(255 255 255 / 0.85);
  transform: rotate(-14deg);
  animation: stamp-b 7s infinite;
}

@keyframes fly-left {
  0%,
  22% {
    transform: none;
    opacity: 1;
  }
  32% {
    transform: translateX(-12%) rotate(-5deg);
    opacity: 1;
  }
  46% {
    transform: translateX(-150%) rotate(-24deg);
    opacity: 0;
  }
  47%,
  86% {
    transform: translateY(22px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes fly-right {
  0%,
  58% {
    transform: none;
    opacity: 1;
  }
  68% {
    transform: translateX(12%) rotate(5deg);
    opacity: 1;
  }
  82% {
    transform: translateX(150%) rotate(24deg);
    opacity: 0;
  }
  83% {
    transform: none;
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes stamp-a {
  0%,
  24% {
    opacity: 0;
  }
  32%,
  44% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}

@keyframes stamp-b {
  0%,
  60% {
    opacity: 0;
  }
  68%,
  80% {
    opacity: 1;
  }
  83%,
  100% {
    opacity: 0;
  }
}

/* Quick clean bars */

.bars {
  display: grid;
  gap: 14px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 15px;
}

.bars b {
  font: 800 15px var(--display);
}

.bars li::after {
  content: "";
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c), #fff 30%)) 0 0 / var(--w) 100% no-repeat, rgb(255 255 255 / 0.07);
  box-shadow: 0 0 24px -6px var(--c);
  transition: background-size 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.js .tile-quick:not(.in) .bars li::after {
  background-size: 0 100%, auto;
}

/* Filter chips light up in turn */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.chips span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  animation: chip 6s infinite;
}

.chips span:nth-child(2) {
  animation-delay: 1s;
}

.chips span:nth-child(3) {
  animation-delay: 2s;
}

.chips span:nth-child(4) {
  animation-delay: 3s;
}

.chips span:nth-child(5) {
  animation-delay: 4s;
}

.chips span:nth-child(6) {
  animation-delay: 5s;
}

@keyframes chip {
  0%,
  45%,
  100% {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
  }
  8%,
  38% {
    background: var(--green);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px -4px var(--green);
  }
}

/* 30 days ring */

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  margin-bottom: auto;
}

.ring svg {
  width: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke: rgb(255 255 255 / 0.08);
  stroke-width: 8;
}

.ring .arc {
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px var(--mint));
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.js .tile-undo:not(.in) .arc {
  stroke-dashoffset: 100;
}

.ring b {
  position: absolute;
  font: 900 36px var(--display);
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Privacy radar */

.radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  flex: none;
}

.radar i {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(64 222 90 / 0.5);
  border-radius: 50%;
  animation: ping 3.6s ease-out infinite;
}

.radar i:nth-child(2) {
  animation-delay: 1.2s;
}

.radar i:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ping {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.lock.big {
  transform: scale(2.6);
  filter: drop-shadow(0 0 6px var(--mint));
}

/* Grid tile: a phone peeking from the right edge */

.phone.peek {
  position: absolute;
  top: 28px;
  right: 6%;
  width: 36%;
  max-width: 230px;
  transform: rotate(6deg);
}

/* Screenshot rail */

.gallery-section > h2 {
  margin-bottom: 24px;
}

.rail {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  margin: 0 calc(50% - 50vw);
  padding: 32px max(var(--gutter), calc(50vw - var(--max) / 2)) 40px;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
}

.rail figure:nth-child(2) {
  --d: 0.08s;
}

.rail figure:nth-child(3) {
  --d: 0.16s;
}

.rail figure:nth-child(even) {
  margin-top: 48px;
}

.rail .phone {
  width: clamp(210px, 22vw, 260px);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rail figure:hover .phone {
  transform: translateY(-10px) rotate(-1.5deg);
}

.rail figcaption {
  margin-top: 18px;
  text-align: center;
  font: 800 17px var(--display);
}

@media (hover: hover) and (pointer: fine) {
  .rail {
    cursor: grab;
  }
}

.rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rail-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rail-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  font: 800 20px var(--body);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s,
    opacity 0.2s;
}

.rail-nav button:hover:not(:disabled) {
  background: var(--green);
}

.rail-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail-nav[hidden] {
  display: none;
}

@media (hover: none) {
  .rail-nav {
    display: none;
  }
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: clamp(60px, 8vw, 100px) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
}

.stats div {
  display: grid;
  justify-items: center;
  padding: 36px 12px;
  border-left: 1px solid var(--line);
}

.stats div:first-child {
  border-left: 0;
}

.stats b {
  font: 900 clamp(26px, 3.2vw, 40px) / 1.1 var(--display);
  text-align: center;
  background: linear-gradient(180deg, var(--text), rgb(236 255 246 / 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plan {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(16 48 36 / 0.7), rgb(4 20 15 / 0.55));
  overflow: hidden;
}

.plan.glow {
  border-color: transparent;
  background:
    linear-gradient(160deg, #0d3a2b, #04140f) padding-box,
    var(--rainbow) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 90px -40px var(--pink);
  --d: 0.1s;
}

.plan .big {
  display: block;
  margin-bottom: 14px;
  font: 900 clamp(64px, 8vw, 104px) / 0.9 var(--display);
  letter-spacing: -0.05em;
}

.plan.glow .big {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.plan p {
  color: var(--muted);
}

/* Finale */

.finale {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: center;
}

.finale-icon {
  position: relative;
  display: grid;
  place-items: center;
}

.finale-icon .pinwheel {
  width: 360px;
  opacity: 0.3;
  filter: blur(18px) saturate(1.4);
}

.finale-icon img {
  position: relative;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -10px rgb(11 138 95 / 0.8);
}

.finale h2 {
  font-size: clamp(52px, 10vw, 128px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Legal pages */

.legal {
  width: min(760px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) 0 100px;
}

.legal h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--faint);
  margin-bottom: 40px;
}

.legal .summary {
  margin-bottom: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  font-size: 18px;
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 21px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--mint);
}

.legal strong {
  color: var(--text);
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-stage {
    margin-top: 20px;
  }

  .hero-phone {
    transform: none;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "swipe swipe"
      "quick quick"
      "filters undo"
      "private private"
      "grid grid";
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav-cta {
    padding: 9px 14px;
  }

  .cta-note {
    border-left: 0;
    padding-left: 0;
  }

  .float {
    padding: 9px 12px;
    font-size: 12px;
  }

  .float b {
    font-size: 14px;
  }

  .chip-a {
    left: 0;
  }

  .chip-b {
    right: 0;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "swipe" "quick" "filters" "undo" "private" "grid";
  }

  .tile {
    padding: 24px;
    min-height: 0;
  }

  .tile-private {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tile-private .radar {
    grid-row: auto;
  }

  .tile-swipe {
    min-height: 480px;
  }

  .tile-grid {
    padding-right: 24px;
    padding-bottom: 320px;
  }

  .phone.peek {
    top: auto;
    bottom: -150px;
    right: 50%;
    width: 200px;
    transform: translateX(50%) rotate(4deg);
  }

  .rail figure:nth-child(even) {
    margin-top: 0;
  }

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

  .stats div {
    padding: 26px 12px;
    border-left: 0;
  }

  .stats div + div {
    border-top: 1px solid var(--line);
  }

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

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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