/* ============================================
   Revela Landing — Dark Editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Tokens --- */
:root {
  --brand: #8B2D4E;
  --brand-light: #B8486E;
  --brand-glow: rgba(139, 45, 78, 0.35);
  --bg: #0D0A0B;
  --bg-elevated: #141112;
  --bg-card: #1A1618;
  --text-primary: #F2EDE9;
  --text-secondary: #A89E97;
  --text-muted: #6B6165;
  --border-subtle: rgba(242, 237, 233, 0.06);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Ambient background --- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  opacity: 0.3;
  animation: drift-slow 25s ease-in-out infinite alternate;
}

.ambient-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139, 45, 78, 0.15) 0%, transparent 65%);
  opacity: 0.4;
  animation: drift-slow 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift-slow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3vw, -4vh) scale(1.08); }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(13, 10, 11, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.header-brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--brand);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition-base), transform var(--transition-base);
}

.header-cta:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  max-width: 14ch;
  margin: 0 auto var(--space-md);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-light);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 38ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.hero-badge {
  display: inline-block;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hero-badge:hover {
  transform: scale(1.04);
}

.hero-badge img {
  height: 52px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.8; transform: scaleY(1.3); }
}

/* --- Outcome sections --- */
.outcome {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
}

.outcome-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .outcome-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .outcome:nth-child(even) .outcome-text {
    order: 2;
  }

  .outcome:nth-child(even) .outcome-visual {
    order: 1;
  }
}

.outcome-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--space-sm);
}

.outcome h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: var(--space-md);
  letter-spacing: -0.005em;
}

.outcome h2 em {
  font-style: italic;
  color: var(--brand-light);
}

.outcome-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 44ch;
}

/* --- Archetype card (section 1 visual centerpiece) --- */
.archetype-card {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow:
    0 0 80px -20px rgba(139, 45, 78, 0.25),
    0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

.archetype-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(139, 45, 78, 0.3), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.archetype-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.archetype-card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.archetype-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.archetype-pill {
  font-size: 0.7rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(139, 45, 78, 0.3);
  border-radius: var(--radius-pill);
  color: var(--brand-light);
  background: rgba(139, 45, 78, 0.1);
  letter-spacing: 0.02em;
}

.outcome-archetype-hint {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  margin-top: var(--space-sm);
}

/* --- Archetype strip --- */
.archetype-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-xl);
  padding: 0 var(--space-md);
}

.archetype-strip span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.archetype-strip-active {
  color: var(--brand-light) !important;
  opacity: 1 !important;
}

.archetype-strip-more {
  color: var(--text-muted) !important;
  opacity: 0.7 !important;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* --- Callout card (section 2 "that's your usual move") --- */
.callout-card {
  background: rgba(139, 45, 78, 0.08) !important;
  border-color: rgba(139, 45, 78, 0.2) !important;
  opacity: 1 !important;
  transform: none !important;
  margin-top: var(--space-xs) !important;
}

.callout-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.5rem;
}

.callout-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pull quote section (section 3) --- */
.pull-quote-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.pull-quote-inner {
  max-width: 700px;
  margin: 0 auto;
}

.pull-quote-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: var(--space-lg);
}

.pull-quote-section h2 em {
  font-style: italic;
  color: var(--brand-light);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0 auto var(--space-sm);
  max-width: 20ch;
  border: none;
  padding: 0;
}

.pull-quote-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.pull-quote-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 auto;
}

/* Phone mockup */
.phone-frame {
  position: relative;
  width: 240px;
  height: 490px;
  margin: 0 auto;
  border: 2px solid var(--border-subtle);
  border-radius: 36px;
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(242, 237, 233, 0.03),
    0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.phone-type-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--brand-light);
  margin-bottom: 0.6rem;
}

.phone-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.phone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.phone-pill {
  font-size: 0.65rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: rgba(139, 45, 78, 0.08);
}

/* Card-style phone for daily section */
.phone-card-stack {
  position: relative;
  width: 260px;
  margin: 0 auto;
}

.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
}

.phone-card + .phone-card {
  margin-top: -8px;
  opacity: 0.5;
  transform: scale(0.96);
}

.phone-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.6rem;
}

.phone-card-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.phone-card-footer {
  margin-top: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Wisdom-style phone for section 3 */
.phone-wisdom {
  position: relative;
  width: 260px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.phone-wisdom-counter {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.phone-wisdom-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.phone-wisdom-source {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Divider */
.section-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brand), transparent);
  margin: 0 auto;
}

/* --- CTA section --- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.cta-section h2 span {
  color: var(--brand-light);
}

.cta-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-badge {
  display: inline-block;
  transition: transform var(--transition-base);
}

.cta-badge:hover {
  transform: scale(1.04);
}

.cta-badge img {
  height: 56px;
}

.cta-price-note {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-md);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Legal pages --- */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-page h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.legal-page p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-sm);
}

.legal-page ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.legal-page a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}

.legal-page a:hover {
  color: var(--text-primary);
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Support page extras */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

.support-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.support-card p {
  margin-bottom: 0;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero {
    padding-top: calc(80px + var(--space-lg));
    min-height: 90svh;
  }

  .outcome {
    padding: var(--space-xl) var(--space-md);
  }

  .outcome-visual {
    order: -1;
  }

  .phone-frame {
    width: 200px;
    height: 410px;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    order: 0;
  }

  .footer-copy {
    text-align: right;
  }
}
