/* Worldly App-style web pages — matches the React app's dark theme.
   Used by library.html (Browse) and stories/*.html (StoryDetails).
   Author bios use scrapbook.css instead. */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* === Dark theme tokens === */
  --bg-1: #1a1a2e;
  --bg-2: #16213e;
  --bg-3: #0f3460;

  --primary:   #53a8e2;
  --secondary: #9b6bff;
  --accent:    #ff6b9d;
  --yellow:    #ffd93d;

  --text-primary:   #f0f0f0;
  --text-secondary: #b8b8b8;
  --text-muted:     #808080;

  --surface-card:   rgba(26, 26, 52, 1);
  --surface-nested: rgba(255, 255, 255, 0.08);
  --border:         rgba(255, 255, 255, 0.15);
  --divider:        rgba(255, 255, 255, 0.10);

  /* === Fonts === */
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  /* === Sizes === */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 15px;
  --fs-lg: 16px;
  --fs-xl: 19px;
  --fs-2xl: 20px;
  --fs-3xl: 24px;
  --fs-4xl: 32px;
  --fs-5xl: 48px;

  --radius-sm: 4px;
  --radius-base: 10px;
  --radius-lg: 20px;
  --radius-full: 1000px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-base: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;

  --layout-max: 1200px;
  --content-max: 720px;

  --gradient-bg: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-logo: linear-gradient(90deg, var(--yellow) 0%, var(--accent) 50%, var(--primary) 100%);

  --nav-bg:        rgba(26, 26, 46, 0.85);
  --footer-bg:     rgba(0, 0, 0, 0.20);
  --actionbar-bg:  rgba(26, 26, 46, 0.92);
  --cover-fade-to: var(--bg-1);
  --card-hover-shadow: 0 12px 28px -8px rgba(0,0,0,0.5);
  --cta-shadow:    0 6px 18px rgba(83, 168, 226, 0.30);
}

/* === Light theme === source: client/lib/theme.ts lightTheme === */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"], :root:not([data-theme]) {
    --bg-1: #f8f9fa;
    --bg-2: #e8ecf0;
    --bg-3: #d8e2ec;

    --primary:   #2a8cc8;
    --secondary: #7d4ed4;
    --accent:    #d94b7a;
    --yellow:    #c79400;

    --text-primary:   #1a1a2e;
    --text-secondary: #5a5a6a;
    --text-muted:     #909090;

    --surface-card:   rgba(255, 255, 255, 1);
    --surface-nested: rgba(0, 0, 0, 0.05);
    --border:         #d0d0d0;
    --divider:        rgba(0, 0, 0, 0.08);

    --nav-bg:        rgba(248, 249, 250, 0.85);
    --footer-bg:     rgba(0, 0, 0, 0.04);
    --actionbar-bg:  rgba(248, 249, 250, 0.92);
    --cover-fade-to: var(--bg-1);
    --card-hover-shadow: 0 12px 28px -8px rgba(0,0,0,0.18);
    --cta-shadow:    0 6px 18px rgba(42, 140, 200, 0.30);
  }
}

/* === Manual overrides (data-theme on <html>) for when we add a toggle === */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg-1: #f8f9fa;
  --bg-2: #e8ecf0;
  --bg-3: #d8e2ec;
  --primary:   #2a8cc8;
  --secondary: #7d4ed4;
  --accent:    #d94b7a;
  --yellow:    #c79400;
  --text-primary:   #1a1a2e;
  --text-secondary: #5a5a6a;
  --text-muted:     #909090;
  --surface-card:   rgba(255, 255, 255, 1);
  --surface-nested: rgba(0, 0, 0, 0.05);
  --border:         #d0d0d0;
  --divider:        rgba(0, 0, 0, 0.08);
  --nav-bg:        rgba(248, 249, 250, 0.85);
  --footer-bg:     rgba(0, 0, 0, 0.04);
  --actionbar-bg:  rgba(248, 249, 250, 0.92);
  --cover-fade-to: var(--bg-1);
  --card-hover-shadow: 0 12px 28px -8px rgba(0,0,0,0.18);
  --cta-shadow:    0 6px 18px rgba(42, 140, 200, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

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

/* ───────── Nav ───────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
}
.app-nav-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.app-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: background .15s;
}
.app-back:hover { background: var(--surface-nested); color: var(--text-primary); }
.app-back svg { width: 18px; height: 18px; }

.app-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.app-nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.app-nav-links a:hover { color: var(--text-primary); }
.app-nav-links .app-cta {
  background: var(--gradient-primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(83, 168, 226, 0.25);
}
.app-nav-links .app-cta:hover { color: #fff; transform: translateY(-1px); }

@media (max-width: 640px) {
  .app-nav { padding: 12px 16px; }
  .app-nav-links { gap: 14px; }
  .app-nav-links a:not(.app-cta) { display: none; }
}

/* ───────── Browse / Library ───────── */
.browse-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.browse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.browse-title {
  font-family: var(--font-head);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text-primary);
}
.browse-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  margin-top: 4px;
}

.browse-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-nested);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.browse-search svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }
.browse-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-family: inherit;
}
.browse-search input::placeholder { color: var(--text-secondary); }

.browse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.browse-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-nested);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.browse-chip:hover { color: var(--text-primary); background: rgba(255,255,255,0.12); }
.browse-chip.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 16px;
}
@media (min-width: 640px) {
  .browse-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.browse-card {
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}
.browse-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-card);
  border-radius: var(--radius-base);
  overflow: hidden;
  margin-bottom: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.browse-card:hover .browse-card-cover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.browse-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.browse-card-cover .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface-card);
}
.browse-card-cover .placeholder svg { width: 40px; height: 40px; opacity: 0.5; }

.browse-card-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.browse-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.browse-card-badge.live { background: rgba(83, 168, 226, 0.85); }

.browse-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 48px 16px;
}

/* Section divider for grouped browse */
.browse-section-title {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
}
.browse-section-title:first-child { margin-top: 0; }

/* ───────── Story Details ───────── */
.details-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
}

.details-cover {
  position: relative;
  width: 100%;
  max-width: 760px;       /* aligns with .details-body underneath */
  aspect-ratio: 3 / 2;    /* exact ratio — no cropping */
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface-card);
  border-radius: 0 0 var(--radius-base) var(--radius-base);
}
.details-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* show the full image, no crop */
  display: block;
}
.details-cover::after {
  /* gradient fade into body bg */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cover-fade-to));
  pointer-events: none;
}

.details-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 120px;
}
@media (max-width: 640px) {
  .details-body { padding: 8px 16px 120px; }
}

.details-title {
  font-family: var(--font-head);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: 16px;
}
.details-author {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-top: 8px;
}
.details-author a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(83, 168, 226, 0.4);
  padding-bottom: 1px;
  transition: border-color .15s, color .15s;
}
.details-author a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.details-tag {
  background: var(--surface-nested);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.details-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
  margin: 20px 0 4px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.details-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.details-meta-item svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }
.details-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.details-section {
  margin-top: 28px;
}
.details-section-title {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.details-description {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* About-the-author callout (link to bio) */
.details-author-card {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background .15s, border-color .15s;
}
.details-author-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.25);
  color: var(--text-primary);
}
.details-author-card .author-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-nested);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-secondary);
}
.details-author-card .author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.details-author-card .author-avatar svg { width: 24px; height: 24px; }
.details-author-card .author-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text-primary);
}
.details-author-card .author-blurb {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-top: 2px;
  line-height: 1.5;
}
.details-author-card .author-cta {
  margin-left: auto;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  flex-shrink: 0;
}

/* Standalone preview */
.details-preview {
  background: var(--surface-nested);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  padding: 16px 18px;
}
.details-preview-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.details-preview-text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

/* Episodes list */
.episodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.episode {
  display: flex;
  gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.episode:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.25);
  color: inherit;
}
.episode-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--surface-nested);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-body { flex: 1; min-width: 0; }
.episode-title {
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: 4px;
}
.episode-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.episode-meta {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Sticky bottom action bar */
.details-actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--actionbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--divider);
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
}
.details-actionbar-inner {
  max-width: 640px;
  margin: 0 auto;
}
.details-cta {
  display: block;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-lg);
  padding: 14px 20px;
  border-radius: var(--radius-base);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--cta-shadow);
}
.details-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--cta-shadow); }

/* ───────── Footer ───────── */
.app-footer {
  border-top: 1px solid var(--divider);
  padding: 28px 24px 48px;
  margin-top: 64px;
  background: var(--footer-bg);
}
.app-footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.app-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: var(--fs-sm);
}
.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.app-footer a:hover { color: var(--text-primary); }
.app-footer .copyright {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.app-footer .socials {
  display: flex;
  gap: 12px;
}
.app-footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.app-footer .socials a:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--surface-nested);
}

/* ─────────────────────────────────────────────────────────────
   Home page (index.html) — hero + featured stories + value props
   ───────────────────────────────────────────────────────────── */

.home-wrap {
  /* Allow full-width hero; inner sections constrain themselves */
}

/* ───────── Hero ───────── */
.home-hero {
  position: relative;
  padding: 64px 24px 72px;
  overflow: hidden;
}
.home-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.home-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface-nested);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 20px;
}
.home-headline {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 auto 16px;
  max-width: 18ch;
}
.home-headline .grad {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-subhead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.home-store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.home-store-badge {
  display: inline-block;
  transition: transform .15s, opacity .15s;
}
.home-store-badge:hover { transform: translateY(-2px); }
.home-store-badge img {
  height: 56px;
  width: auto;
  display: block;
}
.home-mailing {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 8px 0 0;
}
.home-mailing a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(83, 168, 226, 0.5);
}

/* Decorative ambient orbs behind the hero */
.home-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.home-orb.o1 { top: -80px; left: -60px; width: 320px; height: 320px; background: rgba(83, 168, 226, 0.50); }
.home-orb.o2 { top: 60px;  right: -80px; width: 380px; height: 380px; background: rgba(155, 107, 255, 0.40); }
.home-orb.o3 { bottom: -120px; left: 30%; width: 360px; height: 360px; background: rgba(255, 107, 157, 0.30); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .home-orb { opacity: 0.30; }
}
:root[data-theme="light"] .home-orb { opacity: 0.30; }

/* ───────── Section title pattern (used on home) ───────── */
.home-section {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 56px 24px;
}
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.home-section-title {
  font-family: var(--font-head);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  max-width: 22ch;
}
.home-section-title .grad {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-section-subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary);
}
.home-section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none;
}
.home-section-link:hover { color: var(--secondary); }

/* ───────── Featured stories grid (home) ───────── */
.home-featured {
  display: grid;
  gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.home-featured-card {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}
.home-featured-card .cover {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-base);
  overflow: hidden;
  background: var(--surface-card);
  margin-bottom: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-featured-card:hover .cover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.home-featured-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-featured-card .label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.home-featured-card .title {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ───────── Value props row ───────── */
.home-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.home-value {
  padding: 22px 22px 24px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
}
.home-value-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  background: var(--surface-nested);
  color: var(--primary);
  margin-bottom: 14px;
}
.home-value-icon svg { width: 22px; height: 22px; }
.home-value-title {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.home-value-body {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ───────── Final CTA banner ───────── */
.home-cta {
  max-width: var(--layout-max);
  margin: 24px auto 64px;
  padding: 0 24px;
}
.home-cta-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-cta-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(83,168,226,0.15), rgba(155,107,255,0.10), transparent 60%);
  pointer-events: none;
}
.home-cta-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
}
.home-cta-body {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 22px;
  position: relative;
}
.home-cta-actions {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.home-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.home-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--cta-shadow);
}
.home-btn-primary:hover { color: #fff; transform: translateY(-1px); }
.home-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.home-btn-ghost:hover { background: var(--surface-nested); color: var(--text-primary); }
