/* RockChat:AI. One stylesheet for every page. */

:root {
  --black: #000;
  --panel: #0c0c0e;
  --tile: #141416;
  --ink: #f5f5f7;
  --grey: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --light: #f5f5f7;
  --dark-ink: #1d1d1f;
  --gold: #e8b04a;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 30px; font-size: 13px; color: rgba(245, 245, 247, 0.8); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */

.pill, .btn {
  display: inline-block;
  border-radius: 980px;
  background: var(--ink);
  color: #000;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.pill { padding: 7px 15px; font-size: 13px; }
.btn { padding: 15px 30px; font-size: 17px; }
.pill:hover, .btn:hover { background: #fff; transform: scale(1.03); }
.soon { cursor: default; opacity: 0.92; }
.soon:hover { transform: none; }

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

.hero {
  position: relative;
  padding: 132px 22px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 42% at 50% 78%, rgba(232, 176, 74, 0.2), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(58, 130, 130, 0.2), transparent 75%),
    #000;
}
.eyebrow { color: var(--gold); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
h1 {
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.sub { margin-top: 22px; font-size: clamp(21px, 3vw, 32px); color: var(--grey); font-weight: 400; letter-spacing: -0.015em; }
.cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fine { font-size: 13px; color: var(--grey); }

.hero-phone {
  position: relative;
  width: min(400px, 78vw);
  margin: 56px auto 0;
  height: min(560px, 92vw);
  overflow: hidden;
}
/* the phone dips into the dark at the foot of the hero (an overlay, not a mask:
   a mask over a playing video renders blank in some Safari versions) */
.hero-phone::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: 0; height: 42%;
  background: linear-gradient(rgba(0, 0, 0, 0), #000 96%);
  pointer-events: none;
}
.hero-phone .device { will-change: transform; }

/* a phone that plays a video: the frame sits over it, its screen cut out */
.device { position: relative; width: 100%; aspect-ratio: 720 / 1542; }
/* The screen. The recording is a plain rectangle, so it is not shown as a video:
   it is drawn onto a canvas clipped to exactly the shape of the frame's screen
   cut-out (see site.js), and the corners never show. The still image is what
   appears before the video plays, and if scripts are off. */
.device .screen {
  position: absolute; left: 1.403%; top: 0.655%; width: 97.194%; height: 98.69%;
  background: #000;
}
.device .screen .poster,
.device .screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.device .screen .poster { border-radius: 10.2% / 4.71%; }
/* The real video only decodes; it is never seen. */
.device .screen video { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.device .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- bands ---------- */

.band { padding: clamp(84px, 12vw, 168px) 22px; text-align: center; }
.band.panel { background: var(--panel); }
.band.light { background: var(--light); color: var(--dark-ink); }
.wrap { max-width: var(--max); margin: 0 auto; }

h2 {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}
.lede {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(19px, 2.4vw, 28px);
  color: var(--grey);
  letter-spacing: -0.015em;
}
.light .lede { color: #6e6e73; }

.split { display: grid; gap: 56px; align-items: center; justify-items: center; }
.split .copy { text-align: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split .copy { text-align: left; }
  .split .copy .lede { margin-left: 0; }
  .split.flip .copy { order: 2; }
}

.phone {
  width: min(360px, 74vw);
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.5));
}
.light .phone { filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.28)); }

/* day / night */

.dn { position: relative; width: min(380px, 78vw); margin: 60px auto 0; aspect-ratio: 720 / 1543; }
.dn img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1.4s ease; filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.5)); }
.dn img.off { opacity: 0; }
/* the iPad, held sideways: wider than the phone's column */
.dn.wide { width: min(1000px, 92vw); aspect-ratio: 1471 / 1120; }
.dn.wide img { filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.ipad-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; margin: 110px auto 0; }
.ipad-pair img { width: min(420px, 82vw); height: auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.toggle { margin: 34px auto 0; display: inline-flex; padding: 4px; border-radius: 980px; background: var(--tile); }
.toggle button {
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--grey); background: none; border: 0; cursor: pointer;
  padding: 8px 22px; border-radius: 980px;
  transition: color 0.3s, background 0.3s;
}
.toggle button.on { color: #000; background: var(--ink); }

/* rocks */

.rocks {
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  text-align: left;
}
.rock img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; transition: transform 0.6s var(--ease); }
.rock:hover img { transform: scale(1.025); }
.rock h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.rock p { margin-top: 3px; font-size: 15px; color: var(--grey); }
.rock .tag { color: var(--gold); }
@media (max-width: 900px) {
  .rocks {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -22px; margin-right: -22px; padding: 0 22px;
    scrollbar-width: none;
  }
  .rocks::-webkit-scrollbar { display: none; }
  .rock { scroll-snap-align: center; }
}
@media (max-width: 560px) { .rocks { grid-auto-columns: 78%; } }

/* voices */

.names {
  margin: 56px auto 0;
  max-width: 980px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1em 0.5em;
  font-size: clamp(38px, 7.6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.names span { color: #2c2c2e; transition: color 0.6s, text-shadow 0.6s; }
.names span.on { color: var(--ink); text-shadow: 0 0 40px rgba(232, 176, 74, 0.45); }

/* private */

.statement { font-size: clamp(38px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.statement span { display: block; }
.statement .dim { color: #48484a; }
.lock { width: 46px; height: 46px; margin: 0 auto 30px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* pro slider */

.band.pro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(64, 112, 255, 0.22), transparent 72%),
    radial-gradient(50% 30% at 50% 100%, rgba(232, 176, 74, 0.10), transparent 75%),
    var(--panel);
}
.slider { position: relative; margin-top: 72px; }
.track {
  --slide: min(340px, 72vw);
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px calc(50% - var(--slide) / 2) 6px;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 var(--slide);
  margin: 0;
  scroll-snap-align: center;
  opacity: 0.38;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  cursor: pointer;
}
.slide.active { opacity: 1; transform: none; cursor: default; }
.slide .phone { width: 100%; }
.slide figcaption { margin-top: 30px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; }
.slide figcaption small { display: block; margin-top: 6px; font-size: 17px; font-weight: 400; color: var(--grey); letter-spacing: -0.01em; }

.arrow {
  position: absolute; top: 42%; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(245, 245, 247, 0.16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; place-items: center;
  transition: background 0.25s, opacity 0.25s, transform 0.25s var(--ease);
}
.arrow:hover { background: rgba(245, 245, 247, 0.28); transform: scale(1.06); }
.arrow svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { left: max(16px, calc(50% - 470px)); }
.arrow.next { right: max(16px, calc(50% - 470px)); }
.arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 760px) { .arrow { display: none; } }

.dots { display: flex; justify-content: center; gap: 9px; margin-top: 34px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(245, 245, 247, 0.28);
  transition: background 0.3s, width 0.4s var(--ease);
}
.dots button.on { background: var(--ink); width: 26px; border-radius: 8px; }

.byom { margin-top: clamp(72px, 9vw, 120px); }
.byom h3 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span {
  padding: 11px 20px; border-radius: 980px; font-size: 17px; font-weight: 500;
  background: rgba(245, 245, 247, 0.08); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.14);
}

/* more */

.tiles { margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.tile { background: var(--tile); border-radius: 26px; padding: 34px 30px 36px; }
.tile svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 26px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.tile p { margin-top: 6px; font-size: 17px; color: var(--grey); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* price */

.prices { margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.price { background: #fff; border-radius: 28px; padding: 44px 26px 46px; }
.price h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.price .amt { margin-top: 12px; font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; }
.price p { margin-top: 8px; font-size: 17px; color: #6e6e73; }
@media (max-width: 800px) { .prices { grid-template-columns: 1fr; } }

/* footer */

footer { border-top: 1px solid var(--line); padding: 44px 22px 56px; color: var(--grey); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
footer .links { display: flex; gap: 26px; }
footer a:hover { color: var(--ink); }
footer .note { width: 100%; margin-top: 8px; }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .dn img, .names span { transition: none; }
}

/* ---------- text pages (support, privacy, credits) ---------- */

.doc { max-width: 700px; margin: 0 auto; padding: 132px 22px 96px; }
.doc h1 { font-size: clamp(44px, 8vw, 72px); letter-spacing: -0.04em; }
.doc .stamp { margin-top: 14px; color: var(--grey); font-size: 17px; }
.doc h2 {
  margin-top: 56px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.doc p, .doc li { margin-top: 12px; font-size: 19px; line-height: 1.5; color: #d2d2d7; }
.doc ul { margin: 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.doc a:hover { border-bottom-color: var(--ink); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .lead { font-size: 24px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.35; margin-top: 30px; }
