/* PulseRider site. One dark synthwave theme, matching the app. */

:root {
  color-scheme: dark;
  --bg: #0d0618;
  --bg-raised: #1a0f2e;
  --bg-card: rgba(38, 22, 66, 0.72);
  --line: rgba(190, 140, 255, 0.22);
  --text: #f4ecff;
  --text-dim: #b9a8d6;
  --pink: #ff3dd6;
  --cyan: #2ee6ff;
  --green: #3dfc8a;
  --sun-top: #ffe23d;
  --sun-bottom: #ff5aa8;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff2ff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 6, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.site-nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 0; isolation: isolate; }
.hero::before { /* sky */
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(180deg, #0d0618 0%, #1f0a3a 55%, #4a1066 100%);
}
.hero::after { /* horizon glow along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  box-shadow: 0 0 24px 4px rgba(255, 61, 214, 0.6);
}
/* The sun sits behind the phone, never behind the copy. */
.hero-sun {
  position: absolute; z-index: -2; left: 50%; top: 4%;
  width: min(520px, 120%); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-top) 0%, #ff9a3d 50%, var(--sun-bottom) 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 56%, transparent 56% 59%, #000 59% 65%, transparent 65% 69%, #000 69% 75%, transparent 75% 80%, #000 80% 100%);
          mask: linear-gradient(180deg, #000 0 56%, transparent 56% 59%, #000 59% 65%, transparent 65% 69%, #000 69% 75%, transparent 75% 80%, #000 80% 100%);
  filter: drop-shadow(0 0 60px rgba(255, 90, 168, 0.55));
  opacity: 0.85;
}

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: clamp(24px, 5vw, 64px); }
.hero-copy { padding-bottom: clamp(48px, 8vw, 120px); }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 40px rgba(255, 61, 214, 0.5); margin-bottom: 24px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; }
h1 .glow { color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink), 0 0 60px rgba(255, 61, 214, 0.6); }
h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 850; }
h3 { font-size: 20px; font-weight: 800; }

.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-dim); max-width: 34em; margin: 0 0 28px; }
.lede strong { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { color: #fff; background: linear-gradient(90deg, #ff3dd6, #9b5cff); box-shadow: 0 0 24px rgba(255, 61, 214, 0.45); }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }
.btn[aria-disabled="true"] { cursor: default; }
.note { font-size: 14px; color: var(--text-dim); margin-top: 14px; }

.hero-device { position: relative; isolation: isolate; display: flex; justify-content: center; align-self: end; padding-top: 40px; }
.phone {
  width: min(330px, 78vw);
  border-radius: 46px 46px 0 0;
  padding: 10px 10px 0;
  background: #05020b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  box-shadow: 0 0 0 1px rgba(255, 61, 214, 0.25), 0 30px 80px rgba(255, 61, 214, 0.35);
  /* show the top 80% of the screen, sitting on the section edge */
  max-height: 560px; overflow: hidden;
}
.phone img { border-radius: 37px 37px 0 0; }

/* Sections */

section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 18px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; font-weight: 900; color: var(--bg); background: var(--cyan);
  box-shadow: 0 0 18px rgba(46, 230, 255, 0.6);
}
.step p { margin: 0; color: var(--text-dim); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.feature p { margin: 0; color: var(--text-dim); font-size: 16px; }
.feature .tag { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.tag-pink { color: var(--pink); background: rgba(255, 61, 214, 0.12); }
.tag-cyan { color: var(--cyan); background: rgba(46, 230, 255, 0.12); }
.tag-green { color: var(--green); background: rgba(61, 252, 138, 0.12); }
.tag-sun { color: var(--sun-top); background: rgba(255, 226, 61, 0.12); }

/* Screens: a horizontal, snap-scrolling strip that never widens the page */

.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 70vw);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 20px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-color: var(--line) transparent;
}
.screens figure { margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 28px; border: 1px solid var(--line); background: var(--bg-raised); }
.screens figcaption { margin-top: 12px; font-size: 15px; color: var(--text-dim); }
.screens figcaption b { display: block; color: var(--text); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.watch-pair { display: flex; gap: 20px; justify-content: center; }
.watch-pair img { width: min(200px, 40vw); border-radius: 44px; border: 6px solid #1c1a22; box-shadow: 0 20px 60px rgba(46, 230, 255, 0.2); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { padding-left: 28px; position: relative; color: var(--text-dim); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.list li b { color: var(--text); }

.gear { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.band { background: linear-gradient(180deg, transparent, rgba(106, 21, 128, 0.25) 50%, transparent); }

.privacy-callout { text-align: center; max-width: 40em; margin: 0 auto; }
.privacy-callout p { color: var(--text-dim); font-size: 18px; }

/* Prose pages: privacy, support */

.page { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 10vw, 120px); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.updated { font-size: 15px; color: var(--text-dim); }

.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:first-child { margin-top: 0; }
.faq .answer p:last-child { margin-bottom: 0; }

.contact-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--pink); box-shadow: 0 0 30px rgba(255, 61, 214, 0.2); margin: 28px 0 8px; }
.contact-card p { margin: 0 0 16px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--text-dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Narrow screens */

@media (max-width: 860px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .steps, .features, .gear { grid-template-columns: 1fr; }
  .phone { max-height: 420px; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .site-nav a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
