/* ═══════════════════════════════════════════════════════════
   TalkStory page (/talkstory) — embed-mode overrides

   Reuses the existing FAB+modal markup from _includes/talkstory.html
   but flips it into a page-flow embedded chat panel via the
   body.hg-ts-page scoping selector. Also borrows the .ph-hero +
   .ph-wave pattern from planning-hub-v1.css so the hero shrinks
   3 seconds after page load (same recipe as /plan and /flights).
   ═══════════════════════════════════════════════════════════ */

/* ── Hero (mirrors planning-hub-v1.css with a tighter footprint
       since this page's main content is the chat below) ─────────── */
.hg-ts-page .ph-hero {
  position: relative;
  overflow: hidden;
  background: #0d2b3e;
  padding: 110px 4% 70px;
  min-height: 60vh;
  min-height: 60svh;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.hg-ts-page .ph-hero.ph-ready {
  transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1),
              min-height 1.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hg-ts-page .ph-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 60%, rgba(13,43,62,0.85) 100%);
  z-index: 1;
}
.hg-ts-page .ph-hero > * { position: relative; z-index: 2; }
.hg-ts-page .ph-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.hg-ts-page .ph-hero-content {
  max-width: 760px;
  margin: 0 auto;
}
.hg-ts-page .ph-hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hg-ts-page .ph-hero .ph-subtitle {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 22px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hg-ts-page .ph-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}
.hg-ts-page .ph-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hg-ts-page .ph-trust i {
  color: #1D9771;
  font-size: 16px;
}

/* Compact state added by hero-shrink JS after 3s. */
.hg-ts-page .ph-hero.ph-compact {
  padding: 70px 4% 40px;
}
.hg-ts-page .ph-hero.ph-compact::before {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.2) 100%);
}
.hg-ts-page .ph-hero.ph-compact h1 { font-size: 34px; margin-bottom: 8px; }
.hg-ts-page .ph-hero.ph-compact .ph-subtitle { font-size: 15px; margin-bottom: 14px; }
.hg-ts-page .ph-hero.ph-compact .ph-trust { font-size: 13px; gap: 16px; }

/* Wave divider (same as /plan). */
.hg-ts-page .ph-wave {
  position: relative;
  margin-top: -50px;
  z-index: 3;
  line-height: 0;
}
.hg-ts-page .ph-wave svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ── Page section housing the embedded chat ────────────────────── */
.ts-page-section {
  background: #f4f6f9;
  padding: 32px 16px 64px;
}
.ts-page-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.ts-page-intro {
  text-align: center;
  padding: 0 8px;
}
.ts-page-h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1d21;
}
.ts-page-lede {
  font-size: 17px;
  line-height: 1.5;
  color: #4a5560;
  margin: 0 0 20px;
}
.ts-page-prompts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ts-page-prompt-chip {
  display: inline-block;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #d4dae1;
  border-radius: 999px;
  color: #1866B4;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
}
.ts-page-prompt-chip:hover {
  border-color: #1D9771;
  background: #f0f9f4;
  color: #156d52;
  transform: translateY(-1px);
}
.ts-page-prompt-chip:active { transform: translateY(0); }

/* ── Embed mount: where the modal lands after the hero ────────── */
.ts-page-mount {
  min-height: 520px;
  position: relative;
}

/* ── Modal in embed mode ──────────────────────────────────────── */
/* Override the floating-modal styles from talkstory-v1.css when on this page. */
body.hg-ts-page .hg-ts-modal {
  position: static;
  transform: none;
  width: 100%;
  max-width: 100%;
  max-height: none;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15, 74, 138, 0.12);
  opacity: 1;
  pointer-events: auto;
  border: 1px solid #e0e7ee;
}
body.hg-ts-page .hg-ts-modal.is-active {
  /* The site-wide CSS uses translate to slide in; cancel that here. */
  transform: none;
}

/* Close button is meaningless on a dedicated page. */
body.hg-ts-page .hg-ts-close { display: none; }

/* Hide the FAB and backdrop entirely on this page — the chat is the page. */
body.hg-ts-page .hg-ts-fab,
body.hg-ts-page .hg-ts-backdrop {
  display: none !important;
}

/* Give the transcript more vertical room than the modal default. */
body.hg-ts-page .hg-ts-transcript {
  min-height: 320px;
  max-height: 60vh;
}

/* ── About strip below the chat ───────────────────────────────── */
.ts-page-about {
  background: #fff;
  padding: 56px 16px 64px;
  border-top: 1px solid #e0e7ee;
}
.ts-page-about-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.ts-about-col h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1d21;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ts-about-col h3 i {
  color: #1D9771;
  font-size: 22px;
}
.ts-about-col p {
  font-size: 16px;
  line-height: 1.55;
  color: #4a5560;
  margin: 0;
}

/* ── Mobile refinements ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hg-ts-page .ph-hero h1 { font-size: 36px; }
  .hg-ts-page .ph-hero .ph-subtitle { font-size: 17px; }
  .hg-ts-page .ph-hero.ph-compact h1 { font-size: 26px; }
  .hg-ts-page .ph-hero.ph-compact .ph-subtitle { font-size: 14px; }
  .ts-page-section { padding: 24px 12px 48px; }
  .ts-page-h2 { font-size: 24px; }
  .ts-page-lede { font-size: 15px; }
  .ts-page-prompt-chip { font-size: 13px; padding: 8px 14px; }
  body.hg-ts-page .hg-ts-transcript { min-height: 240px; max-height: 50vh; }
  .ts-page-about { padding: 40px 12px 48px; }
  .ts-page-about-inner { gap: 24px; }
}
