/* pingd.uk. Same look as the app: near-black, violet-to-blue light, Bricolage Grotesque
   for display type, the "ping" ring motif. Everything is served from pingd.uk: no
   third-party fonts, scripts or trackers. */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/BricolageGrotesque-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/BricolageGrotesque-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07060d;
  --card: #110f1b;
  --card-2: #1a1729;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f7f5ff;
  --muted: #aca8c6;
  --faint: #7a769c;
  --accent: #9257ff;          /* electric violet */
  --accent-hi: #bc95ff;       /* violet text that stays readable on black */
  --blue: #3b7cff;
  --accent-soft: rgba(146, 87, 255, 0.18);
  --grad: linear-gradient(135deg, #a855ff 0%, #6e4cff 50%, #3b7cff 100%);
  --grad-text: linear-gradient(92deg, #c98dff 0%, #8f6bff 45%, #58a2ff 100%);
  --glow: 0 8px 24px rgba(124, 77, 255, 0.32);
  --display: 'Bricolage', ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ios: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), calc(100% - 64px)); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 6, 13, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em;
  text-decoration: none;
}
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.chip-app {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
  color: #e4d6ff; background: var(--accent-soft); border: 1px solid rgba(146, 87, 255, 0.4);
  text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.chip-app:hover { color: #fff; border-color: rgba(146, 87, 255, 0.75); }
@media (max-width: 780px) { .nav-links { display: none; } .nav .chip-app { margin-left: auto; } }

/* ---- shared bits */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.14) inset; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(124, 77, 255, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%), var(--card);
  border: 1px solid var(--line); border-radius: 26px;
}
h2.title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(38px, 5.4vw, 60px); margin: 14px 0 0;
}
.section-lead { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 18px 0 0; }

/* ---- hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(32% 48% at 79% 48%, rgba(146, 87, 255, 0.20) 0%, rgba(146, 87, 255, 0) 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 64px; } }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98;
  font-size: clamp(48px, 7vw, 92px); margin: 22px 0 0;
}
.hero h1 span { display: block; white-space: nowrap; }
@media (max-width: 360px) { .hero h1 span { white-space: normal; } }
.hero .lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 30ch; margin: 26px 0 0; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.fine { margin: 20px 0 0; font-size: 14px; color: var(--faint); }
.fine span + span::before { content: '·'; margin: 0 8px; }

/* rings behind the phone */
.ping-stage { position: relative; display: grid; place-items: center; min-height: 720px; }
.rings { position: absolute; width: 760px; height: 760px; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; }
.rings i {
  position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--accent);
}
.rings i:nth-child(1) { width: 40%; height: 40%; opacity: 0.26; }
.rings i:nth-child(2) { width: 58%; height: 58%; opacity: 0.17; }
.rings i:nth-child(3) { width: 76%; height: 76%; opacity: 0.1; }
.rings i:nth-child(4) { width: 96%; height: 96%; opacity: 0.05; }
.rings b {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  border-radius: 50%; border: 1px solid var(--accent); opacity: 0;
  animation: pulse 4.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.rings b:nth-of-type(2) { animation-delay: 1.4s; }
.rings b:nth-of-type(3) { animation-delay: 2.8s; }
@keyframes pulse { from { transform: scale(0.25); opacity: 0.3; } to { transform: scale(1); opacity: 0; } }
@media (max-width: 520px) { .rings { width: 560px; height: 560px; } .ping-stage { min-height: 700px; } }

/* the phone: a real-looking iPhone lock screen with Pingd alerts arriving */
.phone {
  position: relative; z-index: 1; width: 320px; height: 660px; padding: 11px; border-radius: 60px;
  background: linear-gradient(145deg, #57556a 0%, #232230 22%, #121119 55%, #2e2d3b 82%, #4b4a5c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 2px 0 rgba(255, 255, 255, 0.10) inset,
    0 50px 100px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.phone.buzz { animation: float 7s ease-in-out infinite, buzz 0.42s linear; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes buzz {
  0%, 100% { transform: none; } 15% { transform: translateX(-2px) rotate(-0.4deg); } 30% { transform: translateX(2px) rotate(0.4deg); }
  45% { transform: translateX(-2px) rotate(-0.3deg); } 60% { transform: translateX(2px) rotate(0.3deg); } 75% { transform: translateX(-1px); }
}
.phone .side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #3a3948, #5b596e); }
.phone .side.action { left: -3px; top: 118px; height: 30px; }
.phone .side.vol-up { left: -3px; top: 168px; height: 56px; }
.phone .side.vol-down { left: -3px; top: 236px; height: 56px; }
.phone .side.power { right: -3px; top: 196px; height: 92px; }
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 50px; font-family: var(--ios); color: #fff;
  background:
    radial-gradient(70% 42% at 50% 64%, rgba(146, 87, 255, 0.42) 0%, rgba(146, 87, 255, 0) 70%),
    radial-gradient(55% 34% at 15% 20%, rgba(59, 124, 255, 0.22) 0%, rgba(59, 124, 255, 0) 72%),
    linear-gradient(180deg, #120a2c 0%, #09071a 55%, #0d0820 100%);
}
.wallpaper { position: absolute; left: 50%; top: 64%; width: 0; height: 0; }
.wallpaper i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09); translate: -50% -50%; }
.wallpaper i:nth-child(1) { width: 90px; height: 90px; border-color: rgba(255, 255, 255, 0.2); }
.wallpaper i:nth-child(2) { width: 170px; height: 170px; border-color: rgba(255, 255, 255, 0.13); }
.wallpaper i:nth-child(3) { width: 260px; height: 260px; }
.wallpaper i:nth-child(4) { width: 360px; height: 360px; border-color: rgba(255, 255, 255, 0.05); }
.wallpaper i:nth-child(5) { width: 470px; height: 470px; border-color: rgba(255, 255, 255, 0.03); }
.status { position: absolute; top: 20px; right: 24px; display: flex; gap: 5px; align-items: center; }
.status svg { height: 12px; width: auto; }
.island { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 94px; height: 30px; border-radius: 20px; background: #000; }
.padlock { position: absolute; top: 56px; left: 50%; translate: -50% 0; width: 14px; height: 18px; opacity: 0.9; }
.lock-date { position: absolute; top: 82px; width: 100%; text-align: center; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.lock-time {
  position: absolute; top: 102px; width: 100%; text-align: center;
  font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.notes {
  position: absolute; left: 10px; right: 10px; top: 236px; bottom: 104px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.note {
  display: flex; gap: 10px; align-items: flex-start; flex: none;
  padding: 12px 13px 12px 12px; border-radius: 22px;
  background: rgba(30, 26, 48, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12) inset, 0 6px 18px rgba(0, 0, 0, 0.18);
}
.note.enter { animation: drop 0.6s cubic-bezier(0.18, 0.9, 0.25, 1.15) both; }
.note.leave { animation: fade 0.4s ease-in both; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 0; transform: scale(0.96); } }
.note-icon { flex: none; width: 38px; height: 38px; }
.note-text { min-width: 0; flex: 1; }
.note-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.note-title { font-size: 14.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-when { flex: none; font-size: 12.5px; line-height: 18px; color: rgba(255, 255, 255, 0.55); }
.note-body { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, 0.86); margin-top: 1px; }
.lock-actions { position: absolute; left: 34px; right: 34px; bottom: 34px; display: flex; justify-content: space-between; }
.lock-actions span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 16, 36, 0.45); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.lock-actions svg { width: 20px; height: 20px; }
.home-bar { position: absolute; bottom: 9px; left: 50%; translate: -50% 0; width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }

/* clubs strip under the hero */
.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; padding: 22px 0; }
.strip-label { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.strip-club { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: #d6d2ee; }

/* ---- how it works */
section.compact { padding: 80px 0; }
@media (max-width: 720px) { section.compact { padding: 56px 0; } }
section.compact h2.title { font-size: clamp(32px, 4.6vw, 52px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 12px; } }
.step { padding: 26px; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; margin: 18px 0 0; }
.step p { color: var(--muted); margin: 10px 0 0; font-size: 16.5px; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hi);
}
.icon-tile svg { width: 23px; height: 23px; }
.step::after {
  content: ''; position: absolute; width: 220px; height: 220px; right: -100px; top: -100px; border-radius: 50%;
  border: 1px solid rgba(146, 87, 255, 0.18); box-shadow: 0 0 0 36px rgba(146, 87, 255, 0.03), 0 0 0 72px rgba(146, 87, 255, 0.02);
  pointer-events: none;
}

/* ---- contact band */
.band { padding: 0 0 80px; }
.contact-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(26px, 4vw, 40px);
  background: radial-gradient(50% 110% at 100% 50%, rgba(146, 87, 255, 0.16) 0%, rgba(17, 15, 27, 0) 70%), var(--card);
}
.contact-band h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.contact-band p { color: var(--muted); font-size: 17px; margin: 8px 0 0; }

/* ---- footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 36px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot .brand { font-size: 20px; }
.foot .brand svg { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--text); }
.legal-line { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---- legal and support pages */
.doc-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.doc-hero .wrap { max-width: 760px; } /* line up with the text column below */
.doc-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(44px, 6.5vw, 72px); margin: 16px 0 0; }
.doc-hero .lead { color: var(--muted); font-size: 19px; margin: 18px 0 0; max-width: 52ch; }
.doc { max-width: 760px; padding-bottom: 96px; }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; margin: 52px 0 0; line-height: 1.15; }
.doc h3 { font-size: 18px; margin: 28px 0 0; }
.doc p, .doc li { color: #cfcde0; }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent-hi); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.doc td { color: #cfcde0; }
.table-scroll { overflow-x: auto; }
.summary { margin-top: 28px; padding: 26px 28px; }
.summary ul { margin-top: 10px; }
.updated { color: var(--faint); font-size: 14px; margin-top: 14px; }
.contact-card { margin-top: 32px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.contact-card h2 { margin: 0; font-size: 26px; }
.contact-card p { margin: 6px 0 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .note { opacity: 1; }
  .phone { translate: none; }
  html { scroll-behavior: auto; }
}
