/* ==========================================================================
   Edify - Bible pages (apps/edify-bible*.html). Loaded after style.css; everything is scoped
   to body.eb and uses the app's theme: warm cream, orange → pink, deep red, DM Serif + Poppins.
   ========================================================================== */

body.eb {
  --ink: #0d1333;
  --ink-soft: #4b4658;
  --ink-faint: #7d7385;
  --bg: #fffaf4;
  --bg-alt: #fff1e2;
  --bg-card: #ffffff;
  --line: #f1dfcc;

  --primary: #c24400;
  --primary-bright: #ff8a00;
  --primary-dark: #9a3500;
  --primary-soft: #ffe8d1;

  --eb-orange: #ff8a00;
  --eb-pink: #ff2d6f;
  --eb-deep: #7a180e;
  --eb-link: #b23c00;
  --eb-grad: linear-gradient(120deg, #e86a00 0%, #f0406a 100%);
  --eb-grad-soft: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 45, 111, 0.12));

  --shadow-md: 0 10px 30px rgba(122, 40, 10, 0.1);
  --shadow-lg: 0 30px 70px -18px rgba(122, 40, 10, 0.32);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

body.eb h1, body.eb h2, body.eb h3 { font-weight: 400; letter-spacing: -0.01em; }
body.eb h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
body.eb ::selection { background: #ffd2a6; color: var(--ink); }
body.eb :focus-visible { outline: 3px solid var(--eb-orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eb-skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.eb-skip:focus { top: 12px; }

/* ---------- Buttons & shared bits ---------- */
body.eb .btn { font-family: var(--font-body); }
body.eb .btn-primary {
  background: var(--eb-grad);
  background-size: 160% 100%;
  background-position: 0 0;
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(232, 80, 40, 0.6);
  transition: background-position .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
body.eb .btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 34px -10px rgba(232, 60, 60, 0.6); transform: translateY(-2px); }

.eb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eb-head { max-width: 720px; margin: 0 0 48px; }
.eb-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eb-head h2, body.eb section h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; color: var(--ink); }
body.eb .lead { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }
body.eb .lead a, .eb-legal a, .eb-guide-body a, .eb-link { color: var(--eb-link); font-weight: 600; }
.eb-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.eb-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.eb-link:hover svg { transform: translateX(4px); }
.eb-small { font-size: 14px; color: var(--ink-faint); margin-top: 22px; }

.eb-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #d24a00; background: var(--eb-grad-soft); margin-bottom: 16px;
  transition: transform .4s var(--ease);
}
.eb-card:hover .eb-icon, .eb-pillar:hover .eb-icon { transform: rotate(-6deg) scale(1.06); }

.eb-checks { display: grid; gap: 12px; margin-top: 22px; }
.eb-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.eb-checks svg {
  flex-shrink: 0; width: 22px; height: 22px; padding: 4px; margin-top: 2px;
  border-radius: 50%; color: #fff; background: var(--eb-grad);
}

/* ---------- Header ---------- */
body.eb .site-header { background: rgba(255, 250, 244, 0.86); }
body.eb .site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(122, 40, 10, 0.07); }
body.eb .brand { font-family: var(--font-display); font-weight: 400; font-size: 23px; color: var(--eb-deep); }
body.eb .brand small { font-family: var(--font-body); font-size: 10.5px; letter-spacing: .02em; color: var(--ink-faint); margin-top: 1px; }
.eb-brand-mark { width: 46px !important; height: 38px !important; }
.eb-mark { display: inline-block; line-height: 0; }
.eb-mark img { width: 100%; height: auto; }
body.eb .nav-links a { font-size: 14px; font-weight: 500; }
body.eb .nav-links a:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.eb .nav-toggle { background: #fff; border-color: var(--line); }
@media (max-width: 1080px) { body.eb .nav-links a { padding: 9px 11px; } }
@media (max-width: 980px) { body.eb .nav-links { display: none; } body.eb .nav-toggle { display: flex; } }
@media (max-width: 980px) and (min-width: 721px) {
  body.eb .mobile-nav {
    display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 28px 22px; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  body.eb.nav-open .mobile-nav { transform: none; opacity: 1; pointer-events: auto; }
  body.eb .mobile-nav a { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
}
body.eb .mobile-nav { background: var(--bg); }
body.eb .mobile-nav a:hover { background: var(--primary-soft); }

/* ---------- Breadcrumb ---------- */
body.eb .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 26px; }
body.eb .breadcrumb a:hover { color: var(--primary); }

/* ---------- Store buttons ---------- */
.eb-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-store {
  display: inline-flex; align-items: center; gap: 11px;
  min-width: 182px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #0d0d12; color: #fff; border: 1px solid #0d0d12;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.eb-store:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.55); }
.eb-store span { display: grid; line-height: 1.15; text-align: left; }
.eb-store small { font-size: 10.5px; letter-spacing: .04em; opacity: .85; }
.eb-store strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.eb-store.is-soon { background: #fff; color: var(--ink-soft); border: 1px dashed #d8c3ae; box-shadow: none; cursor: default; }
.eb-store.is-soon:hover { transform: none; }
.eb-stores-sm .eb-store { min-width: 0; padding: 8px 16px 8px 12px; }
.eb-stores-sm .eb-store strong { font-size: 15px; }
.eb-stores-center { justify-content: center; }
.eb-stores-col { flex-direction: column; }

/* ---------- Phones ---------- */
.eb-phone {
  position: relative; width: 100%; max-width: 290px;
  padding: 9px; border-radius: 40px; background: #16121f;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2e2838;
}
.eb-phone img { width: 100%; height: auto; border-radius: 32px; background: #fff; }
.eb-halo {
  position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 170, 60, 0.55), rgba(255, 45, 111, 0.16) 60%, transparent);
  filter: blur(30px); z-index: 0; animation: eb-breathe 7s ease-in-out infinite;
}
@keyframes eb-breathe { 0%, 100% { transform: scale(0.95); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }

.eb-stack { position: relative; display: grid; }
.eb-stack > .eb-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.eb-stack > .eb-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Hero ---------- */
.eb-hero { position: relative; padding: 118px 0 40px; overflow: hidden; background: linear-gradient(180deg, #fff6ea 0%, var(--bg) 70%); }
.eb-hero-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 20s ease-in-out infinite alternate; }
.eb-hero-bg span:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -140px; background: #ffd29a; }
.eb-hero-bg span:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 40px; background: #ffc2d4; animation-delay: -6s; }
.eb-hero-bg span:nth-child(3) { width: 380px; height: 380px; left: 40%; bottom: -200px; background: #ffe3b8; animation-delay: -12s; }
.eb-hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eb-hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--eb-deep); }
.eb-hero-brand .eb-mark { width: 72px; }
.eb-hero-brand small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: #e4561e; margin-top: 6px; letter-spacing: .01em; }
.eb-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; color: var(--ink); margin-bottom: 22px; }
.eb-hero h1 em {
  font-style: italic; background: var(--eb-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.eb-lead { font-size: 18.5px; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.eb-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.eb-trust li { display: inline-flex; align-items: center; gap: 7px; }
.eb-trust svg { width: 16px; height: 16px; color: #1f9d6b; }

.eb-flicker img { animation: eb-flicker 4.5s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes eb-flicker {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 170, 40, 0)); transform: scale(1); }
  45% { filter: drop-shadow(0 0 14px rgba(255, 170, 40, .75)); transform: scale(1.025); }
  60% { filter: drop-shadow(0 0 8px rgba(255, 170, 40, .5)); transform: scale(1.01); }
}

.eb-hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.eb-hero-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 60, .7), rgba(255, 45, 111, .2) 65%, transparent); filter: blur(24px); animation: eb-breathe 6s ease-in-out infinite; }
.eb-hero-visual .eb-stack { width: min(290px, 64vw); z-index: 3; animation: floaty 7s ease-in-out infinite; }
.eb-back { position: absolute !important; width: 200px; z-index: 1; opacity: .95; }
.eb-back-l { left: 0; top: 70px; transform: rotate(-9deg); animation: eb-float-l 8s ease-in-out infinite; }
.eb-back-r { right: 0; top: 150px; transform: rotate(8deg); animation: eb-float-r 9s ease-in-out infinite; }
@keyframes eb-float-l { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-16px); } }
@keyframes eb-float-r { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-12px); } }
.eb-chip {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-md);
  font-size: 14px; color: var(--ink);
}
.eb-chip b { font-weight: 600; }
.eb-chip span { width: 9px; height: 9px; border-radius: 50%; background: var(--eb-grad); box-shadow: 0 0 0 0 rgba(255, 110, 40, .6); animation: eb-ping 2s infinite; }
@keyframes eb-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 110, 40, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(255, 110, 40, 0); } }

.eb-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 48px; padding: 22px; border-radius: 24px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.eb-stat { text-align: center; padding: 6px 8px; }
.eb-stat + .eb-stat { border-left: 1px solid var(--line); }
.eb-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; background: var(--eb-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eb-stat span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- What is Edify ---------- */
.eb-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.eb-pillar, .eb-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.eb-pillar:hover, .eb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f4c9a1; }
.eb-pillar h3, .eb-card h3 { font-size: 24px; margin-bottom: 8px; color: var(--ink); }
.eb-pillar p, .eb-card p { font-size: 15px; color: var(--ink-soft); }
.eb-pillar::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--eb-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.eb-pillar:hover::after { transform: scaleX(1); }
.eb-what-more { max-width: 820px; margin: 40px auto 0; text-align: center; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Study panel demo ---------- */
.eb-demo {
  display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow-md);
  margin-bottom: 110px;
}
.eb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.eb-tabs button {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  transition: all .3s var(--ease);
}
.eb-tabs button:hover { border-color: #f2b27c; color: var(--ink); }
.eb-tabs button.is-active { background: var(--eb-grad); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -10px rgba(232, 80, 40, .7); }
.eb-tabtexts { min-height: 150px; }
.eb-tabtext h3 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin-bottom: 12px; }
.eb-tabtext p { font-size: 17px; color: var(--ink-soft); }
.eb-tabtext.is-active { animation: eb-in .6s var(--ease) both; }
@keyframes eb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eb-demo-phone { position: relative; display: grid; place-items: center; }
.eb-demo-phone .eb-stack { width: min(300px, 66vw); z-index: 1; }

/* ---------- Feature rows ---------- */
.eb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 120px; scroll-margin-top: 100px; }
.eb-row-flip .eb-row-copy { order: 2; }
.eb-row h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; color: var(--ink); margin-bottom: 16px; }
.eb-row-copy > p { font-size: 17px; color: var(--ink-soft); }
.eb-row-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.eb-row-visual .eb-phone { z-index: 1; max-width: 270px; }
.eb-row-visual.is-pair .eb-phone-0 { transform: rotate(-4deg) translateX(34px); z-index: 2; }
.eb-row-visual.is-pair .eb-phone-1 { transform: rotate(5deg) translate(-34px, 50px); }
.eb-row-visual .eb-phone { transition: transform .8s var(--ease); }
.eb-row-visual.in.is-pair .eb-phone-0 { animation: eb-tilt-a 9s ease-in-out infinite; }
.eb-row-visual.in.is-pair .eb-phone-1 { animation: eb-tilt-b 10s ease-in-out infinite; }
@keyframes eb-tilt-a { 0%, 100% { transform: rotate(-4deg) translateX(34px); } 50% { transform: rotate(-3deg) translate(34px, -12px); } }
@keyframes eb-tilt-b { 0%, 100% { transform: rotate(5deg) translate(-34px, 50px); } 50% { transform: rotate(4deg) translate(-34px, 38px); } }
.eb-row-visual.in:not(.is-pair) .eb-phone { animation: floaty 8s ease-in-out infinite; }

.eb-more-head { margin-top: 20px; }
.eb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.eb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.eb-grid .eb-card h3 { font-size: 21px; }

.eb-marquee {
  position: relative; display: flex; overflow: hidden; gap: 14px; margin-top: 56px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.eb-marquee-track { display: flex; gap: 14px; flex-shrink: 0; animation: eb-marquee 60s linear infinite; }
.eb-marquee:hover .eb-marquee-track { animation-play-state: paused; }
.eb-marquee li {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 17px; color: var(--eb-deep);
}
@keyframes eb-marquee { to { transform: translateX(calc(-100% - 14px)); } }

/* ---------- Pastors ---------- */
.eb-pastors { background: linear-gradient(180deg, var(--bg), #fff4e8); }
.eb-pastors-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.eb-steps { counter-reset: s; display: grid; gap: 6px; margin-top: 28px; position: relative; }
.eb-steps li { display: flex; gap: 18px; padding: 14px 0; position: relative; }
.eb-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 58px; bottom: -8px; width: 2px;
  background: linear-gradient(var(--eb-orange), rgba(255, 45, 111, .2));
}
.eb-step-n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--eb-grad); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(232, 80, 40, .8);
}
.eb-steps h4 { font-size: 17px; margin-bottom: 2px; color: var(--ink); }
.eb-steps p { font-size: 15px; color: var(--ink-soft); }
.eb-pastors-visual { position: relative; display: flex; justify-content: center; min-height: 560px; align-items: center; }
.eb-pastors-visual .eb-phone { max-width: 260px; z-index: 1; }
.eb-pastors-visual .eb-phone-0 { transform: rotate(-5deg) translateX(40px); z-index: 2; }
.eb-pastors-visual .eb-phone-1 { transform: rotate(5deg) translate(-40px, 60px); }
.eb-grid-3 .eb-card { padding: 28px; }

/* ---------- Daily rhythm ---------- */
body.eb ol.eb-rhythm, body.eb ol.eb-steps, body.eb .eb-toc ol { list-style: none; padding-left: 0; }
.eb-rhythm { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0 0 64px; }
.eb-rhythm::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 3px; border-radius: 3px;
  background: var(--eb-grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s;
}
.eb-rhythm.in::before { transform: scaleX(1); }
.eb-rhythm li { position: relative; text-align: center; padding: 0 4px; }
.eb-rhythm-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #d24a00; border: 2px solid #ffcf9e;
  box-shadow: 0 8px 20px -10px rgba(122, 40, 10, .45);
  transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.eb-rhythm.in .eb-rhythm-dot { transform: none; opacity: 1; }
.eb-rhythm.in li:nth-child(2) .eb-rhythm-dot { transition-delay: .25s; }
.eb-rhythm.in li:nth-child(3) .eb-rhythm-dot { transition-delay: .5s; }
.eb-rhythm.in li:nth-child(4) .eb-rhythm-dot { transition-delay: .75s; }
.eb-rhythm.in li:nth-child(5) .eb-rhythm-dot { transition-delay: 1s; }
.eb-rhythm.in li:nth-child(6) .eb-rhythm-dot { transition-delay: 1.25s; }
.eb-rhythm h4 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.eb-rhythm p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Listen ---------- */
.eb-listen { background: linear-gradient(160deg, #1a0a05 0%, #3d0e00 60%, #521300 100%); color: #f7e9dc; overflow: hidden; }
.eb-listen h2 { color: #fff !important; }
body.eb .eb-listen .lead, .eb-listen .eb-checks li { color: #f0d9c6; }
.eb-listen .eb-eyebrow { background: rgba(255, 138, 0, .18); color: #ffb870; }
body.eb .eb-listen .eb-small { color: #d8b9a1; }
.eb-listen-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.eb-listen-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 580px; }
.eb-listen-visual .eb-phone { max-width: 260px; z-index: 1; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #3a3040; }
.eb-listen-visual .eb-phone-0 { transform: translateX(40px) rotate(-4deg); z-index: 2; }
.eb-listen-visual .eb-phone-1 { transform: translate(-40px, 50px) rotate(5deg); }
.eb-wave { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: flex-end; height: 44px; z-index: 3; }
.eb-wave i { width: 5px; border-radius: 3px; background: linear-gradient(#ffb347, #ff2d6f); animation: eb-eq 1.2s ease-in-out infinite; height: 30%; }
.eb-wave i:nth-child(3n) { animation-duration: 1s; animation-delay: -.3s; }
.eb-wave i:nth-child(3n+1) { animation-duration: 1.4s; animation-delay: -.6s; }
.eb-wave i:nth-child(4n) { animation-duration: .9s; animation-delay: -.2s; }
@keyframes eb-eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.eb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.eb-pills li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; color: #fbe6d3; }

/* ---------- Guide teaser ---------- */
.eb-guide-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.eb-guide-card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: var(--eb-grad-soft); }
.eb-guide-card .btn { margin-top: 26px; }
.eb-methods { position: relative; display: grid; gap: 10px; }
.eb-methods li { display: grid; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.eb-methods li:hover { transform: translateX(6px); border-color: #f2b27c; }
.eb-methods b { font-weight: 600; color: var(--ink); }
.eb-methods span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Premium ---------- */
.eb-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 920px; margin: 0 auto; }
.eb-plan { position: relative; padding: 36px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.eb-plan h3 { font-size: 30px; color: var(--ink); }
.eb-plan-sub { color: var(--ink-faint); font-size: 14.5px; }
.eb-plan.is-premium { background: linear-gradient(#fff, #fff) padding-box, var(--eb-grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.eb-plan-badge { position: absolute; top: -14px; right: 28px; padding: 6px 14px; border-radius: 999px; background: var(--eb-grad); color: #fff; font-size: 12.5px; font-weight: 600; }

/* ---------- FAQ ---------- */
.eb-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.eb-faq-wrap .eb-head { position: sticky; top: 110px; }
.eb-faq-list { display: grid; gap: 12px; }
.eb-faq { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.eb-faq[open] { box-shadow: var(--shadow-md); border-color: #f4c9a1; }
.eb-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.eb-faq summary::-webkit-details-marker { display: none; }
.eb-faq summary h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.eb-faq-icon { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); transition: background .3s var(--ease), transform .4s var(--ease); }
.eb-faq-icon::before, .eb-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--primary); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.eb-faq-icon::after { transform: rotate(90deg); }
.eb-faq[open] .eb-faq-icon { background: var(--eb-grad); transform: rotate(180deg); }
.eb-faq[open] .eb-faq-icon::before, .eb-faq[open] .eb-faq-icon::after { background: #fff; }
.eb-faq[open] .eb-faq-icon::after { transform: rotate(0); }
.eb-faq-a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.eb-faq[open] .eb-faq-a { animation: eb-in .5s var(--ease) both; }

/* ---------- Download CTA ---------- */
.eb-cta {
  position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 36px;
  background: radial-gradient(120% 140% at 50% 0%, #fff3e3 0%, #ffe2c7 55%, #ffd0d9 100%);
  border: 1px solid #f6d2b1;
}
.eb-cta-glow { position: absolute; left: calc(50% - 260px); top: -120px; width: 520px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 90, .9), transparent); filter: blur(20px); animation: eb-breathe 6s ease-in-out infinite; }
.eb-cta > :not(.eb-cta-glow) { position: relative; }
.eb-cta .eb-mark { width: 96px; margin: 0 auto 18px; }
.eb-cta h2 { color: var(--eb-deep) !important; }
.eb-cta p { font-family: var(--font-display); font-style: italic; font-size: 20px; color: #6b3b25; margin: 14px auto 30px; max-width: 560px; }

/* ---------- Footer band ---------- */
.eb-footer-band { background: #241009; color: #ecd4c2; padding: 64px 0 56px; }
.eb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.eb-footer-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 30px; color: #fff; margin-bottom: 14px; }
.eb-footer-logo .eb-mark { width: 52px; }
.eb-footer-logo small { display: block; font-family: var(--font-body); font-size: 12px; color: #ffb870; }
.eb-footer-brand p { font-size: 14.5px; color: #cfb4a2; max-width: 340px; margin-bottom: 20px; }
.eb-footer-band .footer-col h2 { font-family: var(--font-body); font-size: 14px !important; font-weight: 600; color: #fff !important; margin-bottom: 16px; letter-spacing: .02em; }
.eb-footer-band .footer-col a { color: #cfb4a2; }
.eb-footer-band .footer-col a:hover { color: #fff; }
.eb-footer-band .eb-store.is-soon { background: transparent; color: #cfb4a2; border-color: rgba(255, 255, 255, .25); }
body.eb .site-footer { background: #150904; }
body.eb .to-top { background: #3d0e00; }
body.eb .to-top:hover { background: #e86a00; }

/* ---------- Guide & legal pages ---------- */
.eb-page-hero { position: relative; padding: 118px 0 56px; background: linear-gradient(180deg, #fff1e2, var(--bg)); overflow: hidden; }
.eb-page-hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 60, .45), transparent); animation: eb-breathe 8s ease-in-out infinite; }
.eb-page-hero .container { position: relative; z-index: 1; }
.eb-page-hero h1 { font-size: clamp(36px, 5.4vw, 58px); color: var(--ink); max-width: 820px; }
.eb-page-hero .lead { max-width: 720px; }

.eb-guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 24px; padding-bottom: 96px; }
.eb-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.eb-toc h2 { font-family: var(--font-body); font-size: 13px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint) !important; margin-bottom: 10px; }
.eb-toc ol { counter-reset: t; display: grid; gap: 2px; margin-bottom: 20px; }
.eb-toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); transition: background .25s, color .25s; }
.eb-toc a:hover { background: var(--bg-alt); color: var(--ink); }
.eb-toc a.is-current { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.eb-guide-body { max-width: 760px; font-size: 16.5px; color: #2d2a38; }
.eb-guide-body section { padding-top: 12px; margin-bottom: 44px; scroll-margin-top: 96px; }
.eb-guide-body h2 { font-size: clamp(28px, 3.4vw, 36px) !important; color: var(--ink); margin-bottom: 14px; }
.eb-guide-body h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin: 28px 0 8px; color: var(--ink); }
.eb-guide-body p, .eb-guide-body ul, .eb-guide-body ol { margin: 0 0 14px; }
.eb-guide-body ul { list-style: disc; padding-left: 22px; }
.eb-guide-body ul li { margin: 6px 0; }
.eb-guide-body strong { color: var(--ink); font-weight: 600; }
.eb-path { display: inline-block; font-size: .86em; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; padding: 1px 8px; white-space: nowrap; }
.eb-tip { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--eb-orange); }
.eb-tip strong:first-child { color: #c24400; }
.eb-gsteps { counter-reset: g; list-style: none; padding: 0; }
.eb-gsteps > li { counter-increment: g; position: relative; padding-left: 46px; margin: 14px 0; }
.eb-gsteps > li::before {
  content: counter(g); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--eb-grad); color: #fff; font-weight: 600; font-size: 14px;
}
.eb-ggrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0; }
.eb-gcard { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.eb-gcard h3 { margin-top: 0 !important; font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 22px !important; }
.eb-gcard p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.eb-figs { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); justify-items: center; margin: 24px 0 28px; }
.eb-fig { margin: 0; width: 100%; max-width: 272px; }
.eb-fig.is-tablet { max-width: 560px; grid-column: 1 / -1; }
.eb-fig.is-tablet img { width: 100%; height: auto; border-radius: 22px; border: 9px solid #16121f; box-shadow: var(--shadow-lg); }
.eb-fig figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-faint); line-height: 1.45; }
.eb-table-scroll { overflow-x: auto; margin: 16px 0; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.eb-guide-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eb-guide-body th, .eb-guide-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.eb-guide-body tr:last-child td { border-bottom: 0; }
.eb-guide-body th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); background: var(--bg); }
.eb-guide-body blockquote { margin: 26px 0; padding: 18px 22px; border-radius: 16px; background: #fff; border-left: 4px solid var(--eb-pink); font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--eb-deep); }
.eb-guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 40px; padding: 26px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, #fff3e3, #ffe2c7 60%, #ffd6de); border: 1px solid #f6d2b1; }
.eb-guide-cta .eb-mark { width: 56px; }
.eb-guide-cta h2 { font-size: 26px !important; margin: 0 !important; color: var(--eb-deep) !important; }
.eb-guide-cta p { margin: 0 !important; color: var(--ink-soft); }
.eb-guide-cta > div { flex: 1 1 200px; }
.eb-updated { margin-top: 26px; font-size: 14px; color: var(--ink-faint); }

.eb-legal { max-width: 780px; margin: 0 auto; padding: 24px 0 96px; font-size: 16px; color: #3b3746; }
.eb-legal h2 { font-size: 28px !important; color: var(--ink); margin: 36px 0 12px; }
.eb-legal h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.eb-legal p { margin-bottom: 14px; }
.eb-legal ul, .eb-legal ol { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.eb-legal li { margin-bottom: 8px; }
.eb-legal strong { color: var(--ink); font-weight: 600; }
.eb-legal hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.eb-legal-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.eb-legal-more a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft) !important; transition: all .25s var(--ease); }
.eb-legal-more a:hover { border-color: #f2b27c; color: var(--primary-dark) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .eb-stats { grid-template-columns: repeat(3, 1fr); }
  .eb-stat:nth-child(4) { border-left: 0; }
  .eb-pillars, .eb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .eb-rhythm { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .eb-rhythm::before { display: none; }
}
@media (max-width: 980px) {
  .eb-hero-grid, .eb-demo, .eb-row, .eb-pastors-grid, .eb-listen-grid, .eb-guide-card, .eb-faq-wrap { grid-template-columns: 1fr; }
  .eb-hero { padding-top: 104px; }
  .eb-hero-visual { min-height: 560px; }
  .eb-row { gap: 36px; margin-bottom: 88px; }
  .eb-row-flip .eb-row-copy { order: 0; }
  .eb-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-demo { padding: 32px; gap: 32px; }
  .eb-faq-wrap .eb-head { position: static; }
  .eb-guide { grid-template-columns: 1fr; gap: 24px; }
  .eb-toc { position: static; max-height: none; }
  .eb-toc ol { columns: 2; display: block; }
  .eb-toc .eb-stores-col { flex-direction: row; }
  .eb-footer-grid { grid-template-columns: 1fr 1fr; }
  .eb-listen-visual { order: 2; }
}
@media (max-width: 720px) {
  body.eb .container { padding: 0 16px; }
  body.eb .section { padding: 64px 0; }
  .eb-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .eb-hero-brand { font-size: 32px; }
  .eb-hero-brand .eb-mark { width: 56px; }
  .eb-hero-visual { min-height: 0; padding: 20px 0 56px; }
  .eb-back { width: 38vw; max-width: 170px; }
  .eb-back-l { left: -4vw; top: 40px; }
  .eb-back-r { right: -4vw; top: 110px; }
  .eb-stats { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .eb-stat { border-left: 0 !important; }
  .eb-stat:last-child { grid-column: 1 / -1; }
  .eb-pillars, .eb-grid, .eb-grid-4, .eb-plans { grid-template-columns: 1fr; }
  .eb-demo { padding: 22px 16px; border-radius: 24px; margin-bottom: 72px; }
  .eb-tabs button { padding: 8px 14px; font-size: 13.5px; }
  .eb-tabtexts { min-height: 190px; }
  .eb-row-visual, .eb-pastors-visual, .eb-listen-visual { min-height: 0; padding: 10px 0 60px; }
  .eb-row-visual .eb-phone, .eb-pastors-visual .eb-phone, .eb-listen-visual .eb-phone { max-width: 46vw; }
  .eb-rhythm { grid-template-columns: repeat(2, 1fr); }
  .eb-guide-card { padding: 28px 20px; }
  .eb-plan { padding: 28px 22px; }
  .eb-cta { padding: 56px 18px; border-radius: 26px; }
  .eb-store { min-width: 0; flex: 1 1 160px; }
  .eb-footer-grid { grid-template-columns: 1fr; }
  .eb-toc ol { columns: 1; }
  .eb-page-hero { padding-top: 100px; }
  .eb-chip { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-marquee-track { animation: none; }
  .eb-marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .eb-marquee-track[aria-hidden="true"] { display: none; }
  .eb-marquee-track { flex-wrap: wrap; }
  .eb-rhythm-dot { transform: none; opacity: 1; }
}

/* The site footer keeps its own brand colours. */
body.eb .site-footer .brand { color: #fff; font-family: var(--font-display); }

/* Store buttons keep their look inside link-styled areas (guide contents, guide body). */
body.eb a.eb-store, body.eb a.eb-store:hover { color: #fff !important; background: #0d0d12; display: inline-flex; font-weight: 400; }
.eb-toc a.eb-store { padding: 8px 16px 8px 12px; border-radius: 14px; }

.eb-store strong, .eb-store small { white-space: nowrap; }
@media (max-width: 720px) {
  body.eb .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  body.eb .site-header .brand small { display: none; }
}
@media (max-width: 480px) {
  body.eb .nav-cta .btn { display: none; }
  .eb-store { padding: 9px 14px 9px 12px; gap: 9px; }
  .eb-store strong { font-size: 16px; }
}

/* Embed view (?embed=1): the page inside the Edify app, without the site's header and footer. */
.eb-embed body.eb .site-header, .eb-embed .eb-skip, .eb-embed .eb-footer-band, .eb-embed .site-footer,
.eb-embed .to-top, .eb-embed .breadcrumb, .eb-embed .eb-page-hero .eb-eyebrow { display: none !important; }
.eb-embed .eb-page-hero { padding-top: 28px; padding-bottom: 20px; }
.eb-embed .eb-page-hero h1 { font-size: 32px; }
.eb-embed .eb-legal { padding-bottom: 40px; }

/* ---------- Tablet section ---------- */
.eb-tablet { background: radial-gradient(90% 70% at 85% 40%, #ffe6cc 0%, transparent 60%), linear-gradient(180deg, #fffaf4, #fff3e6); overflow: hidden; }
.eb-tablet-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.eb-tabtexts-sm { min-height: 118px; }
.eb-tabtexts-sm h3 { font-size: clamp(22px, 2.4vw, 28px) !important; }
.eb-tabtexts-sm p { font-size: 16px !important; }
.eb-tablet-visual { position: relative; display: grid; place-items: center; }
.eb-tablet-frame {
  position: relative; z-index: 1; width: min(520px, 100%); padding: 14px; border-radius: 34px;
  background: #16121f; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2e2838;
  transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transition: transform .9s var(--ease);
}
.eb-tablet-visual.in .eb-tablet-frame { animation: eb-tablet-float 9s ease-in-out infinite; }
.eb-tablet-frame:hover { transform: perspective(1600px) rotateY(0) rotateX(0); animation-play-state: paused; }
@keyframes eb-tablet-float {
  0%, 100% { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg) translateY(-12px); }
}
.eb-tablet-frame img { width: 100%; height: auto; border-radius: 22px; background: #fff; }
@media (max-width: 980px) {
  .eb-tablet-grid { grid-template-columns: 1fr; gap: 36px; }
  .eb-tablet-frame { transform: none; }
  .eb-tablet-visual.in .eb-tablet-frame { animation: none; }
}
@media (max-width: 720px) {
  .eb-tablet-frame { padding: 9px; border-radius: 24px; }
  .eb-tablet-frame img { border-radius: 16px; }
  .eb-tabtexts-sm { min-height: 150px; }
}
.eb-tablet-copy .eb-tabs { margin-top: 26px; margin-bottom: 22px; }
