/* Document pages: privacy policies, press kit, thank-you.
   Builds on base.css. Replaces the old dark styles.css + green overrides. */

/* ---------- Page head ---------- */
.doc-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line) }
.doc-hero .inner { width: min(46rem, 100%) }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.04; font-weight: 700 }
.doc-hero .doc-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 20px 0 0 }
.doc-hero .doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px }
.doc-date { display: inline-block; font-size: 13px; color: var(--muted); margin: 0 0 18px }

/* Switch between the two privacy policies. */
.policy-switch { display: flex; width: fit-content; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line) }
.policy-switch a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none }
.policy-switch a:hover { color: var(--ink) }
.policy-switch a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px #1b1c2722 }

/* ---------- Body ---------- */
.doc { width: min(46rem, 100%); padding: 16px 0 96px }
.doc.press { width: min(54rem, 100%) }
.doc h2 { font-size: 24px; letter-spacing: -.02em; font-weight: 700; margin: 56px 0 14px; scroll-margin-top: 96px }
.doc h3 { font-size: 17px; font-weight: 700; margin: 32px 0 10px }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--muted) }
.doc p { margin: 0 0 16px }
.doc ul { padding-left: 1.2em; margin: 0 0 16px }
.doc li { margin-bottom: 6px }
.doc strong, .doc em, .doc li h2, .doc li h3 { color: var(--ink) }
.doc a:not(.btn):not(.button), .doc-hero p a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent) }
.doc a:not(.btn):not(.button):hover, .doc-hero p a:hover { text-decoration-color: currentColor }
.doc-back { margin-top: 48px !important }
.fineprint { font-size: 14px !important }
mark { padding: .1em .4em; border-radius: 5px; background: #fbf0d6; color: #8a5a00; font-weight: 600 }

/* Section dividers on long documents. */
.press h2 { padding-top: 40px; border-top: 1px solid var(--line) }
.press > h2:first-of-type { border-top: 0; padding-top: 0 }

/* ---------- Press kit ---------- */
.press-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin: 40px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card) }
.press-contact p { margin: 0; color: var(--ink) }
.press-contact .press-contact-note { flex: 1 1 260px; font-size: 14px; color: var(--muted); max-width: 40ch }

.press-quote { padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink) !important; font-size: 17px !important }

.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card) }
.facts { width: 100%; border-collapse: collapse; font-size: 15px }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); line-height: 1.55 }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0 }
.facts th { width: 11rem; font-weight: 600; color: var(--ink); white-space: nowrap }
.facts td { color: var(--muted) }

.ticks { list-style: none; padding: 0 !important; display: grid; gap: 10px }
.ticks li { position: relative; padding-left: 30px; margin: 0 }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: 4px; display: grid; place-items: center; border-radius: 50%; background: var(--wash); color: var(--accent); font-size: 11px; font-weight: 700 }

/* Demo video: dark frame, click to load. */
.video-frame { margin: 20px 0 12px; padding: 10px; border-radius: 24px; background: var(--night); border: 1px solid var(--night-line) }
.video-embed { position: relative; overflow: hidden }
.video-embed iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px }
.video-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden }
.video-play img { display: block; width: 100%; height: auto }
.video-play-badge { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; translate: -50% -50%; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; font-size: 24px; color: var(--night); background: var(--night-ink); transition: transform .2s }
.video-play:hover .video-play-badge { transform: scale(1.06) }

.asset-grid { list-style: none; margin: 20px 0 0; padding: 0 !important; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) }
.asset-grid li { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card) }
.asset-grid img { display: block; width: 100%; height: auto }
.asset-grid p { margin: 12px 0 0; font-size: 14px }
.asset-grid-devices li { background: var(--night); border-color: var(--night-line) }
.asset-grid-devices p { color: var(--night-muted) }
.asset-grid-devices p a { color: #9fb2ff }
.asset-grid-devices img { aspect-ratio: 1/2; object-fit: contain }
.asset-grid-icons { grid-template-columns: repeat(auto-fit, minmax(150px, 180px)) }
.asset-grid-icons img { border-radius: 22% }

/* ---------- Legacy button classes still used by thanks/ ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer }
.button:hover { border-color: var(--ink) }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff }
.button.primary:hover { background: var(--accent-hover) }

@media (max-width: 700px) {
  .doc-hero { padding: 48px 0 32px }
  .facts th { width: auto; white-space: normal }
  .facts th, .facts td { padding: 12px }
}
