/* ReachPad — DarkFrosted tokens; mobile-first; WelcomeScreen-style device */
:root {
  --canvas: #0B0B0D;
  --mist: #2A2A2E;
  --frame: #2C2C30;
  --screen: #101014;
  --stroke: rgba(255, 255, 255, 0.16);
  --primary: #F2F2F4;
  --secondary: #8E8E93;
  --accent: #E8E8ED;
  --on-accent: #121214;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--primary);
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page {
  width: 100%;
  max-width: 420px;
  min-height: 100dvh;
  padding: 12px 20px 32px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 100% 40% at 50% 6%, rgba(42, 42, 46, 0.55), transparent 68%),
    var(--canvas);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-link {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.nav-link:hover { color: var(--primary); text-decoration: none; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* —— Device (WelcomeScreen proportions) —— */
.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 12px;
}

.device-glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-glow::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 232, 237, 0.14), transparent 70%);
  pointer-events: none;
}

.device {
  position: relative;
  width: min(52vw, 196px);
  aspect-ratio: 9 / 19.5;
  border-radius: 2rem;
  background: #1a1a1e;
  border: 5px solid #3a3a3e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 50px rgba(0, 0, 0, 0.55);
  padding: 0;
  overflow: hidden;
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 20% 10%, rgba(70, 90, 130, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 70% at 90% 80%, rgba(60, 40, 80, 0.4), transparent 50%),
    linear-gradient(165deg, #2a3144 0%, #14151c 42%, #0c0d12 100%);
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 12px;
  border-radius: 999px;
  background: #0a0a0c;
  z-index: 2;
}

.status {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: rgba(242, 242, 244, 0.7);
  font-weight: 600;
  z-index: 1;
}

.wallpaper-icons {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px;
  opacity: 0.55;
}

.wallpaper-icons i {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  padding: 0 8px;
}

.dock i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

/* Frosted floating bubble — ReachFloatingBubble */
.bubble {
  position: absolute;
  right: 14px;
  top: 46%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(92, 92, 94, 0.98), rgba(58, 58, 60, 0.9) 50%, rgba(28, 28, 30, 0.82));
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.32),
    0 10px 22px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.bubble-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  pointer-events: none;
}
.bubble-ring.outer { width: 72%; height: 72%; }
.bubble-ring.inner {
  width: 46%;
  height: 46%;
  border-width: 1.6px;
  border-color: rgba(255, 255, 255, 0.72);
}
.bubble-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(255, 255, 255, 0.78));
}

.copy { width: 100%; padding-top: 4px; }

.brand-line {
  margin: 0;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.headline {
  margin: 6px 0 0;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.body {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary);
}

.points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.points li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--primary);
  font-size: 16px;
  line-height: 24px;
}

.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.play-link { line-height: 0; }
.play-link img {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
}

.note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--secondary);
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer a { color: var(--secondary); }
.footer a:hover { color: var(--primary); }

/* Privacy */
.legal .panel { padding-top: 8px; }

.panel h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.meta {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 20px;
  color: var(--secondary);
}

.panel h2 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.panel p,
.panel li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 23px;
  color: var(--secondary);
}

.panel ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}

.panel li { margin-bottom: 6px; }

.summary {
  margin: 12px 0 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #161618;
}
.summary ul { margin: 0; }
.summary strong { color: var(--primary); }

.third-party a { word-break: break-word; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--primary);
  word-break: break-word;
}

@media (min-width: 480px) {
  .page {
    max-width: 440px;
    padding: 20px 24px 40px;
  }
  .device { width: 200px; }
  .bubble { width: 38px; height: 38px; }
}

@media (min-width: 768px) {
  .page { max-width: 440px; }
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
