@font-face { font-family: Hanken; src: url(/fonts/hanken_medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Hanken; src: url(/fonts/hanken_bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Hanken; src: url(/fonts/hanken_black.ttf) format("truetype"); font-weight: 900; font-display: swap; }

/*
  A deep berry-rose field: dark enough that white text reads easily, pink enough to feel like cliqr.
  Pink is a click going out, blue is a click arriving, the night colour is the app itself.
*/
:root {
  --field: #2a1424;
  --ink: #fff5f9;
  --ink-soft: #e2bccf;
  --pink: #f7a8c4;
  --pink-deep: #f7a8c4;
  --blue: #6acff6;
  --blue-deep: #6acff6;
  --night: #12131c;
  --bone: #fffbfc;

  --r-panel: 16px;
  --r-device: 30px;

  --page: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--field); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font: 500 18px/1.55 Hanken, system-ui, sans-serif; background: var(--field); overflow-x: hidden; }
::selection { background: var(--pink); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------------------------------------------------------------- top */

.top { padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.brand img { width: 22px; height: 29px; }

.get {
  display: inline-flex; align-items: center; height: 60px; padding: 0 28px;
  border-radius: var(--r-panel); background: var(--pink); color: #2a1424;
  font-weight: 700; font-size: 18px; text-decoration: none;
  transition: transform 90ms;
}
.get:active { transform: translateY(2px); }

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

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding-top: clamp(16px, 5vw, 56px); padding-bottom: clamp(72px, 10vw, 128px);
}
.hero h1 { font-weight: 900; font-size: clamp(60px, 9.5vw, 132px); line-height: .9; letter-spacing: -.045em; }
.hero p { margin-top: 28px; font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); max-width: 28ch; }
.hero .get { margin-top: 36px; }

.scene { display: grid; grid-template-columns: auto 1fr auto; align-items: end; }
.scene figure { display: grid; justify-items: center; gap: 14px; }
.scene .count { grid-column: 1; justify-self: center; margin-top: 10px; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-height: 1.5em; }

/* the sending phone is the button: press anywhere on it and the in-app clicker sinks */
.sender { border: 0; cursor: pointer; width: clamp(150px, 17vw, 210px); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sender:focus-visible { outline-offset: 8px; }
/* sits over the clicker's cream button in the screenshot (50% across, 50% down) */
.sender .press {
  position: absolute; left: 50%; top: 50.2%; width: 21%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: rgba(19, 16, 21, 0); scale: 1;
  transition: background 280ms, scale 280ms cubic-bezier(.34, 1.56, .64, 1);
}
.sender.down .press { background: rgba(19, 16, 21, .18); scale: .92; transition-duration: 70ms; transition-timing-function: cubic-bezier(.2, .7, .3, 1); }

/* the gap between the phones is where the signal crosses: pink leaving, blue arriving */
.waves { height: 120px; position: relative; min-width: clamp(90px, 14vw, 200px); margin: 0 clamp(14px, 3vw, 40px); align-self: center; }
.waves i {
  position: absolute; top: 50%; left: 0; width: 26px; height: 64px; margin-top: -32px;
  border-right: 4px solid var(--pink-deep); border-radius: 0 50% 50% 0 / 0 50% 50% 0; opacity: 0;
}
.waves.go i { animation: cross 600ms linear forwards; }
.waves.go i:nth-child(2) { animation-delay: 70ms; }
.waves.go i:nth-child(3) { animation-delay: 140ms; }
@keyframes cross {
  0%   { left: 0; border-color: var(--pink-deep); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 26px); border-color: var(--blue-deep); opacity: 0; }
}

/* a phone frame around real screenshots from the app */
.device {
  position: relative; display: block; padding: 7px; background: var(--night);
  border-radius: var(--r-device); aspect-ratio: 600 / 1217;
  box-shadow: 0 0 0 1px rgba(255, 245, 249, .08), 0 28px 56px -24px rgba(0, 0, 0, .6);
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-device) - 7px); }
.scene .device { width: clamp(150px, 17vw, 210px); }
.scene figure:first-child { align-self: end; }
.scene .device .woof { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); opacity: 0; transition: opacity 110ms; }
.scene .device.lit .woof { opacity: 1; }
.scene .device.fade .woof { transition-duration: 450ms; }
/* a short buzz when the click lands, like a phone on vibrate */
.scene .device.buzz { animation: buzz 380ms linear; }
@keyframes buzz {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  10% { translate: -3px 0; rotate: -1.2deg; }
  20% { translate: 3px 0; rotate: 1.2deg; }
  30% { translate: -3px 0; rotate: -1deg; }
  40% { translate: 3px 0; rotate: 1deg; }
  50% { translate: -2px 0; rotate: -.6deg; }
  60% { translate: 2px 0; rotate: .6deg; }
  70% { translate: -1px 0; rotate: -.3deg; }
  80% { translate: 1px 0; rotate: .3deg; }
}

/* ---------------------------------------------------------------- what it is */

.about { padding-bottom: clamp(56px, 8vw, 96px); }
.about p { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; max-width: 34ch; }
.about p + p { margin-top: 20px; font-weight: 500; color: var(--ink-soft); }

.screens {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(80px, 12vw, 144px);
}
.screens .device { width: 100%; max-width: 300px; justify-self: center; }

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

footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding-top: 28px; padding-bottom: 40px; font-size: 15px;
}
/* the trans flag, as a thin ribbon along the top of the footer */
footer::before {
  content: ""; display: block; height: 15px;
  background: linear-gradient(to bottom, #5bcefa 0 3px, #f5a9b8 3px 6px, #fff 6px 9px, #f5a9b8 9px 12px, #5bcefa 12px 15px);
}
footer .brand { font-size: 20px; margin-right: auto; }
footer a:not(.brand) { text-underline-offset: 3px; }
footer .brand img { width: 17px; height: 22px; }
footer .fine { color: var(--ink-soft); }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .screens {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens { scroll-padding-left: var(--gutter); }
  .screens .device { flex: 0 0 58%; scroll-snap-align: start; }
  .sender { width: 132px; }
  .scene .device { width: 132px; }
  .waves { min-width: 56px; margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .waves.go i, .scene .device.buzz { animation: none; }
  .get, .sender .press, .scene .device .woof { transition: none; }
}

/* ---------------------------------------------------------------- policy pages */

.doc { max-width: 720px; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(64px, 10vw, 112px); }
.doc h1 { font-weight: 900; font-size: clamp(40px, 7vw, 64px); line-height: .95; letter-spacing: -.04em; }
.doc .updated { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.doc h2 { font-weight: 900; font-size: 24px; letter-spacing: -.01em; margin-top: 44px; }
.doc p, .doc ul { margin-top: 12px; max-width: 64ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc a { text-underline-offset: 3px; }
