/*
 * Standalone stylesheet for public discovery pages under /public.
 * Deliberately self-contained: no Tailwind, no React, nothing from src/.
 * Mirrors the Certainty app's visual language by hand.
 */

:root {
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --ink-faint: rgba(255, 255, 255, 0.56);
  --glass: rgba(0, 0, 0, 0.2);
  --glass-line: rgba(255, 255, 255, 0.18);
  --charcoal: #4a403b;
}

* { box-sizing: border-box; }

html {
  background-color: #241f2e;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---------- background ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(150, 122, 176, 0.55) 0%, rgba(150, 122, 176, 0) 60%),
    radial-gradient(80% 60% at 85% 20%, rgba(198, 150, 150, 0.35) 0%, rgba(198, 150, 150, 0) 60%),
    radial-gradient(120% 95% at 50% 10%, #574a6c 0%, #3a3247 45%, #241f2e 100%);
}

.bg-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-layer video.is-ready { opacity: 0.9; }

/* nested cards inside a glass section stay light so panels don't stack heavy */
.glass .steps li,
.glass details {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 16, 26, 0.28) 0%, rgba(20, 16, 26, 0.42) 55%, rgba(20, 16, 26, 0.62) 100%);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 20px 6px;
}

.site-header img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.wordmark {
  font-family: 'Dancing Script', 'Segoe Script', cursive;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ---------- layout ---------- */

main {
  position: fixed;
  z-index: 2;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 44px max(20px, calc((100vw - 640px) / 2)) 72px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

section { margin: 0 0 22px; }

.glass > *:last-child { margin-bottom: 0; }

h1 {
  font-family: 'Dancing Script', 'Segoe Script', cursive;
  font-size: clamp(30px, 6.4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  margin: 18px 0 6px;
  text-align: center;
}

.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 3.4vw, 18px);
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 26px;
  font-style: italic;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(19px, 3.8vw, 23px);
  font-weight: 600;
  margin: 0 0 18px;
  text-align: center;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.centered { text-align: center; }

.certain-line {
  font-family: 'Dancing Script', 'Segoe Script', cursive;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--ink);
  text-align: center;
  margin: 22px 0;
}

.emphasis {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  line-height: 1.6;
}

.note {
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 22px;
}

/* ---------- glass ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  padding: 24px 22px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  padding: 20px 20px 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.steps .num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.steps h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.steps p { margin: 0; font-size: 14.5px; }

/* ---------- chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.chips li {
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 9px 16px;
}

/* ---------- faq ---------- */

details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  margin-bottom: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

details[open] summary::after { content: '–'; }

details p {
  margin: 0;
  padding: 0 20px 19px;
  font-size: 14.5px;
}

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

.stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 26px auto 0;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}

.store-btn:hover { background: rgba(255, 255, 255, 0.18); }

.store-btn svg { width: 22px; height: 22px; fill: currentColor; }

.store-btn .small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.8;
}

.store-btn .big {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- footer ---------- */

.site-footer {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 20px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover { text-decoration: underline; }

a.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .stores { flex-direction: row; max-width: 460px; }
  .store-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-layer video { display: none; }
}

/* ---------- compact card grid (discovery explainer pages) ---------- */

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cards li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  padding: 16px 18px;
}

.cards h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
}

.cards p { margin: 0; font-size: 14px; line-height: 1.6; }

.topics {
  margin: 4px 20px 19px;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.label {
  padding: 0 20px 4px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.disclaimer {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
