/* ============================================================
   Velvet Arcana — общая таблица стилей
   Тема: антикварный звёздный атлас (бархат + старинное золото)
   ============================================================ */

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

:root {
  --velvet:        #14101F;
  --velvet-deep:   #0C0913;
  --panel:         #1B1526;
  --panel-edge:    #2A2238;
  --parchment:     #ECE5D6;
  --haze:          #9C93B0;
  --gold:          #C9A86A;
  --gold-soft:     #8C7C54;
  --line:          rgba(201, 168, 106, 0.20);
  --line-faint:    rgba(236, 229, 214, 0.08);

  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Mulish', system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --gap:  clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--velvet);
  color: var(--parchment);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint starfield over the whole velvet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(236,229,214,0.7), transparent),
    radial-gradient(1px 1px at 75% 18%, rgba(236,229,214,0.5), transparent),
    radial-gradient(1px 1px at 42% 62%, rgba(236,229,214,0.6), transparent),
    radial-gradient(1px 1px at 88% 75%, rgba(236,229,214,0.45), transparent),
    radial-gradient(1.4px 1.4px at 12% 82%, rgba(201,168,106,0.6), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(236,229,214,0.4), transparent),
    radial-gradient(1px 1px at 33% 12%, rgba(236,229,214,0.5), transparent),
    radial-gradient(1.2px 1.2px at 92% 38%, rgba(201,168,106,0.5), transparent);
  background-repeat: no-repeat;
  opacity: 0.9;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--parchment); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .01em; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 9, 19, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-faint);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--parchment); letter-spacing: .04em; }
.brand:hover { color: var(--gold); }
.brand .star { color: var(--gold); }
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { font-family: var(--body); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); }
.nav a:hover { color: var(--parchment); }
.nav-cta { color: var(--gold) !important; border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 2px; }
.nav-cta:hover { background: var(--gold); color: var(--velvet-deep) !important; border-color: var(--gold); }

@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem); text-align: center; overflow: hidden; }
.hero .constellation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--haze); margin: 1.5rem auto 0; max-width: 540px; line-height: 1.6; }
.hero .actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .92rem 1.8rem; border-radius: 2px; cursor: pointer; transition: all .2s ease; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--velvet-deep); }
.btn-gold:hover { background: #d8bd86; color: var(--velvet-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Section frame ---------- */
.section { padding: clamp(3.5rem, 8vh, 6rem) 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 5vh, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-head p { color: var(--haze); margin: 1rem 0 0; }

/* constellation divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto; max-width: 320px; color: var(--gold-soft); }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider .dot { width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 4px; padding: 2rem 1.6rem; position: relative; }
.step .num { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.5rem; margin: .8rem 0 .6rem; color: var(--parchment); }
.step p { color: var(--haze); font-size: .95rem; margin: 0; line-height: 1.6; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Reading contents ---------- */
.facets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--panel-edge); border: 1px solid var(--panel-edge); border-radius: 4px; overflow: hidden; }
.facet { background: var(--velvet); padding: 1.8rem; }
.facet h3 { font-size: 1.35rem; color: var(--gold); margin-bottom: .4rem; }
.facet p { color: var(--haze); font-size: .92rem; margin: 0; }
@media (max-width: 560px) { .facets { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-card { max-width: 460px; margin: 0 auto; background: linear-gradient(180deg, var(--panel), var(--velvet)); border: 1px solid var(--line); border-radius: 6px; padding: 2.6rem 2.2rem; text-align: center; }
.price-card .tier { font-family: var(--body); letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; color: var(--haze); font-weight: 600; }
.price-card .amount { font-family: var(--display); font-size: 3.6rem; font-weight: 600; color: var(--parchment); margin: .6rem 0; line-height: 1; }
.price-card .amount span { color: var(--gold); }
.price-card ul { list-style: none; padding: 0; margin: 1.6rem 0; text-align: left; }
.price-card li { padding: .5rem 0 .5rem 1.6rem; position: relative; color: var(--parchment); font-size: .95rem; border-bottom: 1px solid var(--line-faint); }
.price-card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .65rem; }
.price-card li:last-child { border-bottom: none; }
.free-note { color: var(--haze); font-size: .9rem; margin-top: 1rem; }

/* payment badges */
.pay-badges { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.pay-badge { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--haze); border: 1px solid var(--panel-edge); border-radius: 2px; padding: .45rem .8rem; }

/* ---------- Disclaimer strip ---------- */
.note-strip { text-align: center; color: var(--haze); font-size: .88rem; max-width: 640px; margin: 2.5rem auto 0; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-faint); margin-top: 2rem; padding: 3rem 0 2.5rem; background: var(--velvet-deep); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--body); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 700; }
.footer-grid p, .footer-grid li { color: var(--haze); font-size: .9rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--haze); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: var(--parchment); margin-bottom: .6rem; }
.footer-brand .star { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-faint); margin-top: 2.4rem; padding-top: 1.6rem; color: var(--haze); font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(3rem, 7vh, 5rem) 0 4rem; }
.legal-head { max-width: 760px; margin: 0 auto 2.5rem; }
.legal-head .eyebrow { text-align: left; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-head .rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: 1.4rem; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.7rem; color: var(--parchment); margin: 2.4rem 0 .8rem; }
.legal-body h3 { font-size: 1.3rem; color: var(--gold); margin: 1.6rem 0 .5rem; }
.legal-body p, .legal-body li { color: #cfc8ba; font-size: 1rem; line-height: 1.75; }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; margin: .6rem 0 1.2rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body strong { color: var(--parchment); font-weight: 600; }
.legal-body .ph { font-weight: 600; }
.legal-body .meta { color: var(--haze); font-size: .9rem; }
.req-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.req-table td { padding: .7rem 1rem; border: 1px solid var(--panel-edge); font-size: .95rem; }
.req-table td:first-child { color: var(--haze); width: 38%; }
.req-table td:last-child { color: var(--parchment); }

.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); }
.back-link:hover { color: var(--gold); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Tiers (лестница продуктов) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.tier-card { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 6px; padding: 2rem 1.6rem; display: flex; flex-direction: column; }
.tier-card.feature { border-color: var(--line); background: linear-gradient(180deg, var(--panel), var(--velvet)); }
.tier-card .t-name { font-family: var(--body); letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--gold); }
.tier-card .t-price { font-family: var(--display); font-size: 2.8rem; font-weight: 600; color: var(--parchment); line-height: 1; margin: .6rem 0 .2rem; }
.tier-card .t-price span { color: var(--gold); font-size: 1.6rem; }
.tier-card .t-free { font-family: var(--display); font-size: 2.2rem; color: var(--gold); margin: .6rem 0 .2rem; line-height: 1; }
.tier-card .t-desc { color: var(--haze); font-size: .92rem; margin: .8rem 0 1.2rem; flex: 1; line-height: 1.6; }
.tier-card .t-tag { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); border-top: 1px solid var(--line-faint); padding-top: .9rem; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }

.premium-band { margin-top: 1.4rem; background: linear-gradient(120deg, #1a1430, #241b3c); border: 1px solid var(--line); border-radius: 6px; padding: 2rem 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.premium-band .pb-left h3 { font-family: var(--display); font-size: 1.8rem; color: var(--parchment); margin: 0; }
.premium-band .pb-left p { color: var(--haze); font-size: .92rem; margin: .5rem 0 0; max-width: 540px; line-height: 1.6; }
.premium-band .pb-price { font-family: var(--display); font-size: 2.1rem; color: var(--gold); white-space: nowrap; }

/* мелкий дисклеймер под копирайтом */
.footer-disclaimer { color: var(--haze); opacity: .7; font-size: .7rem; line-height: 1.5; margin-top: .9rem; max-width: 720px; }
