/* Soul Spring — Sunrise Awakening landing */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1180px;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

:root,
[data-theme='light'] {
  color-scheme: light;
  --color-bg: #fff9ef;
  --color-surface: #fffdf7;
  --color-surface-offset: #f3ede3;
  --color-surface-offset-2: #ede7de;
  --color-border: oklch(from #1d1b16 l c h / 0.14);
  --color-border-soft: oklch(from #1d1b16 l c h / 0.09);

  --color-text: #241c15;
  --color-text-muted: #55483f;
  --color-text-faint: #82746f;
  --color-text-inverse: #fff9ef;

  --color-primary: #33190f;
  --color-primary-hover: #4b2e22;
  --color-gold: #b97a1e;
  --color-gold-strong: #d99a3e;
  --color-gold-soft: #fec87f;
  --color-sage: #7da97f;
  --color-green-deep: #274f2d;
  --color-green-ink: #16301a;

  --hero-ink: #2b1c10;

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 60 / 0.07), 0 4px 14px oklch(0.25 0.03 60 / 0.05);
  --shadow-md: 0 2px 4px oklch(0.25 0.03 60 / 0.08), 0 12px 32px oklch(0.25 0.03 60 / 0.09);
  --shadow-lg: 0 6px 16px oklch(0.25 0.03 60 / 0.1), 0 28px 64px oklch(0.25 0.03 60 / 0.14);
}

[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #171310;
  --color-surface: #1e1915;
  --color-surface-offset: #262019;
  --color-surface-offset-2: #2d261e;
  --color-border: oklch(from #f3ede3 l c h / 0.16);
  --color-border-soft: oklch(from #f3ede3 l c h / 0.1);

  --color-text: #f0e8db;
  --color-text-muted: #c0b2a2;
  --color-text-faint: #8d8175;
  --color-text-inverse: #241c15;

  --color-primary: #e8b45a;
  --color-primary-hover: #f2c678;
  --color-gold: #e0a94f;
  --color-gold-strong: #e8b45a;
  --color-gold-soft: #6b4d1e;
  --color-sage: #7da97f;
  --color-green-deep: #1e3c23;
  --color-green-ink: #12210f;

  --hero-ink: #2b1c10;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.5);
}

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

.container {
  width: min(var(--content-wide), 100% - clamp(2rem, 6vw, 4rem));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  transform: translateY(-300%);
}
.skip-link:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive);
}
.site-header.scrolled {
  border-bottom-color: var(--color-border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}
.brand svg {
  color: var(--color-gold-strong);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
}
.btn-sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-5);
}

/* store badges */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) var(--space-6) var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--hero-ink);
  color: #fff6e8;
  text-decoration: none;
  text-align: left;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover {
  background: #40291a;
  box-shadow: var(--shadow-md);
}
.store-btn svg {
  flex: none;
}
.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-btn strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(
    180deg,
    #92c5e6 0%,
    #c6d6c2 26%,
    #ecdca8 52%,
    #f2cc7c 76%,
    #ebb44e 100%
  );
  color: var(--hero-ink);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(from var(--hero-ink) l c h / 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  background: oklch(from #fff9ef l c h / 0.35);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.04;
  max-width: 13ch;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: italic;
}
.hero-copy {
  font-size: var(--text-lg);
  font-weight: 450;
  line-height: 1.55;
  max-width: 46ch;
  color: oklch(from var(--hero-ink) l c h / 0.88);
  margin-bottom: var(--space-8);
}
.hero-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: oklch(from var(--hero-ink) l c h / 0.72);
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(from #fff9ef l c h / 0.5);
}
.hero-art figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: oklch(from var(--hero-ink) l c h / 0.6);
  text-align: right;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
  }
}

/* ---------- philosophy ---------- */

.philosophy {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 6vw, var(--space-24));
  align-items: start;
}
.philosophy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.12;
  max-width: 16ch;
}
.philosophy-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.philosophy-body p strong {
  color: var(--color-text);
  font-weight: 600;
}
@media (max-width: 820px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- features ---------- */

.features {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-offset);
}
.features-head {
  max-width: var(--content-narrow);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.features h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.12;
  margin-bottom: var(--space-4);
}
.features-lede {
  color: var(--color-text-muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.feature-card .glyph {
  color: var(--color-gold-strong);
  margin-bottom: var(--space-5);
}
.f-wide {
  grid-column: span 7;
}
.f-narrow {
  grid-column: span 5;
}
.f-guru {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
  background: var(--color-green-deep);
  color: #f2f0e4;
  border: none;
}
.f-guru h3 {
  font-size: var(--text-xl);
  color: #fff;
  max-width: 18ch;
}
.f-guru p {
  color: oklch(from #f2f0e4 l c h / 0.82);
}
.f-guru .glyph {
  color: var(--color-gold-soft);
}
[data-theme='dark'] .f-guru .glyph {
  color: #fec87f;
}
.guru-points {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.guru-points li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.guru-points li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-sage);
  transform: translateY(-2px);
}

/* chat preview */
.chat-preview {
  background: #fff9ef;
  color: #241c15;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid oklch(from #241c15 l c h / 0.1);
  font-weight: 600;
  font-size: var(--text-sm);
}
.chat-top img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
}
.chat-top span small {
  display: block;
  font-weight: 500;
  font-size: var(--text-xs);
  color: #82746f;
}
.chat-body {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.msg {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  max-width: 92%;
}
.msg.user {
  justify-self: end;
  background: #4b2e22;
  color: #fff6e8;
  border-bottom-right-radius: var(--radius-sm);
}
.msg.guru {
  background: #f3ede3;
  border-bottom-left-radius: var(--radius-sm);
}
.f-guru .msg.guru {
  color: #241c15;
}
.f-guru .msg.user {
  color: #fff6e8;
}
.msg.guru cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: var(--text-xs);
  color: #82746f;
}
@media (max-width: 900px) {
  .f-wide,
  .f-narrow {
    grid-column: span 12;
  }
  .f-guru {
    grid-template-columns: 1fr;
  }
}

/* ---------- traditions ---------- */

.traditions {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-green-ink);
  color: #eef0e2;
}
.traditions h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.traditions .kicker {
  color: var(--color-gold-soft);
}
[data-theme='dark'] .traditions .kicker {
  color: #fec87f;
}
.traditions-lede {
  color: oklch(from #eef0e2 l c h / 0.78);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}
.tradition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.tradition-pills span {
  padding: var(--space-3) var(--space-6);
  border: 1px solid oklch(from #eef0e2 l c h / 0.22);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- quote band ---------- */

.quote-band {
  position: relative;
  isolation: isolate;
  min-height: min(72svh, 640px);
  display: grid;
  align-items: center;
  overflow: clip;
}
.quote-band img.band-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(0.26 0.04 60 / 0.62), oklch(0.26 0.04 60 / 0.28) 55%, oklch(0.26 0.04 60 / 0.08)),
    linear-gradient(180deg, oklch(0.26 0.04 60 / 0.25), transparent 40%, oklch(0.26 0.04 60 / 0.25));
}
.quote-band blockquote {
  padding-block: var(--space-24);
  color: #fffdf4;
  text-shadow: 0 2px 24px oklch(0.25 0.04 60 / 0.45);
}
.quote-band blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.3;
  max-width: 24ch;
}
.quote-band figcaption {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fffdf4;
  text-shadow: 0 2px 18px oklch(0.25 0.04 60 / 0.5);
}

/* ---------- privacy ---------- */

.privacy {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-8), 6vw, var(--space-24));
  align-items: start;
}
.privacy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.12;
  max-width: 15ch;
  margin-bottom: var(--space-5);
}
.privacy-grid > div > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.privacy-list {
  display: grid;
  gap: var(--space-5);
}
.privacy-list li {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.privacy-list strong {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.privacy-list span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 820px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- final CTA ---------- */

.cta {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-offset);
  text-align: center;
}
.cta .lotus-mark {
  width: 120px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-full);
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.cta p {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta .store-buttons {
  justify-content: center;
}
.cta-support {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.cta-support a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding-block: var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer-brand svg {
  color: var(--color-gold-strong);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-note {
  margin-top: var(--space-6);
  max-width: 72ch;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
