/* =========================================================================
   TENT CHURCH landing page
   Brand palette: gold #C89030 · green #182818 · cream #ECE5DD · black #000
   Fonts: Montserrat (display), Nunito (body)

   index.html is a single full-viewport hero. The .site-header / .site-footer
   / .legal blocks below are still used by privacy.html and terms.html — keep
   them intact.
   ========================================================================= */

:root {
  --gold: #C89030;
  --gold-soft: #E2B560;
  --green: #182818;
  --green-soft: #2A4030;
  --cream: #ECE5DD;
  --cream-deep: #DCD3C5;
  --ink: #0F1411;
  --muted: #6F6A5F;
  --line: rgba(15, 20, 17, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--green);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--green);
}

h1 {
  font-size: clamp(40px, 6.2vw, 80px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--gold-soft);
  margin: 0 0 18px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- hero (index.html) ------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}

/* Gold hairline — same motif as the app's tab bar. */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-soft) 50%, var(--gold) 70%, transparent);
  opacity: 0.9;
  z-index: 2;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(200, 144, 48, 0.22), transparent 70%),
    radial-gradient(circle at 82% 12%, rgba(200, 144, 48, 0.12), transparent 50%),
    radial-gradient(circle at 8% 85%, rgba(200, 144, 48, 0.08), transparent 55%);
  animation: atmosphere 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes atmosphere {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

/* Oversized tent mark — quiet brand texture in place of the old phone mockup. */
.hero__mark {
  position: absolute;
  bottom: -14vh;
  right: -4vw;
  height: 88vh;
  width: auto;
  opacity: 0.06;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
}

@keyframes drift {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-22px) rotate(0deg); }
}

.hero__content {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 900px;
  padding: 96px 24px 48px;
  text-align: center;
}

.hero__logo {
  height: clamp(34px, 5vw, 48px);
  width: auto;
  margin: 0 auto 56px;
}

.hero__content h1 {
  color: #fff;
}

.hero__lede {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 22px auto 44px;
}

/* Staggered entrance. */
.hero__content > * {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.05s; }
.hero__content > :nth-child(2) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.25s; }
.hero__content > :nth-child(4) { animation-delay: 0.35s; }
.hero__content > :nth-child(5) { animation-delay: 0.5s; }

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

/* Slim footer pinned to the bottom of the hero. */
.hero__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.hero__footer-nav {
  display: flex;
  gap: 22px;
}

.hero__footer a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.hero__footer a:hover {
  color: var(--gold-soft);
  opacity: 1;
}

@media (max-width: 560px) {
  .hero__content {
    padding-top: 72px;
  }
  .hero__logo {
    margin-bottom: 40px;
  }
  .hero__footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__mark,
  .hero__atmosphere {
    animation: none;
  }
}

/* ----- header (privacy.html / terms.html) ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 229, 221, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 20px;
  color: var(--green);
}

.site-header__brand img {
  height: 34px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__nav a {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

/* Compound selector beats `.site-header__nav a` so the white sticks. */
a.site-header__cta,
.site-header__nav a.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

a.site-header__cta:hover,
.site-header__nav a.site-header__cta:hover {
  background: var(--green-soft);
  color: #fff;
  opacity: 1;
}

@media (max-width: 720px) {
  .site-header__nav a:not(.site-header__cta) {
    display: none;
  }
}

/* ----- store badges ---------------------------------------------------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-decoration: none;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
  background: #000;
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(226, 181, 96, 0.55);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.65);
}

.store-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-btn__copy small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.store-btn__copy strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ----- footer (privacy.html / terms.html) ------------------------------- */

.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
}

.site-footer__brand img {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  max-width: 320px;
}

.site-footer h4 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--gold-soft);
  margin: 0 0 16px;
  font-weight: 200;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: #fff;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--gold-soft);
  opacity: 1;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ----- legal pages (privacy / terms) ----------------------------------- */

.legal {
  background: var(--cream);
  padding: 88px 0 120px;
}

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

.legal h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.legal__updated {
  color: var(--muted);
  font-size: 15px;
  margin: -16px 0 48px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 19px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal p,
.legal li {
  color: rgba(15, 20, 17, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

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

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 32px;
}
