/* Alya website, "Quiet cosmos" theme. Warm off-white on deep near-black,
   generous whitespace, a single celestial gold accent reserved for CTAs and
   highlights. Fraunces serif for display, system sans for body. High contrast,
   editorial, premium, the visual voice of a personal astrology reading. */

:root {
  --bg: #0B0A0F;
  --bg-section: #121017;
  --bg-card: #1A1720;
  --text: #F5F1EA;
  --text-secondary: #A9A2B5;
  --text-tertiary: #6E6878;
  --border: #2A2632;
  --border-light: #221E2A;
  --accent: #E0B345;
  --accent-hover: #EEC868;
  --max-width: 980px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ───── Layout helpers ───── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ───── Navigation ───── */
/* Legal pages opened inside the app's in-app browser can add .in-app to <html> to hide the nav. */
html.in-app .nav { display: none; }
html.in-app .legal-page { padding-top: 16px; }

.nav {
  border-bottom: 1px solid var(--border-light);
  background: rgba(11, 10, 15, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-icon {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  margin: 0 auto 28px;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ───── Hero ───── */
.hero {
  text-align: center;
  padding: 104px 24px 72px;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(224, 179, 69, 0.10), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--text);
}

.hero .lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero .cta-primary {
  display: inline-block;
  padding: 16px 34px;
  background: var(--accent);
  color: #17130a;
  font-size: 17px;
  font-weight: 600;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero .cta-primary:hover {
  background: var(--accent-hover);
  color: #17130a;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero .cta-sub {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #17130a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #17130a;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ───── Sections ───── */
.section {
  padding: 88px 24px;
}

.section-alt {
  background: var(--bg-section);
}

.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0 0 14px;
  text-align: center;
  color: var(--text);
}

.section .lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.5;
}

/* ───── Pillars (value props) ───── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: left;
}

.pillar .icon {
  font-size: 26px;
  display: block;
  margin-bottom: 12px;
}

.pillar h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ───── Steps (how it works) ───── */
.steps {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.step .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  min-width: 44px;
}

.step h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ───── Feature grid ───── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ───── Grounding / honesty block ───── */
.grounding {
  max-width: 720px;
  margin: 0 auto;
}

.grounding h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 20px;
  text-align: center;
  color: var(--text);
}

.grounding p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 20px;
  text-align: center;
}

.grounding p strong {
  color: var(--text);
  font-weight: 600;
}

.disclaimer-note {
  background: rgba(224, 179, 69, 0.07);
  border: 1px solid rgba(224, 179, 69, 0.22);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  margin: 28px auto 0;
  max-width: 640px;
}

/* ───── FAQ ───── */
.faq {
  padding: 80px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.faq h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 32px;
  text-align: center;
}

.faq details {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}

.faq details summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.faq details summary::-webkit-details-marker { display: none; }

.faq details summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 24px;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin: 12px 0 4px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

/* ───── Final CTA ───── */
.final-cta {
  text-align: center;
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #17120a 100%);
  border-top: 1px solid var(--border-light);
}

.final-cta h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--text);
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-section);
  padding: 40px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ───── Legal pages ───── */
.legal-page {
  padding: 64px 24px 96px;
}

.legal-page h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 12px;
}

.legal-page .updated {
  color: var(--text-tertiary);
  font-size: 15px;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 48px 0 16px;
  padding-top: 16px;
}

.legal-page h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal-page p {
  margin: 0 0 16px;
  color: var(--text);
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.legal-page li {
  margin-bottom: 8px;
  color: var(--text);
}

.legal-page strong { font-weight: 600; }

.legal-page code {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-page .toc {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-page .toc h3 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.legal-page .toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal-page .toc a {
  color: var(--text);
  font-weight: 400;
}

.legal-page .toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

.legal-page .warning {
  background: rgba(224, 179, 69, 0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
}

/* ───── Responsive ───── */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 52px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 18px; }
  .section { padding: 64px 20px; }
  .section h2 { font-size: 31px; }
  .final-cta h2 { font-size: 33px; }
  .grounding h2, .faq h2 { font-size: 27px; }
  .legal-page h1 { font-size: 34px; }
  .legal-page h2 { font-size: 22px; }
  .legal-page .toc ol { columns: 1; }
  .nav-links { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .faq { padding: 56px 20px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .nav-links a:nth-child(n+3) { display: none; }
}

/* Comparison table (Alya vs typical astrology apps) */
.compare { max-width: var(--max-width); margin: 0 auto; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.compare-table thead th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }
.compare-table thead th.col-alya { color: var(--accent); }
.compare-table td.feature { color: var(--text-secondary); font-size: 15px; width: 44%; }
.compare-table td.alya { color: var(--text); font-weight: 500; }
.compare-table td.other { color: var(--text-tertiary); }
.compare-table .col-alya { background: rgba(224, 179, 69, 0.05); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-yes { color: var(--accent); font-weight: 700; margin-right: 7px; }
.compare-no { color: var(--text-tertiary); font-weight: 700; margin-right: 7px; }
@media (max-width: 600px) { .compare-table td.feature { width: 40%; } .compare-table th, .compare-table td { padding: 12px 12px; font-size: 14px; } }

/* Render symbol glyphs as text, not colour emoji. */
.feature-card .icon, .pillar .icon, .compare-yes, .compare-no { font-variant-emoji: text; }
