/* ============================================================
   REALIZED — design system
   Black & white sacred-tech. Modern, spiritual, premium.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --smoke: #1b1b1c;
  --bone: #f4f1ea;
  --white: #fafafa;
  --gray: #8a8a8f;
  --gray-soft: rgba(244, 241, 234, 0.55);
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.22);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background field + grain ---------- */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
strong { font-weight: 600; color: var(--white); }

.eyebrow,
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bone);
}
.brand-word {
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}
.brand-mark svg .ring { fill: none; stroke: var(--bone); stroke-width: 3; }
.brand-mark svg .zed { fill: none; stroke: var(--bone); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-links a {
  text-decoration: none;
  color: var(--gray-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  color: var(--bone) !important;
}
.nav-cta:hover { background: var(--bone); color: var(--black) !important; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem clamp(1.2rem, 5vw, 2rem) 5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-sigil { margin-bottom: 2.2rem; }
.sigil { width: clamp(150px, 24vw, 220px); height: auto; }
.sigil .s-ring { fill: none; stroke: var(--bone); stroke-width: 1; opacity: 0.4; }
.sigil .s-ring-outer { animation: spin 60s linear infinite; transform-origin: 120px 120px; }
.sigil .s-ring-inner { animation: spin 42s linear infinite reverse; transform-origin: 120px 120px; opacity: 0.25; }
.sigil .s-eye { fill: none; stroke: var(--bone); stroke-width: 1.2; opacity: 0.55; }
.sigil .s-zed { fill: none; stroke: var(--white); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.sigil .s-pupil { fill: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero-title em { font-size: 1.04em; }
.hero-sub {
  max-width: 620px;
  color: var(--gray-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 300;
  margin-bottom: 2.8rem;
}
.eyebrow { margin-bottom: 1.6rem; }

/* Intake */
.intake { width: 100%; max-width: 560px; }
.intake-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.intake-row {
  display: flex;
  gap: 0.5rem;
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  transition: border-color 0.3s, background 0.3s;
}
.intake-row:focus-within { border-color: var(--bone); background: rgba(244, 241, 234, 0.07); }
.intake-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
}
.intake-row input::placeholder { color: var(--gray); }
.intake-row button,
.signup button {
  background: var(--bone);
  color: var(--black);
  border: none;
  border-radius: 100px;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
  white-space: nowrap;
}
.intake-row button:hover,
.signup button:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(244, 241, 234, 0.18); }
.intake-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--gray);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  min-height: 1.4em;
  transition: color 0.3s;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.6rem;
}
.marquee-track span {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--gray-soft);
}
.marquee-track .dot { color: var(--gray); }

/* ============================================================
   SHARED SECTION
   ============================================================ */
section { padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 2rem); }
.section-head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; }
.section-tag { display: block; margin-bottom: 1.1rem; }
.section-head h2,
.promise h2,
.pack h2,
.circle h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
}
.section-lead {
  max-width: 600px;
  margin: 1.3rem auto 0;
  color: var(--gray-soft);
  font-weight: 300;
}

/* PROMISE */
.promise { max-width: 860px; margin: 0 auto; text-align: center; }
.promise h2 { margin-bottom: 1.6rem; }
.promise-body { color: var(--gray-soft); font-size: 1.1rem; font-weight: 300; max-width: 640px; margin: 0 auto; }

/* ============================================================
   FIVE GATES
   ============================================================ */
.gate-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.gate {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.3rem;
  background: rgba(244, 241, 234, 0.015);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.gate:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(244, 241, 234, 0.04); }
.gate-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
}
.gate h3 { font-size: 1.15rem; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.gate p { font-size: 0.9rem; color: var(--gray-soft); font-weight: 300; margin-bottom: 1.1rem; }
.gate-mantra {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray);
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
@media (max-width: 920px) { .gate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gate-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
}
.step-num { font-family: var(--serif); font-size: 1.4rem; color: var(--gray); display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.step p { font-size: 0.92rem; color: var(--gray-soft); font-weight: 300; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   THE PACK
   ============================================================ */
.pack-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.pack h2 { margin-bottom: 1rem; }
.pack-copy .section-tag { margin-bottom: 1rem; }
.pack-list { list-style: none; margin-top: 2rem; }
.pack-list li {
  padding: 0.95rem 0 0.95rem 1.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-weight: 300;
  color: var(--gray-soft);
}
.pack-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.45rem;
  width: 7px; height: 7px;
  border: 1px solid var(--bone);
  transform: rotate(45deg);
}

/* Realized Card */
.card {
  background: linear-gradient(155deg, #161616, #050505);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: none;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.card-brand { font-weight: 700; letter-spacing: 0.3em; font-size: 1.1rem; }
.card-no { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--gray); }
.card-label { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.5rem; }
.card-goal { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; color: var(--white); margin-bottom: 1.4rem; }
.card-wave svg { width: 100%; height: 40px; }
.card-wave path { fill: none; stroke: var(--bone); stroke-width: 1.4; opacity: 0.6; }
.card-mantra { font-family: var(--serif); font-style: italic; color: var(--gray-soft); margin: 1.2rem 0 1.8rem; font-size: 1.05rem; }
.card-foot { display: flex; align-items: center; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.card-qr svg { width: 36px; height: 36px; }
.card-qr rect:first-child { fill: var(--bone); }
.card-tag { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gray); }
@media (max-width: 820px) { .pack-inner { grid-template-columns: 1fr; } .card { max-width: 380px; margin: 0 auto; } }

/* ============================================================
   RLYZD BOOKS PROMO
   ============================================================ */
.books-promo { padding-top: 0; }
.books-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.6rem);
  background: radial-gradient(120% 140% at 85% 0%, rgba(244, 241, 234, 0.06), transparent 55%);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.books-panel:hover { border-color: var(--bone); transform: translateY(-4px); }
.books-copy .section-tag { display: block; margin-bottom: 1.1rem; }
.books-copy h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.4rem; }
.books-compare { display: flex; flex-direction: column; gap: 0.2rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gray-soft); margin-bottom: 1.4rem; }
.books-compare b { color: var(--white); font-style: normal; font-family: var(--sans); font-weight: 600; }
.books-lead { color: var(--gray-soft); font-weight: 300; margin-bottom: 1.8rem; max-width: 520px; }
.books-cta { font-weight: 600; font-size: 0.95rem; color: var(--bone); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.3s; }
.books-panel:hover .books-cta { border-color: var(--bone); }

.books-spines { display: flex; justify-content: center; gap: 0.7rem; }
.books-spines .spine {
  position: relative; width: clamp(54px, 7vw, 72px); aspect-ratio: 2 / 3;
  border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, #181818, #050505);
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}
.books-spines svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.books-spines .spine b { position: relative; font-size: 0.5rem; letter-spacing: 0.2em; color: var(--bone); padding-bottom: 0.6rem; }
.books-spines .s1 { transform: rotate(-6deg) translateY(6px); }
.books-spines .s2 { transform: rotate(-2deg); }
.books-spines .s3 { transform: rotate(2deg); }
.books-spines .s4 { transform: rotate(6deg) translateY(6px); }
.books-panel:hover .books-spines .spine { transform: rotate(0) translateY(0); }
@media (max-width: 760px) {
  .books-panel { grid-template-columns: 1fr; }
  .books-spines { order: -1; }
}

/* ============================================================
   PRICING
   ============================================================ */
.tiers {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.tier {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  background: rgba(244, 241, 234, 0.015);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.tier:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.tier-featured {
  border-color: var(--bone);
  background: rgba(244, 241, 234, 0.05);
  position: relative;
}
.tier-flag {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--bone);
  color: var(--black);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.tier h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.tier-price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin-bottom: 1.6rem; color: var(--white); }
.tier-price span { font-family: var(--sans); font-size: 1rem; color: var(--gray); }
.tier ul { list-style: none; flex: 1; margin-bottom: 1.8rem; }
.tier ul li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-soft);
  position: relative;
}
.tier ul li::before { content: "—"; position: absolute; left: 0; color: var(--gray); }
.tier-btn {
  text-align: center;
  text-decoration: none;
  background: var(--bone);
  color: var(--black);
  padding: 0.85rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}
.tier-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(244, 241, 234, 0.16); }
.tier-btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-strong); }
.tier-btn.ghost:hover { background: var(--bone); color: var(--black); }
.pricing-note { text-align: center; margin: 2.6rem auto 0; max-width: 560px; font-size: 0.8rem; color: var(--gray); }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; max-width: 420px; } .tier-featured { order: -1; } }

/* ============================================================
   CIRCLE / CTA
   ============================================================ */
.circle { text-align: center; }
.circle-inner {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background: radial-gradient(120% 120% at 50% 0%, rgba(244, 241, 234, 0.06), transparent 60%);
}
.circle h2 { margin: 1rem 0; }
.circle-lead { color: var(--gray-soft); font-weight: 300; max-width: 480px; margin: 0 auto 2.4rem; }
.signup {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  transition: border-color 0.3s;
}
.signup:focus-within { border-color: var(--bone); }
.signup input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
}
.signup input::placeholder { color: var(--gray); }
.signup-note { margin-top: 1rem; font-size: 0.8rem; color: var(--gray); }
.oath {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--gray-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 0.9rem;
}
.footer-mark svg .ring { fill: none; stroke: var(--bone); stroke-width: 3; }
.footer-mark svg .zed { fill: none; stroke: var(--bone); stroke-width: 6; stroke-linecap: square; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gray-soft); margin-bottom: 1.4rem; }
.footer-fine { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.02em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, .sigil .s-ring-outer, .sigil .s-ring-inner, .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PRINT / PDF — force the full design to render statically
   ============================================================ */
@media print {
  @page { margin: 0; }
  html, body { background: #0a0a0a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #field, .grain { display: none !important; }
  .nav { position: static; background: transparent; border: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, .sigil .s-ring-outer, .sigil .s-ring-inner, .marquee-track { animation: none !important; transition: none !important; }
  .hero { min-height: auto; padding: 4rem 2rem 3rem; }
  section, .gate, .tier, .card, .circle-inner { break-inside: avoid; page-break-inside: avoid; }
  .gates, .how, .pack, .pricing, .circle { break-before: page; page-break-before: always; }
  .card { transform: none; }
  a { text-decoration: none; }
}
