/* Kindred Sanctum — Website Styles */

:root {
  --bg-primary: #0D0A14;
  --bg-card: #1A1228;
  --bg-card-hover: #201636;
  --border: #241A38;
  --border-glow: rgba(124, 58, 237, 0.2);
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --text-primary: #F5F3FF;
  --text-secondary: #A09ABF;
  --text-muted: #6B6685;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* ─── Layout ──────────────────────────────────────────────── */

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

/* ─── Nav ─────────────────────────────────────────────────── */

nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 10, 20, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* ─── Footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
}

/* ─── Hero (index) ────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 32px 0 56px;
  position: relative;
}

/* Radial glow behind the logo */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0.1) 35%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo-wrap .hero-logo {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 480px;
  height: 480px;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 40px var(--accent-glow)) drop-shadow(0 0 80px rgba(124, 58, 237, 0.12));
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: #F5F3FF;
  opacity: 1;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.hero .hero-description {
  position: relative;
  z-index: 2;
}

.hero .hero-app-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.hero .hero-description {
  font-size: 17px;
  color: #A09ABF;
  opacity: 1;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 18, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.badge:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

/* ─── Features ────────────────────────────────────────────── */

.features {
  padding: 56px 0;
}

.features h2 {
  font-size: 26px;
  font-weight: 700;
  color: #F5F3FF;
  opacity: 1;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.01em;
}

.features .section-sub {
  text-align: center;
  color: #A09ABF;
  opacity: 1;
  font-size: 17px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: rgba(26, 18, 40, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #F5F3FF;
  opacity: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* ─── CTA ─────────────────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 56px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 26px;
  font-weight: 700;
  color: #F5F3FF;
  opacity: 1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

.email-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #9333EA);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px var(--accent-glow);
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
  text-decoration: none;
}

.app-store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s;
}

.store-badge:hover {
  border-color: var(--border-glow);
  text-decoration: none;
  color: var(--text-primary);
}

.store-badge svg {
  flex-shrink: 0;
}

/* ─── Legal pages (privacy, terms) ────────────────────────── */

.legal {
  padding: 48px 0;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal li {
  margin-bottom: 6px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 0;
}

.legal-nav a {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.legal-nav-divider {
  color: var(--text-muted);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 0;
}

/* ─── Support page ────────────────────────────────────────── */

.support {
  padding: 48px 0;
}

.support h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.support .subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.support-card {
  background: rgba(26, 18, 40, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.support-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  margin-bottom: 14px;
  font-size: 18px;
}

.support-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.support-card a {
  font-weight: 600;
}

/* ─── Donation / Support sections ─────────────────────────── */

.free-promise {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
}

.free-promise h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.free-promise p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Index page compact donation strip */
.donate-section {
  text-align: center;
  padding: 48px 0;
}

.donate-lead {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.donate-tiers {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.donate-tier-btn {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.donate-tier-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.donate-amount {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.donate-one-time {
  margin-top: 12px;
  margin-bottom: 8px;
}

.donate-one-time a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.donate-one-time a:hover {
  color: var(--text-primary);
}

.donate-footer-note {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 16px;
}

/* Support page full donation section */
.donate-page {
  padding: 48px 0;
}

.donate-heading {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.donate-page .donate-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

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

.tier-highlight {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}

.tier-highlight::after {
  content: 'Most popular';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.tier-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.tier-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.tier-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tier-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tier-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background 0.2s;
}

.tier-button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.donate-page .donate-one-time {
  text-align: center;
  margin-bottom: 8px;
}

.one-time-btn {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 12px;
  transition: background 0.2s;
  margin-bottom: 10px;
}

.one-time-btn:hover {
  background: rgba(124, 58, 237, 0.12);
  text-decoration: none;
}

.donate-page .donate-one-time p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
}

.donate-page .donate-footer-note {
  text-align: center;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 20px 0 32px;
  }

  .hero::before {
    width: 100%;
    height: 300px;
  }

  .hero-logo {
    width: 300px;
    height: 300px;
  }

  .hero h1,
  .features h2,
  .cta h2 {
    font-size: 22px;
  }

  .hero .hero-description,
  .features .section-sub {
    font-size: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  nav .container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .email-form {
    flex-direction: column;
  }

  .app-store-badges {
    flex-direction: column;
    align-items: center;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .donate-tiers {
    flex-direction: column;
    align-items: center;
  }
}
