/* ============================================================
   JAINA · Editorial mysticism
   ============================================================ */

/* —— Reset & base —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, a { cursor: pointer; font: inherit; color: inherit; }
button { background: none; border: none; }
a { text-decoration: none; }

/* —— Design tokens —— */
:root {
  /* Палитра */
  --ink: #0a0a14;
  --ink-soft: #14141f;
  --paper: #f0e9d8;
  --paper-dim: rgba(240, 233, 216, 0.62);
  --paper-faint: rgba(240, 233, 216, 0.28);
  --gold: #d4af5f;
  --gold-deep: #a07a30;
  --gold-glow: rgba(212, 175, 95, 0.18);
  --indigo: #2a1f4d;
  --plum: #3d1f3d;
  --rule: rgba(212, 175, 95, 0.22);

  /* Типографика */
  --serif: "Cormorant", "Cormorant Garamond", "Georgia", serif;
  --sans: "Manrope", "PT Sans", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Ритм */
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(0.75rem, 1.5vw, 1.25rem);
  --space-3: clamp(1.25rem, 2.5vw, 2rem);
  --space-4: clamp(2rem, 4vw, 3rem);
  --space-5: clamp(3rem, 6vw, 5rem);
  --space-6: clamp(4.5rem, 10vw, 9rem);

  --col: 1240px;
  --col-narrow: 880px;
}

body {
  font-family: var(--sans);
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  line-height: 1.65;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 20% -10%, var(--indigo) 0%, transparent 55%),
    radial-gradient(ellipse at 110% 50%, var(--plum) 0%, transparent 55%),
    var(--ink);
  background-attachment: fixed;
  letter-spacing: 0.005em;
}

/* —— Текстура шума на фоне —— */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.9'/></svg>");
}

main, header, footer, section { position: relative; z-index: 1; }

/* —— Type system —— */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.h-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.2;
  color: var(--paper);
}

.gold { color: var(--gold); }
.muted { color: var(--paper-dim); }
.center { text-align: center; }

/* —— Container —— */
.container {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container-narrow { max-width: var(--col-narrow); margin: 0 auto; padding: 0 var(--space-3); }

/* —— Rules —— */
.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: var(--space-4) 0;
}
.rule-vertical {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.85) 0%, rgba(10, 10, 20, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.site-header .logo small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: var(--paper-faint);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.site-header nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.site-header nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--gold); }
.site-header nav .login-btn {
  border: 1px solid var(--rule);
  padding: 0.55rem 1rem;
  color: var(--paper);
  transition: all 0.2s;
}
.site-header nav .login-btn:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

@media (max-width: 720px) {
  .site-header nav { gap: var(--space-2); }
  .site-header nav a:not(.login-btn) { display: none; }
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  padding: 9rem var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.5) 0%,
    rgba(10, 10, 20, 0.7) 50%,
    var(--ink) 100%
  );
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.65;
  filter: contrast(1.05) saturate(0.8);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(10,10,20,0.6) 80%);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(4.5rem, 14vw, 10rem);
}
.hero h1 .amp {
  display: inline-block;
  margin: 0 -0.05em;
  color: var(--gold);
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--paper-dim);
  max-width: 620px;
  margin: 0 auto var(--space-3);
  line-height: 1.35;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero-stats span::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.55rem;
}

/* —— CTA button —— */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.2rem 2.4rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px var(--gold-glow);
}
.btn-cta:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--gold-glow);
}
.btn-cta .arrow { font-size: 1.1em; transition: transform 0.3s; }
.btn-cta:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* —— Section base —— */
.section {
  padding: var(--space-6) 0;
  position: relative;
}
.section-head {
  margin-bottom: var(--space-5);
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 620px;
}

/* —— About section (text-heavy editorial) —— */
.about {
  padding-top: var(--space-5);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  align-items: start;
}
.about-grid .lhs { position: sticky; top: 7rem; }
.about-grid p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.45;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.about-grid p + p { color: var(--paper-dim); font-size: 1.1rem; font-style: normal; font-family: var(--sans); }
.about-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  color: var(--gold);
  padding: var(--space-3) 0;
  margin: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .lhs { position: static; }
}

/* —— Features (numbered list) —— */
.features {
  background: linear-gradient(180deg, transparent, rgba(20, 20, 31, 0.5), transparent);
}
.feat-list { margin-top: var(--space-4); }
.feat-item {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  transition: padding 0.5s ease;
}
.feat-item:last-child { border-bottom: 1px solid var(--rule); }
.feat-item:hover { padding-left: 1.5rem; }
.feat-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.3rem;
}
.feat-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}
.feat-desc {
  color: var(--paper-dim);
  font-size: 1.02rem;
}
@media (max-width: 720px) {
  .feat-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

/* —— Tariff cards —— */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.tariff {
  border: 1px solid var(--rule);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 20, 31, 0.4), rgba(10, 10, 20, 0.2));
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.tariff::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--gold-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.tariff:hover::before { opacity: 1; }
.tariff:hover { border-color: var(--gold); transform: translateY(-4px); }
.tariff-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 95, 0.08), rgba(10, 10, 20, 0.3));
}
.tariff-featured::after {
  content: "выбор многих";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.tariff-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.1;
}
.tariff-name .emoji { font-style: normal; margin-right: 0.4rem; }
.tariff-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 1rem 0 0.3rem;
  color: var(--gold);
  line-height: 1;
}
.tariff-price .unit {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--paper-faint);
  display: block;
  margin-top: 0.5rem;
}
.tariff-period {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 1.5rem;
}
.tariff ul {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}
.tariff ul li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--paper-dim);
  border-bottom: 1px solid rgba(212, 175, 95, 0.08);
}
.tariff ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: var(--gold);
  font-size: 0.7rem;
}
.tariff .btn-ghost { margin-top: 1rem; align-self: flex-start; }
.tariff-featured .btn-ghost { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.tariff-featured .btn-ghost:hover { background: var(--paper); }

@media (max-width: 880px) {
  .tariffs-grid { grid-template-columns: 1fr; }
}

/* —— Practices (Tarot / Runes / Lenormand / I-Ching) —— */
.practices {
  background: linear-gradient(180deg, transparent, rgba(20, 20, 31, 0.5), transparent);
}
.prac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.prac-item {
  padding: var(--space-3) var(--space-2);
  border-right: 1px solid var(--rule);
  text-align: center;
  position: relative;
  transition: background 0.4s;
}
.prac-item:last-child { border-right: none; }
.prac-item:hover { background: var(--gold-glow); }
.prac-glyph {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.prac-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.prac-desc {
  font-size: 0.88rem;
  color: var(--paper-dim);
}
@media (max-width: 880px) {
  .prac-grid { grid-template-columns: repeat(2, 1fr); }
  .prac-item:nth-child(2) { border-right: none; }
  .prac-item:nth-child(1), .prac-item:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* —— Privacy/Security blurb —— */
.security {
  padding-top: var(--space-5);
}
.security-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.security-grid p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.4;
}
.security-grid .links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.security-grid .links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  transition: padding 0.3s, color 0.3s;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
}
.security-grid .links a:hover { padding-left: 1rem; color: var(--gold); }
.security-grid .links a span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--paper-faint);
}
@media (max-width: 880px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* —— FAQ accordion —— */
.faq-item {
  border-top: 1px solid var(--rule);
  padding: var(--space-3) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
  gap: var(--space-2);
}
.faq-question::after {
  content: "+";
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 0.5;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
  color: var(--paper-dim);
  font-size: 1.02rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 1.5rem;
}

/* —— CTA section at bottom —— */
.cta-band {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  background: linear-gradient(180deg, transparent, rgba(212, 175, 95, 0.04), transparent);
}
.cta-band h2 { margin-bottom: 1.5rem; }
.cta-band .btn-cta { margin-top: 1.5rem; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-4) var(--space-3) var(--space-3);
  margin-top: var(--space-5);
}
.footer-grid {
  max-width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4);
  align-items: start;
}
.footer-grid .brand .logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.footer-grid .brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--paper-dim);
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  padding: 0.4rem 0;
  color: var(--paper-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--col);
  margin: var(--space-3) auto 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* —— Legal pages (terms / privacy / refund) —— */
.legal {
  max-width: var(--col-narrow);
  margin: 0 auto;
  padding: 9rem var(--space-3) var(--space-5);
}
.legal h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.legal .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}
.legal h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: var(--space-4) 0 1rem;
  color: var(--gold);
}
.legal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.4rem;
  margin: var(--space-3) 0 0.7rem;
}
.legal p { margin-bottom: 1rem; line-height: 1.75; color: var(--paper); }
.legal ul, .legal ol { margin: 0.5rem 0 1.5rem 1.5rem; }
.legal li { margin-bottom: 0.7rem; line-height: 1.65; color: var(--paper-dim); }
.legal strong { color: var(--paper); font-weight: 600; }
.legal a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.legal a:hover { text-decoration-color: var(--gold); }
.legal hr { border: none; height: 1px; background: var(--rule); margin: var(--space-3) 0; }
.legal code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(212, 175, 95, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--gold);
}

/* —— Dashboard —— */
.dashboard {
  padding: 8rem var(--space-3) var(--space-5);
  max-width: var(--col);
  margin: 0 auto;
}
.dash-greet { margin-bottom: var(--space-4); }
.dash-greet h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}
.dash-greet p { color: var(--paper-dim); font-size: 1.1rem; }
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-4);
}
@media (max-width: 880px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  border: 1px solid var(--rule);
  padding: var(--space-3);
  background: rgba(20, 20, 31, 0.4);
}
.dash-card h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.dash-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.dash-stat:last-child { border-bottom: none; }
.dash-stat .label { color: var(--paper-dim); font-size: 0.92rem; }
.dash-stat .value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--paper);
}
.dash-stat .value.gold { color: var(--gold); }

.reading-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: start;
}
.reading-item:last-child { border-bottom: none; }
.reading-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  padding-top: 0.3rem;
}
.reading-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 0.3rem;
}
.reading-cards {
  font-size: 0.88rem;
  color: var(--paper-dim);
}
.reading-feedback { font-size: 1rem; padding-top: 0.3rem; }

/* —— Login —— */
.login {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--space-3) var(--space-4);
}
.login-card {
  max-width: 480px;
  border: 1px solid var(--rule);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  background: rgba(20, 20, 31, 0.5);
}
.login-card h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.login-card p {
  color: var(--paper-dim);
  margin-bottom: var(--space-3);
}
.login-card #telegram-login-target {
  display: flex;
  justify-content: center;
  margin: var(--space-3) 0;
}
.login-card .alt {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--paper-faint);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Stagger reveal for feature items —— */
.feat-item.reveal:nth-child(1) { transition-delay: 0.05s; }
.feat-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.feat-item.reveal:nth-child(3) { transition-delay: 0.15s; }
.feat-item.reveal:nth-child(4) { transition-delay: 0.2s; }
.feat-item.reveal:nth-child(5) { transition-delay: 0.25s; }
.feat-item.reveal:nth-child(6) { transition-delay: 0.3s; }

/* —— Scroll indicator —— */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: hint 3s ease-in-out infinite;
}
.scroll-hint::after {
  content: "↓";
  font-size: 1.2rem;
  color: var(--gold);
}
@keyframes hint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* —— Star decorations —— */
.star {
  position: absolute;
  color: var(--gold);
  font-size: 0.6rem;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

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