/* Matriz Destino — main stylesheet v1
   Craft bar: astrofala-level. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--md-font-body);
  color: var(--md-text);
  background: var(--md-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 { font-family: var(--md-font-display); color: var(--md-heading); line-height: 1.15; margin: 0 0 1rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-family: var(--md-font-head); color: var(--md-heading); line-height: 1.25; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
a { color: var(--md-violet); }
img { max-width: 100%; }

.container { max-width: var(--md-container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--md-section-pad) 0; }

.section-kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--md-violet); margin-bottom: .9rem;
}
.section-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--md-gold);
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; }
.section-title em { font-style: italic; font-weight: 500; }
.section-sub { font-size: 1.08rem; max-width: 640px; color: #6b6b76; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--md-night-3), var(--md-night));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(231,198,91,.4);
}
.brand-mark svg { display: block; }
.brand-name { font-family: var(--md-font-head); font-weight: 700; color: #fff; font-size: 1.08rem; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--md-gold-bright); }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--md-gold-bright); }
.nav-cta {
  background: linear-gradient(135deg, var(--md-cta-from), var(--md-cta-mid) 45%, var(--md-cta-to)) !important;
  color: var(--md-cta-text) !important; font-weight: 700 !important;
  padding: .55rem 1.25rem; border-radius: var(--md-pill);
  box-shadow: var(--md-gold-glow);
}
.nav-cta .cta-short { display: none; }
.site-header.scrolled {
  background: rgba(10, 6, 24, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(231,198,91,.14);
}
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
  /* Compact header: 360px screens only have 312px of content width (24px
     side padding), and auto-translate makes the CTA text longer
     ("Calculate for free"), so the pill wrapped to 2 lines and overlapped
     the hero eyebrow. Short label + nowrap + smaller brand/CTA fixes it. */
  .site-header .container { height: 64px; }
  .brand { flex: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-name { font-size: .95rem; white-space: nowrap; }
  .site-nav { flex: none; }
  .nav-cta { font-size: .85rem; padding: .45rem .9rem; white-space: nowrap; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 4.25rem 0 4rem;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(109, 40, 217, .30), transparent 60%),
    radial-gradient(640px 400px at 85% 70%, rgba(201, 162, 39, .08), transparent 60%),
    linear-gradient(180deg, #0B0722 0%, #0A0618 55%, #070412 100%);
  color: #fff;
  overflow: hidden;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
/* Sacred geometry: static faint octagram — calm premium, never competing with text */
.hero-geo {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-geo svg { width: min(880px, 120vw); height: auto; opacity: .22; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 110%, transparent 55%, rgba(7,4,18,.6) 100%);
}
.hero .container { position: relative; z-index: 2; text-align: center; max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--md-font-head);
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--md-gold-pale);
  margin-bottom: 1rem; margin-top: .5rem; white-space: nowrap;
}
@media (max-width: 560px) {
  .eyebrow { font-size: .64rem; letter-spacing: .18em; gap: .6rem; }
  .eyebrow::before, .eyebrow::after { width: 28px; }
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231,198,91,.6));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(231,198,91,.6), transparent); }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  color: var(--md-gold-pale);
  border: 1px solid rgba(231, 198, 91, .35);
  background: rgba(231, 198, 91, .08);
  padding: .5rem 1.1rem; border-radius: var(--md-pill);
  margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--md-gold-bright); box-shadow: 0 0 12px var(--md-gold-bright); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  color: #fff;
  font-family: var(--md-font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.08;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 500; }
.gold-text {
  background: linear-gradient(100deg, var(--md-gold-pale) 5%, var(--md-gold-bright) 40%, var(--md-gold) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: rgba(255,255,255,.78); font-size: clamp(.95rem, 1.8vw, 1.1rem); max-width: 640px; margin: 0 auto 1.2rem; }

/* Calculator card */
.calc-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(231, 198, 91, .22);
  border-radius: var(--md-radius);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 1.8rem;
  max-width: 620px; margin: 0 auto;
  text-align: left;
}
.calc-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; text-align: center; font-weight: 600; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0.9rem; }
@media (max-width: 520px) { .calc-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.72); margin-bottom: .45rem; }
.field-label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.72); margin-bottom: .45rem; }
.pill-group { display: flex; gap: .5rem; }
.pill {
  flex: 1; padding: .8rem .5rem; border-radius: var(--md-radius-sm);
  border: 1px solid rgba(231,198,91,.28); background: rgba(10,6,24,.55);
  color: rgba(255,255,255,.65); font-family: var(--md-font-head);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.pill:hover { border-color: rgba(231,198,91,.55); color: #fff; }
.pill.active {
  background: linear-gradient(135deg, rgba(231,198,91,.22), rgba(231,198,91,.10));
  border-color: var(--md-gold-bright); color: var(--md-gold-pale);
}
.pill:focus-visible { outline: 2px solid var(--md-gold-bright); outline-offset: 2px; }
.field input {
  width: 100%;
  background: rgba(10, 6, 24, .55);
  border: 1px solid rgba(231, 198, 91, .28);
  border-radius: var(--md-radius-sm);
  color: #fff; font-size: 1.05rem; font-family: var(--md-font-body);
  padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(255,255,255,.32); }
.field input:focus { outline: none; border-color: var(--md-gold-bright); box-shadow: 0 0 0 3px rgba(231,198,91,.18); }
.field .hint { font-size: .76rem; color: rgba(255,255,255,.45); margin-top: .2rem; }
.field-error { display: none; font-size: .82rem; color: #ffb4a2; margin-top: .4rem; font-weight: 500; }
.field.invalid input { border-color: #e0655a; }
.field.invalid .field-error { display: block; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%;
  background: linear-gradient(135deg, var(--md-cta-from), var(--md-cta-mid) 45%, var(--md-cta-to));
  color: var(--md-cta-text);
  font-family: var(--md-font-head); font-weight: 700; font-size: 1.08rem;
  border: none; cursor: pointer;
  padding: 1rem 1.5rem; border-radius: var(--md-pill);
  box-shadow: var(--md-gold-glow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-gold[hidden] { display: none; }
.btn-gold:active { transform: translateY(0); }
.btn-gold .arrow { font-size: 1.2em; line-height: 1; }
.privacy-micro { text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); margin: .9rem 0 0; }

.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 2rem; padding: 0; list-style: none; }
.hero-proof li { color: rgba(255,255,255,.55); font-size: .82rem; letter-spacing: .06em; }
.hero-proof li:not(:last-child)::after { content: "·"; color: rgba(231,198,91,.5); margin: 0 1.1rem; }
.hero-proof .tick { display: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--md-surface); border-bottom: 1px solid var(--md-divider); padding: 1.6rem 0; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-icon {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,40,217,.12), rgba(201,162,39,.14));
  border: 1px solid rgba(109,40,217,.18);
  display: grid; place-items: center; font-size: 1.25rem; color: var(--md-violet);
}
.trust-item strong { display: block; font-size: .92rem; color: var(--md-heading); }
.trust-item span { font-size: .8rem; color: #8a8a94; }
@media (max-width: 860px) { .trust .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal cards ---------- */
.reveal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .reveal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reveal-grid { grid-template-columns: 1fr; } }
.reveal-card {
  background: var(--md-surface);
  border: 1px solid var(--md-divider);
  border-radius: var(--md-radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--md-card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.reveal-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--md-violet), var(--md-gold));
  opacity: 0; transition: opacity .2s;
}
.reveal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -12px rgba(10,6,24,.16); }
.reveal-card:hover::before { opacity: 1; }
.reveal-num {
  font-family: var(--md-font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  color: var(--md-gold-deep); background: var(--md-gold-pale);
  display: inline-block; padding: .3rem .7rem; border-radius: var(--md-pill); margin-bottom: .9rem;
}
.reveal-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.reveal-card p { font-size: .94rem; color: #6b6b76; margin: 0; }

/* ---------- Arcana strip ---------- */
.arcana { background: linear-gradient(180deg, var(--md-night) 0%, var(--md-night-2) 100%); color: #fff; overflow: hidden; }
.arcana .section-kicker { color: var(--md-gold-bright); }
.arcana .section-title { color: #fff; }
.arcana .section-sub { color: rgba(255,255,255,.66); }
.arcana-strip {
  display: flex; gap: 1rem; margin-top: 2.5rem;
  overflow-x: auto; padding: .5rem .2rem 1.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--md-gold) transparent;
}
.arcana-card {
  flex: 0 0 148px; scroll-snap-align: start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(231,198,91,.2);
  border-radius: 16px; padding: 1.3rem .8rem; text-align: center;
  transition: transform .2s, border-color .2s;
}
.arcana-card:hover { transform: translateY(-4px); border-color: rgba(231,198,91,.55); }
.arcana-num {
  font-family: var(--md-font-display); font-weight: 600; font-size: 2.1rem;
  background: linear-gradient(120deg, var(--md-gold-pale), var(--md-gold-bright) 60%, var(--md-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .4rem; line-height: 1;
}
.arcana-name { font-size: .86rem; color: rgba(255,255,255,.85); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--md-surface); border: 1px solid var(--md-divider); border-radius: var(--md-radius);
  padding: 1.8rem 1.5rem; text-align: center; box-shadow: var(--md-card-shadow);
}
.step-n {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.5);
  background: var(--md-night-2);
  color: var(--md-gold-bright); font-family: var(--md-font-display); font-weight: 600; font-size: 1.35rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.08rem; }

/* ---------- Energy teaser ---------- */
.energy {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(109,40,217,.22), transparent 65%),
    linear-gradient(180deg, var(--md-night-2), var(--md-night));
  color: #fff; text-align: center;
}
.energy .section-title { color: #fff; }
.energy p.lead { color: rgba(255,255,255,.72); max-width: 600px; margin: 0 auto 1.8rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(231,198,91,.5); color: var(--md-gold-pale);
  padding: .9rem 1.8rem; border-radius: var(--md-pill);
  font-weight: 600; text-decoration: none; font-family: var(--md-font-head);
  transition: background .2s, transform .2s;
}
.btn-outline:hover { background: rgba(231,198,91,.1); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 2.2rem auto 0; }
.faq-item { background: var(--md-surface); border: 1px solid var(--md-divider); border-radius: 14px; margin-bottom: .8rem; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--md-font-head); font-weight: 600; font-size: 1rem; color: var(--md-heading);
  padding: 1.15rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .faq-icon { color: var(--md-violet); font-size: 1.4rem; font-weight: 400; transition: transform .25s; flex: none; }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { padding: 0 1.4rem 1.25rem; margin: 0; font-size: .95rem; color: #6b6b76; }

/* ---------- Donate ---------- */
.donate .container { max-width: 720px; text-align: center; }
.donate-card {
  background: var(--md-surface); border: 1px dashed rgba(201,162,39,.55); border-radius: var(--md-radius);
  padding: 2.2rem 1.8rem; box-shadow: var(--md-card-shadow);
}
.donate-card h2 { font-size: 1.4rem; }
.donate-card p { color: #6b6b76; font-size: .96rem; }
.btn-donate {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem;
  background: var(--md-night-2); color: var(--md-gold-pale);
  padding: .85rem 1.7rem; border-radius: var(--md-pill); text-decoration: none;
  font-weight: 600; font-family: var(--md-font-head);
  border: 1px solid rgba(231,198,91,.35);
  transition: transform .2s, background .2s;
}
.btn-donate:hover { transform: translateY(-2px); background: var(--md-night-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--md-night); color: rgba(255,255,255,.62); padding: 3.5rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: .86rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-col a:hover { color: var(--md-gold-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Sample octagram on homepage (2026-10-13) */
.sample-section { padding: 3rem 0; }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .sample-grid { grid-template-columns: 1fr; } }
.sample-chart { background: radial-gradient(480px 480px at 50% 40%, #17123a 0%, #0d0a24 75%);
  border: 1px solid rgba(231,198,91,.16); border-radius: 20px; padding: 1.2rem; position: relative; }
.sample-chart .sample-tag { position: absolute; top: 1rem; left: 1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: #0d0a24; background: #e7c65b; border-radius: 999px; padding: .3rem .8rem; }
.sample-octagram { display: block; width: 100%; height: auto; }
.sample-octagram .octa-line { stroke: rgba(231,198,91,.28); stroke-width: 1.5; fill: none; }
.sample-octagram .octa-line.inner { stroke: rgba(167,139,250,.22); }
.sample-octagram .octa-channel-tail { stroke: #a78bfa; stroke-width: 3; fill: none; stroke-linecap: round; opacity: .85; }
.sample-octagram .octa-channel-money { stroke: #e7c65b; stroke-width: 3; fill: none; stroke-linecap: round; opacity: .9; }
.sample-octagram .octa-channel-love { stroke: #e39ab0; stroke-width: 3; fill: none; stroke-linecap: round; opacity: .9; }
.sample-octagram .node-bg { fill: #1c1640; stroke: #e7c65b; stroke-width: 1.5; }
.sample-octagram .node-num { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; fill: #f7eed3; font-size: 22px; }
.sample-copy .section-title { margin-bottom: 1rem; }
.sample-copy p { margin-bottom: 1rem; color: var(--md-text-dim); }
.sample-points { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.sample-points li { margin-bottom: .6rem; color: var(--md-text); }
.sample-points .tick { color: #2e7d32; font-weight: 700; margin-right: .5rem; }

/* Free badge pill inside calc card (2026-10-13) */
.calc-card .free-pill { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; color: #e7c65b;
  border: 1px solid rgba(231,198,91,.35); border-radius: 999px; padding: .45rem 1rem;
  background: rgba(231,198,91,.06); }
.calc-card .free-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #e7c65b; }
.calc-card-head { text-align: center; margin-bottom: 1.2rem; }
.calc-card-head h2 { margin-bottom: 0 !important; font-size: 1.05rem; }

/* Arcano illustrations (2026-10-13) */
.arcano-art { margin: 2rem auto 0; max-width: 420px; }
.arcano-art img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(231,198,91,.25); box-shadow: 0 24px 60px -18px rgba(0,0,0,.7); display: block; }

.oque-grid { max-width: 720px; margin-top: 1.5rem; }
.oque-grid p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.1rem; color: var(--md-ink); }

/* Related-tools grid (2026-11-01): .reveal-grid/.reveal-card reused as links */
a.reveal-card { text-decoration: none; }
