/* In God's Presence: launch website styles */

@font-face {
  font-family: "Melodrama";
  src: url("../assets/fonts/Melodrama-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("../assets/fonts/Melodrama-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF8F5;
  --bg-warm: #F4F0EA;
  --ink: #2A211C;
  --ink-2: #4A3B31;
  --ink-3: #5E5046;
  --muted: #6B5D52;
  --accent: #8A5A34;
  --accent-ink: #6B4524;
  --gold: #E9C9A3;
  --on-dark-2: #D9CFC4;
  --font-display: "Melodrama", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 340px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.display { font-family: var(--font-display); font-weight: 600; }
.sec { scroll-margin-top: 96px; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 16px 12px 12px;
}
.nav {
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 999px;
  background: rgba(239, 235, 229, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 33, 28, .06), 0 8px 24px rgba(42, 33, 28, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 4px; border-radius: 999px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .01em; white-space: nowrap; }
.navlink {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 999px; font-size: 17px; color: var(--ink); white-space: nowrap;
  transition: background .25s, color .25s;
}
.navlink:hover { color: var(--ink); background: rgba(42, 33, 28, .07); }
.navlink.on, .navlink.on:hover { background: var(--ink); color: var(--bg); }

/* ---------- Store buttons (replace with official badges) ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; min-width: 188px;
  padding: 0 22px 0 18px; border-radius: 14px; background: var(--ink); color: var(--bg);
  transition: transform .2s, background .2s;
}
.badge:hover { color: var(--bg); background: #3d3029; transform: translateY(-1px); }
.badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.badge-small { font-size: 11px; letter-spacing: .02em; }
.badge-small.caps { letter-spacing: .06em; }
.badge-big { font-size: 21px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 64px; padding: 48px 20px 72px; text-align: center;
}
.hand { position: absolute; height: auto; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 2.4s ease; }
.hand.in { opacity: .4; }
.hand-left { left: 0; top: 24%; width: min(500px, 40vw); }
.hand-right { right: 0; top: 50%; width: min(484px, 39vw); }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { font-size: clamp(52px, 9.5vw, 136px); line-height: .98; letter-spacing: -.01em; }
.tagline { font-style: italic; font-size: clamp(19px, 2.3vw, 30px); line-height: 1.35; color: var(--ink-2); max-width: 820px; }
.hero .badges { position: relative; z-index: 1; }

/* ---------- About ---------- */
.about { padding: 96px 32px 120px; }
.about-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-grid > img { width: 100%; height: auto; display: block; }
.about-copy { display: flex; flex-direction: column; gap: 22px; text-align: center; align-items: center; }
.about-lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; color: var(--ink-2); }
.about-statement { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; font-weight: 600; max-width: 560px; }
.maker { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.maker .rule { width: 32px; height: 1px; background: var(--accent); }
.maker p { font-style: italic; font-size: 19px; color: var(--accent-ink); }

/* ---------- Features carousel ---------- */
.features { padding: 72px 0 96px; background: var(--bg-warm); }
.features-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 20px; }
.chip {
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(42, 33, 28, .18); background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 16px 32px;
}
.slide.flip .txt { order: 2; }
.txt { display: flex; flex-direction: column; gap: 22px; max-width: 520px; justify-self: center; }
.txt h2 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.slide-tagline { font-style: italic; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; color: var(--ink-2); }
.feature-block { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.feature-block h3 { font-size: 28px; }
.points { margin: 0; padding: 0 0 0 22px; list-style: none; border-left: 3px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.points li { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; }
.pt, .pt-plain { display: block; width: 100%; padding: 5px 0; color: var(--ink); }
.pt { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; transition: color .3s; }
.pt:hover { color: var(--accent); }
.pt.on { color: var(--accent); font-weight: 500; }
.hint { font-size: 14px; color: var(--muted); }
.slide-note { margin-top: 6px; font-size: 15px; color: var(--ink-3); }

/* Circular mockup ring */
.stage-wrap { container-type: inline-size; width: 100%; max-width: 600px; justify-self: center; margin: 0 auto; }
.stage { position: relative; width: 100%; aspect-ratio: 600 / 560; perspective: 160cqw; perspective-origin: 50% 30%; transform-style: preserve-3d; }
.ph {
  position: absolute; left: 50%; top: 50%; height: 72%; aspect-ratio: 423 / 850;
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.ph img { display: block; width: 100%; height: 100%; pointer-events: none; transition: filter 1s ease; }
.ph:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 24px; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(42, 33, 28, .2); background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}
.arrow:hover { background: #EFEAE3; }
.dots { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(42, 33, 28, .22); transition: width .3s, background .3s; }
.dot.on { width: 28px; border-radius: 4px; background: var(--accent); }

/* ---------- Privacy ---------- */
.privacy { padding: 120px 32px; }
.privacy-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.privacy-item { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.privacy-item h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 600; line-height: 1.08; }
.privacy-item p { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 420px; }

/* ---------- Pricing ---------- */
.pricing { padding: 96px 24px 120px; background: var(--bg-warm); }
.pricing-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.pricing-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pricing-head h2 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.billing { display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px; border-radius: 999px; background: #E9E2D8; }
.seg { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .25s, color .25s; }
.seg.on { background: var(--bg); box-shadow: 0 1px 3px rgba(42, 33, 28, .14); }
.save { color: var(--accent-ink); font-weight: 500; }
.price-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 26px; padding: 40px 36px; border-radius: 28px; }
.plan-free { background: var(--bg); border: 1px solid rgba(42, 33, 28, .1); }
.plan-sub { background: var(--ink); color: var(--bg); box-shadow: 0 24px 60px rgba(42, 33, 28, .18); }
.plan-head { display: flex; flex-direction: column; gap: 10px; }
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 34px; }
.best { padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.best[hidden] { display: none; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 48px; font-weight: 500; line-height: 1; }
.per { font-size: 17px; color: var(--on-dark-2); }
.plan-sub-line { font-size: 16px; min-height: 24px; color: var(--ink-3); }
.plan-sub .plan-sub-line { color: var(--on-dark-2); }
.cta { display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; font-size: 17px; font-weight: 500; transition: background .2s, color .2s; }
.cta.light { border: 1px solid rgba(42, 33, 28, .25); color: var(--ink); }
.cta.light:hover { background: #EFEAE3; color: var(--ink); }
.cta.dark { background: var(--bg); color: var(--ink); }
.cta.dark:hover { background: #fff; color: var(--ink); }
.plan-groups { display: flex; flex-direction: column; gap: 20px; }
.plus { font-size: 17px; font-weight: 500; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group h4 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.plan-sub .group h4 { color: var(--gold); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.checks svg { flex-shrink: 0; margin-top: 3px; stroke: var(--accent); }
.plan-sub .checks svg { stroke: var(--gold); }
.pricing-foot { font-size: 15px; color: var(--ink-3); text-align: center; }

/* ---------- Get App + footer ---------- */
.get-app { padding: 72px 20px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(var(--bg), #F3EDE4); }
.get-app-text { display: flex; flex-direction: column; align-items: center; }
.app-icon-lg { width: 140px; height: 140px; border-radius: 32px; object-fit: cover; display: block; margin: 24px 0 44px; box-shadow: 0 18px 40px rgba(138, 90, 52, .22); }
.get-app h2 { font-size: clamp(30px, 4.3vw, 60px); font-weight: 600; line-height: 1.12; max-width: 1080px; }
.closing { margin-top: 18px; font-style: italic; font-size: clamp(24px, 3vw, 40px); color: var(--ink-2); }
.get-app .badges { margin-top: 44px; }
.site-footer { margin-top: 140px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.legal { display: flex; gap: 8px; }
.legal a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font-size: 18px; }
.site-footer p { font-size: 15px; color: var(--ink-3); }

/* ---------- Fade-in on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .15s !important; }
.d2 { transition-delay: .3s !important; }
.no-js .hand { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .hand, .ph, .ph img { transition: none; }
  .js .reveal { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .slide, .privacy-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .slide.flip .txt { order: 0; }
  .slide { padding: 8px 20px; gap: 28px; }
  .brand-name { display: none; }
  .navlink { padding: 0 10px; font-size: 15px; }
}
