/* Befor landing + legal — shared styles
   Brand: #3D5AFE. Font: Plus Jakarta Sans (matches the app). */

:root {
  --brand: #3D5AFE;
  --ink: #1A1A1A;
  --body: #374151;
  --muted: #6B7280;
  --rule: #E5E7EB;
  --info-bg: #EFF6FF;
  --info-ink: #1e40af;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   LANDING (hero)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #3D5AFE;
  color: #fff;
  text-align: center;
  padding: 32px 24px 48px;
}

/* Ripple/dot background sits behind everything */
.ripple-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Top-right legal nav */
.top-nav {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 3;
  display: flex;
  gap: 22px;
}
.top-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}
.top-nav a:hover { color: #fff; }

/* Center content — full overlay so the logo and text can be anchored
   at explicit vertical positions (logo upper-centre, text lower), matching
   the reference. No z-index: stays above the ripple via DOM order without
   isolating the logo's blend-mode shadow. */
.hero-content {
  position: absolute;
  inset: 0;
}

.logo {
  position: absolute;
  top: 38%;
  left: 50%;
  /* Centre via negative margins, NOT transform — a transform here would create
     a stacking context and silently downgrade the ::after soft-light blend to
     normal. Half of 108px = 54px. */
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px; /* half of size — keeps it centred on 38% */
}

.text-block {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  /* Soft blue-tinted drop shadow. Plain filter, NO mix-blend-mode → renders
     identically on Chrome + Safari and follows the logo's squircle alpha.
     soft-light was abandoned: WebKit drops it when a filter is present, and on
     this blue background it renders near-invisible anyway. */
  filter: drop-shadow(0 10px 24px #1E3CFE);
}

.headline {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
/* Smaller headline on phones only (desktop stays 34px) */
@media (max-width: 600px) {
  .headline { font-size: 28px; }
}

.subtitle {
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 34px;
  max-width: 420px;
}

/* "Coming soon" chip — matches the app's brand pill
   (profile plan badge / result AI badge: #EEF1FF bg, #3D5AFE text). */
.chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #3D5AFE;
  background: #EEF1FF;
  border-radius: 100px;
}

/* ============================================================
   RIPPLE (matches the scanning screen)
   A static white dot field. A soft ring sweeps outward FROM THE
   LOGO, revealing dots, then fades. Origin (--ox/--oy) is pinned
   to the logo centre by a few lines of JS in index.html.
   GPU-light: no SVG <mask> re-raster, so no lag; two overlapped
   pulses keep the rhythm gapless.
   ============================================================ */

@property --r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* Every layer shares one white dot field (dots stay a constant size) */
.ripple-bg > span {
  position: absolute;
  inset: 0;
  display: block;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0.3px, transparent 0.8px);
  background-size: 6px 6px;
}

/* Faint all-over texture */
.dots-base { opacity: 0.05; }

/* Resting soft glow of dots around the logo */
.dots-glow {
  opacity: 0.28;
  -webkit-mask: radial-gradient(circle 300px at var(--ox, 50%) var(--oy, 42%), #000 0%, transparent 72%);
          mask: radial-gradient(circle 300px at var(--ox, 50%) var(--oy, 42%), #000 0%, transparent 72%);
}

/* Expanding pulses — soft ring reveal + opacity fade, from the logo */
.pulse {
  opacity: 0;
  -webkit-mask: radial-gradient(circle at var(--ox, 50%) var(--oy, 42%),
                 transparent calc(var(--r) - 80px), #000 var(--r), transparent calc(var(--r) + 80px));
          mask: radial-gradient(circle at var(--ox, 50%) var(--oy, 42%),
                 transparent calc(var(--r) - 80px), #000 var(--r), transparent calc(var(--r) + 80px));
  animation: pulse 3.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.pulse.b { animation-delay: -1.7s; }  /* half-cycle offset → gapless */

@keyframes pulse {
  0%   { --r: 0px;    opacity: 0; }
  10%  { opacity: 0.8; }
  70%  { opacity: 0.16; }
  100% { --r: 1200px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: 0; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */

.doc {
  background: #fff;
  color: var(--body);
  min-height: 100vh;
}

.doc-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  z-index: 10;
}
.doc-header .home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.doc-header .home img { width: 26px; height: 26px; border-radius: 7px; }
.doc-header .nav-link {
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.doc-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.doc-body .meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
  margin: 0;
}

.doc-body h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.doc-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.doc-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  margin: 14px 0 4px;
}
.doc-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 10px;
}
.doc-body strong { color: var(--ink); font-weight: 600; }

.doc-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.doc-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}
.doc-body li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--muted);
}

.doc-body a { color: var(--brand); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 22px 0;
}

.info-box {
  background: var(--info-bg);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--info-ink);
}
.info-box strong { color: #1d4ed8; }

.caps {
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  line-height: 1.55;
  margin: 0 0 10px;
}

table.retention {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  font-size: 13.5px;
}
table.retention th,
table.retention td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  vertical-align: top;
}
table.retention th {
  background: #F9FAFB;
  color: var(--ink);
  font-weight: 600;
}
table.retention td:first-child,
table.retention th:first-child { border-right: 1px solid var(--rule); width: 40%; }

.footnote {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

.doc-nav-bottom {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
}
.doc-nav-bottom a { color: var(--brand); text-decoration: none; font-weight: 600; }
