/* ============================================================
   CueBody — Home
   Design tokens from cuebody.com-design.md
   ============================================================ */

:root {
  --magenta: #D4028A;
  --magenta-700: #A60270;
  --magenta-300: #F2A6D6;
  --violet: #540995;
  --violet-700: #3F0773;
  --cream: #FFF7F3;
  --surface: #FFFFFF;
  --surface-alt: #FBEDE5;
  --ink: #2A1430;
  --text-secondary: #5C4760;
  --text-tertiary: #8A7B90;
  --hairline: #EBDDE6;
  --card-border: rgba(84, 9, 149, 0.06);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: 'Alexandria', system-ui, sans-serif;
  --font-display: 'Lora', serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(212, 2, 138, 0.14); color: var(--ink); }

@keyframes cbFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cbReveal { animation: cbFadeUp 900ms var(--ease-lux) both; }

.cbLink {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 240ms var(--ease-lux);
  cursor: pointer;
  font-family: var(--font-body);
}
.cbLink:hover { color: var(--magenta); }

.accent { color: var(--magenta); font-style: normal; }
.accent-light { color: var(--magenta-300); font-style: normal; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 24px;
}
.eyebrow-light { color: var(--magenta-300); }

.btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--magenta);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 240ms var(--ease-lux), transform 140ms;
}
.btn-primary:hover { background: var(--magenta-700); }
.btn-primary:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px clamp(20px, 5vw, 56px) 0;
}
.header-bar {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 1px 2px rgba(84, 9, 149, 0.06);
  transition: box-shadow 240ms var(--ease-lux);
}
.header-bar.is-scrolled { box-shadow: 0 8px 24px -10px rgba(84, 9, 149, 0.18); }
.header-left { display: flex; align-items: center; gap: 36px; }
.header-logo { display: flex; align-items: center; cursor: pointer; }
.header-logo img { height: 22px; display: block; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav-link { font-size: 13.5px; font-weight: 500; }
.header-cta { font-size: 13.5px; font-weight: 600; color: var(--magenta); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-glow {
  position: absolute;
  top: -160px;
  left: -220px;
  width: 720px;
  height: 720px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,2,138,0.13) 0%, rgba(84,9,149,0.07) 45%, rgba(255,247,243,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 5vw, 56px) clamp(72px, 9vw, 120px);
}
.cbHeroGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 1px 2px rgba(84, 9, 149, 0.06);
  margin: 0 0 32px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--violet);
  margin: 0;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 26px 0 0;
  max-width: 480px;
}
.hero-cta {
  margin-top: 40px;
  padding: 17px 36px;
  box-shadow: 0 16px 36px -14px rgba(212, 2, 138, 0.55);
}
.hero-waitlist-line {
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

/* ---------- Hero right half: photo + cue pills ---------- */
.hero-right {
  /* fade strength knob, 0-100 */
  --photo-fade: 25;
  position: relative;
  min-height: min(76vh, 660px);
  font-family: var(--font-body);
}
/* image bleeds left past the column so the whole shoulder stays in frame */
.hero-media {
  position: absolute;
  inset: 0 0 0 -14%;
  z-index: 2;
  border-radius: 0 32px 32px 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
  opacity: calc(1 - var(--photo-fade) / 100 * 0.625);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,247,243,0.4) 0%, rgba(255,247,243,0.18) 55%, rgba(255,247,243,0.3) 100%);
  opacity: min(1, var(--photo-fade) / 100 * 2.5);
  pointer-events: none;
}

/* Cue pills: dark bubble + magenta dot */
.cue {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  animation: pill-rise 0.9s var(--ease-lux) forwards;
}
.cue-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 5px rgba(212, 2, 138, 0.16);
}
.cue-pill {
  background: rgba(30, 12, 36, 0.45);
  color: #FFFFFF;
  font-size: clamp(0.72rem, 0.85vw, 0.85rem);
  font-weight: 400;
  line-height: 1.3;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  white-space: nowrap;
  box-shadow: 0 14px 34px -16px rgba(20, 6, 26, 0.6);
  backdrop-filter: blur(3px);
}
/* Pills trace the left edge of the neck, then follow the shoulder curve down.
   All are right-anchored with the dot toward the body, so the trailing edge
   kisses the contour and the row reads as one ribbon along the neckline. */
.cue-1 { top: 21%; right: 10.4%; flex-direction: row-reverse; animation-delay: 0.15s; }
.cue-2 { top: 38%; right: 15.2%; flex-direction: row-reverse; animation-delay: 0.3s; }
.cue-3 { top: 49%; right: 65.0%; flex-direction: row-reverse; animation-delay: 0.45s; }
.cue-4 { top: 59%; right: 20.1%; flex-direction: row-reverse; animation-delay: 0.6s; }
.cue-5 { top: 69%; right: 79.5%; flex-direction: row-reverse; animation-delay: 0.75s; }
.cue-6 { top: 79%; right: 20.5%; flex-direction: row-reverse; animation-delay: 0.9s; }
.cue-7 { top: 89%; right: 80.9%; flex-direction: row-reverse; animation-delay: 1.05s; }

@keyframes pill-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust band ---------- */
.trust-band { background: linear-gradient(90deg, #3F0773 0%, #2A1146 55%, #1D0B2E 100%); }
.trust-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
}
.trust-item {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F2E9FA;
}
.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--magenta-300);
}

/* ---------- Why we exist ---------- */
.why {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 5vw, 56px);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.why-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--violet);
  margin: 0;
  text-wrap: balance;
}
.why-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 28px 0 0;
  max-width: 680px;
}
.why-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  border: 1px solid var(--hairline);
}
.why-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}
.stat { border-top: 1px solid var(--hairline); padding-top: 26px; }
.stat-figure {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--violet);
  margin: 0 0 16px;
}
.stat-unit { font-style: normal; color: var(--magenta); font-size: 0.55em; }
.stat-caption {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 280px;
}

/* ---------- Editorial statement ---------- */
.statement { border-top: 1px solid var(--hairline); background: var(--surface-alt); }
.statement-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 5vw, 56px);
  text-align: center;
}
.statement-quote {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--violet);
  margin: 0 auto;
  max-width: 880px;
  text-wrap: balance;
}

/* ---------- How it works (dark) ---------- */
.how {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, #3F0773 0%, #2A1146 55%, #1D0B2E 100%);
  overflow: hidden;
}
.how-glow {
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 640px;
  height: 640px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,2,138,0.22) 0%, rgba(212,2,138,0) 65%);
  filter: blur(50px);
  pointer-events: none;
}
.how-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 56px);
}
.how-head { max-width: 880px; margin-bottom: 64px; }
.how-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #FBF4F7;
  margin: 0;
  text-wrap: balance;
}
.how-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #C4B2CE;
  margin: 24px 0 0;
  max-width: 640px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 247, 243, 0.12);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 34px;
  color: var(--magenta-300);
  line-height: 1;
}
.step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: #FBF4F7;
  margin: 6px 0 0;
}
.step-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #C4B2CE;
  margin: 0;
}

/* ---------- Waitlist ---------- */
.waitlist { position: relative; overflow: hidden; }
.waitlist-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,2,138,0.11) 0%, rgba(84,9,149,0.06) 50%, rgba(255,247,243,0) 72%);
  filter: blur(40px);
  pointer-events: none;
}
.waitlist-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 144px) clamp(24px, 5vw, 56px);
  text-align: center;
}
.waitlist-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--violet);
  margin: 0;
}
.waitlist-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 22px auto 0;
  max-width: 500px;
}
.waitlist-success {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 18px 44px -24px rgba(84, 9, 149, 0.28);
}
.waitlist-success[hidden] { display: none; }
.success-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.success-text { font-size: 16px; color: var(--ink); }
.waitlist-form {
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 540px;
}
.waitlist-form[hidden] { display: none; }
.waitlist-input {
  flex: 1 1 260px;
  min-width: 220px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 16px 24px;
  outline: none;
  transition: border-color 240ms var(--ease-lux), box-shadow 240ms var(--ease-lux);
}
.waitlist-input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 6px rgba(212, 2, 138, 0.10);
}
.waitlist-submit {
  padding: 16px 34px;
  box-shadow: 0 14px 32px -12px rgba(212, 2, 138, 0.55);
  white-space: nowrap;
}
.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.waitlist-error {
  font-size: 13.5px;
  color: var(--magenta-700);
  margin: 16px 0 0;
}
.waitlist-error[hidden] { display: none; }
.waitlist-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 18px 0 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface-alt); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px clamp(24px, 5vw, 56px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  align-items: start;
}
.footer-brand {
  grid-column: span 2;
  min-width: 260px;
  max-width: 380px;
}
.footer-brand img { height: 24px; display: block; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 22px;
  line-height: 1.3;
  color: var(--violet);
  margin: 22px 0 0;
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a { font-size: 14px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cbHeroGrid { grid-template-columns: 1fr; }
  .hero-right { min-height: 46vh; border-radius: 2rem 2rem 0 0; }
  .cue {
    position: static;
    width: max-content;
    max-width: 100%;
  }
  .cue-pill { white-space: normal; }
  .cue-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem 1.5rem 3rem;
    background: #FFF7F3;
  }
}
@media (min-width: 861px) {
  /* pull the photo column up past the section padding so it starts ~72px
     from the page top, just below the sticky header */
  .hero-right { align-self: stretch; margin-top: calc(-1 * clamp(28px, 3.5vw, 48px) - 84px + 72px); }
  .cue-stack { display: contents; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cue { animation: none; opacity: 1; transform: none; }
  .cbReveal { animation: none; }
}
