/* ============================================================
   Anima App — Landing Page Styles
   Tema: cosmico scuro — viola, oro, bianco
   ============================================================ */

:root {
  --bg:          #07080f;
  --bg-card:     #0f1020;
  --bg-card-2:   #131428;
  --accent:      #9b5de5;
  --accent-gold: #f7b731;
  --accent-light:#c77dff;
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --border:      rgba(155,93,229,.25);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --radius:      14px;
  --transition:  .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent-gold); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 8% 60px;
  overflow: hidden;
}

#stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.logo-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  opacity: .9;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-weight: 400;
  font-size: 60%;
  display: block;
  margin-top: 8px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155,93,229,.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.trial-badge {
  font-size: .85rem;
  color: var(--accent-gold);
  opacity: .85;
}

/* ── HERO VISUAL ─────────────────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}

.orbit-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.center-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-light), var(--accent) 60%, #2d1060);
  box-shadow: 0 0 60px rgba(155,93,229,.6), 0 0 120px rgba(155,93,229,.2);
  animation: pulse 3s ease-in-out infinite;
}

.planet {
  position: absolute;
  border-radius: 50%;
}

.planet-moon {
  width: 40px; height: 40px;
  background: radial-gradient(circle at 35% 35%, #e8e8f0, #8888aa);
  box-shadow: 0 0 20px rgba(232,232,240,.3);
  top: 50%; left: 50%;
  animation: orbit 8s linear infinite;
  transform-origin: -80px 0;
  margin-left: -20px; margin-top: -20px;
}

.planet-chakra {
  width: 28px; height: 28px;
  background: radial-gradient(circle at 35% 35%, #f7b731, #e55d3b);
  box-shadow: 0 0 20px rgba(247,183,49,.4);
  top: 50%; left: 50%;
  animation: orbit 13s linear infinite reverse;
  transform-origin: -130px 0;
  margin-left: -14px; margin-top: -14px;
}

.planet-star {
  width: 20px; height: 20px;
  background: radial-gradient(circle at 35% 35%, #c77dff, #9b5de5);
  box-shadow: 0 0 16px rgba(199,125,255,.5);
  top: 50%; left: 50%;
  animation: orbit 18s linear infinite;
  transform-origin: -150px 30px;
  margin-left: -10px; margin-top: -10px;
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 60px rgba(155,93,229,.6), 0 0 120px rgba(155,93,229,.2); }
  50%      { box-shadow: 0 0 80px rgba(155,93,229,.9), 0 0 160px rgba(155,93,229,.4); }
}

/* ── SECTIONS COMMON ─────────────────────────────────────── */
section {
  padding: 90px 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features { background: var(--bg-card); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.feature-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155,93,229,.15);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-light);
}

.feature-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .4;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: .9rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--accent);
  opacity: .4;
  align-self: center;
  flex-shrink: 0;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials { background: var(--bg-card); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.testimonial-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: .8;
  color: var(--accent);
  opacity: .2;
  position: absolute;
  top: 12px; left: 20px;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-top: 20px;
}

.testimonial-card cite {
  color: var(--accent-gold);
  font-size: .85rem;
  font-style: normal;
}

/* ── FINAL CTA ───────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(155,93,229,.15) 0%, transparent 70%);
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.final-cta .cta-group {
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .875rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-light); }

.copyright {
  color: var(--text-muted);
  font-size: .8rem;
  opacity: .6;
}

/* ── CONTENT PAGES (modules/pagesModule, 28/09/26) ──────────
   /helpc/…, /404/, /maintenance/: the home's palette, fonts,
   header badge and footer, around a readable text column.
   Everything is scoped under body.pg, so the home is untouched. */
.pg {
  --ok:  #8ee6c4;
  --err: #ffaaaa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg #stars { position: fixed; inset: 0; width: 100%; height: 100%; }
.pg-header, .pg-main, .pg footer { position: relative; z-index: 1; }

.pg-header { padding: 28px 0 0; }
.pg-header .logo-badge { margin-bottom: 0; }
.pg-header .logo-badge:hover { color: var(--accent-gold); background: rgba(247,183,49,.08); }

.pg-main { flex: 1; padding: 48px 0 80px; }
.pg-container { max-width: 780px; }

.pg h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 14px; }
.pg h2 {
  text-align: left;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 36px 0 12px;
}
.pg h2:first-child, .pg .pg-card__title { margin-top: 0; }

.pg-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }
.pg-main p { margin-bottom: 14px; }
.pg-main p:last-child { margin-bottom: 0; }
.pg-main ul { margin: 0 0 16px 1.25em; }
.pg-main li { margin-bottom: 8px; }
.pg-main strong { color: #fff; font-weight: 500; }

.pg-card {
  background: rgba(15,16,32,.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.pg-card--quiet { background: rgba(15,16,32,.6); padding: 20px 28px; }

.pg-muted   { color: var(--text-muted); }
.pg-small   { font-size: .875rem; }
.pg-updated { color: var(--accent-gold); font-size: .85rem; letter-spacing: .04em; }
.pg-todo {
  background: rgba(247,183,49,.12);
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 500;
}

.pg-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pg-links--center { justify-content: center; }
.pg-after-links { margin-top: 20px; }
.pg-main ul.pg-plain { list-style: none; margin-left: 0; }

/* Buttons are also <button>s here, which do not inherit the font on their own */
.pg button.btn { font-family: inherit; }
.pg .btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

/* Policy text */
.pg-prose code { font-family: ui-monospace, 'Cascadia Code', monospace; color: var(--accent-light); font-size: .9em; }
.pg-table-wrap { margin: 16px 0 20px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pg-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pg-table th {
  background: var(--bg-card-2);
  color: var(--accent-gold);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-table tr:last-child td { border-bottom: none; }

/* Forms */
.pg-form { display: grid; gap: 20px; }
.pg-field { display: grid; gap: 8px; }
.pg-field label { font-size: .9rem; font-weight: 500; }
.pg-field input, .pg-field select, .pg-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;              /* 16px: iOS does not zoom into the field */
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pg-field textarea { min-height: 180px; resize: vertical; }
.pg-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7b731' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155,93,229,.25);
}
.pg-hint { font-size: .8rem; color: var(--text-muted); }
.pg-form .btn { justify-content: center; }

/* Flash messages (classes set in config_app.php: msg msg--success …) */
.pg .msg {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: .95rem;
}
.pg .msg > div + div { margin-top: 4px; }
.pg .msg--success { background: rgba(47,191,143,.1);  border-color: rgba(47,191,143,.45); color: var(--ok); }
.pg .msg--error   { background: rgba(229,93,93,.1);   border-color: rgba(229,93,93,.45);  color: var(--err); }
.pg .msg--warning { background: rgba(247,183,49,.1);  border-color: rgba(247,183,49,.45); color: var(--accent-gold); }
.pg .msg--info    { background: rgba(155,93,229,.12); border-color: var(--border);        color: var(--accent-light); }

/* The signed-in user's messages */
.pg-main ul.pg-tickets { list-style: none; margin: 0; }
.pg-tickets li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 20px 24px; margin-bottom: 12px; }
.pg-tickets__title { flex: 1 1 240px; }
.pg-tickets .pg-small { flex-basis: 100%; }
.pg-badge {
  font-size: .78rem;
  color: var(--accent-gold);
  border: 1px solid rgba(247,183,49,.5);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* 404 / maintenance */
.pg-center { text-align: center; padding-top: 24px; }
.pg-center .pg-lead { margin-left: auto; margin-right: auto; max-width: 480px; }
.pg-big {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .45;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .pg-main { padding: 32px 0 56px; }
  .pg-card, .pg-card--quiet { padding: 22px 18px; }
  .pg-tickets li { padding: 18px; }
  .pg-links .btn { flex: 1 1 100%; justify-content: center; }
  /* The cookie table becomes one block per cookie: three columns do not fit in 375px */
  .pg-table thead { display: none; }
  .pg-table, .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
  .pg-table tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .pg-table tr:last-child { border-bottom: none; }
  .pg-table td { border-bottom: none; padding: 6px 14px; }
  .pg-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent-gold);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 24px 60px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-inline: auto; }
  .cta-group { justify-content: center; }
  .hero-visual { width: 240px; height: 240px; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
}
