/* PrayerCare Website V1 — Design System */

:root {
  --blue-primary: #4f8ef7;
  --blue-secondary: #dcebff;
  --gold: #d6a64d;
  --white-soft: #fafbfd;
  --gray-light: #eef2f6;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --shadow-soft: 0 8px 32px rgba(79, 142, 247, 0.08);
  --shadow-card: 0 4px 24px rgba(31, 41, 55, 0.06);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1120px;
  --narrow: 720px;
  --section-space: clamp(5rem, 10vw, 8rem);
  --header-height: 72px;
  --header-pad: 0.875rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white-soft);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: #3a7ae8;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, var(--narrow));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--blue-primary);
  color: white;
  border-radius: var(--radius-full);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 242, 246, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-block: var(--header-pad);
  gap: 1.5rem;
}

.logo-block {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-promise {
  margin: 0.375rem 0 0 2.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .logo-promise {
    font-size: 0.875rem;
    max-width: 20rem;
  }
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-secondary), var(--blue-primary));
  opacity: 0.9;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-dark);
}

.header-cta {
  margin-left: auto;
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--white-soft);
  border-top: 1px solid var(--gray-light);
  padding: var(--header-pad) 0;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.875rem 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
    margin-left: 0;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.35);
}

.btn-primary:hover {
  background: #3a7ae8;
  color: white;
  box-shadow: 0 6px 24px rgba(79, 142, 247, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--gray-light);
  color: var(--text-dark);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Sections */
.section {
  padding-block: var(--section-space);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text-dark);
}

.centered {
  text-align: center;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.section-intro {
  margin-bottom: 3.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin: 0 0 1.25rem;
}

/* Hero */
.hero {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 10vw, 6rem);
  background: linear-gradient(180deg, var(--blue-secondary) 0%, var(--white-soft) 55%);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 2.25rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  position: relative;
  width: min(100%, 420px);
}

.hero-glow {
  position: absolute;
  inset: 10% 5% 5%;
  background: radial-gradient(ellipse at 70% 20%, rgba(214, 166, 77, 0.15), transparent 60%);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.hero-svg {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

/* Story */
.story {
  background: var(--white-soft);
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-question {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.story-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-dark);
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.story-detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.story-emphasis {
  margin: 2rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
}

.story-closer {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--blue-primary);
}

/* Journey */
.journey {
  background: var(--gray-light);
}

.journey-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
}

.journey-path::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-primary), var(--blue-secondary));
  opacity: 0.35;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.journey-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step:hover .journey-icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

.journey-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.journey-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Features */
.features {
  background: var(--white-soft);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reveal-wide {
    grid-column: span 2;
  }
}

.feature-card {
  background: var(--gray-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(79, 142, 247, 0.12);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-lg);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-lead {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

.feature-card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Demo */
.demo {
  background: linear-gradient(180deg, var(--white-soft), var(--blue-secondary));
}

.demo-frame {
  margin-top: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.demo-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}

.demo-play {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  color: var(--blue-primary);
  box-shadow: var(--shadow-card);
}

/* CTA */
.cta {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.cta-card {
  background: linear-gradient(145deg, var(--blue-primary) 0%, #3d7de8 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: white;
  box-shadow: 0 16px 48px rgba(79, 142, 247, 0.3);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.cta-subtitle {
  font-size: 1.0625rem;
  opacity: 0.92;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .beta-form {
    flex-direction: row;
  }
}

.beta-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-dark);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.beta-form input::placeholder {
  color: #9ca3af;
}

.beta-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.beta-form .btn-primary {
  background: var(--gold);
  box-shadow: 0 4px 16px rgba(214, 166, 77, 0.4);
  white-space: nowrap;
}

.beta-form .btn-primary:hover {
  background: #c4953f;
}

.form-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.5rem;
  opacity: 0.95;
}

.form-note.success {
  color: #fef3c7;
}

.form-note.error {
  color: #fecaca;
}

/* Footer */
.site-footer {
  background: var(--gray-light);
  padding: 3rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 28rem;
  line-height: 1.6;
}

.footer-promise {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 32rem;
  line-height: 1.65;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--blue-primary);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn:hover,
  .feature-card:hover,
  .journey-step:hover .journey-icon {
    transform: none;
  }
}
