/* ============================================================
   KALEIDOMIND — shared styles
   Dark, premium, prismatic. Mobile-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #08080c;
  --bg-soft: #101018;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.18);
  --text: #f4f4f7;
  --text-mute: #9a9aab;
  --text-dim: #6a6a78;
  /* Prismatic accent — the Kaleidomind signature */
  --prism: linear-gradient(115deg, #ff7a59 0%, #ffb347 22%, #f15bb5 48%, #9b5de5 70%, #4cc9f0 100%);
  --prism-soft: linear-gradient(115deg, rgba(255,122,89,.16), rgba(241,91,181,.16), rgba(76,201,240,.16));
  --radius: 18px;
  --maxw: 620px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Prismatic atmospheric glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(155, 93, 229, 0.18), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(255, 122, 89, 0.14), transparent 70%),
    radial-gradient(55% 50% at 50% 110%, rgba(76, 201, 240, 0.12), transparent 70%);
  z-index: -2;
  pointer-events: none;
}
/* Subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 22px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---------- Faded brand character (drop a character.png into the folder) ---------- */
.character {
  position: fixed;
  width: min(72vw, 440px);
  aspect-ratio: 1 / 1;
  background: url('character.png') center center / contain no-repeat;
  opacity: 0.07;
  filter: saturate(0.7);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin-bottom: 8px;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--prism);
  position: relative;
  box-shadow: 0 0 24px rgba(241, 91, 181, 0.35);
}
.brand .mark::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 4px;
  background: var(--bg);
}
.brand .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
/* Logo holder: shows your logo.png if present, otherwise a prism square */
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--prism);
  box-shadow: 0 0 24px rgba(241, 91, 181, 0.35);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0;
}
h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.prism-text {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { color: var(--text-mute); font-size: 1.06rem; }
.quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
  padding: 18px 0 18px 20px;
  border-left: 2px solid transparent;
  border-image: var(--prism) 1;
  margin: 6px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  color: #0a0a0f;
  background: var(--prism);
  background-size: 160% 160%;
  transition: transform .18s ease, box-shadow .25s ease, background-position .6s ease;
  box-shadow: 0 8px 30px rgba(241, 91, 181, 0.25);
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 38px rgba(241, 91, 181, 0.38); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-bright);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-hover); border-color: var(--text-mute); }

/* ---------- Choice cards ---------- */
.choices { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.choice {
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  color: var(--text);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.choice:hover, .choice:focus-visible {
  background: var(--surface-hover);
  border-color: var(--border-bright);
  transform: translateY(-1px);
  outline: none;
}
.choice .idx {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--prism-soft);
  border: 1px solid var(--border-bright);
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 22px;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--prism-soft);
  border: 1px solid var(--border-bright);
}
.price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}
.price small { font-size: 0.85rem; color: var(--text-mute); font-weight: 500; letter-spacing: 0; }

.spacer { flex: 1 1 auto; }
.center { text-align: center; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); font-size: 0.85rem; }
.mt-s { margin-top: 10px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 34px; }
hr.soft { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

.foot { margin-top: 38px; text-align: center; color: var(--text-dim); font-size: 0.78rem; }
.foot a { color: var(--text-mute); text-decoration: none; }

/* ---------- Site footer with policy links ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 22px 50px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  align-items: center;
}
.site-footer a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer a:hover { color: var(--text); }
.site-footer .copyright { width: 100%; text-align: center; color: var(--text-dim); font-size: 0.78rem; margin-top: 6px; }

/* ---------- Policy pages ---------- */
.policy { max-width: var(--maxw); }
.policy h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 6px; }
.policy h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  margin: 26px 0 8px;
}
.policy p, .policy li { color: var(--text-mute); margin-bottom: 10px; }
.policy ul { padding-left: 20px; margin-bottom: 10px; }
.policy a { color: var(--text); }
.policy .updated { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 20px; }

/* ---------- Social proof (names only, no images) ---------- */
.proof { margin-top: 30px; }
.proof-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 520px) { .proof-list { grid-template-columns: 1fr 1fr; } }
.proof-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; }
.proof-role { color: var(--text-mute); font-size: 0.82rem; }

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal:nth-child(1) { animation-delay: .05s; }
.reveal:nth-child(2) { animation-delay: .13s; }
.reveal:nth-child(3) { animation-delay: .21s; }
.reveal:nth-child(4) { animation-delay: .29s; }
.reveal:nth-child(5) { animation-delay: .37s; }
.reveal:nth-child(6) { animation-delay: .45s; }
.reveal:nth-child(7) { animation-delay: .53s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
