/* index.css — homepage stylesheet, extracted from index.html's inline
 * <style> block on 2026-07-07 (was ~38KB re-downloaded with every page
 * view since HTML is no-cache; as a file it revalidates to a 304).
 * Served no-cache via the nginx `\.(js|css)$` location, so edits ship
 * without a ?v= bump. In deploy.sh STATIC_FILES.
 *
 * --al-wb-clearance: top padding reserved for the fixed welcome bar on
 * .hero / .your-today. Defaults below approximate the logged-out first
 * paint; a tiny <head> snippet in index.html restores the last MEASURED
 * bar height from localStorage before first paint (zero layout shift for
 * returning visitors), and _alSyncHeroPad in index.html keeps the var in
 * sync after the bar renders and on resize. */
/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
  --navy:    #0a1628;
  --navy2:   #1a3050;
  --ink:     #0d0f14;
  --slate:   #1c2231;
  --blue:    #0085ff;
  --sky:     #00b4d8;
  --sky2:    #0096c7;
  --amber:   #c8922a;
  --amber2:  #e8b84b;
  --gold:    #f4a225;
  --bg:      #f5f3ef;
  --card:    #ffffff;
  --border:  #d9d3c8;
  --text:    #1a1a18;
  --muted:   #6b6354;
  --paper:   #f5f0e8;
  --fog:     #8a8f9e;
  --rule:    rgba(200,146,42,0.3);
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Noise overlay removed (Tufte: zero information, pure decoration) */

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  color: #fff; letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo span { color: var(--amber2); }

/* Centered single-CTA nav layout (2026-05-26). The nav is `position: fixed`
   so an absolutely-positioned child centers cleanly regardless of how wide
   the logo grows. On narrow viewports the link shrinks and the logo
   continues to anchor the left edge. */
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;  /* let clicks on empty nav background pass through */
  white-space: nowrap;   /* keep Full Listen + PHASE pills on one row */
}
.nav-center > * { pointer-events: auto; }  /* the link itself remains clickable */

/* Green pill matching the welcome-bar "Full Listen" pill BYTE-FOR-BYTE.
   The values are copied from welcome-bar.js's .al-wb-pill +
   .al-wb-fulllisten rules so a logged-out user sees exactly the pill
   they'll keep seeing in the welcome bar after they register. Any
   future change to the welcome-bar pill style should also land here. */
.nav-full-listen {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #1D9E75;
  white-space: nowrap;
  transition: background 0.18s;
}
.nav-full-listen:hover,
.nav-full-listen:focus {
  background: #168562;
  color: #fff;
  text-decoration: none;
}

/* Hide the centered nav pill once the user is logged in — the welcome bar
   (rendered by welcome-bar.js) already provides its own Full Listen pill
   among the row. body.has-welcome is set by showWelcome() in the auth
   script block and unset on sign-out. Without this rule the un-logged-in
   nav pill peeks out behind the welcome bar, looking like a misaligned
   "second Full Listen". */
body.has-welcome .nav-full-listen { display: none; }

/* Featured Partner: PHASE ™ CTA — sits to the right of The Full Listen for
   logged-out visitors. Teal, matching the welcome-bar PHASE pill. Not
   data-protected: PHASE is reachable without signing in, so it links straight
   out to the partner page in a new tab. Hidden once logged in — the welcome bar
   then carries its own PHASE ™ pill. */
.nav-phase-cta {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #1f5a52;
  white-space: nowrap;
  transition: background 0.18s;
}
.nav-phase-cta:hover,
.nav-phase-cta:focus { background: #163f39; color: #fff; text-decoration: none; }
body.has-welcome .nav-phase-cta { display: none; }

@media (max-width: 420px) {
  .nav-logo { font-size: 1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 140px 32px 80px;
  /* fixed welcome bar clearance; JS keeps the var current (see index.html) */
  padding-top: var(--al-wb-clearance, 140px);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0,180,216,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(200,146,42,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(72,202,228,0.05) 0%, transparent 60%);
  animation: meshFloat 14s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.03) translateY(-10px); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(200,146,42,0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.4;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-eye {
  font-size: 10px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--amber2); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-eye::before, .hero-eye::after {
  content: ''; display: block; height: 1px; width: 40px;
  background: var(--amber); opacity: 0.5;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900; color: #fff;
  line-height: 1.06; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero h1 .sky { color: var(--sky); }
.hero h1 .amber { color: var(--amber2); }

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(245,240,232,0.65);
  max-width: 660px; margin: 20px auto 48px;
  line-height: 1.7; font-weight: 300;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; max-width: 820px; margin: 0 auto;
  background: rgba(200,146,42,0.2);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 4px; overflow: hidden;
}
.stat-item {
  background: rgba(255,255,255,0.04);
  padding: 22px 16px; text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 6px;
}
.stat-num .sky { color: var(--sky); }
.stat-num .amber { color: var(--amber2); }
.stat-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fog);
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.cta-row {
  display: flex; gap: 24px;
  justify-content: center; align-items: center;
  margin-top: 56px; flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, filter 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  cursor: pointer;
}
.cta-btn:hover {
  opacity: 0.92; transform: translateY(-2px);
  text-decoration: none;
}

/* (protected links look normal — auth modal appears on click if no session) */
.cta-reddit {
  background: #c8922a;
  color: #fff;
}
.cta-industry {
  background: transparent;
  color: #cd7f32;
  border: 1.5px solid #cd7f32;
  box-shadow: none;
}
.cta-industry:hover {
  background: rgba(205,127,50,0.12);
  color: #cd7f32;
}
.cta-bluesky {
  background: #00b4d8;
  color: #fff;
}
.cta-google {
  background: #34A853;
  color: #fff;
}
.cta-btn .arrow { font-size: 16px; }

/* Logout button hover */
#logoutBtn:hover {
  background: var(--amber2);
  color: var(--ink);
}

/* ============================================================
   FULL-WIDTH RULE
   ============================================================ */
.full-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 96px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-inner { max-width: 880px; margin: 0 auto; }

.sec-eye {
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.sec-eye::after {
  content: ''; flex: 1; max-width: 60px;
  height: 1px; background: var(--rule);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700; color: var(--paper);
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h2 .sky { color: var(--sky); }
h2 .amber { color: var(--amber2); }

.lead {
  font-size: 17px; color: rgba(245,240,232,0.65);
  line-height: 1.8; margin-bottom: 36px;
  max-width: 680px;
}

/* ============================================================
   DUAL PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px;
}
.product-card {
  border-radius: 4px; padding: 36px 30px;
  border: 1px solid; position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.product-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.product-card.reddit {
  background: var(--slate);
  border-color: rgba(200,146,42,0.2);
}
.product-card.reddit::before {
  background: linear-gradient(90deg, var(--amber), var(--amber2));
}
.product-card.bluesky {
  background: var(--navy2);
  border-color: rgba(0,180,216,0.2);
}
.product-card.bluesky::before {
  background: linear-gradient(90deg, var(--sky), var(--blue));
}
.product-card.google {
  background: #0f2218;
  border-color: rgba(52,168,83,0.2);
}
.product-card.google::before {
  background: linear-gradient(90deg, #34A853, #4285F4);
}
.product-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px;
}
.product-card.reddit .product-tag { color: var(--amber2); }
.product-card.bluesky .product-tag { color: var(--sky); }
.product-card.google .product-tag { color: #34A853; }
.product-card h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 12px;
  line-height: 1.2;
}
.product-card p {
  font-size: 15px; color: rgba(245,240,232,0.6);
  line-height: 1.75; margin-bottom: 16px;
}
.product-features {
  list-style: none; margin-bottom: 24px;
}
.product-features li {
  font-size: 14px; color: rgba(245,240,232,0.55);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.5;
}
.product-features li:last-child { border-bottom: none; }
.product-features li::before {
  content: '\2713'; flex-shrink: 0;
  font-size: 12px; margin-top: 3px;
}
.product-card.reddit .product-features li::before { color: var(--amber2); }
.product-card.bluesky .product-features li::before { color: var(--sky); }
.product-card.google .product-features li::before { color: #34A853; }

.product-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 28px; border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.product-btn:hover {
  opacity: 0.9; transform: translateY(-1px);
  text-decoration: none;
}
.product-card.reddit .product-btn {
  background: linear-gradient(135deg, var(--amber), #a67720);
  color: #fff;
}
.product-card.bluesky .product-btn {
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff;
}
.product-card.google .product-btn {
  background: linear-gradient(135deg, #34A853, #4285F4);
  color: #fff;
}
/* Go RIA — editorial pipeline (v2). Amber identity to match welcome-bar pill. */
.product-card.go-ria {
  background: #2a1d0a;
  border-color: rgba(245,158,11,0.2);
}
.product-card.go-ria::before {
  background: linear-gradient(90deg, #f59e0b, #b45309);
}
.product-card.go-ria .product-tag { color: #f59e0b; }
.product-card.go-ria .product-features li::before { color: #f59e0b; }
.product-card.go-ria .product-btn {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
}

/* ============================================================
   COMPARE SECTION
   ============================================================ */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin-top: 36px;
  background: var(--slate);
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 4px; overflow: hidden;
  font-size: 14px;
}
.compare-table thead tr { background: var(--navy); }
.compare-table thead th {
  color: var(--fog); padding: 14px 18px;
  text-align: left; font-size: 10px;
  font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.compare-table thead th:first-child { width: 22%; }
.compare-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(200,146,42,0.08);
  vertical-align: top; color: rgba(245,240,232,0.7);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(200,146,42,0.04); }
.compare-table .label-cell {
  font-weight: 600; color: var(--paper);
}

/* ============================================================
   SAMPLE VOICES
   ============================================================ */
.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px; margin-top: 40px;
}
.voice-card {
  padding: 24px; border-radius: 4px;
  border: 1px solid; position: relative;
}
.voice-card.reddit {
  background: rgba(200,146,42,0.04);
  border-color: rgba(200,146,42,0.15);
}
.voice-card.bluesky {
  background: rgba(0,180,216,0.04);
  border-color: rgba(0,180,216,0.15);
}
.voice-card.google {
  background: rgba(52,168,83,0.04);
  border-color: rgba(52,168,83,0.15);
}
.voice-source {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.voice-card.reddit .voice-source { color: var(--amber2); }
.voice-card.bluesky .voice-source { color: var(--sky); }
.voice-card.google .voice-source { color: #34A853; }
.voice-handle {
  font-size: 12px; font-weight: 600;
  margin-bottom: 8px;
}
.voice-card.reddit .voice-handle { color: var(--amber); }
.voice-card.bluesky .voice-handle { color: var(--sky2); }
.voice-card.google .voice-handle { color: #2d9249; }
.voice-card blockquote {
  font-size: 14px; color: rgba(245,240,232,0.7);
  line-height: 1.65; font-style: italic;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px;
}
.step-card {
  text-align: center; padding: 28px 18px;
  background: var(--slate);
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 4px;
  transition: transform 0.2s;
}
.step-card:hover { transform: translateY(-3px); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  color: var(--paper); margin-bottom: 10px;
}
.step-card p {
  font-size: 13px; color: rgba(245,240,232,0.55);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060a12;
  padding: 32px;
  text-align: center;
  font-size: 12px; color: var(--fog);
  border-top: 1px solid var(--rule);
}
footer strong { color: var(--amber2); }
footer a { color: var(--fog); }
footer a:hover { color: var(--paper); }

/* ============================================================
   MODAL
   ============================================================ */
/* ============================================================
   AUTH MODAL — transparent overlay keeps the page vibrant
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.35);
  backdrop-filter: blur(3px);
  z-index: 10000;
  justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: rgba(28,34,49,0.95);
  border: 1px solid rgba(200,146,42,0.35);
  border-radius: 8px;
  padding: 40px 36px;
  max-width: 440px; width: 90%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,146,42,0.1);
}
/* Close affordance — added 2026-05-08 so a user who clicked into the auth
   modal by accident can dismiss it. Pairs with overlay-click-to-close and
   Escape-key handlers wired below. */
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(245,240,232,0.18);
  border-radius: 50%;
  color: rgba(245,240,232,0.6);
  font-size: 18px; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.modal-close:hover {
  background: rgba(245,240,232,0.08);
  border-color: rgba(245,240,232,0.45);
  color: #fff;
}
.modal-close:focus-visible {
  outline: 2px solid var(--amber, #c8922a);
  outline-offset: 2px;
}
.modal h2 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
  line-height: 1.2;
}
.modal .modal-sub {
  font-size: 14px;
  color: rgba(245,240,232,0.5);
  margin-bottom: 24px; line-height: 1.6;
}
.modal label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--amber2); margin-bottom: 6px;
}
.modal input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 3px; color: #fff;
  font-size: 15px; font-family: var(--sans);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.modal input:focus {
  outline: none;
  border-color: var(--amber2);
}
.modal input::placeholder { color: rgba(255,255,255,0.25); }

.modal-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--amber), #a67720);
  color: #fff; border: none; border-radius: 3px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--sans);
}
.modal-btn:hover { opacity: 0.9; }
.modal-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}

.modal-error {
  font-size: 13px; color: #e74c3c;
  margin-bottom: 12px; display: none;
}
.modal-note {
  font-size: 11px; color: rgba(245,240,232,0.35);
  margin-top: 16px; text-align: center; line-height: 1.5;
}

/* Name fields — always visible in a 2-col grid */
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================
   WELCOME BAR — rendered by welcome-bar.js
   ============================================================
   The CSS that styled the inline welcome bar (~250 lines:
   .welcome-bar, .pill, .pill-*, .pill-more, .pill-overflow,
   .pill-logout, .pill-delete, .pill-home, the @keyframes slideDown,
   and the ~ nav / ~ .hero responsive padding rules) was deleted
   on 2026-05-16 as part of the welcome-bar consolidation. The
   shared module injects its own styles under .al-wb-* class names
   and handles body padding-top dynamically. If you need to restore
   the inline bar, git log this file before 2026-05-16. */

/* ============================================================
   YOUR TODAY — post-login dashboard panel
   ============================================================
   Replaces the marketing hero when the user is signed in.
   Tufte-aligned: single column, generous whitespace, no chartjunk,
   one clear action with three readable modalities. */
.your-today {
  padding: 80px 24px 60px;
  padding-top: var(--al-wb-clearance, 80px);
  text-align: center;
  position: relative;
}
.your-today .yt-inner {
  max-width: 760px;
  margin: 0 auto;
}
.your-today .yt-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber2); margin-bottom: 14px;
}
.your-today .yt-headline {
  font-family: var(--serif);
  font-size: 56px; line-height: 1.05; font-weight: 400;
  color: var(--paper); margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.your-today .yt-sub {
  font-size: 16px; color: var(--fog); line-height: 1.5;
  max-width: 480px; margin: 0 auto 36px;
}
.your-today .yt-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.your-today .yt-btn {
  display: flex; flex-direction: column;
  padding: 24px 20px;
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.18);
  border-radius: 12px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.your-today .yt-btn:hover {
  background: rgba(245,240,232,0.12);
  border-color: var(--amber2);
  transform: translateY(-2px);
}
.your-today .yt-btn-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber2); margin-bottom: 8px;
}
.your-today .yt-btn-label {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  color: var(--paper); margin-bottom: 6px;
}
.your-today .yt-btn-meta {
  font-size: 12px; color: var(--fog); letter-spacing: 0.02em;
}
.your-today .yt-audio-wrap {
  margin-top: 32px;
  padding: 18px 20px 14px;
  background: rgba(245,240,232,0.05);
  border: 1px solid rgba(245,240,232,0.12);
  border-radius: 10px;
}
.your-today .yt-skim-wrap {
  margin-top: 32px;
  padding: 22px 20px 18px;
  background: rgba(245,240,232,0.05);
  border: 1px solid rgba(245,240,232,0.12);
  border-radius: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.your-today .yt-skim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.your-today .yt-skim-grid .stat-num {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.1;
  color: var(--amber2); font-weight: 400;
}
.your-today .yt-skim-grid .stat-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fog); margin-top: 6px;
}
.your-today .yt-skim-grid .stat-meta {
  font-size: 11px; color: var(--fog); margin-top: 4px;
}
.your-today .yt-genz-label {
  margin: 36px auto 8px;
  max-width: 560px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber2);
  text-align: center;
  opacity: 0.85;
}
.your-today .yt-genz {
  margin: 0 auto;
  max-width: 560px;
  font-style: italic;
  color: #e8e0d0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  border: 1px solid rgba(200,146,42,0.5);
  border-radius: 8px;
  padding: 16px 22px;
  background: rgba(200,146,42,0.08);
  text-align: center;
}
.your-today .yt-genz-attr {
  font-style: normal;
  color: var(--amber2);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .your-today { padding: 56px 18px 40px; padding-top: var(--al-wb-clearance, 56px); }
  .your-today .yt-headline { font-size: 36px; }
  .your-today .yt-sub { font-size: 14px; margin-bottom: 24px; }
  .your-today .yt-actions { grid-template-columns: 1fr; gap: 10px; }
  .your-today .yt-btn { padding: 18px 18px; flex-direction: row; align-items: center; justify-content: space-between; }
  .your-today .yt-btn-eyebrow { margin: 0; min-width: 56px; }
  .your-today .yt-btn-label { margin: 0; flex: 1; padding: 0 16px; }
  .your-today .yt-btn-meta { margin: 0; }
  .your-today .yt-skim-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .your-today .yt-genz-label { margin-top: 28px; font-size: 10px; }
  .your-today .yt-genz { font-size: 14px; padding: 14px 18px; }
}

/* (pill-more, pill-overflow, pill-logout, pill-delete, pill-home, and
   .welcome-bar .logout-pill rules removed 2026-05-16 — welcome-bar.js
   handles the bar's expand/collapse and sign-out UI under .al-wb-*
   class names.) */

/* ============================================================
   CONFIRM DIALOG — used for logout, delete, and registration
   ============================================================ */
.confirm-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.5);
  backdrop-filter: blur(4px);
  z-index: 20000;
  justify-content: center; align-items: center;
}
.confirm-overlay.active { display: flex; }

.confirm-dialog {
  background: rgba(28,34,49,0.97);
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: 8px;
  padding: 32px 30px;
  max-width: 420px; width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.confirm-dialog h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.confirm-dialog p {
  font-size: 14px; color: rgba(245,240,232,0.6);
  line-height: 1.6; margin-bottom: 24px;
}
.confirm-dialog .confirm-detail {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
}
.confirm-dialog .confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.confirm-dialog .confirm-row:last-child { border-bottom: none; }
.confirm-dialog .confirm-label {
  color: var(--fog); font-weight: 600;
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px;
}
.confirm-dialog .confirm-value {
  color: #fff; font-weight: 600;
}
.confirm-btns {
  display: flex; gap: 12px; justify-content: center;
}
.confirm-btns button {
  padding: 12px 28px; border-radius: 4px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; font-family: var(--sans);
  border: none; transition: opacity 0.2s;
}
.confirm-btns button:hover { opacity: 0.85; }
.confirm-btns .btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(245,240,232,0.6);
}
.confirm-btns .btn-confirm {
  background: linear-gradient(135deg, var(--amber), #a67720);
  color: #fff;
}
.confirm-btns .btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

/* ============================================================
   ASK ADVISORLISTEN CHAT OVERLAY
   ============================================================ */
.chat-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(6px);
  z-index: 20000;
  justify-content: center; align-items: flex-end;
}
.chat-overlay.active { display: flex; }
.chat-panel {
  background: rgba(18,26,42,0.98);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 14px 14px 0 0;
  width: 95%; max-width: 640px;
  height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 60px rgba(0,0,0,0.5);
  font-family: var(--sans);
  color: #e8e0d0;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(200,146,42,0.15);
}
.chat-header h2 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  color: #fff; margin: 0;
}
.chat-header h2 span { color: #9b59b6; }
.chat-close {
  background: none; border: none; color: rgba(245,240,232,0.5);
  font-size: 22px; cursor: pointer; padding: 4px 8px;
  transition: color 0.15s;
}
.chat-close:hover { color: #fff; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg {
  max-width: 82%; padding: 10px 14px;
  border-radius: 12px; font-size: 14px; line-height: 1.55;
  word-wrap: break-word;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(200,146,42,0.2);
  border: 1px solid rgba(200,146,42,0.3);
  color: #f5f0e8;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.08);
  color: #e8e0d0;
}
.chat-msg.assistant strong { color: #fff; }
.chat-msg.system {
  align-self: center;
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  font-size: 13px; text-align: center;
  max-width: 90%;
}
.chat-typing {
  align-self: flex-start;
  padding: 10px 18px;
  background: rgba(245,240,232,0.06);
  border-radius: 12px;
  display: none;
}
.chat-typing.visible { display: flex; gap: 4px; align-items: center; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(245,240,232,0.4);
  animation: chatBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}
.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(200,146,42,0.15);
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1; resize: none;
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 10px;
  color: #f5f0e8; font-size: 14px;
  padding: 10px 14px;
  font-family: var(--sans);
  min-height: 20px; max-height: 120px;
  outline: none;
  transition: border-color 0.15s;
}
.chat-input-area textarea:focus {
  border-color: rgba(155,89,182,0.5);
}
.chat-input-area textarea::placeholder { color: rgba(245,240,232,0.3); }
.chat-send {
  background: #9b59b6; border: none;
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 10px;
  cursor: pointer; font-family: var(--sans);
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.15s;
  white-space: nowrap;
}
.chat-send:hover { background: #8e44ad; }
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-sources {
  font-size: 11px; color: rgba(245,240,232,0.35);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .chat-panel { max-width: 100%; width: 100%; height: 92vh; border-radius: 14px 14px 0 0; }
  .chat-msg { max-width: 90%; }
}

/* ============================================================
   ADMIN DASHBOARD OVERLAY
   ============================================================ */
.dash-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(6px);
  z-index: 20000;
  justify-content: center; align-items: flex-start;
  padding-top: 60px;
  overflow-y: auto;
}
.dash-overlay.active { display: flex; }
.dash-dialog {
  background: rgba(18,26,42,0.98);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 10px;
  padding: 32px 36px 28px;
  max-width: 920px; width: 95%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  margin-bottom: 40px;
  color: #e8e0d0;
  font-family: var(--sans);
}
.dash-dialog h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: #fff; margin: 0 0 4px;
}
.dash-period {
  font-size: 12px; color: rgba(245,240,232,0.5);
  margin-bottom: 24px;
}
.dash-stats {
  display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.dash-stat {
  background: rgba(200,146,42,0.08);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 8px;
  padding: 16px 24px; text-align: center; flex: 1; min-width: 120px;
}
.dash-stat-num {
  font-size: 28px; font-weight: 700; color: var(--amber2);
  font-family: var(--serif);
}
.dash-stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(245,240,232,0.5); margin-top: 4px;
}
.dash-section {
  margin-bottom: 24px;
}
.dash-section h3 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--amber2); margin: 0 0 12px;
  border-bottom: 1px solid rgba(200,146,42,0.15); padding-bottom: 8px;
}
.dash-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 120px;
  padding: 0 4px;
}
.dash-bar-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
}
.dash-bar {
  width: 100%; min-height: 4px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--amber2), var(--amber));
  transition: height 0.4s ease;
}
.dash-bar-label {
  font-size: 9px; color: rgba(245,240,232,0.5); margin-top: 4px;
  text-align: center;
}
.dash-bar-val {
  font-size: 10px; color: var(--amber2); margin-bottom: 2px;
  font-weight: 600;
}
.dash-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.dash-table th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(245,240,232,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08); padding: 6px 8px;
}
.dash-table td {
  padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #e8e0d0;
}
.dash-table tr:hover td { background: rgba(200,146,42,0.05); }
.dash-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 999px; padding: 4px 16px;
  font-size: 11px; cursor: pointer; font-family: var(--sans);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.dash-close:hover { background: rgba(255,255,255,0.1); }
.dash-devices {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.dash-device {
  background: rgba(255,255,255,0.04);
  border-radius: 6px; padding: 10px 18px; text-align: center;
}
.dash-device-num { font-size: 20px; font-weight: 700; color: #fff; }
.dash-device-label { font-size: 10px; color: rgba(245,240,232,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-loading {
  text-align: center; padding: 60px; color: rgba(245,240,232,0.4);
  font-size: 14px;
}
.dash-page-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px;
}
.dash-page-name { color: #e8e0d0; }
.dash-page-count { color: var(--amber2); font-weight: 600; }

/* Health / System Status cards */
.dash-health-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
.dash-health-card {
  background: rgba(200,146,42,0.06);
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.dash-health-row { display: flex; align-items: center; gap: 8px; }
.dash-health-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.dash-health-dot.ok   { background: #2e7d32; box-shadow: 0 0 6px rgba(46,125,50,0.6); animation: healthPulse 2s ease-in-out infinite; }
.dash-health-dot.warn { background: #e6a817; box-shadow: 0 0 6px rgba(230,168,23,0.5); }
.dash-health-dot.down { background: #c0392b; box-shadow: 0 0 6px rgba(192,57,43,0.6); animation: healthPulse 1s ease-in-out infinite; }
@keyframes healthPulse { 0%,100%{opacity:1;}50%{opacity:0.5;} }
.dash-health-name {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #e8e0d0;
}
.dash-health-detail {
  font-size: 11px; color: rgba(245,240,232,0.45); padding-left: 17px;
}
.dash-health-strip {
  display: block; height: 10px; margin: 6px 0 0 17px;
  width: calc(100% - 17px); border-radius: 2px; overflow: hidden;
  background: rgba(245,240,232,0.04);
}
.dash-health-streak {
  font-size: 10px; color: rgba(245,240,232,0.45);
  padding-left: 17px; margin-top: 3px; letter-spacing: 0.3px;
}
.dash-health-meta {
  font-size: 10px; color: rgba(245,240,232,0.3); text-align: right;
  margin-bottom: 6px;
}

/* Name fields — hidden by default, shown for new users */
.name-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.name-fields.visible {
  display: grid;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .hero { padding: 120px 20px 60px; padding-top: var(--al-wb-clearance, 120px); }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 60px 20px; }
  .cta-row { flex-direction: column; gap: 16px; }
  .name-fields.visible { grid-template-columns: 1fr; }
  .compare-table { font-size: 12px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
