/* ════════════════════════════════════════════════════════════════
   Word2Talk — Persona pages + homepage picker band.
   Scoped under .persona-* so it can't touch existing styles.
   Uses the brand tokens already defined in marketing.css :root
   (--bg, --bg-card, --border, --accent-teal, --accent-amber,
    --text-primary, --text-muted, --radius-*). No new color system.
   Buttons (.btn-primary/.btn-secondary) reuse the global styles.
   Motion lives in /static/persona.js (GSAP + a canvas soundwave).
   ════════════════════════════════════════════════════════════════ */

.persona-page { overflow-x: hidden; }

/* ════════════════════════════════════════════
   Persona page hero
   ════════════════════════════════════════════ */
.persona-hero {
  position: relative;
  padding: 168px 24px 96px;
  min-height: clamp(560px, 88vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* Soft cyan light pooled behind the headline. */
.persona-hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 120vw);
  height: 700px;
  background:
    radial-gradient(60% 55% at 50% 35%, rgba(49, 207, 234, 0.16), transparent 70%),
    radial-gradient(40% 40% at 70% 60%, rgba(255, 159, 26, 0.07), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

/* The signature soundwave, full-bleed along the hero floor. */
.persona-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.persona-hero__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* ── Eyebrow pill ── */
.persona-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  backdrop-filter: blur(6px);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.persona-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 0 rgba(49, 207, 234, 0.6);
  animation: persona-pulse 2.4s ease-out infinite;
}

@keyframes persona-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(49, 207, 234, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(49, 207, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 207, 234, 0); }
}

/* ── Headline (word-by-word masked reveal) ── */
.persona-h1 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.6vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0;
}

/* Per-word reveal mask. The mask's own line-height is 1 + a little
   padding for descenders, kept smaller than the headline's line-height
   (1.14) so wrapped lines never overlap. */
.persona-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1;
  padding-bottom: 0.1em;
}

.persona-h1__w { display: inline-block; line-height: 1; }

/* ── Subhead, "read aloud" word by word ── */
.persona-sub {
  max-width: 660px;
  margin: 26px auto 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.7;
  color: var(--text-muted);
}

.persona-sub__w {
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.persona-sub__w.is-read {
  color: var(--text-primary);
  text-shadow: 0 0 18px rgba(49, 207, 234, 0.35);
}

/* ── "Reading aloud" chip ── */
.persona-reader {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  transition: border-color 0.3s ease;
}

.persona-reader.is-speaking { border-color: color-mix(in srgb, var(--accent-teal) 50%, var(--border)); }

.persona-reader__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #03142E;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease;
}

.persona-reader__play:hover { transform: scale(1.06); background: var(--accent-teal-hover, #5DD9F0); }
.persona-reader__play:active { transform: scale(0.96); }

.persona-reader__play svg { width: 14px; height: 14px; }
.persona-reader__icon-play { margin-left: 1px; }
.persona-reader__icon-pause,
.persona-reader__spinner { display: none; }

/* Loading: hide play glyph, show spinner. */
.persona-reader.is-loading .persona-reader__icon-play { display: none; }
.persona-reader.is-loading .persona-reader__spinner { display: block; }
/* Playing: show pause glyph. */
.persona-reader.is-playing .persona-reader__icon-play { display: none; }
.persona-reader.is-playing .persona-reader__icon-pause { display: block; }

.persona-reader__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(3, 20, 46, 0.35);
  border-top-color: #03142E;
  animation: persona-spin 0.7s linear infinite;
}

@keyframes persona-spin { to { transform: rotate(360deg); } }

.persona-reader__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.persona-reader__eq i {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent-teal);
  opacity: 0.55;
}

.persona-reader.is-speaking .persona-reader__eq i {
  animation: persona-eq 0.9s ease-in-out infinite;
  opacity: 1;
}

.persona-reader__eq i:nth-child(1) { animation-delay: 0s; }
.persona-reader__eq i:nth-child(2) { animation-delay: 0.15s; }
.persona-reader__eq i:nth-child(3) { animation-delay: 0.3s; }
.persona-reader__eq i:nth-child(4) { animation-delay: 0.45s; }
.persona-reader__eq i:nth-child(5) { animation-delay: 0.6s; }

@keyframes persona-eq {
  0%, 100% { height: 28%; }
  50%      { height: 100%; }
}

.persona-reader__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Flag language picker (inside the reader chip) ── */
.persona-lang {
  position: relative;
  flex-shrink: 0;
}

.persona-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.persona-lang__btn:hover { border-color: var(--border-hover, #1a4a72); }

.persona-lang__flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

.persona-lang__chev { width: 13px; height: 13px; color: var(--text-muted); transition: transform 0.2s ease; }
.persona-lang__btn[aria-expanded="true"] .persona-lang__chev { transform: rotate(180deg); }

.persona-lang__list {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 170px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 10, 24, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.persona-lang__list.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.persona-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.persona-lang__item:hover { background: color-mix(in srgb, var(--accent-teal) 12%, transparent); }
.persona-lang__item[aria-selected="true"] { background: color-mix(in srgb, var(--accent-teal) 18%, transparent); }

.persona-lang__iflag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}

.persona-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

/* ════════════════════════════════════════════
   "This is for you if" checklist
   ════════════════════════════════════════════ */
.persona-check-wrap {
  padding: 8px 24px 24px;
}

.persona-check {
  margin: 0 auto;
  max-width: 620px;
  text-align: left;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg-card) 100%, transparent),
    color-mix(in srgb, var(--bg-card) 70%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 24px);
  padding: 30px 34px;
  box-shadow: 0 24px 60px rgba(3, 10, 24, 0.35);
}

.persona-check__label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 18px;
}

.persona-check__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.persona-check__list li {
  position: relative;
  padding-left: 34px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-primary);
}

.persona-check__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-teal) 16%, transparent);
}

.persona-check__list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ════════════════════════════════════════════
   "Why it fits" — editorial numbered cards
   ════════════════════════════════════════════ */
.persona-points {
  max-width: 1080px;
  margin: 0 auto;
}

.persona-points__head {
  text-align: center;
  margin-bottom: 48px;
}

.persona-points__eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.persona-points__title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.persona-points__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.persona-point {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 24px);
  padding: 34px 32px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cursor spotlight (driven by --mx/--my from persona.js). */
.persona-point::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%),
    rgba(49, 207, 234, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.persona-point:hover {
  border-color: color-mix(in srgb, var(--accent-teal) 45%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(3, 10, 24, 0.4);
}

.persona-point:hover::before { opacity: 1; }

.persona-point__num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--accent-teal) 22%, transparent);
}

.persona-point__title {
  position: relative;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 10px;
  padding-right: 44px;
}

.persona-point__body {
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0;
}

/* ════════════════════════════════════════════
   Shared CTA block (used by _persona_cta.html)
   ════════════════════════════════════════════ */
.persona-cta {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 104px 24px 124px;
  text-align: center;
}

.persona-cta__title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.persona-cta__sub {
  margin: 16px auto 30px;
  font-size: 17px;
  color: var(--text-muted);
}

.persona-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Align every CTA control to one height + font size so the email field,
   the amber button, and the secondary button line up exactly (the global
   .btn-secondary otherwise renders taller with a different line-height).
   Applies to the hero row and the bottom CTA row on all persona pages. */
.persona-cta-row .btn-primary,
.persona-cta-row .btn-secondary,
.persona-cta__row .btn-primary,
.persona-cta__row .btn-secondary {
  height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  line-height: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.persona-cta__row .waitlist-input {
  height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  box-sizing: border-box;
}

/* The global .waitlist-form carries a bottom margin; inside a centered
   flex row that inflates the row and pushes the secondary button down. */
.persona-cta__row .waitlist-form {
  margin: 0;
}

.persona-cta__msg {
  margin: 18px auto 0;
  font-size: 15px;
  font-weight: 500;
}

.persona-cta__msg.is-ok { color: var(--accent-green, #34D399); }
.persona-cta__msg.is-err { color: #ff8080; }

/* ════════════════════════════════════════════
   Homepage "Who's it for?" band
   ════════════════════════════════════════════ */
.persona-picker {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.persona-picker__head {
  text-align: center;
  margin-bottom: 44px;
}

.persona-picker__eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.persona-picker__title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.persona-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.persona-picker__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 30px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 24px);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.persona-picker__card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(3, 10, 24, 0.4);
}

.persona-picker__emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.persona-picker__name {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
}

.persona-picker__copy {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.persona-picker__link {
  margin-top: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-teal);
}

.persona-picker__card:hover .persona-picker__link span { margin-left: 4px; }
.persona-picker__link span { transition: margin-left 0.2s ease; }

/* ════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════ */
@media (max-width: 860px) {
  .persona-points__grid { grid-template-columns: 1fr; }
  .persona-picker__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .persona-hero { padding: 132px 18px 80px; min-height: 78vh; }
  .persona-hero__wave { height: 110px; }
  .persona-check { padding: 26px 22px; }
  .persona-cta-row, .persona-cta__row { flex-direction: column; align-items: stretch; }
  .persona-cta-row .btn-primary, .persona-cta-row .btn-secondary,
  .persona-cta__row .btn-primary, .persona-cta__row .btn-secondary { width: 100%; }
  .persona-cta__row .waitlist-form { width: 100%; }
}

/* ════════════════════════════════════════════
   Reduced motion — kill loops, keep everything legible
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .persona-eyebrow__dot { animation: none; }
  .persona-reader__eq i { animation: none !important; }
  .persona-hero__wave { display: none; }
  .persona-sub__w { color: var(--text-primary); }
}
