/* prayerbeforeapps.com landing page (2026-11-16). Colors, fonts and art rules from
   docs/DESIGN.md; the web type scale and layout below are the website's own (see DESIGN.md,
   "Website"). The legal pages use styles.css. Fonts are self-hosted (OFL). */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Maitree';
  src: url('fonts/Maitree_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Sans';
  src: url('fonts/FunnelSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Sans';
  src: url('fonts/FunnelSans_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Satisfy';
  src: url('fonts/Satisfy_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --primary: #9a5390;
  --on-primary: #ffffff;
  --primary-pressed: #7e3f73;
  --primary-container: #f3e1ee;
  --primary-tint: #f5ecf4;
  --secondary: #5e5bb1;
  --secondary-container: #e6e5f6;
  --on-secondary-container: #2e2c6b;
  --surface: #fff9ee;
  --surface-container: #ffffff;
  --on-surface: #3a2d3a;
  --on-surface-variant: #6e5f6a;
  --outline: #dfcfcc;
  --outline-variant: #f0e4df;

  --shadow-soft: 0 1px 2px rgba(58, 45, 58, 0.04), 0 12px 32px rgba(58, 45, 58, 0.07);
  --shadow-phone: 0 2px 6px rgba(58, 45, 58, 0.06), 0 24px 48px rgba(58, 45, 58, 0.14);
  --shadow-cta: 0 6px 18px rgba(154, 83, 144, 0.28);

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --gutter: clamp(20px, 4vw, 32px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: 'Maitree', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure {
  max-width: 720px;
}
.center {
  text-align: center;
}
.section {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(16px, 2vw, 24px);
}
.section-tight {
  padding-top: clamp(48px, 6vw, 72px);
}

/* Type: Fraunces headings, Maitree reading, Funnel Sans controls, Satisfy for one word */
h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0;
}
h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
p {
  margin: 0 0 16px;
}
.body-lg {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--on-surface-variant);
}
/* The answer to the headline's problem: set as a second headline, not as small print. */
.lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--secondary);
  margin: 28px 0 36px;
}
.lead .feature {
  font-size: 1.35em;
}
.feature {
  font-family: 'Satisfy', cursive;
  font-weight: 400;
  color: var(--primary);
  font-size: 1.45em;
  line-height: 0.8;
  letter-spacing: 0;
  padding: 0 0.04em;
}
h2 .feature {
  font-size: 1.3em;
}
.eyebrow {
  font-family: 'Funnel Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: clamp(32px, 5vw, 56px);
}
/* A cited figure links to its source: quiet, but plainly a link. */
a.source {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.source:hover {
  color: var(--primary);
}
.small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.wordmark {
  font-family: 'Satisfy', cursive;
  font-size: 28px;
  line-height: 1;
  color: var(--primary);
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Funnel Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  background: var(--primary-pressed);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(154, 83, 144, 0.32);
}
.cta-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  box-shadow: none;
}
.cta-block {
  width: 100%;
}
/* Before launch: the button's shape as a quiet label that can't be tapped. */
.cta-soon,
.cta-soon:hover {
  background: var(--surface-container);
  color: var(--primary);
  border: 1.5px solid var(--primary-container);
  box-shadow: none;
  transform: none;
  cursor: default;
}
.textlink {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* Header and hero: the periwinkle soft field melting into cream (DESIGN.md, Atmosphere) */
.hero-field {
  background: linear-gradient(
    180deg,
    var(--secondary-container) 0%,
    var(--secondary-container) 45%,
    var(--primary-tint) 75%,
    var(--surface) 100%
  );
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(58, 45, 58, 0.12);
}
header.site .cta-sm {
  display: none;
}

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 112px);
  text-align: center;
}
.hero-text {
  max-width: 560px;
  margin: 0 auto;
}

/* Three screenshots fanned like phones on a table */
.hero-phones {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.04;
}
.phone {
  position: absolute;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-phone);
  background: var(--surface);
}
.phone-center {
  width: 47%;
  left: 26.5%;
  top: 0;
  z-index: 2;
}
.phone-left,
.phone-right {
  width: 40%;
  top: 7%;
  z-index: 1;
}
.phone-left {
  left: 0;
  transform: rotate(-6deg);
}
.phone-right {
  right: 0;
  transform: rotate(6deg);
}
.hero-media {
  display: flex;
  justify-content: center;
}
.hero-video {
  width: 100%;
  max-width: 300px;
  border-radius: 22px;
  box-shadow: var(--shadow-phone);
}

/* The solution band: an orchid tint that melts in and out of the page */
.band {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--primary-tint) 22%,
    var(--primary-tint) 78%,
    var(--surface) 100%
  );
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 56px;
}
.steps li {
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}
.step-shot {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  color: var(--secondary);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 14px;
}
.steps p {
  color: var(--on-surface-variant);
}

/* Benefits: one white card, three columns with hairlines between */
.benefits {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: grid;
  background: var(--surface-container);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.benefits li {
  padding: 28px 32px;
}
.benefits li + li {
  border-top: 1px solid var(--outline-variant);
}
.benefits p {
  margin: 0;
  color: var(--on-surface-variant);
}

/* Pricing */
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-container);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.plan {
  margin: 0;
  padding: 22px 12px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-md);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.2;
}
.price-card .small {
  margin-bottom: 28px;
}

/* Questions */
.faq {
  max-width: 800px;
}
.faq details {
  border-bottom: 1px solid var(--outline);
}
.faq details:first-of-type {
  border-top: 1px solid var(--outline);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
  font-family: 'Funnel Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--on-surface-variant);
  padding-right: 56px;
}
.faq details p:last-child {
  margin-bottom: 24px;
}

/* Closing: Sovah in an orchid glow (DESIGN.md, Atmosphere) */
.closing {
  padding: clamp(80px, 11vw, 136px) 0 clamp(48px, 6vw, 72px);
  background: radial-gradient(
    ellipse 520px 340px at 50% 42%,
    var(--primary-container) 0%,
    rgba(243, 225, 238, 0.85) 40%,
    rgba(243, 225, 238, 0) 100%
  );
}
.sovah {
  width: 150px;
  height: auto;
  margin: 0 auto 24px;
}
.closing h2 {
  margin-bottom: 32px;
}
.closing .small {
  margin: 12px 0 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--outline);
  padding-top: 32px;
  padding-bottom: 40px;
  font-family: 'Funnel Sans', sans-serif;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 16px;
}
.brand-sm img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand-sm .wordmark {
  font-size: 22px;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 15px;
}
footer.site nav a:hover {
  color: var(--primary);
}
footer.site .small {
  margin: 0 0 4px;
}

/* Wider screens: hero in two columns, steps and benefits in three */
@media (min-width: 760px) {
  header.site .cta-sm {
    display: inline-flex;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .benefits {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }
  .benefits li {
    padding: 36px 32px;
  }
  .benefits li + li {
    border-top: 0;
    border-left: 1px solid var(--outline-variant);
  }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    text-align: left;
  }
  .hero-text {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta,
  .faq summary::after {
    transition: none;
  }
  .cta:hover {
    transform: none;
  }
}
