/* ============================================================================
   EMBER — Catholic Daily Prayer · Marketing site
   Design system lifted directly from the app (EmberKit/Theme.swift · DesignSystem.swift)
   Dusk theme · ember glow · New York-serif contemplative type
   ========================================================================== */

/* ---------- Design tokens ---------------------------------------------- */
:root {
  /* Dusk theme — the app's default (Theme.swift: dusk) */
  --dusk-1: #231732;          /* backgroundTop  */
  --dusk-2: #1a1028;
  --dusk-3: #120b1d;          /* backgroundBottom */
  --dusk-4: #0c0715;          /* deepest, for footers */

  /* The ember — the live coal (glow #FF9A5E) */
  --ember:        #ff9a5e;
  --ember-bright: #ffc08a;
  --ember-core:   #ffe8d0;
  --ember-deep:   #e8763b;
  --ember-glow:   rgba(255, 154, 94, 0.55);

  /* Text (textPrimary / textSecondary) */
  --cream:   #f5ede4;
  --taupe:   #bca995;
  --taupe-2: #8f8071;
  --espresso: #201409;        /* text on ember buttons */

  /* Glass panels (emberPanel: opacity .07 fill, .12 border) */
  --glass:      rgba(245, 237, 228, 0.055);
  --glass-2:    rgba(245, 237, 228, 0.085);
  --glass-brd:  rgba(245, 237, 228, 0.12);
  --glass-brd-2:rgba(245, 237, 228, 0.2);

  /* Liturgical vestment glow tints (Theme.swift: palette(for:)) */
  --lit-green:  #e8c878;
  --lit-violet: #e8b266;
  --lit-rose:   #ffa8b8;
  --lit-white:  #c08a2d;
  --lit-red:    #ff9e82;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.7vw, 2rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 2.9vw, 4.4rem);
  --step-5:  clamp(3.4rem, 2.3rem + 5.2vw, 6.6rem);

  /* Spacing / structure */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 22px;             /* app card radius */
  --radius-lg: 34px;
  --radius-sm: 14px;

  /* Shadows & glow */
  --shadow-soft: 0 2px 8px rgba(0,0,0,.25), 0 18px 50px rgba(0,0,0,.35);
  --shadow-device: 0 8px 24px rgba(0,0,0,.4), 0 40px 90px rgba(0,0,0,.55);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 74px;
  --accent: var(--ember);     /* retintable per-section */
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--cream);
  background: var(--dusk-3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: rgba(255,154,94,.28); color: #fff; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255,154,94,.35) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(255,154,94,.28); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,154,94,.45); background-clip: content-box; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ember); color: var(--espresso); font-weight: 700;
  padding: .7em 1.2em; border-radius: 0 0 12px 12px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Ambient background ----------------------------------------- */
.bg-atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a1a3d 0%, transparent 55%),
    linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 40%, var(--dusk-3) 100%);
}
/* Warm bloom that drifts, echoing GlowOrb */
.bg-atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 78% 8%, rgba(255,154,94,.10), transparent 70%),
    radial-gradient(50% 40% at 12% 88%, rgba(255,154,94,.09), transparent 70%);
}
/* Fine film grain */
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
#sparks { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Layout ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Typography helpers ----------------------------------------- */
.serif { font-family: "Newsreader", "New York", Georgia, "Times New Roman", serif; font-weight: 400; }
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3, h4 { font-family: "Newsreader", "New York", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.015em; color: var(--cream); }
.display { font-size: var(--step-5); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.h-section { font-size: var(--step-4); font-weight: 300; }
.h-sub { font-size: var(--step-2); }
em, .italic { font-style: italic; }

.lead { font-size: var(--step-1); color: var(--taupe); line-height: 1.6; font-weight: 400; }
.muted { color: var(--taupe); }
.on-ember { color: var(--ember); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* small-caps category label, as in app feed */
.cat-label { font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); }

/* ---------- Navigation -------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(18, 11, 29, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--glass-brd);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Newsreader", serif; font-size: 1.5rem; color: var(--cream); letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand:hover .mark { filter: brightness(1.1); }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  font-size: .95rem; color: var(--taupe); padding: .5rem .9rem; border-radius: 999px;
  position: relative; transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .1rem; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
}
.nav-cta { margin-left: .5rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
  will-change: transform;
}
.btn-ember { background: var(--ember); color: var(--espresso); box-shadow: 0 8px 30px -8px var(--ember-glow); }
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--ember-glow); background: var(--ember-bright); }
.btn-ember:active { transform: translateY(0) scale(.985); }
.btn-ghost { color: var(--cream); background: var(--glass); border: 1px solid var(--glass-brd-2); }
.btn-ghost:hover { background: var(--glass-2); transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.3rem .7rem 1.1rem;
  border-radius: 15px; background: var(--cream); color: #17110c;
  box-shadow: var(--shadow-soft); transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.appstore:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0,0,0,.45); }
.appstore svg { width: 28px; height: 28px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-txt small { font-size: .62rem; letter-spacing: .04em; opacity: .8; }
.appstore .as-txt b { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.soon-note { font-size: .8rem; color: var(--taupe-2); letter-spacing: .02em; }

/* ---------- Hero -------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 1.1rem 0 0; }
.hero .display .accent { color: var(--ember); font-style: italic; }
.hero-sub { margin-top: 1.4rem; max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 1rem 1.2rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-meta { display: flex; gap: 1.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: "Newsreader", serif; font-size: 1.7rem; color: var(--cream); font-weight: 400; }
.hero-meta span { font-size: .82rem; color: var(--taupe); letter-spacing: .04em; }

.hero-visual { position: relative; display: grid; place-items: center; }
/* the ember orb behind the phone (GlowOrb recreated in CSS) */
.orb {
  position: absolute; width: min(46vw, 460px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.95) 0%, var(--ember) 18%, rgba(255,154,94,.5) 34%, rgba(255,154,94,.12) 55%, transparent 72%);
  filter: blur(6px);
  animation: breathe 7s var(--ease-out) infinite;
  z-index: 0;
}
.hero-phone { position: relative; z-index: 1; width: min(74%, 320px); }

/* ---------- Device presentation (screenshots used AS-IS) ---------------- */
.device {
  position: relative; border-radius: 40px; overflow: hidden;
  box-shadow: var(--shadow-device);
  outline: 1px solid rgba(255,255,255,.06); outline-offset: -1px;
  transform: translateZ(0);
}
.device img { width: 100%; height: auto; }
.device-halo { position: relative; }
.device-halo::before {
  content: ""; position: absolute; inset: -14% -10% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ember-glow), transparent 72%);
  opacity: .5; filter: blur(30px);
}
.floaty { animation: floaty 9s ease-in-out infinite; }
.tilt { transform: perspective(1400px) rotateY(-11deg) rotateX(3deg); transition: transform .6s var(--ease); }
.tilt:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) scale(1.015); }
.tilt-r { transform: perspective(1400px) rotateY(11deg) rotateX(3deg); }

/* ---------- Section header ---------------------------------------------- */
.sec-head { max-width: 44ch; }
.sec-head.centered { margin-inline: auto; text-align: center; max-width: 40ch; }
.sec-head h2 { margin: 1rem 0 0; }
.sec-head p { margin-top: 1.1rem; }

/* ---------- Split / feature rows ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split-copy .kicker { color: var(--accent); }

.feature-list { margin-top: 1.8rem; display: grid; gap: 1.15rem; }
.feature-list li { list-style: none; display: flex; gap: .95rem; align-items: flex-start; }
.feature-list .fi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-brd); color: var(--accent); }
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list b { font-weight: 600; color: var(--cream); font-size: 1.02rem; }
.feature-list p { color: var(--taupe); font-size: .95rem; margin-top: .1rem; }

/* ---------- Ritual scroll story ----------------------------------------- */
.ritual { position: relative; }
.ritual-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; counter-reset: step; }
.ritual-step { position: relative; padding: 1.7rem 1.4rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-brd); overflow: hidden; }
.ritual-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Newsreader", serif; font-size: 1rem; color: var(--ember); letter-spacing: .1em; opacity: .8;
}
.ritual-step .rico { width: 46px; height: 46px; margin: 1rem 0 .9rem; color: var(--ember); }
.ritual-step h3 { font-size: 1.35rem; }
.ritual-step p { color: var(--taupe); font-size: .94rem; margin-top: .5rem; }
.ritual-step .glow-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ember), transparent); opacity: .6; }

.ritual-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; margin-top: clamp(3rem,6vw,5rem); }

/* ---------- Feed card recreation (app-faithful, real Scripture) --------- */
.feedcard {
  position: relative; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(180deg, rgba(35,23,50,.6), rgba(18,11,29,.7));
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-soft);
  min-height: 340px; display: flex; flex-direction: column; justify-content: center; text-align: center;
  overflow: hidden;
}
.feedcard::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,154,94,.22), transparent 70%); pointer-events: none; }
.feedcard .cat-label { margin-bottom: 1.3rem; }
.feedcard .verse { font-family: "Newsreader", serif; font-weight: 300; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.4rem); line-height: 1.28; letter-spacing: -.01em; color: var(--cream); }
.feedcard .cite { margin-top: 1.4rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.feedcard .verse-fade { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.feedcard.swapping .verse-fade { opacity: 0; transform: translateY(8px); }

/* ---------- Collections grid -------------------------------------------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 3rem; }
.coll {
  position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-brd);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.coll:hover { transform: translateY(-4px); background: var(--glass-2); border-color: rgba(255,154,94,.3); }
.coll .cico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ember); background: rgba(255,154,94,.1); margin-bottom: .9rem; transition: transform .4s var(--ease); }
.coll:hover .cico { transform: scale(1.08) rotate(-3deg); }
.coll .cico svg { width: 20px; height: 20px; }
.coll h3 { font-size: 1.2rem; letter-spacing: 0; }
.coll p { font-size: .86rem; color: var(--taupe); margin-top: .25rem; font-style: italic; }
.coll .coll-glow { position: absolute; inset: auto -20% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,154,94,.18), transparent); opacity: 0; transition: opacity .35s; }
.coll:hover .coll-glow { opacity: 1; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--glass-brd); }
.stat b { font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--cream); display: block; line-height: 1; }
.stat span { font-size: .86rem; color: var(--taupe); letter-spacing: .04em; }

/* ---------- Rosary ------------------------------------------------------ */
.rosary-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.rosary-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.bead-svg { width: 100%; height: 100%; overflow: visible; }
.bead-svg .loop { fill: none; stroke: rgba(245,237,228,.16); stroke-width: 1.4; }
.bead-svg .decade-bead { fill: rgba(245,237,228,.5); transition: fill .3s, r .3s; }
.bead-svg .decade-bead.lit { fill: var(--ember); filter: url(#beadglow); }
.bead-svg .big-bead { fill: var(--ember-bright); }
.rosary-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.rosary-center .today-myst { font-family: "Newsreader", serif; font-size: 1.8rem; color: var(--cream); }
.rosary-center .today-day { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-bottom: .4rem; }

.day-picker { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.day-picker button {
  width: 42px; height: 42px; border-radius: 50%; font-size: .85rem; font-weight: 600; color: var(--taupe);
  border: 1px solid var(--glass-brd); background: var(--glass); transition: all .25s var(--ease);
}
.day-picker button:hover { color: var(--cream); border-color: var(--glass-brd-2); }
.day-picker button[aria-pressed="true"] { background: var(--ember); color: var(--espresso); border-color: transparent; }

.mystery-list { margin-top: 1.8rem; display: grid; gap: .5rem; }
.mystery-item { display: flex; gap: 1rem; align-items: baseline; padding: .85rem 1rem; border-radius: 14px; background: var(--glass); border: 1px solid transparent; transition: border-color .25s, background .25s; }
.mystery-item:hover { border-color: var(--glass-brd); background: var(--glass-2); }
.mystery-item .mn { font-family: "Newsreader", serif; color: var(--ember); font-size: 1rem; width: 1.4em; flex: none; }
.mystery-item .mt { color: var(--cream); font-weight: 500; }
.mystery-item .mf { color: var(--taupe); font-size: .82rem; margin-left: auto; font-style: italic; white-space: nowrap; }
.mystery-item .ms { color: var(--taupe-2); font-size: .78rem; letter-spacing: .06em; }

/* ---------- Liturgical clock -------------------------------------------- */
.lit-swatches { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.lit-sw { display: flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .6rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); font-size: .85rem; color: var(--taupe); transition: all .25s var(--ease); }
.lit-sw:hover, .lit-sw[aria-pressed="true"] { color: var(--cream); border-color: var(--glass-brd-2); }
.lit-sw .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }

.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-top: 3rem; }
.hour { padding: 1.5rem 1.4rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-brd); position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.hour:hover { transform: translateY(-4px); border-color: rgba(255,154,94,.28); }
.hour .htime { font-family: "Newsreader", serif; font-size: 1.05rem; color: var(--ember); letter-spacing: .04em; }
.hour .hico { width: 34px; height: 34px; color: var(--ember); margin-bottom: 1rem; }
.hour h3 { font-size: 1.25rem; margin-top: .2rem; }
.hour p { color: var(--taupe); font-size: .9rem; margin-top: .35rem; }

/* ---------- Privacy pills ----------------------------------------------- */
.privacy-hero { text-align: center; }
.pills { display: flex; flex-direction: column; gap: .8rem; max-width: 420px; margin: 2.4rem auto 0; }
.pill { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.4rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); text-align: left; }
.pill .pico { width: 24px; height: 24px; color: var(--ember); flex: none; }
.pill b { font-weight: 500; color: var(--cream); }

/* ---------- Free / CTA banner ------------------------------------------- */
.cta-band { text-align: center; position: relative; }
.cta-band .display { margin-bottom: 1.4rem; }
.free-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2rem auto 2.6rem; max-width: 720px; }
.free-badges span { font-size: .85rem; color: var(--taupe); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); }

/* ---------- Footer ------------------------------------------------------ */
.footer { padding-block: clamp(3.5rem,7vw,6rem) 3rem; border-top: 1px solid var(--glass-brd); background: linear-gradient(180deg, transparent, rgba(10,6,18,.6)); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer .brand { font-size: 1.7rem; margin-bottom: 1rem; }
.footer .foot-tag { color: var(--taupe); max-width: 34ch; font-style: italic; font-family: "Newsreader", serif; font-size: 1.15rem; line-height: 1.5; }
.footer h4 { font-family: "Hanken Grotesk", sans-serif; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-2); margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: .7rem; }
.footer ul a { color: var(--taupe); transition: color .2s; }
.footer ul a:hover { color: var(--ember); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--glass-brd); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--taupe-2); }

/* ---------- Legal / Support pages --------------------------------------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem,7vw,6rem)); padding-bottom: clamp(2rem,5vw,3.5rem); text-align: center; }
.page-hero .eff { margin-top: 1rem; font-size: .9rem; letter-spacing: .04em; color: var(--taupe); }
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem,1.2rem+1vw,2rem); margin-top: 3rem; margin-bottom: .9rem; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .6rem; }
.prose p { color: rgba(245,237,228,.86); margin-bottom: 1.1rem; line-height: 1.75; }
.prose p.first-letter::first-letter { font-family: "Newsreader", serif; font-size: 3.4em; float: left; line-height: .82; padding: .05em .12em 0 0; color: var(--ember); }
.prose ul { margin: 0 0 1.2rem 0; padding-left: 1.2rem; color: rgba(245,237,228,.86); display: grid; gap: .5rem; }
.prose ul li::marker { color: var(--ember); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,154,94,.4); }
.prose a:hover { text-decoration-color: var(--ember); }

.legal-card { padding: clamp(1.8rem,4vw,3rem); border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-soft); }
.pledge { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin: 2.5rem auto 0; max-width: 720px; }
.pledge div { padding: 1.4rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-brd); text-align: center; }
.pledge .pi { width: 30px; height: 30px; color: var(--ember); margin: 0 auto .8rem; }
.pledge b { display: block; color: var(--cream); font-weight: 600; margin-bottom: .2rem; }
.pledge span { font-size: .85rem; color: var(--taupe); }

/* Support */
.support-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.2rem; margin-top: 3rem; }
.support-card { padding: 2rem 1.8rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-brd); transition: transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.support-card:hover { transform: translateY(-4px); border-color: rgba(255,154,94,.28); }
.support-card .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,154,94,.1); color: var(--ember); margin-bottom: 1.2rem; }
.support-card h3 { font-size: 1.4rem; }
.support-card p { color: var(--taupe); font-size: .95rem; margin-top: .5rem; flex: 1; }
.support-card .link { margin-top: 1.2rem; color: var(--ember); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4em; }
.support-card:hover .link svg { transform: translateX(3px); }
.support-card .link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--glass-brd); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem .5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: "Newsreader", serif; font-size: 1.25rem; color: var(--cream); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--ember); transition: transform .3s var(--ease); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 .5rem 1.5rem; color: var(--taupe); line-height: 1.7; }
.faq .faq-body a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

.contact-band { text-align: center; margin-top: 4rem; padding: clamp(2.5rem,5vw,4rem); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(35,23,50,.55), rgba(18,11,29,.5)); border: 1px solid var(--glass-brd); position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; left: 50%; top: -40%; width: 60%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,154,94,.16), transparent 70%); }
.contact-band .email { display: inline-block; margin-top: 1.4rem; font-family: "Newsreader", serif; font-size: clamp(1.4rem,1rem+2vw,2.2rem); color: var(--ember); }

/* ---------- Reveal animations ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.94) translateY(20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: none; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes riseSpark {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-120px) scale(.4); opacity: 0; }
}

/* page transition — cross-document View Transitions where supported */
@view-transition { navigation: auto; }
.page-fade { animation: pageIn .7s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(root) { animation: pageIn .5s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 0; margin-bottom: 1rem; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-meta, .eyebrow { justify-content: center; }
  .eyebrow.centered::after, .eyebrow::before { }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.rev .split-media { order: 0; }
  .sec-head { max-width: none; text-align: center; margin-inline: auto; }
  .ritual-steps { grid-template-columns: repeat(2, 1fr); }
  .ritual-showcase { grid-template-columns: 1fr; }
  .rosary-wrap { grid-template-columns: 1fr; }
  .rosary-visual { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .foot-tag { max-width: none; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(18,11,29,.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 1rem var(--gutter) 2rem; gap: .2rem; border-bottom: 1px solid var(--glass-brd);
    transform: translateY(-120%); transition: transform .4s var(--ease); visibility: hidden; }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: .9rem .4rem; font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: .8rem 0 0; }
  .nav-toggle { display: flex; position: relative; }
  .hero-meta { gap: 1.2rem; }
  .hero-meta b { font-size: 1.4rem; }
  .ritual-steps { grid-template-columns: 1fr; }
  .collections { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mystery-item .mf { display: none; }
  .stat-row { gap: 1rem 1.8rem; }
}
@media (max-width: 420px) {
  .collections { grid-template-columns: 1fr; }
  .appstore { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .orb, .floaty { animation: none !important; }
  #sparks { display: none; }
}
@media (prefers-contrast: more) {
  :root { --taupe: #d6c8b8; --glass-brd: rgba(245,237,228,.28); }
}
