/* V3 — Live Personalization Demo */
.v3 {
  position: relative;
  width: 100%;
  min-height: 980px;
  overflow: hidden;
  background: var(--sky-top);
  font-family: var(--sans);
  color: var(--ink);
  border-radius: 24px;
}

.v3-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
}
.v3-nav-right { display: flex; align-items: center; gap: 10px; }
.v3-nav-right .btn-ghost { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.v3-nav-right .v3-try { background: var(--ink); color: white; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; border: none; white-space: nowrap; }

.v3-prop { position: absolute; pointer-events: none; z-index: 1; }
.v3-prop.star-a { top: 12%; left: 6%; width: 36px; animation: twinkle 3s infinite; }
.v3-prop.star-b { top: 6%; right: 44%; width: 22px; animation: twinkle 2.4s infinite .5s; }
.v3-prop.star-c { top: 32%; right: 3%; width: 28px; animation: twinkle 3.4s infinite 1s; }
.v3-prop.star-d { top: 60%; left: 3%; width: 20px; animation: twinkle 2.8s infinite .8s; }
.v3-prop.cloud-a { top: 6%; right: 10%; width: 140px; opacity: .85; animation: drift-b 22s linear infinite alternate; }
.v3-prop.cloud-b { top: 22%; left: 32%; width: 110px; opacity: .7; animation: drift-a 26s linear infinite alternate; }
.v3-prop.cloud-c { bottom: 18%; right: 18%; width: 120px; opacity: .8; }

/* Hero */
.v3-hero {
  position: relative; z-index: 3;
  padding: 40px 48px 60px;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}
.v3-left { padding-top: 40px; }

.v3-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 2px solid rgba(58,37,64,.06);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.v3-pill .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  color: white; display: grid; place-items: center; font-size: 11px;
}

.v3-h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }
.v3-h1 .name-slot {
  font-style: italic;
  color: var(--coral-dk);
  position: relative;
  display: inline-block;
  padding: 0 6px;
  white-space: nowrap;
  isolation: isolate;
}
.v3-h1 .name-slot .cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  color: var(--coral-dk);
  animation: blink .75s step-end infinite;
  margin-left: 1px;
  opacity: .8;
}
.v3-h1 .name-slot::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: #ffdf7a;
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-8deg);
}

.v3-sub {
  font-size: 18px; color: var(--ink-2); font-weight: 500;
  line-height: 1.55; max-width: 500px;
  margin-bottom: 30px;
}

/* Try form */
.v3-try-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 3px solid rgba(58,37,64,.05);
  max-width: 520px;
  margin-bottom: 26px;
}
.v3-try-label {
  font-weight: 800; font-size: 13px; color: var(--ink);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.v3-try-label .thought-tag {
  background: white;
  border: 2px solid rgba(58,37,64,.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
}

.v3-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.v3-input-row .input-pill { flex: 1; }
.v3-input-row .input-pill input { font-size: 17px; }

.v3-age-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.v3-age {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800; font-size: 13px;
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
  opacity: .45;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.v3-age.active { opacity: 1; transform: scale(1.04); }
.v3-age.age-1 { background: linear-gradient(180deg, var(--coral), var(--coral-dk)); }
.v3-age.age-2 { background: linear-gradient(180deg, var(--violet), var(--violet-dk)); }
.v3-age.age-3 { background: linear-gradient(180deg, var(--tangerine), var(--tangerine-dk)); }
.v3-age.age-4 { background: linear-gradient(180deg, var(--sky-blue), var(--sky-blue-dk)); }
.v3-age.age-5 { background: linear-gradient(180deg, var(--leaf), var(--leaf-dk)); }

.v3-theme-label { font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.v3-theme-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.v3-theme {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
  opacity: .45;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.v3-theme.active { opacity: 1; transform: translateY(-1px); }
.v3-theme svg { width: 14px; height: 14px; }
.v3-theme.t-violet { background: linear-gradient(180deg, var(--violet), var(--violet-dk)); }
.v3-theme.t-leaf { background: linear-gradient(180deg, var(--leaf), var(--leaf-dk)); }
.v3-theme.t-tang { background: linear-gradient(180deg, var(--tangerine), var(--tangerine-dk)); }
.v3-theme.t-coral { background: linear-gradient(180deg, var(--coral), var(--coral-dk)); }
.v3-theme.t-sky { background: linear-gradient(180deg, var(--sky-blue), var(--sky-blue-dk)); }
.v3-theme.t-gold { background: linear-gradient(180deg, var(--gold), var(--gold-dk)); color:#4a3308; }

.v3-generate {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 2px dashed rgba(58,37,64,.1);
}
.v3-generate-meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.v3-generate .btn-pill { padding: 13px 22px; }

/* Right side: live preview */
.v3-right {
  position: relative;
  display: flex; justify-content: center;
  padding-top: 10px;
}
.v3-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.v3-owl-peek {
  position: absolute;
  left: -60px; bottom: -30px;
  width: 160px;
  z-index: 4;
  animation: bob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(60,30,50,.22));
}
.v3-thought {
  position: absolute;
  left: -30px; top: -10px;
  z-index: 5;
  animation: bob 4s ease-in-out infinite;
}

.v3-phone {
  background: #1a0e26;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.08),
    0 36px 80px -20px rgba(40, 20, 40, 0.45),
    0 12px 24px rgba(40, 20, 40, 0.14);
  width: 360px;
  margin: 0 auto;
  position: relative;
}
.v3-phone::before {
  content: ""; position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; background: #1a0e26; border-radius: 16px; z-index: 3;
}
.v3-phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe5ed 0%, #fbc5d3 70%);
  position: relative;
  display: flex; flex-direction: column;
  padding: 58px 16px 20px;
}
.v3-status {
  position: absolute; top: 18px; left: 26px; right: 26px;
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 800; color: var(--ink);
}
.v3-status-icons { display: flex; gap: 5px; }

.v3-story-card {
  background: var(--cream);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 24px -8px rgba(60,30,50,.18);
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.v3-story-illus {
  border-radius: 16px;
  background: linear-gradient(160deg, #b8e1ff 0%, #e8d1ff 100%);
  aspect-ratio: 5/3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.v3-story-illus img { width: 60%; }
.v3-story-illus .pg-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.v3-story-illus .pg-dots span {
  width: 5px; height: 5px; border-radius: 99px; background: rgba(58,37,64,.25);
}
.v3-story-illus .pg-dots span.on { background: var(--coral); width: 14px; }
.v3-story-title {
  font-family: var(--serif);
  font-weight: 800; font-size: 18px;
  color: var(--ink); line-height: 1.2;
  min-height: 44px;
  transition: opacity .3s;
}
.v3-story-body {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55; font-weight: 500;
  transition: opacity .3s;
}
.v3-story-body em {
  background: linear-gradient(180deg, transparent 62%, #ffdf7a 62%, #ffdf7a 92%, transparent 92%);
  padding: 0 2px; font-style: normal; font-weight: 700;
  color: var(--ink);
}
.v3-phone-generating {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 230, 240, .8);
  backdrop-filter: blur(6px);
  border-radius: 36px;
  display: grid; place-items: center;
  z-index: 10;
  animation: fadeOut .8s forwards;
}
@keyframes fadeOut { 0% { opacity: 1 } 100% { opacity: 0; pointer-events: none; } }
.v3-phone-generating .sparkle-text {
  font-family: var(--serif); font-weight: 800; font-style: italic;
  font-size: 18px; color: var(--coral-dk);
  display: flex; align-items: center; gap: 8px;
}

.v3-play-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  background: white;
  border-radius: 14px;
}
.v3-play-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral);
  display: grid; place-items: center; color: white;
  flex-shrink: 0;
}
.v3-progress {
  flex: 1; height: 6px; border-radius: 99px;
  background: rgba(58,37,64,.12);
  overflow: hidden;
}
.v3-progress > span {
  display: block; height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--coral), var(--violet));
  border-radius: 99px;
}

/* ======== Strip sections ======== */
.v3-strip {
  position: relative; z-index: 3;
  background: var(--cream);
  padding: 56px 48px;
  border-top: 3px solid rgba(58,37,64,.05);
  border-bottom: 3px solid rgba(58,37,64,.05);
}
.v3-strip-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.v3-stat { text-align: center; padding: 8px; }
.v3-stat .n {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(36px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.v3-stat .n .italic { font-style: italic; color: var(--coral-dk); }
.v3-stat .l {
  font-size: 13px; color: var(--ink-2); font-weight: 600;
  margin-top: 8px;
}

/* Themes section */
.v3-themes {
  position: relative; z-index: 3;
  padding: 80px 48px;
  background: linear-gradient(180deg, var(--cream) 0%, #ffe5ed 100%);
}
.v3-themes-inner { max-width: 1180px; margin: 0 auto; }
.v3-themes-head { text-align: center; margin-bottom: 44px; }
.v3-themes-head .v1-eyebrow { color: var(--coral-dk); }
.v3-themes-head h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(34px, 3.8vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.v3-themes-head h2 .italic { font-style: italic; color: var(--coral-dk); }

.v3-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.v3-theme-card {
  background: white;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 3px solid rgba(58,37,64,.04);
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.v3-theme-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.v3-theme-card .badge {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: white;
  margin-bottom: 14px;
}
.v3-theme-card.c1 .badge { background: linear-gradient(180deg, var(--violet), var(--violet-dk)); }
.v3-theme-card.c2 .badge { background: linear-gradient(180deg, var(--leaf), var(--leaf-dk)); }
.v3-theme-card.c3 .badge { background: linear-gradient(180deg, var(--tangerine), var(--tangerine-dk)); }
.v3-theme-card.c4 .badge { background: linear-gradient(180deg, var(--coral), var(--coral-dk)); }
.v3-theme-card h3 {
  font-family: var(--serif); font-weight: 800;
  font-size: 18px; color: var(--ink);
  margin-bottom: 6px;
}
.v3-theme-card p { font-size: 13px; color: var(--ink-2); font-weight: 500; line-height: 1.55; }

/* FAQ */
.v3-faq {
  position: relative; z-index: 3;
  padding: 80px 48px;
  background: #ffe5ed;
}
.v3-faq-inner {
  max-width: 840px; margin: 0 auto;
}
.v3-faq-head { text-align: center; margin-bottom: 36px; }
.v3-q {
  background: white;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(58,37,64,.05);
}
.v3-q summary {
  font-family: var(--serif); font-weight: 800; font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.v3-q summary::after {
  content: "+";
  font-size: 22px; color: var(--coral-dk);
}
.v3-q[open] summary::after { content: "−"; }
.v3-q p { margin-top: 10px; color: var(--ink-2); font-weight: 500; line-height: 1.6; font-size: 15px; }

/* CTA */
.v3-cta {
  position: relative; z-index: 3;
  padding: 90px 48px;
  background: var(--sky-top);
  text-align: center;
}
.v3-cta h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); margin-bottom: 12px;
  text-wrap: balance;
}
.v3-cta h2 .italic { font-style: italic; color: var(--coral-dk); }
.v3-cta p { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; font-weight: 500; }
.v3-cta .btn-row { display: inline-flex; gap: 12px; }

.v3-foot {
  background: var(--ink); color: rgba(255,255,255,.65);
  padding: 34px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.v3-foot .talio-mark .wordmark { color: white; }
.v3-foot-links { display: flex; gap: 24px; font-weight: 600; }
.v3-foot-links a:hover { color: white; }

/* ── Nav account pill (logged-in state) ─────────────── */
.v3-nav-account {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(58,37,64,.35);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.v3-nav-account:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(58,37,64,.45); }
.v3-nav-account-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 13px; color: white;
}
