/* Home page v2: centered hero with converging lines, dark. Builds on styles.css and home.css. */

.v2 { --clay: #d8907a; }
@media (prefers-reduced-motion: no-preference) { html:has(body.v2) { scroll-behavior: smooth; } }
.v2 .section, .v2 #pricing { scroll-margin-top: 80px; }

.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; text-decoration: none; text-align: center;
}
.announce svg { width: 15px; height: 15px; transition: transform .2s; }
.announce:hover svg { transform: translateX(3px); }

.v2 .hnav { top: 0; }
.nav-login { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 0 12px; display: inline-flex; align-items: center; height: 36px; }
.nav-login:hover { color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--line-3); color: var(--ink); text-decoration: none; }
.btn-outline:hover { border-color: var(--line-hover); background: var(--tint); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 8px; }
.v2 .btn { text-decoration: none; }

/* ---------- hero ---------- */
.hero2 { position: relative; overflow: hidden; padding: 96px 24px 40px; text-align: center; isolation: isolate; }
.hero2-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.rays { position: absolute; top: 0; height: 100%; width: 44%; z-index: 0; pointer-events: none; }
.rays-l { left: 0; -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 72%); mask-image: linear-gradient(to right, #000 10%, transparent 72%); }
.rays-r { right: 0; transform: scaleX(-1); -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 72%); mask-image: linear-gradient(to right, #000 10%, transparent 72%); }
.rays line { stroke: var(--clay); stroke-opacity: .34; stroke-width: 1; }
.rays .pulse { stroke: var(--pulse); stroke-opacity: 1; stroke-width: 1.6; stroke-dasharray: 18 200; stroke-linecap: round; }

.fact-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--chip-bg); color: var(--ink-2); font-size: 13.5px; text-decoration: none;
  transition: border-color .15s;
}
.fact-pill:hover { border-color: var(--line-strong); }
.fact-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.hero2 h1 { margin: 26px 0 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.hero2 h1 span { display: block; }
.h-strong { color: var(--ink); }
.h-soft { color: var(--soft-ink); }
.hero2-lede { margin: 24px auto 34px; max-width: 58ch; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.hero2-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.plans-free { margin: -12px 0 0; font-size: 14.5px; }
.plans-free a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.plans-free a:hover { color: var(--ink); }
.chips2 { position: relative; z-index: 1; list-style: none; margin: 64px 0 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chips2 li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); font-size: 13.5px; background: var(--chip-bg); }
.chips2 svg { width: 16px; height: 16px; color: var(--ok); }

.v2 .demo-wrap { padding: 36px 0 20px; }
.v2 .final .hero2-cta { margin-top: 4px; }
.v2 .section-head h2, .v2 .final h2 { font-size: clamp(30px, 4vw, 46px); }

/* ---------- sign-up page ---------- */
.home main.auth-stage { max-width: none; }
.auth-stage { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 56px 16px 72px; }
.auth-wrap { position: relative; z-index: 1; width: min(430px, 100%); text-align: center; }
.auth-wrap h1, .plans-main h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.04em; font-weight: 700; }
.auth-sub { color: var(--muted); font-size: 15.5px; margin: 10px 0 26px; }
.plan-note { margin: -10px 0 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip-bg); color: var(--ink-2); font-size: 13.5px; }
.auth-wrap .auth-card { text-align: left; background: var(--card-glass); backdrop-filter: blur(8px); }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch .link-btn { font-size: 13.5px; }

/* ---------- plan picker ---------- */
.plans-main { max-width: 1100px; margin: 0 auto; padding: 56px 24px 80px; text-align: center; }
.step-label { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.plans-main .plans { text-align: left; margin-top: 34px; }
.plan-picked { border-color: var(--muted); }
.plans-msg { text-align: center; margin-top: 18px; }
.plans-page .user-box { display: flex; align-items: center; gap: 12px; }
.plans-page #userEmail { color: var(--muted); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Keep the wordmark on one line; on phones the email gives way instead. */
.plans-page .hnav .brand { flex: none; white-space: nowrap; }
@media (max-width: 520px) { .plans-page #userEmail { display: none; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero2-inner > *, .chips2 { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero2-inner > :nth-child(2) { animation-delay: .07s; }
  .hero2-inner > :nth-child(3) { animation-delay: .14s; }
  .hero2-inner > :nth-child(4) { animation-delay: .21s; }
  .hero2-inner > :nth-child(5) { animation-delay: .26s; }
  .chips2 { animation-delay: .3s; }
}

@media (max-width: 760px) {
  .hero2 { padding: 64px 16px 28px; }
  .rays { width: 34%; opacity: .45; }
  .hero2-lede { font-size: 16px; }
  .btn-lg { height: 48px; padding: 0 20px; font-size: 15px; }
  .chips2 { margin-top: 40px; }
  .nav-login { display: none; }
  #navCreate { height: 34px; padding: 0 12px; font-size: 13px; }
  .announce { font-size: 12.5px; height: auto; min-height: 40px; padding: 8px 14px; }
}

/* "Get started" slides into the nav once the hero buttons scroll out of view. */
.nav-start {
  max-width: 0; padding: 0; margin-left: -8px; opacity: 0; overflow: hidden; border-width: 0; pointer-events: none;
  transition: max-width .3s ease, padding .3s ease, margin .3s ease, opacity .25s ease;
}
body.scrolled .nav-start { max-width: 160px; padding: 0 14px; margin-left: 0; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .nav-start { transition: none; } }
@media (max-width: 760px) {
  body.scrolled #navCreate { display: none; }
}

/* ---------- pricing page ---------- */
.pricing-faq { max-width: 820px; margin: 72px auto 0; text-align: left; }
.pricing-faq h2 { font-size: 24px; margin-bottom: 18px; }
.hnav-links a[aria-current="page"] { color: var(--ink); }
