/* ============================================================
   ASTREALOGANDO — design tokens
   Three visual modes live on <body data-mode="...">
   ============================================================ */

:root {
  /* type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --serif-sc: "Cormorant SC", "Cormorant Garamond", serif;
  --sans: "Manrope", -apple-system, system-ui, sans-serif;

  /* brand palette (from logo) */
  --violet-deepest: #1A0F35;
  --violet-deep:    #2A1B4E;
  --violet-mid:     #3D2A6B;
  --violet-soft:    #5A3F8A;
  --gold:           #DAA76C;
  --gold-soft:      #E8C895;
  --gold-deep:      #B68A4E;
  --cream:          #F4EBDE;
  --cream-warm:     #ECE0CC;
  --paper:          #FAF6EE;
  --ink:            #1A1029;
}

/* ===== MODES ===== */

/* MÍSTICO — dark purple, gold, full mystical */
body[data-mode="mistico"] {
  --bg:            var(--violet-deepest);
  --bg-alt:        var(--violet-deep);
  --bg-card:       rgba(255,255,255,0.04);
  --fg:            #F0E6D6;
  --fg-muted:      rgba(240, 230, 214, 0.62);
  --fg-dim:        rgba(240, 230, 214, 0.4);
  --accent:        var(--gold);
  --accent-soft:   var(--gold-soft);
  --line:          rgba(218, 167, 108, 0.22);
  --line-strong:   rgba(218, 167, 108, 0.45);
  --serif-display: var(--serif);
  --logo-on-light: 0;
}

/* EDITORIAL — cream/parchment with purple+gold accents */
body[data-mode="editorial"] {
  --bg:            var(--cream);
  --bg-alt:        var(--cream-warm);
  --bg-card:       rgba(255,255,255,0.55);
  --fg:            var(--violet-deepest);
  --fg-muted:      rgba(26, 15, 53, 0.66);
  --fg-dim:        rgba(26, 15, 53, 0.42);
  --accent:        var(--gold-deep);
  --accent-soft:   var(--gold);
  --line:          rgba(42, 27, 78, 0.18);
  --line-strong:   rgba(42, 27, 78, 0.42);
  --serif-display: var(--serif);
  --logo-on-light: 1;
}

/* MINIMAL — paper background, very subtle accents */
body[data-mode="minimal"] {
  --bg:            var(--paper);
  --bg-alt:        #FFFFFF;
  --bg-card:       #FFFFFF;
  --fg:            #14101D;
  --fg-muted:      rgba(20, 16, 29, 0.62);
  --fg-dim:        rgba(20, 16, 29, 0.38);
  --accent:        var(--violet-mid);
  --accent-soft:   var(--gold-deep);
  --line:          rgba(20, 16, 29, 0.10);
  --line-strong:   rgba(20, 16, 29, 0.32);
  --serif-display: var(--serif);
  --logo-on-light: 1;
}

/* ===== base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  transition: background 280ms ease, color 280ms ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* ===== layout ===== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
section:first-of-type { border-top: 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap, .wrap-narrow { padding: 0 22px; }
}

/* ===== typography ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.left::after { display: none; }
.eyebrow.left::before { display: none; }
.eyebrow.left { padding-left: 0; }

h1, h2, h3, .display {
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
}
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }

h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--fg-muted);
  font-weight: 400;
  font-style: italic;
}

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-display);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.nav-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  transition: background 220ms ease, border 220ms ease;
}
body[data-mode="mistico"] .nav-brand .mark {
  background: var(--violet-deepest);
  border: 1px solid var(--line-strong);
}
.nav-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ===== hero ===== */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-stage { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 28px; }
.hero .lede { max-width: 30em; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-mark {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.hero-mark .logo-disc {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: none;
  transition: background 280ms ease, box-shadow 280ms ease;
}
body[data-mode="mistico"] .hero-mark .logo-disc {
  background: radial-gradient(circle at 50% 40%, var(--violet-mid) 0%, var(--violet-deep) 50%, var(--violet-deepest) 100%);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(218,167,108,0.25);
}
.hero-mark .logo-disc img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  transform: translateY(-8%);
  transition: width 280ms ease, height 280ms ease, transform 280ms ease;
}
body[data-mode="mistico"] .hero-mark .logo-disc img { width: 86%; height: 86%; transform: translateY(-7%); }

/* celestial ring around hero mark (mistico mode only) */
.hero-mark .ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}
body[data-mode="mistico"] .hero-mark .ring { opacity: 1; }
.hero-mark .ring::before, .hero-mark .ring::after {
  content: "✦";
  position: absolute;
  color: var(--accent);
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.hero-mark .ring::before { left: -8px; }
.hero-mark .ring::after { right: -8px; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms ease;
}
body[data-mode="mistico"] .hero-bg { opacity: 1; }

/* ===== services ===== */
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  margin-bottom: 18px;
}
.section-head h2 {
  margin-bottom: 18px;
}
.section-head .lede {
  max-width: 32em;
  margin: 0 auto;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .services { grid-template-columns: 1fr; } }

.service {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 220ms ease;
}
.service:last-child { border-right: 0; }
@media (max-width: 880px) {
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
}
.service:hover { background: var(--bg-card); }
.service-glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 10px;
}
.service h3 { font-style: italic; }
.service-body {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}
.service-meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.service-meta b { color: var(--accent); font-weight: 600; }

/* ===== pricing table ===== */
.pricing {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease;
}
.price-row:hover { padding-left: 8px; }
.price-name {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--fg);
  white-space: nowrap;
}
.price-desc {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}
.price-value {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.price-value small {
  font-size: 12px;
  font-family: var(--sans);
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 4px;
}
@media (max-width: 720px) {
  .price-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .price-name { font-size: 22px; }
  .price-value { font-size: 26px; }
}

/* ===== course (featured) ===== */
.course {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body[data-mode="mistico"] .course {
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(90, 63, 138, 0.4), transparent 70%),
    radial-gradient(50% 70% at 10% 90%, rgba(218, 167, 108, 0.08), transparent 70%),
    var(--violet-deep);
}
.course-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 920px) { .course-grid { grid-template-columns: 1fr; gap: 48px; } }
.course-eyebrow { margin-bottom: 20px; }
.course h2 { margin-bottom: 28px; }
.course-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 36px;
  padding-left: 22px;
  border-left: 1px solid var(--accent);
}
.course-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 520px) { .course-pillars { grid-template-columns: 1fr; } }
.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.pillar-glyph {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.pillar-text {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.4;
}
.pillar-text b {
  display: block;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.course-includes {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
  position: sticky;
  top: 100px;
}
.course-includes h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  margin: 0 0 8px 0;
  color: var(--fg);
}
.course-includes .price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.course-includes .price-tag .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.course-includes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.course-includes li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.course-includes li:last-child { border-bottom: 0; }
.course-includes li::before {
  content: "✦";
  color: var(--accent);
  flex-shrink: 0;
}
.course-includes .btn { width: 100%; justify-content: center; }
.course-includes .vagas {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ===== about ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-portrait {
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about-portrait .placeholder-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, var(--line) 18px 19px);
}
.about-portrait .placeholder-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
}
.about-body p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 24px 0;
  color: var(--fg);
}
.about-body p.muted {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-muted);
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cred {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-muted);
}

/* ===== testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 60px;
  color: var(--accent);
  line-height: 0.6;
  height: 26px;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  color: var(--fg);
  margin: 0;
  flex: 1;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--serif);
  color: var(--accent);
  font-size: 16px;
}
.testimonial .who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.testimonial .name { font-weight: 600; font-size: 14px; }
.testimonial .place { font-size: 12px; color: var(--fg-dim); }

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--fg);
  transition: color 180ms ease;
}
.faq-item:hover .faq-q { color: var(--accent); }
.faq-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--fg-muted);
  background: transparent;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}
.faq-toggle svg { display: block; overflow: visible; }
.faq-toggle .faq-toggle-v {
  transform-origin: 12px 12px;
  transform: scaleY(1);
  transition: transform 320ms cubic-bezier(.6,.05,.3,1);
}
.faq-item:hover .faq-toggle {
  border-color: var(--accent);
  color: var(--accent);
}
.faq-item.open .faq-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.faq-item.open .faq-toggle .faq-toggle-v {
  transform: scaleY(0);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 320ms ease;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  padding: 0 60px 0 0;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 28px;
}

/* ===== footer / CTA ===== */
.cta-final {
  background: var(--violet-deepest);
  color: #F0E6D6;
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
body[data-mode="mistico"] .cta-final { background: #14082B; }
.cta-final h2 { color: #F0E6D6; margin-bottom: 24px; }
.cta-final h2 em { color: var(--gold); }
.cta-final .lede { color: rgba(240, 230, 214, 0.7); margin: 0 auto 36px; max-width: 30em; }
.cta-final .btn-primary { background: var(--gold); color: var(--violet-deepest); }
.cta-final .btn-primary:hover { background: var(--gold-soft); }

footer {
  background: var(--bg);
  color: var(--fg-muted);
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
}
.foot-brand img { height: 32px; }
.foot-links { display: flex; gap: 24px; }

/* ===== celestial flourishes (only in mistico) ===== */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 280ms ease;
}
body[data-mode="mistico"] .stars { opacity: 1; }
body.no-stars .stars { opacity: 0 !important; }
.star {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: twinkle 5.5s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 1); transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.18;        transform: translate(-50%, -50%) scale(0.85); }
}

.divider-sigil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 56px 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.divider-sigil::before, .divider-sigil::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 140px;
  background: var(--line);
}

/* small SVG glyph styles */
.glyph { width: 100%; height: 100%; }
.glyph * { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.glyph .fill { fill: currentColor; stroke: none; }

/* offset content above .stars */
section > .wrap, section > .wrap-narrow { position: relative; z-index: 1; }
