/* God Before Scroll marketing + legal site
   Palette mirrors the shipping iOS app: warm cream, violet gradient,
   pastel accent blobs, near-black text, classic serif for Scripture. */

:root {
  --ivory: #f6f4ed;
  --cream: #ffffff;
  --navy: #171717;
  --muted: #737987;
  --border: #ece7dd;

  --violet: #6c5ce7;
  --violet-2: #8b7df2;
  --violet-soft: #efecfd;
  --coral: #f2685f;
  --sage: #dcefe4;
  --sky: #e6eefb;
  --blue: #3f73d6;

  --grad: linear-gradient(135deg, #8b7df2 0%, #6c5ce7 100%);

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04), 0 2px 8px rgba(23, 23, 23, 0.05);
  --shadow-md: 0 8px 30px rgba(23, 23, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(108, 92, 231, 0.18);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .75; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 237, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand .name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--violet); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, opacity .15s ease;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-1px); opacity: 1; box-shadow: 0 28px 70px rgba(108,92,231,.26); }
.btn-ghost { background: var(--cream); color: var(--navy); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { opacity: 1; transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- Decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-violet { background: #d9d2fb; }
.blob-sage { background: var(--sage); }
.blob-coral { background: #fbdcd6; }
.blob-sky { background: var(--sky); }
.blob-yellow { background: #fdeecb; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .blob-1 { width: 420px; height: 420px; top: -120px; left: -160px; }
.hero .blob-2 { width: 340px; height: 340px; bottom: -140px; right: -120px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet-soft); color: var(--violet);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(40px, 6vw, 60px); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 800; margin-bottom: 20px;
}
h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #34b27b; }

.hero .phone-stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  background: radial-gradient(circle, rgba(108, 92, 231, 0.22) 0%, rgba(217, 210, 251, 0.12) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Realistic iPhone 15 Pro device mockup */
.iphone {
  position: relative;
  z-index: 1;
  width: min(100%, 304px);
}

.iphone-hero {
  width: min(100%, 318px);
  transform: rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-8px); }
}

.iphone-frame {
  position: relative;
  padding: 11px;
  border-radius: 54px;
  background:
    linear-gradient(145deg, #4a4a4f 0%, #1c1c1e 18%, #101012 52%, #2a2a2e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.18),
    0 18px 40px rgba(23, 23, 23, 0.22),
    0 40px 90px rgba(108, 92, 231, 0.28);
}

.iphone-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 4;
}

.iphone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background: #000;
  aspect-ratio: 1170 / 2532;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.iphone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 16%,
    transparent 42%
  );
  pointer-events: none;
  z-index: 3;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.iphone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.iphone-island::before {
  content: "";
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a22, #050506 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Side buttons */
.iphone-button {
  position: absolute;
  background: linear-gradient(180deg, #3a3a3f, #17171a 55%, #050506);
  border-radius: 2px;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.iphone-button-silent {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.iphone-button-volume-up {
  left: -2px;
  top: 154px;
  width: 3px;
  height: 54px;
  border-radius: 2px 0 0 2px;
}

.iphone-button-volume-down {
  left: -2px;
  top: 218px;
  width: 3px;
  height: 54px;
  border-radius: 2px 0 0 2px;
}

.iphone-button-power {
  right: -2px;
  top: 176px;
  width: 3px;
  height: 84px;
  border-radius: 0 2px 2px 0;
}

.iphone-floor-shadow {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 72%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.34) 0%, rgba(23, 23, 23, 0.12) 52%, transparent 72%);
  filter: blur(8px);
  z-index: 0;
}

.iphone-hero .iphone-frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.18),
    0 24px 48px rgba(23, 23, 23, 0.24),
    0 48px 110px rgba(108, 92, 231, 0.32);
}
/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* trust strip */
.trust { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--cream); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust span { color: var(--muted); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--violet); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--violet-soft);
  color: var(--violet); font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 17px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15.5px; }

/* features (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .blob { width: 300px; height: 300px; z-index: 0; }
.feature-body h3 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 14px; }
.feature-body p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.feature-body .tag { display:inline-block; font-size:13px; font-weight:600; color: var(--violet); background: var(--violet-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--navy); font-size: 16px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 4px #7fcfa3; }

/* verse band */
.verse-band { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 80px 0; }
.verse-band .blob { width: 360px; height: 360px; }
.verse-band blockquote { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -.01em; max-width: 16em; margin: 0 auto 18px; position: relative; z-index: 1; }
.verse-band cite { color: var(--blue); font-style: normal; font-weight: 600; font-size: 16px; position: relative; z-index: 1; }

/* pricing */
.price-card {
  max-width: 480px; margin: 0 auto; background: var(--cream); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px; text-align: center; box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.price-card .badge { display:inline-block; background: var(--grad); color:#fff; font-size:13px; font-weight:700; padding:6px 14px; border-radius:999px; margin-bottom:18px; }
.price-card .amount { font-size: 52px; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-card .sub { color: var(--muted); margin: 6px 0 26px; }
.price-card ul { list-style: none; text-align: left; max-width: 320px; margin: 0 auto 28px; }
.price-card li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* CTA band */
.cta-band { text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.cta-band .blob-1 { width: 380px; height: 380px; top: -120px; left: 50%; transform: translateX(-60%); }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-band p { color: var(--muted); font-size: 18px; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--border); padding: 56px 0 40px; }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.site-footer .brand .name { font-size: 18px; }
.site-footer .tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 22em; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--navy); font-size: 15px; margin-bottom: 10px; font-weight: 500; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 64px 0 24px; position: relative; overflow: hidden; }
.page-hero .blob-1 { width: 300px; height: 300px; top: -120px; right: -80px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 48px); position: relative; z-index: 1; }
.page-hero .updated { color: var(--muted); font-size: 15px; margin-top: 10px; position: relative; z-index: 1; }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 0 80px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.01em; }
.legal h3 { font-size: 19px; margin: 26px 0 8px; }
.legal p { color: #2c2c2c; margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; color: #2c2c2c; }
.legal li { margin-bottom: 8px; }
.legal .toc { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.legal .toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.legal .toc a { font-size: 15px; display: block; margin-bottom: 7px; }
.callout { background: var(--sage); border-radius: var(--radius-sm); padding: 18px 22px; margin: 20px 0; color: #1f3b30; }
.callout strong { color: #163027; }

/* ---------- Support / contact form ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 960px; margin: 0 auto; padding: 8px 0 80px; align-items: start; }
.support-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 15.5px; }
.form-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--navy);
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft);
}
.form-card .btn { width: 100%; }
.form-status { margin-top: 16px; font-size: 15px; text-align: center; min-height: 22px; }
.form-status.ok { color: #2f8a5b; }
.form-status.err { color: var(--coral); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { gap: 18px; }
  .nav .nav-link { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero .phone-stage { order: -1; }
  .iphone-hero {
    transform: none;
    animation: none;
    width: min(100%, 280px);
  }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; text-align: center; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-list { display: inline-block; text-align: left; }
  .support-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .price-card { padding: 30px 22px; }
}
