/* ==========================================================================
   Tentmaker — Design System
   Brand: Sermon Threads palette (slate / orange / amber), Outfit throughout.
   ========================================================================== */

:root {
  /* Brand */
  --slate: #3A5C74;
  --slate-deep: #1E3140;
  --orange: #F0652A;
  --amber: #F47C1C;

  /* Neutrals */
  --paper: #F4F6F8;
  --mist: #E3E8EC;
  --stone: #5C6B75;
  --fog: #C9D7E1;
  --white: #ffffff;
  --ink: #1E3140;

  /* Type */
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 76px;
  --radius: 12px;
  --radius-lg: 18px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(30, 49, 64, 0.07);
  --shadow: 0 10px 30px rgba(30, 49, 64, 0.12);
  --shadow-lg: 0 24px 56px rgba(30, 49, 64, 0.18);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--slate-deep);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--slate); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--slate-deep);
  color: #fff;
  padding: 14px 24px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--paper { background: var(--paper); }
.section--slate { background: var(--slate-deep); color: rgba(255, 255, 255, 0.86); }
.section--slate h1, .section--slate h2, .section--slate h3, .section--slate h4 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section--slate .eyebrow { color: var(--amber); }

.lede {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--stone);
}
.section--slate .lede { color: var(--fog); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }

.thread {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  margin-bottom: 20px;
}
.thread--center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(240, 101, 42, 0.32); }
.btn--primary:hover { background: #e0551c; box-shadow: 0 12px 26px rgba(240, 101, 42, 0.4); }

.btn--slate { background: var(--slate); color: #fff; box-shadow: 0 8px 20px rgba(58, 92, 116, 0.28); }
.btn--slate:hover { background: var(--slate-deep); }

.btn--ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--ghost:hover { background: var(--slate); color: #fff; }

.btn--ghost-white { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--slate-deep); border-color: #fff; }

.btn--white { background: #fff; color: var(--slate-deep); }
.btn--white:hover { background: var(--paper); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 17px 38px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--orange);
  transition: gap 0.22s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform 0.22s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.3s var(--ease);
}
/* Background + blur live on a pseudo-element, not .header itself, because
   backdrop-filter on .header would make it the containing block for the
   fixed-position mobile .nav panel (it'd render clipped to the header's
   own height instead of covering the full viewport). */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.header.is-solid { box-shadow: var(--shadow-sm); }

.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo img { height: 34px; width: auto; }
.header__logo--lockup img { height: 46px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-deep);
  border-radius: 8px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { background: var(--mist); }
.nav__link.is-active { color: var(--orange); font-weight: 600; }

.header__cta { margin-left: 6px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--slate-deep);
  border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: inherit;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent !important; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--slate-deep); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--slate-deep); }

/* --------------------------------------------------------------------------
   Hero (solid-color, no photography)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--slate-deep);
  color: #fff;
  padding: clamp(72px, 11vw, 128px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 101, 42, 0.16), transparent 70%);
  pointer-events: none;
}
/* Homepage hero photo: the desk sits on the right, text over the dark wall on the left */
.hero--photo {
  background: var(--slate-deep) url("/assets/img/hero-desk.webp") right center / cover no-repeat;
  padding: clamp(96px, 13vw, 168px) 0 clamp(84px, 11vw, 140px);
}
.hero--photo::after { display: none; }
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 49, 64, 0.94) 0%, rgba(30, 49, 64, 0.8) 38%, rgba(30, 49, 64, 0.2) 70%, rgba(30, 49, 64, 0) 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero--photo { background-position: 68% center; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(30, 49, 64, 0.88) 0%, rgba(30, 49, 64, 0.78) 100%); }
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.6;
  color: var(--fog);
  max-width: 580px;
  margin-bottom: 30px;
}

/* Inner page hero — smaller, same slate-deep treatment */
.page-hero {
  position: relative;
  background: var(--slate-deep);
  color: #fff;
  padding: calc(var(--header-h) + 0px) 0;
  padding-top: clamp(48px, 7vw, 76px);
  padding-bottom: clamp(48px, 7vw, 76px);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero .thread { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--fog); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 620px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Cards / grid
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mist);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { font-size: 0.96rem; color: var(--stone); margin-bottom: 18px; flex: 1; }
.card__foot { margin-top: auto; }

/* Product line cards (home page) */
.plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.plan-card__icon svg { width: 24px; height: 24px; }
.plan-card h3 { margin-bottom: 8px; }
.plan-card p { color: var(--stone); font-size: 0.96rem; margin-bottom: 18px; flex: 1; }
.plan-card__num { font-size: 1.3rem; font-weight: 700; }
.step-price { font-size: 0.9rem; font-weight: 600; color: var(--orange); margin-bottom: 12px; }
.steps-includes { margin-top: 14px; }
.steps-label { text-align: center; margin-bottom: 22px; }
.team-list { list-style: none; padding: 0; margin: 4px 0 24px; }
.team-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.team-list li:first-child { border-top: 1px solid var(--mist); }
.team-list strong { font-size: 1.1rem; font-weight: 600; color: var(--slate-deep); min-width: 64px; }
.team-list span { color: var(--stone); }

/* --------------------------------------------------------------------------
   Series "cover" typographic panel — stands in for missing cover art
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 26px 24px;
  color: #fff;
  background: var(--slate-deep);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 85% 12%, rgba(255,255,255,0.10), transparent 55%);
}
.cover__season {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.cover__title {
  position: relative;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 6px;
}
.cover__sub {
  position: relative;
  font-size: 0.86rem;
  color: var(--fog);
}
.cover .thread { position: relative; margin-bottom: 14px; }

/* Series card = cover + body, used in the Sermon Threads grid */
.series-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--mist); background: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.series-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.series-card .cover { border-radius: 0; aspect-ratio: 16 / 9; }
.series-card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.series-card__meta { font-size: 0.82rem; color: var(--stone); font-weight: 500; margin-bottom: 10px; }
.series-card__text { font-size: 0.95rem; color: var(--stone); margin-bottom: 18px; flex: 1; }
.series-card__price { font-size: 0.86rem; font-weight: 600; color: var(--slate-deep); margin-bottom: 14px; }

/* Series art: the title graphic on top of cards and series pages.
   Without art, a typographic panel stands in. */
.series-art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--slate-deep); }
.series-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.series-art--fallback { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; color: #fff; }
.series-art--fallback::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: radial-gradient(circle at 85% 12%, rgba(255,255,255,0.10), transparent 55%); }
.series-art__label { position: relative; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.series-art .thread { position: relative; margin-bottom: 14px; }
.series-art__title { position: relative; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.08; }
.series-art--lg.series-art--fallback { padding: 36px; }
.series-art--lg .series-art__title { font-size: clamp(2rem, 4.2vw, 3rem); }
.series-card .series-art { border-radius: 0; }
.series-card__season { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.series-card__title { font-size: 1.3rem; margin: 0 0 4px; }
.series-card__sub { font-size: 0.92rem; color: var(--slate); margin-bottom: 10px; }

/* Series page: title block under the art, price, and the what's-included list */
.series-head { margin-top: 24px; }
.series-head .eyebrow { margin-bottom: 8px; }
.series-head__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.series-head__sub { font-size: 1.08rem; color: var(--slate); margin-bottom: 6px; }
.series-head__meta { color: var(--stone); font-weight: 500; }
.price-line { font-size: 1.6rem; font-weight: 700; color: var(--slate-deep); margin-bottom: 18px; }
.price-line span { font-size: 1rem; font-weight: 500; color: var(--stone); }
.included { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--mist); }
.included__title { font-size: 1.25rem; margin-bottom: 14px; }
.included__note { color: var(--stone); font-size: 0.95rem; margin-bottom: 14px; }
.included .checklist li { font-size: 0.95rem; }

/* Large cover for the series product page itself */
.cover--lg { aspect-ratio: 16 / 9; padding: 40px; }
.cover--lg .cover__title { font-size: clamp(2rem, 4.2vw, 3rem); }

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; }
.checklist__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.checklist__icon svg { width: 13px; height: 13px; }
.tag-pending {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--mist);
  border-radius: 100px;
  padding: 3px 10px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pricing--three { grid-template-columns: repeat(3, 1fr); }
.price-card {
  background: #fff;
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--featured { border-color: var(--orange); box-shadow: var(--shadow-sm); position: relative; }
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.price-card__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.price-card__amount { font-size: 2.4rem; font-weight: 700; color: var(--slate-deep); line-height: 1; margin-bottom: 4px; }
.price-card__amount span { font-size: 1rem; font-weight: 500; color: var(--stone); }
.price-card__desc { font-size: 0.94rem; color: var(--stone); margin-bottom: 22px; }
.price-card .btn { margin-top: auto; }

.pricing-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--stone);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Week list
   -------------------------------------------------------------------------- */
.week-list { display: grid; gap: 14px; }
.week-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.week-row:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }
.week-row__date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 3px;
}
.week-row__num { display: block; font-size: 0.7rem; color: var(--stone); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.week-row h3 { font-size: 1.14rem; margin-bottom: 6px; }
.week-row p { font-size: 0.94rem; color: var(--stone); }

/* --------------------------------------------------------------------------
   Steps / tiles
   -------------------------------------------------------------------------- */
.tile {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.tile__icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.16rem; margin-bottom: 8px; }
.tile p { font-size: 0.94rem; color: var(--stone); }

/* --------------------------------------------------------------------------
   Verse / quote band
   -------------------------------------------------------------------------- */
.statement { text-align: center; max-width: 780px; margin-inline: auto; }
.statement__text {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.statement__ref {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--slate-deep);
  color: #fff;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 124, 28, 0.14), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--fog); font-size: 1.06rem; margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-deep);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  background: #fff;
  color: var(--slate-deep);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 4px rgba(58, 92, 116, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }

.signup {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.signup--slate { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.signup--slate .field label { color: #fff; }
.signup--slate .field input { background: rgba(255,255,255,0.94); }
.signup__row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup__row .field { flex: 1 1 240px; }
.signup__note { font-size: 0.86rem; color: var(--stone); margin-top: 14px; }
.section--slate .signup__note { color: var(--fog); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--slate-deep); color: rgba(255, 255, 255, 0.68); padding: clamp(52px, 6vw, 76px) 0 0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__logo img { width: 100%; max-width: 190px; height: auto; margin-bottom: 18px; }
.footer__blurb { font-size: 0.93rem; line-height: 1.65; margin-bottom: 18px; max-width: 300px; }
.footer h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer address { font-style: normal; font-size: 0.93rem; line-height: 1.7; margin-bottom: 16px; }
.footer address a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.divider { border: 0; border-top: 1px solid var(--mist); margin: 40px 0; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 60px); align-items: start; }

.img-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1.5px dashed var(--fog);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--stone);
}
.img-placeholder svg { width: 40px; height: 40px; stroke-width: 1.2; opacity: 0.6; }
.img-placeholder span { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header__inner { gap: 14px; }
  .nav__link { padding: 10px 10px; }
}
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 3; }
  .nav {
    position: fixed;
    z-index: 2;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: calc(var(--header-h) + 16px) 22px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -18px 0 50px rgba(30, 49, 64, 0.16);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__link { padding: 15px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .header__cta { display: none; }
  .nav__mobile-cta { display: block; margin-top: 18px; }
  .nav__mobile-cta .btn { width: 100%; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 49, 64, 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 99;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .two-col { grid-template-columns: 1fr; }
  .pricing, .pricing--three { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 901px) {
  .nav__mobile-cta { display: none; }
  .nav-backdrop { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr; gap: 8px; }
  .form__row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
  .signup__row { flex-direction: column; }
}

/* Store page series cards: art-led visual links */
.series-card--visual .series-card__body { padding: 18px 22px 22px; }
.series-card--visual .series-card__sub { margin-bottom: 0; }
.series-card--visual .series-art img { transition: transform 0.5s var(--ease); }
.series-card--visual:hover .series-art img { transform: scale(1.03); }
.tile__folder { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }

/* Find a Series (browse page) */
.filter-bar { display: grid; gap: 16px; padding: 22px 24px; margin-bottom: 36px; background: var(--paper, #F5F7F9); border: 1px solid var(--mist); border-radius: var(--radius-lg); }
.filter-bar__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-bar__label { width: 64px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-chip { font: inherit; font-size: 0.88rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--mist); background: #fff; color: var(--slate-deep); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.filter-chip:hover:not([disabled]) { border-color: var(--slate); }
.filter-chip[aria-pressed="true"] { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }
.filter-chip[disabled] { opacity: 0.45; cursor: default; }
.filter-chip small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-left: 4px; }
.filter-select { font: inherit; font-size: 0.92rem; padding: 10px 40px 10px 16px; border-radius: 999px; border: 1px solid var(--mist); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A5C74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; color: var(--slate-deep); appearance: none; -webkit-appearance: none; min-width: 240px; cursor: pointer; }
.filter-bar__count { margin-left: auto; font-size: 0.86rem; color: var(--stone); }
.series-grid .series-card[hidden] { display: none; }
.filter-empty { text-align: center; padding: 40px 0 8px; }
.filter-empty h3 { margin-bottom: 8px; }
.filter-empty p { color: var(--stone); }
.link-button { font: inherit; color: var(--orange); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 680px) {
  .filter-bar__label { width: 100%; }
  .filter-select { width: 100%; }
  .filter-bar__count { margin-left: 0; }
  .filter-chip[disabled] { display: none; }
}

/* Topics and "also works for" on series pages */
.series-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.series-topics__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-right: 4px; }
.topic-chip { font-size: 0.84rem; font-weight: 500; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--mist); color: var(--slate-deep); background: #fff; transition: border-color 0.2s, color 0.2s; }
.topic-chip:hover { border-color: var(--orange); color: var(--orange); }
.series-head__also { margin-top: 12px; font-size: 0.92rem; color: var(--stone); }
.series-head__also strong { color: var(--slate-deep); font-weight: 600; margin-right: 4px; }

/* --------------------------------------------------------------------------
   My Library
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; } /* store and library toggle buttons with the hidden attribute */
.library { background: var(--paper); min-height: 50vh; }
.lib-alert { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--mist); border-left: 4px solid var(--slate); color: var(--slate-deep); }
.lib-alert--success { border-left-color: #2E8B57; }
.lib-alert--error { border-left-color: #C0392B; }
.lib-panel { max-width: 640px; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); }
.lib-panel h2 { font-size: 1.5rem; margin-bottom: 10px; }
.lib-panel p { color: var(--stone); }
.lib-signin { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin: 22px 0 18px; }
/* Humans-only check (Turnstile): takes no room unless Cloudflare asks for a click. */
.human-check { grid-column: 1 / -1; width: 100%; }
.human-check:empty { display: none; }
.human-check[data-waiting], .human-check[data-error] { display: block; }
.human-check[data-error]::after { content: "We couldn\2019t run our spam check. Please refresh the page, or allow challenges.cloudflare.com if a blocker is on."; display: block; font-size: 0.85rem; color: #b3261e; margin-top: 8px; }
.human-check[data-waiting]::before { content: "Checking you\2019re a person\2026"; display: block; font-size: 0.85rem; color: var(--slate, #3A5C74); margin-top: 8px; }
.form .human-check:not(:empty), .signup .human-check:not(:empty) { margin-top: 12px; }
.lib-muted { color: var(--stone); }
.lib-small { font-size: 0.9rem; }
.lib-plan { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 22px 26px; background: #fff; border: 1px solid var(--mist); border-left: 4px solid var(--orange); border-radius: var(--radius); }
.lib-plan--warn { border-left-color: #C0392B; }
.lib-plan--gift { border-left-color: var(--slate); background: #F7FAFC; margin-bottom: 16px; }
.lib-plan__text { flex: 1 1 320px; }
.lib-plan__name { font-size: 1.12rem; font-weight: 700; color: var(--slate-deep); }
.lib-plan__when { font-size: 0.86rem; font-weight: 500; color: var(--stone); margin-left: 8px; }
.lib-plan p { margin: 4px 0 0; color: var(--stone); font-size: 0.96rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lib-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.lib-card .series-card__title a { color: inherit; text-decoration: none; }
.lib-card .series-card__title a:hover { color: var(--orange); }
.lib-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--mist); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.lib-card__label { font-size: 0.8rem; font-weight: 600; color: var(--stone); }
.lib-soon { font-size: 0.86rem; color: var(--stone); }
@media (max-width: 600px) {
  .lib-signin { grid-template-columns: 1fr; }
  .lib-signin .btn { width: 100%; }
}

/* Header account menu (added by main.js once the store is open) */
.account { position: relative; }
.account__icon { width: 18px; height: 18px; margin-right: 7px; flex-shrink: 0; }
.account__toggle { font: inherit; background: none; border: 0; cursor: pointer; }
.account__toggle::after { content: ""; width: 6px; height: 6px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
.account.is-open .account__toggle::after { transform: translateY(1px) rotate(-135deg); }
.account__menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow); }
.account.is-open .account__menu { display: block; }
.account__who { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--mist); font-size: 0.78rem; color: var(--stone); }
.account__who strong { display: block; margin-top: 2px; font-size: 0.92rem; font-weight: 600; color: var(--slate-deep); word-break: break-all; }
.account__item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 0.92rem; text-align: left; color: var(--slate-deep); cursor: pointer; }
.account__item:hover { background: var(--paper); }
.account__signout { color: var(--stone); }
@media (max-width: 900px) {
  .account { margin-top: 14px; }
  .account__toggle { display: none; }
  .account__menu { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; }
  .account__who { margin: 0 0 4px; padding: 12px; border: 0; border-radius: 8px; background: var(--paper); }
  .account__item { padding: 15px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
}

/* Library sections */
.lib-tabs { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--mist); overflow-x: auto; }
.lib-tab { margin-bottom: -1px; padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--stone); white-space: nowrap; cursor: pointer; }
.lib-tab:hover { color: var(--slate-deep); }
.lib-tab.is-active { color: var(--slate-deep); border-bottom-color: var(--orange); }
.lib-section h2 { font-size: 1.4rem; margin-bottom: 8px; }
.lib-section > p { color: var(--stone); max-width: 640px; }
.lib-profile { display: grid; gap: 18px; max-width: 520px; margin-top: 22px; }
.lib-profile .field input[readonly] { background: var(--paper); color: var(--stone); }
.lib-help { font-size: 0.86rem; color: var(--stone); }
.lib-saved { font-size: 0.9rem; font-weight: 600; color: #2E8B57; }

/* ---- Terms & Refunds ---- */
.legal h2 { font-size: 1.5rem; margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal ul { margin: 0 0 18px; padding-left: 1.2em; }
.legal li { margin-bottom: 10px; line-height: 1.65; }
.legal p { line-height: 1.7; }
.legal a { color: var(--slate); text-decoration: underline; }
.legal__date { font-size: 0.9rem; font-weight: 600; color: var(--stone); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 8px; }
.legal__toc a { text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--mist); color: var(--slate-deep); }
.legal__toc a:hover { border-color: var(--slate); }
.lib-profile { max-width: 600px; }
.lib-profile__head { font-size: 1.05rem; margin: 14px 0 -4px; padding-top: 18px; border-top: 1px solid var(--mist); }
.lib-profile__head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lib-profile__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .lib-profile__pair { grid-template-columns: 1fr; } }
.lib-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 8px; cursor: pointer; }
.lib-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.lib-check strong { display: block; color: var(--slate-deep); }
.lib-check span { font-size: 0.95rem; color: var(--stone); line-height: 1.55; }

/* ---- Preaching Notes ---- */
.notes h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.notes h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.notes p, .notes li { line-height: 1.7; }
.notes ul { padding-left: 1.2em; margin: 0 0 18px; }
.notes li { margin-bottom: 10px; }
.notes__intro { font-size: 1.1rem; color: var(--slate-deep); }
.notes__thread { margin: 28px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--paper); border-left: 4px solid var(--orange); }
.notes__thread p { margin: 6px 0 0; font-size: 1.12rem; font-weight: 600; color: var(--slate-deep); line-height: 1.55; }
.notes__reading { padding-top: 44px; margin-top: 40px; border-top: 1px solid var(--mist); scroll-margin-top: calc(var(--header-h) + 16px); }
.notes__callout { margin: 20px 0 14px; padding: 18px 22px; border-radius: var(--radius); background: #FDF3EE; }
.notes__callout strong { display: block; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.notes__callout p { margin: 0; font-size: 1.05rem; color: var(--slate-deep); }
.notes__callout--care { background: var(--paper); }
.notes__callout--care strong { color: var(--slate); }
.notes__watch { font-size: 0.95rem; color: var(--stone); }
.notes #room { padding-top: 44px; margin-top: 40px; border-top: 1px solid var(--mist); scroll-margin-top: calc(var(--header-h) + 16px); }
.notes__series { margin-top: 48px; padding: 30px; border-radius: var(--radius-lg); background: var(--slate-deep); color: #fff; }
.notes__series h2 { color: #fff; }
.notes__series p { color: var(--fog); }
.notes__series .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.notes__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; }
.notes__pager a { flex: 1 1 0; max-width: 50%; padding: 16px 20px; border: 1px solid var(--mist); border-radius: var(--radius); color: var(--slate-deep); font-weight: 600; text-decoration: none; }
.notes__pager a:hover { border-color: var(--slate); }
.notes__pager span { display: block; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.notes__pager-next { margin-left: auto; text-align: right; }
