/* ════════════════════════════════════════════════════════════════
   MY PRAYER CLOCK — Landing Page Styles
   Aesthetic: Sacred Minimalism | DM Serif Display + Plus Jakarta Sans
   ════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
}

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

/* Mockup images override the global max-width constraint */
.mockup-img {
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --cream:           #FAF8F5;
  --cream-warm:      #F5F0E8;
  --lavender-soft:   #EDE8F5;
  --lavender-mid:    #E0D8F0;
  --amber:           #F5A623;
  --amber-light:     #FBBF4A;
  --amber-dark:      #D4891B;
  --amber-glow:      rgba(245, 166, 35, 0.18);
  --amber-glow-lg:   rgba(245, 166, 35, 0.10);
  --text:            #1A1814;
  --text-mid:        #3D3830;
  --text-muted:      #7A7268;
  --text-light:      #A89F95;
  --card-bg:         rgba(255, 255, 255, 0.80);
  --card-border:     rgba(255, 255, 255, 0.90);
  --shadow-sm:       0 2px 12px rgba(26, 24, 20, 0.06);
  --shadow-md:       0 8px 32px rgba(26, 24, 20, 0.09);
  --shadow-lg:       0 20px 60px rgba(26, 24, 20, 0.12);
  --shadow-phone:    0 32px 80px rgba(26, 24, 20, 0.22);
  --radius-sm:       12px;
  --radius-md:       20px;
  --radius-lg:       28px;
  --radius-xl:       40px;
  --nav-height:      68px;
  --section-pad:     clamp(80px, 10vw, 140px);
}

/* ─── Typography ─────────────────────────────────────────────── */
.serif {
  font-family: 'DM Serif Display', Georgia, serif;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

em {
  font-style: italic;
  color: var(--amber-dark);
}

/* ─── Layout Utilities ───────────────────────────────────────── */
.section-inner {
  width: min(1160px, 90%);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--amber);
  border-radius: 2px;
}

.section-heading {
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--text);
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  33%  { background-position: 100% 0%; }
  66%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

/* ─── Load Animations ────────────────────────────────────────── */
.animate-fadeup {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ─── Scroll Reveals ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-fadeup {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(245, 240, 232, 0.8);
}

.nav__inner {
  width: min(1160px, 90%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.nav__brand:hover { opacity: 0.75; }

.nav__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   APP STORE BUTTON
═══════════════════════════════════════════════════════════════ */
.btn--store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.btn--store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.22);
}

.btn--store:active {
  transform: scale(0.97) translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--store-sm {
  padding: 8px 14px 8px 12px;
  font-size: 0.8rem;
}

.btn--store-lg {
  padding: 14px 22px 14px 18px;
  font-size: 0.9rem;
}

.btn--store-amber {
  background: var(--text);
  box-shadow: 0 8px 32px var(--amber-glow);
}

.btn--store-amber:hover {
  background: var(--text-mid);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.30);
}

.btn__apple {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--store-sm .btn__apple { width: 16px; height: 16px; }

.btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn__label {
  font-size: 0.68em;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.btn__store {
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn--store-sm .btn__text {
  flex-direction: row;
  align-items: center;
  gap: 0.3em;
}

.btn--store-sm .btn__label { display: none; }
.btn--store-sm .btn__store { font-size: 0.9rem; font-weight: 500; }

/* ─── Official Apple App Store Badge ────────────────────────── */
.appstore-badge {
  display: inline-block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.appstore-badge:active {
  transform: scale(0.97);
}

.appstore-badge img {
  display: block;
  height: auto;
}

.appstore-badge--lg img {
  width: 200px;
}

/* ═══════════════════════════════════════════════════════════════
   MOCKUP IMAGES
   NOTE: Current PNGs are 6000×4500 landscape canvases.
   These rules crop & zoom to the phone region (centre-third).
   Once re-exported as ~1200×2400 portrait crops, just remove
   the clip wrapper and set width directly on .mockup-img.
═══════════════════════════════════════════════════════════════ */

/* Clip wrapper — hides the surrounding canvas */
.mockup-clip {
  overflow: hidden;
  display: block;
  position: relative;
}

.mockup-img {
  display: block;
  max-width: none;   /* let width exceed clip container */
  height: auto;
}

/* ─── Hero ─── */
.mockup-clip--hero {
  /* Clip width = 375px. Centre offset = 187.5px (half clip). */
  width: 375px;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  filter: drop-shadow(0 32px 64px rgba(26, 24, 20, 0.22))
          drop-shadow(0 8px 20px rgba(26, 24, 20, 0.12));
}
.mockup-clip--hero .mockup-img {
  height: 100%;
  width: auto;
  max-width: none;
  /* Phone is centred at 50% of the 6000×4500 canvas width.
     translateX(-50%) shifts the img left by half its own width (= phone centre),
     then +150px re-centres it in the 300px clip window.
     Percentage-based so it works at any rendered height. */
  transform: translateX(calc(-50% + 187.5px));
}

/* ─── Carousel ─── */
.hero__carousel {
  position: relative;
  width: 375px;
  height: 100%;
  margin: auto 0; /* vertically centre if container is taller */
}

.hero__slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero__slide.active {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — fills all available space between nav & footer
   --footer-h must match .footer height (38px)
═══════════════════════════════════════════════════════════════ */
:root { --footer-h: 38px; }

.hero {
  position: relative;
  padding-top: var(--nav-height);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--cream) 0%,
    var(--cream-warm) 25%,
    var(--lavender-soft) 55%,
    var(--lavender-mid) 75%,
    var(--cream) 100%
  );
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.14) 0%, transparent 70%);
  top: 5%;
  right: 10%;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(186, 170, 220, 0.20) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 90%);
  margin: auto;          /* centres vertically in the flex hero */
  height: calc(100dvh - var(--nav-height) - 24px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  padding: 12px 0;
}

.hero__copy {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: var(--amber);
  border-radius: 2px;
}

.hero__headline {
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 1.8rem;
  font-weight: 300;
  line-height: 1.65;
}

.hero__actions {
  margin-bottom: 1rem;
}

.hero__note {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}

/* ─── Compact feature pills ──────────────────────────────── */
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hero__feat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-mid);
}

.hero__feat svg {
  width: 13px;
  height: 13px;
  color: var(--amber-dark);
  flex-shrink: 0;
}

.hero__phone {
  position: relative;
  flex-shrink: 0;
  will-change: transform;
  /* Let phone fill the full 1fr grid row via align-items:stretch on parent.
     Use min-height:0 so it can shrink, and set explicit height so
     children with height:100% can resolve against it. */
  align-self: stretch;
}

.hero__phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 65%);
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}

/* (proof-strip, feature-cards, cta-section removed — single-viewport layout) */

/* ═══════════════════════════════════════════════════════════════
   FOOTER — slim single-line strip
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--cream-warm);
  border-top: 1px solid rgba(26, 24, 20, 0.08);
  padding: 0;
}

.footer__inner {
  width: min(1160px, 90%);
  margin: 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
}

.footer__inner nav {
  display: flex;
  gap: 1.4rem;
}

.footer__inner a {
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer__inner a:hover {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════════ */
.faq {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--cream);
}

.faq__inner {
  width: min(720px, 90%);
  margin: 0 auto;
}

.faq__heading {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  color: var(--text);
}

.faq__item {
  border-bottom: 1px solid rgba(26, 24, 20, 0.08);
  padding: 0;
}

.faq__item:first-of-type {
  border-top: 1px solid rgba(26, 24, 20, 0.08);
}

.faq__question {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--amber-dark);
}

/* Custom chevron */
.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

/* Hide default marker */
.faq__question::-webkit-details-marker { display: none; }

.faq__answer {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px 0;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA SECTION
═══════════════════════════════════════════════════════════════ */
.cta {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--cream-warm);
  text-align: center;
}

.cta__inner {
  width: min(600px, 90%);
  margin: 0 auto;
}

.cta__heading {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.cta__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   Stack single-column; phone moves to top; allow scroll
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    overflow: visible;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    justify-items: center;
    align-items: center;
    height: auto;
    padding: clamp(24px, 4vw, 40px) 0;
  }

  .hero__copy { max-width: 560px; padding-bottom: 32px; }
  .hero__sub  { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__eyebrow { justify-content: center; }
  .hero__features { justify-content: center; }
  .hero__note { margin-bottom: 1rem; }

  .hero__phone {
    order: -1;
    align-self: center;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__carousel {
    width: 260px;
    height: 100%;
    margin: 0 auto;
  }

  .mockup-clip--hero {
    width: 260px;
    height: 100%;
  }

  .mockup-clip--hero .mockup-img {
    height: 100%;
    width: auto;
    transform: translateX(calc(-50% + 130px));
  }

  .faq__inner { max-width: 90%; }
  .cta__inner { max-width: 90%; }

  .appstore-badge img { width: 160px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .hero__phone { height: 360px; }

  .hero__carousel,
  .mockup-clip--hero { width: 220px; }

  .mockup-clip--hero .mockup-img {
    transform: translateX(calc(-50% + 110px));
  }

  /* 2×2 grid for feature pills so they don't overlap the footer */
  .hero__features {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 24px;
    justify-content: center;
  }

  .hero__copy { padding-bottom: 24px; }

  .faq { padding: 3rem 0; }
  .faq__heading { font-size: 1.6rem; }
  .faq__question { font-size: 0.95rem; padding: 1rem 2.5rem 1rem 0; }
  .faq__answer { font-size: 0.9rem; }

  .cta { padding: 3rem 0; }
  .cta__heading { font-size: 1.5rem; }

  .appstore-badge img { width: 140px; }

  .footer__inner {
    justify-content: center;
    gap: 1.2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 420px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav__name { display: none; }

  .hero__phone { height: 300px; }

  .hero__carousel,
  .mockup-clip--hero { width: 190px; }

  .mockup-clip--hero .mockup-img {
    transform: translateX(calc(-50% + 95px));
  }

  .hero__features { gap: 6px 16px; }

  .faq { padding: 2.5rem 0; }
  .faq__question { font-size: 0.9rem; }

  .cta { padding: 2.5rem 0; }
  .cta__heading { font-size: 1.3rem; }
}
