/* Sacred Light — matches app AppColors / AppFonts */
:root {
  --ink: #2b2621;
  --muted: #6e675e;
  --accent: #b4841c;
  --accent-soft: #eadfbe;
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --hairline: rgba(43, 38, 33, 0.08);
  --like: #e0607a;
  --streak: #e1911c;
  --shadow: 0 18px 48px rgba(43, 38, 33, 0.1);
  --serif: "Bitter", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --page-pad: clamp(16px, 4vw, 40px);
  --content: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 243, 236, 0.92);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav__link.is-active,
.site-nav__link:hover {
  color: var(--accent);
}

.nav-drawer-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-drawer-input:checked ~ .site-header__inner .nav-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-drawer-input:checked ~ .site-header__inner .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-drawer-input:checked ~ .site-header__inner .nav-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
}

.mobile-nav a:not(.mobile-nav__cta):hover {
  color: var(--accent);
}

.mobile-nav__cta {
  border-bottom: 0 !important;
  margin-top: 12px;
  text-align: center;
  color: #fff !important;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Hero —— */
.hero {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  padding: 36px 0 24px;
  display: grid;
  gap: 28px;
  position: relative;
}

.hero__glow {
  display: none;
}

.hero__content {
  position: relative;
  max-width: 34rem;
  padding-top: 4px;
}

.hero__brand {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}

.hero__lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.5vw, 1.08rem);
  max-width: 32rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__visual img {
  width: 100%;
  height: auto;
}

/* —— Sections —— */
.section-shell {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.features {
  padding: 56px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--serif);
}

.features h2,
.cta-band h2,
.legal-shell h1,
.form-shell h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

.features h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 16ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-band {
  padding: 28px 0 64px;
}

.cta-band__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #1f1b17;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  border-color: rgba(43, 38, 33, 0.2);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding: 48px 0 24px;
}

.site-footer__inner {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
  align-items: start;
}

.site-footer__brand p {
  color: var(--muted);
  max-width: 28rem;
  margin: 12px 0 16px;
  font-size: 0.95rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.store-row span {
  color: var(--hairline);
  color: var(--muted);
  opacity: 0.55;
}

.store-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-footer h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* —— Legal / forms —— */
.legal-page,
.form-page {
  padding: 40px 0 64px;
}

.legal-shell,
.form-shell {
  width: min(760px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.legal-shell h1,
.form-shell h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
}

.legal-updated,
.lede,
.form-alt {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-body {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-body ul {
  padding-left: 1.15rem;
}

.site-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.site-form label {
  display: grid;
  gap: 8px;
}

.site-form span {
  font-size: 0.88rem;
  font-weight: 600;
}

.site-form span em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.site-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.form-banner.is-success {
  background: #eaf0e6;
  color: var(--ink);
}

.form-banner.is-error {
  background: #f7e8e6;
  color: var(--ink);
}

.form-alt {
  margin-top: 16px;
}

.form-alt a {
  color: var(--accent);
  font-weight: 600;
}

/* —— Verse share page —— */
body.verse-page {
  background: var(--verse-bg, var(--bg));
  font-family: var(--serif);
}

.verse-shell {
  width: min(720px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.version-chip {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 10px;
}

.verse-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 28px) clamp(16px, 3vw, 24px);
}

.reference {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--serif);
  font-weight: 700;
}

.verse-text {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.share-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--sans);
}

.cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
  font-family: var(--sans);
}

.store-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* —— Desktop —— */
@media (min-width: 960px) {
  .site-header__inner {
    min-height: 72px;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding-top: 20px;
    padding-bottom: 36px;
    gap: 40px;
  }

  .hero__content {
    padding-top: 8px;
  }
}

/* —— Tablet —— */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner,
  .cta-band__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-band__inner {
    align-items: start;
  }

  .site-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .site-footer__col--contact {
    grid-column: 1 / -1;
  }
}

/* —— Phone —— */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .nav-drawer-input:checked ~ .mobile-nav {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 8px var(--page-pad) 20px;
    border-top: 1px solid var(--hairline);
    background: var(--bg);
    animation: navDrop 0.28s ease;
  }

  body:has(#nav-drawer:checked) {
    overflow: hidden;
  }

  .hero {
    padding-top: 24px;
    gap: 24px;
  }

  .hero__content {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .hero__lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__actions .btn,
  .cta-band__inner .hero__actions .btn,
  .cta-stack .btn {
    width: 100%;
  }

  .cta-band__inner {
    text-align: center;
    justify-items: center;
  }

  .cta-band__inner .hero__actions {
    width: 100%;
    max-width: 280px;
    flex-direction: column;
    margin: 0 auto;
  }

  .features {
    padding: 40px 0 24px;
    text-align: center;
  }

  .features h2 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-band {
    padding: 20px 0 48px;
  }

  .cta-band__inner {
    padding: 22px 18px;
  }

  .site-footer {
    padding: 40px 0 28px;
  }

  .site-footer__inner {
    gap: 28px;
    text-align: center;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__brand p {
    margin: 10px 0 14px;
    max-width: 22rem;
  }

  .store-row {
    justify-content: center;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    text-align: left;
    padding: 20px 0 0;
    border-top: 1px solid var(--hairline);
  }

  .site-footer__col {
    gap: 10px;
  }

  .site-footer__col--contact {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 8px;
  }

  .site-footer__bottom {
    margin-top: 24px;
    text-align: center;
  }

  .legal-page,
  .form-page {
    padding: 28px 0 48px;
  }

  .site-form .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero__brand {
    font-size: 2.2rem;
  }

  .feature-card {
    padding: 18px 16px;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__col {
    align-items: center;
  }
}

/* —— SEO / topic / FAQ —— */
.hero__keywords {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__seo {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
}

.seo-block,
.faq,
.topic-page .topic-hero {
  padding: clamp(48px, 8vw, 88px) 0;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.seo-grid article,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}

.seo-grid h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.seo-grid p,
.faq-item p,
.topic-lede {
  margin: 0;
  color: var(--muted);
}

.seo-links {
  margin: 28px 0 0;
  color: var(--muted);
}

.seo-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.seo-links a:hover {
  text-decoration: underline;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.1rem;
  list-style: none;
}

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

.faq-item[open] summary {
  margin-bottom: 10px;
  color: var(--accent);
}

.topic-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 18ch;
}

.topic-lede {
  max-width: 62ch;
  font-size: 1.08rem;
  margin-bottom: 22px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible,
.reveal.reveal-delay-1.is-visible,
.reveal.reveal-delay-2.is-visible,
.reveal.reveal-delay-3.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

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

  .topic-hero h1 {
    max-width: none;
  }
}
