@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-ui); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--violet-700); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--violet-600); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-700); }
.muted { color: var(--ink-2); }
.serif { font-family: var(--font-scripture); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font: 700 17px var(--font-ui); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet-600); color: #fff; box-shadow: var(--shadow-2); }
.btn-soft { background: var(--violet-100); color: var(--violet-700); }
.btn-white { background: #fff; color: #5236d6; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: #15122a; color: #fff; text-decoration: none; line-height: 1.15; }
.store-btn svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store-btn small { display: block; font-size: 12px; opacity: .8; font-weight: 500; }
.store-btn b { font-size: 19px; font-weight: 700; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-links a:hover { color: var(--violet-700); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); padding: 8px 16px 16px; box-shadow: 0 20px 30px rgba(23,20,43,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .btn { display: none; }
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #ece7ff 0%, #f6e8f3 55%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 96px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero h1 .accent { background: linear-gradient(100deg, var(--violet-600), #b05ce0 60%, var(--dawn-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 21px; color: var(--ink-2); margin: 22px 0 32px; max-width: 520px; }
.hero-art { position: relative; height: 620px; }
.hero-art .scene { position: absolute; inset: 0 0 40px 40px; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-2); }
.hero-art .scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone-shot { position: absolute; left: 0; bottom: 0; width: 270px; }
.hero-art .float-card { position: absolute; right: 22px; bottom: 80px; background: var(--surface); border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 40px rgba(23,20,43,.16); width: 250px; }
.social { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--ink-2); font-size: 16px; }
.av-stack { display: flex; }
.av-stack span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #f1ecff; margin-left: -10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.av-stack span:first-child { margin-left: 0; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .hero-art { height: 480px; }
  .hero-art .scene { inset: 0 0 30px 30px; }
  .hero-art .phone-shot { width: 200px; }
  .hero-art .float-card { display: none; }
}

/* ── Phone mockup ── */
.phone-shot { border-radius: 40px; padding: 9px; background: #15122a; box-shadow: 0 30px 60px rgba(23,20,43,.28); }
.phone-shot img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }

/* ── Strip ── */
.strip { background: var(--surface); border-block: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; }
.strip div { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.strip i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 20px; flex: none; }
@media (max-width: 800px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }

/* ── Sections ── */
section.block { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; margin-top: 12px; }
.section-head p { font-size: 20px; color: var(--ink-2); margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin-top: 10px; }
.feature p.lead { font-size: 19px; color: var(--ink-2); margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.ticks li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-100); color: var(--violet-700); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.feature-shots { position: relative; display: flex; justify-content: center; gap: 22px; padding: 40px 0; border-radius: 40px; }
.feature-shots .phone-shot { width: 260px; }
.feature-shots .phone-shot.back { transform: translateY(40px); width: 240px; }
.bg-lav { background: radial-gradient(80% 80% at 50% 40%, #e6defe 0%, transparent 70%); }
.bg-peach { background: radial-gradient(80% 80% at 50% 40%, #ffe3d4 0%, transparent 70%); }
.bg-mint { background: radial-gradient(80% 80% at 50% 40%, #d8f2e4 0%, transparent 70%); }
@media (max-width: 900px) {
  section.block { padding: 72px 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .feature-shots .phone-shot { width: 210px; }
  .feature-shots .phone-shot.back { width: 180px; }
}
@media (max-width: 480px) { .feature-shots .phone-shot.back { display: none; } }

/* Night section (Prayer Lock) */
.night { background: radial-gradient(90% 70% at 70% 0%, #3a2a8a 0%, #1a1440 50%, #0f0c22 100%); color: #f4f2ff; }
.night .eyebrow { color: #c2b4ff; }
.night .muted, .night p.lead { color: #c9c4e6; }
.night .ticks li::before { background: rgba(255,255,255,.12); color: #ffd27a; }
.safe-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.safe-list span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 15px; font-weight: 600; }

/* Cards grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.card h3 { font-size: 22px; margin-top: 16px; }
.card p { color: var(--ink-2); margin-top: 8px; font-size: 17px; }
.tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; }
.t-lav { background: var(--tile-lavender); color: var(--tile-lavender-fg); }
.t-pink { background: var(--tile-pink); color: var(--tile-pink-fg); }
.t-peach { background: var(--tile-peach); color: var(--tile-peach-fg); }
.t-sky { background: var(--tile-sky); color: var(--tile-sky-fg); }
.t-mint { background: var(--tile-mint); color: var(--tile-mint-fg); }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border-radius: 30px; padding: 32px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; border: 2px solid transparent; }
.plan.featured { border-color: var(--violet-600); box-shadow: var(--shadow-2); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin-top: 12px; }
.plan .price small { font-size: 17px; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 16px; }
.plan li::before { content: "✓  "; color: var(--violet-600); font-weight: 800; }
.plan .btn { margin-top: auto; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--violet-100); color: var(--violet-700); font-size: 13px; font-weight: 800; }
.honest { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.honest div { background: var(--surface-2); border-radius: 18px; padding: 18px 20px; font-size: 16px; }
@media (max-width: 900px) { .plans, .honest { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: 20px; padding: 0 24px; box-shadow: var(--shadow-1); }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--violet-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); }

/* CTA */
.cta { border-radius: 40px; background: linear-gradient(135deg, #6a4df4, #9466f0 60%, #ff8d78); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.cta p { opacity: .92; font-size: 19px; margin-top: 14px; }
.cta .stores { margin-top: 28px; }
.cta img { width: 260px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } .cta img { width: 180px; } }

/* Footer */
footer { padding: 72px 0 48px; color: var(--ink-2); font-size: 16px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--ink); font-size: 15px; margin: 0 0 12px; letter-spacing: .02em; }
.foot a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--violet-700); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ── Document pages (privacy, terms…) ── */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.doc .meta { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; } .doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface-2); }
.note { background: var(--tile-peach); color: var(--tile-peach-fg); border-radius: 16px; padding: 14px 18px; font-size: 16px; margin-top: 20px; }
.callout { background: var(--violet-50); border: 1.5px solid var(--violet-200); border-radius: 20px; padding: 20px 22px; margin: 22px 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { background: linear-gradient(180deg, #221a4a 0%, #1a1433 60%, var(--bg) 100%); }
  :root:not([data-theme="light"]) .av-stack span { border-color: #221a4a; }
  :root:not([data-theme="light"]) .callout { background: var(--surface-2); border-color: var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.section-head p.eyebrow { font-size: 14px; color: var(--violet-700); margin-top: 0; }
.foot a.logo { display: flex; padding: 0; color: var(--ink); }
