/*
Theme Name:  Glean Podcast
Theme URI:   https://gleanpodcast.com
Author:      Treenice Wooden
Author URI:  https://gleanpodcast.com
Description: A Christian healing podcast theme for women recovering from trauma. Gathering Hope. Healing Hearts. Restoring Women.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glean-podcast
Tags:        podcast, healing, christian, women, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --purple-deep:    #5A3E85;
  --purple-mid:     #7B5EA7;
  --purple-light:   #9B7EC8;
  --lavender:       #C6B7E2;
  --lavender-light: #E8E0F5;
  --off-white:      #F9F7FC;
  --cream:          #F4F0FA;
  --gold:           #E6C27A;
  --gold-dark:      #C9A552;
  --gold-light:     #F5DFA8;
  --text-dark:      #2C1F45;
  --text-body:      #4A4058;
  --text-muted:     #7A6E8E;
  --white:          #FFFFFF;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', 'Open Sans', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-xl:   48px;
  --radius-full: 9999px;

  --shadow-soft:   0 4px 24px rgba(90, 62, 133, 0.10);
  --shadow-glow:   0 0 40px rgba(90, 62, 133, 0.18);
  --shadow-card:   0 8px 40px rgba(90, 62, 133, 0.12);
  --shadow-gold:   0 0 30px rgba(230, 194, 122, 0.20);

  --transition:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --container:     1160px;
  --section-py:    96px;
  --section-py-sm: 64px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple-deep);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--purple-mid);
}

ul {
  list-style: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-body);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1320px;
}

section {
  position: relative;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--purple-deep);
  color: var(--white);
  border-color: var(--purple-deep);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: var(--white);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--text-dark);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(230, 194, 122, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--purple-deep);
  border-color: var(--lavender);
}

.btn--ghost:hover {
  background: var(--lavender-light);
  border-color: var(--purple-light);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-group--stacked {
  flex-direction: column;
  max-width: 480px;
}

input[type="email"],
input[type="text"],
input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--lavender);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 4px rgba(90, 62, 133, 0.08);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder {
  color: var(--text-muted);
}

.form-hero input[type="email"] {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.6);
  color: var(--text-dark);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.form-note--light {
  color: rgba(255,255,255,0.65);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#site-header.scrolled {
  background: rgba(249, 247, 252, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo-text .logo-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 0.12em;
}

.site-logo-text .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--purple-deep);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--purple-deep);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--purple-deep);
}

.nav-cta:hover {
  background: var(--purple-mid) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--purple-deep);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px 32px 32px;
  box-shadow: var(--shadow-card);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--lavender-light);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--lavender-light);
}

/* =========================================================
   HERO
   ========================================================= */

/*
 * HERO BACKGROUND — IMAGE SWAP INSTRUCTIONS
 * -----------------------------------------
 * Default state: rich brand gradient (looks premium without any photo).
 *
 * To add the final hero image, go to:
 *   WordPress Admin → Appearance → Customize → Hero Section → Hero Background Image
 *
 * Or replace the CSS background-image URL directly below.
 *
 * PHOTO BRIEF FOR TREENICE / DESIGNER:
 *   - REPLACE THIS with Treenice Wooden's final brand photography.
 *   - Ideal: Treenice in a reflective, prayerful, or ministerial pose.
 *   - Mood: warm light, soft focus, spiritually grounded, confident.
 *
 * STOCK PHOTO (INTERIM):
 *   If using a stock image before the brand shoot, search Unsplash for:
 *   "Black woman praying sunrise" · "African American woman peaceful faith"
 *   "Black woman worship light" · "Black woman prayer morning window"
 *   Then paste the Unsplash image URL into the CSS url() below, replacing
 *   the existing placeholder comment.
 *
 * OVERLAY: The linear-gradient overlay is set to keep text WCAG AA compliant.
 * Do not lighten it below ~0.72 opacity on the dark side.
 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  /*
   * Warm purple-to-gold sunrise gradient — default until brand photo is placed.
   * To add a photo: append   , url('YOUR-IMAGE-URL') center/cover no-repeat
   * after the closing parenthesis of the last radial-gradient(), before the semicolon.
   */
  background:
    radial-gradient(ellipse at 20% 70%, rgba(43, 21, 56, 0.95) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(230, 194, 122, 0.18) 0%, transparent 55%),
    linear-gradient(148deg,
      #2B1538 0%,
      #5A3E85 28%,
      #7B5EA7 52%,
      #B89DD4 72%,
      #E6C27A 100%
    );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(230,194,122,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 140px 32px 80px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  animation: fadeSlideUp 0.9s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
  line-height: 1;
  text-shadow: 0 2px 32px rgba(44, 31, 69, 0.35);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  max-width: 440px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero form panel */
.hero-form-panel {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  animation: fadeSlideUp 0.9s 0.2s ease both;
  box-shadow: 0 16px 60px rgba(44, 31, 69, 0.25);
}

.hero-form-panel .panel-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.hero-form-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-form-panel p {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-form-panel .offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 194, 122, 0.18);
  border: 1px solid rgba(230, 194, 122, 0.4);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.form-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-hero input[type="email"] {
  padding: 15px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-hero input[type="email"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.form-hero input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(230, 194, 122, 0.12);
}

.form-hero .btn {
  width: 100%;
}

.form-privacy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 4px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 1px;
}

/* =========================================================
   VALUE SECTION
   ========================================================= */
.section-value {
  padding: var(--section-py) 0;
  background: var(--white);
  overflow: hidden;
}

.value-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.value-image-wrap {
  position: relative;
}

.value-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 15%;  /* keeps Treenice's face in frame when cropped */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/*
 * VALUE SECTION — IMAGE PLACEHOLDER
 * Displayed when no real photo is placed.
 * Replace with an actual <img> tag once brand photography is available.
 * See the HTML comment in front-page.php, Section 2.
 */
.value-image-placeholder {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background:
    radial-gradient(ellipse at 30% 80%, rgba(43, 21, 56, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(230, 194, 122, 0.25) 0%, transparent 50%),
    linear-gradient(145deg, #3A2760 0%, #5A3E85 35%, #9B7EC8 65%, #E6C27A 100%);
  position: relative;
  overflow: hidden;
}

.value-image-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(43, 21, 56, 0.4), transparent);
}

.value-image-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 20px rgba(255,255,255,0.04), 0 0 0 40px rgba(255,255,255,0.025);
}

.value-image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--purple-deep);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.value-image-badge .badge-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.value-image-badge .badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-top: 4px;
}

.value-content .eyebrow {
  margin-bottom: 16px;
}

.value-content h2 {
  margin-bottom: 24px;
  color: var(--text-dark);
}

.value-content h2 em {
  color: var(--purple-deep);
  font-style: normal;
}

.value-content .lead {
  margin-bottom: 32px;
  color: var(--text-body);
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--lavender-light), var(--cream));
  border: 1.5px solid var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-text h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--purple-deep);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   PODCAST SECTION
   ========================================================= */
.section-podcast {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-muted);
}

.podcast-player {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--lavender-light);
}

.player-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.player-embed {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--cream) 100%);
  border-radius: var(--radius-md);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--lavender);
  position: relative;
  overflow: hidden;
}

.player-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(90,62,133,0.05) 0%, transparent 70%);
}

.player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.player-placeholder .play-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.player-placeholder .play-icon:hover {
  background: var(--purple-mid);
  transform: scale(1.08);
}

.player-placeholder span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.player-platforms {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.platform-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--lavender);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-deep);
  transition: var(--transition);
  background: var(--white);
}

.platform-link:hover {
  background: var(--lavender-light);
  border-color: var(--purple-light);
  color: var(--purple-deep);
}

/* Episode Cards */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.episode-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--lavender-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--lavender);
}

.episode-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.episode-card-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
  /* Default gradient — overridden by variant classes below */
  background: linear-gradient(135deg, #2B1538 0%, var(--purple-deep) 50%, var(--lavender) 100%);
}

/*
 * EPISODE CARD IMAGE VARIANTS
 * Three distinct gradients keyed to each episode's emotional theme.
 * Replace with real episode artwork thumbnails when available.
 * Unsplash search suggestions are in front-page.php comments.
 */

/* Episode card 1 — "Prayer / Light breaking through" */
.episode-card-gradient-1 {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(230, 194, 122, 0.35) 0%, transparent 55%),
    linear-gradient(145deg, #2B1538 0%, #5A3E85 45%, #C6B7E2 100%);
}

/* Episode card 2 — "Healing / Warmth / Comfort" */
.episode-card-gradient-2 {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(230, 194, 122, 0.2) 0%, transparent 60%),
    linear-gradient(145deg, #3A1A45 0%, #7B5EA7 50%, #D4A5C9 100%);
}

/* Episode card 3 — "Hope / New beginning / Nature" */
.episode-card-gradient-3 {
  background:
    radial-gradient(ellipse at 60% 20%, rgba(245, 223, 168, 0.28) 0%, transparent 50%),
    linear-gradient(145deg, #1E2B35 0%, #2B5A4A 40%, #8FAF9B 70%, #C6B7E2 100%);
}

.episode-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.episode-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.episode-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.35;
}

.episode-excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--lavender-light);
  margin-top: auto;
}

.episode-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.episode-play {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--lavender-light);
  border: 1.5px solid var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-deep);
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

/* "Listen Soon" / "Coming Soon" text variant — used on placeholder episode cards */
.episode-play--soon {
  width: auto;
  height: auto;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1.5px solid var(--lavender);
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--purple-mid);
  cursor: default;
}

.episode-play:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  color: var(--white);
}

/* =========================================================
   EMAIL LEAD SECTION
   ========================================================= */
.section-email-lead {
  padding: var(--section-py) 0;
  background: linear-gradient(145deg, #3A2760 0%, var(--purple-deep) 45%, #7B5EA7 100%);
  overflow: hidden;
  position: relative;
}

.section-email-lead::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(230,194,122,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.section-email-lead::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(198,183,226,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.email-lead-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.email-lead-content .eyebrow {
  color: var(--gold-light);
  margin-bottom: 16px;
}

.email-lead-content h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.email-lead-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.offer-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

.offer-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.offer-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(230, 194, 122, 0.2);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.email-lead-form-panel {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.2);
}

.email-lead-form-panel .offer-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-gold);
}

.email-lead-form-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.email-lead-form-panel .subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-lead input[type="email"] {
  padding: 15px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-lead input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-lead input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 4px rgba(230, 194, 122, 0.12);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.section-about {
  padding: var(--section-py) 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;  /* anchors to top so full portrait isn't cropped mid-face */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/*
 * ABOUT SECTION — TREENICE PORTRAIT PLACEHOLDER
 * -----------------------------------------------
 * This placeholder appears until Treenice's real photo is uploaded.
 * It is designed to hold the same dimensions as the final portrait (3:4 ratio).
 * See the HTML comment in front-page.php, Section 5, for replacement instructions.
 */
.about-image-placeholder {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(198, 183, 226, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(230, 194, 122, 0.18) 0%, transparent 45%),
    linear-gradient(160deg, #2B1538 0%, #5A3E85 40%, #8FAF9B 80%, #C6B7E2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Soft portrait circle suggestion */
.about-image-placeholder::before {
  content: '';
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.15);
  display: block;
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(43, 21, 56, 0.55), transparent);
}

.about-image-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--lavender);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-image-quote {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 200px;
  box-shadow: var(--shadow-gold);
}

.about-image-quote p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.5;
}

.about-content .eyebrow {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 8px;
}

.about-content .subtitle-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--purple-mid);
  font-style: italic;
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 18px;
  color: var(--text-body);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tag {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--lavender-light);
  border: 1px solid var(--lavender);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-deep);
  letter-spacing: 0.04em;
}

/* =========================================================
   FINAL CTA SECTION
   ========================================================= */
.section-final-cta {
  padding: var(--section-py) 0;
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.section-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(90, 62, 133, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(123, 94, 167, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.section-final-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 800px;
  height: 800px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(198, 183, 226, 0.08);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-inner .eyebrow {
  color: var(--gold-light);
  margin-bottom: 24px;
}

.final-cta-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.final-cta-inner h2 em {
  color: var(--gold);
  font-style: normal;
}

.final-cta-inner p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.final-cta-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.final-cta-verse cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: #1A0E2E;
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.footer-brand .logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  background: rgba(198,183,226,0.1);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--lavender);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
}

.footer-bottom a:hover {
  color: var(--lavender);
}

/* =========================================================
   GENERIC PAGE & SINGLE
   ========================================================= */
.page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(160deg, var(--lavender-light) 0%, var(--off-white) 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .lead {
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  padding: 72px 0;
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
}

.content-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 20px;
}

.content-body ul li,
.content-body ol li {
  margin-bottom: 8px;
  color: var(--text-body);
}

/* Single post */
.post-header {
  padding: 140px 0 56px;
  background: linear-gradient(160deg, #3A2760 0%, var(--purple-deep) 100%);
  color: var(--white);
  text-align: center;
}

.post-category {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(230,194,122,0.2);
  border: 1px solid rgba(230,194,122,0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.post-title {
  color: var(--white);
  margin-bottom: 20px;
}

.post-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.post-body {
  padding: 64px 0;
}

/* =========================================================
   UTILITIES / ANIMATIONS
   ========================================================= */
.text-center { text-align: center; }
.text-white  { color: var(--white); }

.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--gold-dark);
  font-size: 0.8rem;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  max-width: 120px;
  opacity: 0.5;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeSlideUp 0.8s ease both;
}

.animate-fade-up--delay-1 { animation-delay: 0.15s; }
.animate-fade-up--delay-2 { animation-delay: 0.30s; }
.animate-fade-up--delay-3 { animation-delay: 0.45s; }

/* Intersection Observer fade-in for sections */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle { max-width: 100%; }
  .hero-buttons  { justify-content: center; }
  .hero-eyebrow  { justify-content: center; }

  .hero-form-panel { max-width: 520px; margin: 0 auto; }

  .value-inner          { grid-template-columns: 1fr; gap: 48px; }
  .email-lead-inner     { grid-template-columns: 1fr; gap: 48px; }
  .about-inner          { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner         { grid-template-columns: 1fr 1fr; gap: 40px; }

  .value-image-wrap { order: -1; }
  .about-image-wrap { order: -1; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-sm);
  }

  .nav-menu   { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 120px 20px 64px; }

  .hero-form-panel { padding: 32px 24px; }

  .episodes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .value-image-badge {
    bottom: -12px;
    right: -12px;
    padding: 14px 18px;
  }

  .email-lead-form-panel { padding: 32px 24px; }

  .about-image-quote {
    bottom: -12px;
    right: -12px;
    max-width: 160px;
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.2rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn { text-align: center; }

  .episodes-grid { grid-template-columns: 1fr; }

  .form-group { flex-direction: column; }
  .form-group input { min-width: unset; }

  .nav-inner { padding: 0 20px; }
}

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */
.alignleft   { float: left; margin: 0 24px 16px 0; }
.alignright  { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption  { max-width: 100%; }
.wp-caption p.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 6px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* =========================================================
   EMAIL CAPTURE POPUP
   =========================================================
   Animation pattern (two-class):
     1. JS adds .is-open   → display:flex takes effect
     2. JS adds .is-animating (next rAF) → CSS transitions fire
   Dismiss reverses:
     1. JS removes .is-animating → transitions play in reverse
     2. JS removes .is-open after 460ms → back to display:none
   ========================================================= */

/* ---- Backdrop wrapper ---- */
.glean-popup {
  display: none;           /* JS adds .is-open to show */
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glean-popup.is-open {
  display: flex;
}

/* ---- Dark overlay ---- */
.glean-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 21, 56, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.40s ease;
}

.glean-popup.is-animating .glean-popup__overlay {
  opacity: 1;
}

/* ---- Card ---- */
.glean-popup__card {
  position: relative;
  z-index: 1;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 52px 44px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 32px 80px rgba(43, 21, 56, 0.40),
    0 0 0 1px rgba(198, 183, 226, 0.25);
  overflow: hidden;

  /* Entry animation — starts scaled down */
  transform: scale(0.93) translateY(28px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity   0.40s ease;
}

.glean-popup.is-animating .glean-popup__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Top accent stripe — purple-to-gold gradient */
.glean-popup__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--purple-deep), var(--gold));
}

/* ---- Close button ---- */
.glean-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--lavender);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.glean-popup__close:hover {
  background: var(--lavender-light);
  border-color: var(--purple-light);
  color: var(--purple-deep);
}

.glean-popup__close:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 3px;
}

/* ---- Top ornament ---- */
.glean-popup__top {
  margin-bottom: 12px;
}

.glean-popup__ornament {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

/* ---- Eyebrow ---- */
.glean-popup__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

/* ---- Headline ---- */
.glean-popup__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 14px;
  font-weight: 700;
}

/* ---- Gold ornament divider ---- */
.glean-popup__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.7rem;
}

.glean-popup__divider::before,
.glean-popup__divider::after {
  content: '';
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}

/* ---- Body copy ---- */
.glean-popup__sub {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 8px;
}

.glean-popup__body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ---- Form area ---- */
.glean-popup__form {
  background: var(--white);
  border: 1.5px solid var(--lavender);
  border-left: 4px solid var(--purple-deep);
  border-radius: var(--radius-md);
  padding: 20px 20px 16px;
  margin-bottom: 14px;
  text-align: left;
}

/* Placeholder form (removed once ActiveCampaign code is added) */
.glean-popup__form-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glean-popup__email-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--lavender);
  background: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.glean-popup__email-input:focus {
  border-color: var(--purple-mid);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(90, 62, 133, 0.08);
}

.glean-popup__email-input::placeholder {
  color: var(--text-muted);
}

.glean-popup__submit {
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--purple-deep);
  background: var(--purple-deep);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}

.glean-popup__submit:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.glean-popup__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Privacy note ---- */
.glean-popup__privacy {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---- "Maybe later" dismiss link ---- */
.glean-popup__later {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.80rem;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
  display: inline-block;
}

.glean-popup__later:hover {
  color: var(--purple-deep);
}

.glean-popup__later:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   POPUP — RESPONSIVE
   ========================================================= */

/* Tablet and below: slide up from bottom edge */
@media (max-width: 600px) {
  .glean-popup {
    align-items: flex-end;
    padding: 0;
  }

  .glean-popup__card {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 40px 24px 32px;
    /* Override the desktop transform so it slides up from bottom */
    transform: translateY(40px) scale(1);
  }

  .glean-popup.is-animating .glean-popup__card {
    transform: translateY(0) scale(1);
  }

  .glean-popup__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 380px) {
  .glean-popup__card {
    padding: 36px 18px 28px;
  }
}

/* =========================================================
   404 PAGE
   ========================================================= */

.error-404-hero {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(43, 21, 56, 0.95) 0%, transparent 60%),
    linear-gradient(148deg, #2B1538 0%, #5A3E85 45%, #7B5EA7 75%, #E6C27A 100%);
  padding: 120px 0 100px;
  text-align: center;
  color: var(--white);
}

.error-404-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0;
}

.error-404-divider {
  color: var(--gold);
  font-size: 1rem;
  margin: 20px 0;
  opacity: 0.7;
}

.error-404-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.error-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404-recent {
  padding: 80px 0 96px;
  background: var(--off-white);
}

.error-404-recent-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
}
