/* Glyph Sudoku site. Layout mirrors kinarchive.com (Bootstrap 5 + Poppins) with the parchment palette of the Egyptian Hieroglyphs theme. */
:root {
  /* Bronze #c08a1e fails text contrast on parchment, so text uses the deeper #8a5a0b. */
  --primary-color: #8a5a0b;
  --primary-light: #c08a1e;
  --accent-color: #e0b04a;
  --ink-color: #2a1e10;
  --primary-gradient: linear-gradient(135deg, #c08a1e, #e0b04a);
  --hero-gradient: linear-gradient(135deg, #1a140c, #3a2810 55%, #6b4a1a);
  --light-bg: #f2e2bf;
  --white-bg: #fbf5e6;
  --text-color: #2a1e10;
  --text-muted: #6b5a40;
  --border-color: rgba(138, 90, 11, 0.18);
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(42, 30, 16, 0.1);
  --transition: all 0.3s ease;
}

:root[data-theme="dark"] {
  --primary-color: #e0b04a;
  --light-bg: #241b10;
  --white-bg: #1a140c;
  --text-color: #f2e2bf;
  --text-muted: #bfae8a;
  --border-color: rgba(224, 176, 74, 0.18);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #e0b04a;
    --light-bg: #241b10;
    --white-bg: #1a140c;
    --text-color: #f2e2bf;
    --text-muted: #bfae8a;
    --border-color: rgba(224, 176, 74, 0.18);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

body {
  background: var(--white-bg);
  color: var(--text-color);
  font-family:
    Poppins,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
}
.text-primary {
  color: var(--primary-color) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.bg-light {
  background: var(--light-bg) !important;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  background: color-mix(in srgb, var(--white-bg) 92%, transparent) !important;
}
.navbar .nav-link,
.navbar-brand {
  color: var(--text-color) !important;
}
.navbar .nav-link:hover {
  color: var(--primary-color) !important;
}
.navbar-toggler {
  border-color: var(--border-color);
}
:root[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}
.app-icon {
  border-radius: 10px;
}
.theme-toggle {
  border: none;
  background: none;
}
.theme-icon-dark {
  display: none;
}
:root[data-theme="dark"] .theme-icon-light {
  display: none;
}
:root[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.navbar .nav-link.btn-primary,
.navbar .nav-link.btn-primary:hover {
  color: var(--ink-color) !important;
}
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.5rem 1.5rem !important;
}
.btn-primary:hover {
  filter: brightness(1.08);
}

/* Hero */
.hero-section {
  background: var(--hero-gradient);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 100px;
  position: relative;
}
.hero-section .lead,
.hero-section .text-muted {
  color: rgba(255, 255, 255, 0.82) !important;
}
.hero-glyphs {
  font-size: 1.6rem;
  letter-spacing: 0.6rem;
  color: var(--accent-color);
  opacity: 0.9;
}
.bg-primary-soft {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  color: #fff;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}
.stats {
  flex-wrap: wrap;
}
.stat h4 {
  font-weight: 700;
}
.hero-image {
  text-align: center;
  padding: 2rem 0;
}
.phone-frame {
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-height: 78vh;
  width: auto;
  border: 8px solid #1a140c;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-download img {
  height: 54px;
  width: auto;
}
.coming-soon {
  font-size: 0.85rem;
}

/* Privacy promise */
.privacy-card {
  background: var(--white-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}
.privacy-feature h5 {
  font-weight: 600;
}

/* Features */
.feature-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
}
.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
}
.feature-icon {
  align-items: center;
  background: var(--primary-gradient);
  border-radius: 16px;
  color: var(--ink-color);
  display: flex;
  font-size: 1.6rem;
  height: 70px;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 70px;
}

/* Themes / pricing */
.theme-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  padding: 1.5rem;
  text-align: center;
}
.theme-card .glyph-row {
  font-size: 1.6rem;
  letter-spacing: 0.3rem;
  min-height: 2.6rem;
}
.theme-card .price {
  font-weight: 700;
  color: var(--primary-color);
}
.theme-card.featured {
  border: 2px solid var(--primary-light);
}
.badge-free {
  background: var(--accent-color);
  color: var(--ink-color);
}

/* Screenshots */
.screenshot-swiper {
  padding-bottom: 3rem;
}
.screenshot-slide {
  text-align: center;
}
.screenshot-slide img {
  border-radius: 28px;
  box-shadow: var(--box-shadow);
  max-height: 640px;
  width: auto;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/* FAQ */
.accordion-item {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-button {
  background: var(--white-bg);
  border: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 1.5rem;
}
.accordion-button:not(.collapsed) {
  background: var(--light-bg);
  color: var(--primary-color);
  box-shadow: none;
}
:root[data-theme="dark"] .accordion-button::after {
  filter: invert(1);
}
.accordion-body {
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  background: var(--hero-gradient);
  overflow: hidden;
  padding: 100px 0;
  position: relative;
}

/* Other apps (Glyph Grids card on the home page) */
.app-promo {
  align-items: center;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
}
.app-promo img {
  border-radius: 22px;
  height: 96px;
  width: 96px;
}
.app-promo .promo-text {
  flex: 1 1 16rem;
}

/* Subpage header */
.page-header {
  padding-top: 120px !important;
}

/* Legal text */
.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.5rem;
}

/* Footer */
.footer {
  background: var(--light-bg);
  color: var(--text-color);
  padding: 60px 0 30px;
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--primary-color);
}
.footer hr {
  border-color: var(--border-color);
  opacity: 1;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .phone-frame {
    max-height: 560px;
  }
  .privacy-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 575px) {
  .theme-card {
    padding: 1.25rem 0.75rem;
  }
  .theme-card .glyph-row {
    font-size: 1.25rem;
    letter-spacing: 0.15rem;
    white-space: nowrap;
  }
}
