/* ===== AlumniAI.ai Home V2 — narrative sections ===== */
/* Scoped to the homepage. Reuses tokens from style.css; adds no new colors. */

:root {
  --hv-ease: cubic-bezier(.2,.7,.3,1);
  --hv-navy-2: #0d2138;
}

/* ---------- Shared reveal animation ---------- */
.hv-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--hv-ease), transform .4s var(--hv-ease);
}
.hv-reveal.is-in { opacity: 1; transform: none; }

.hv-section { padding: 72px 24px; }
.hv-wrap { max-width: var(--max-width); margin: 0 auto; }
.hv-narrow { max-width: 860px; margin: 0 auto; }
.hv-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--hv-navy-2) 100%); color: #fff; }
.hv-soft { background: var(--bg-soft); }

.hv-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.hv-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.hv-dark .hv-h2 { color: #fff; }
.hv-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.hv-dark .hv-sub { color: rgba(255,255,255,.72); }
.hv-center { text-align: center; }

/* ---------- S1 Hero ---------- */
.hero h1 .hv-line { display: block; }
.hero p.hv-hero-kicker {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 0;
}
/* Outline button that carries a leading icon (keeps baseline alignment) */
.hv-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero composer + quick-action cards: replica of the in-product Agent landing
   (main-web AgentComposer landing chrome + AgentQuickActions density="cards"),
   so the same-tab jump into /agent reads as the same UI continuing. Content and
   accent values come from generated assets/marketing/agent-quick-actions.json. */
/* Composer escapes the 760px hero column with the same `translate` trick as the
   cards row below it, so both share the same left/right edges. */
.hv-agent-composer {
  position: relative;
  left: 50%;
  translate: -50% 0;
  width: min(1180px, 94vw);
  margin-top: 28px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 16px 20px 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.hv-agent-composer:focus-within { border-color: rgba(96, 44, 200, 0.35); }
.hv-agent-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(96, 44, 200, 0.10);
}
.hv-agent-prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--navy, #0d2138);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hv-agent-prompt svg {
  width: 22px;
  height: 22px;
  color: #602cc8;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(96, 44, 200, 0.35));
}
.hv-agent-demo-tag {
  flex-shrink: 0;
  border: 1px solid rgba(13, 33, 56, 0.14);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-mid);
}
.hv-agent-composer textarea {
  width: 100%;
  min-height: 88px;
  margin-top: 12px;
  padding: 4px 0;
  resize: vertical;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 23px;
  color: var(--navy);
  background: transparent;
}
.hv-agent-composer-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 33, 56, 0.08);
}
.hv-agent-status {
  flex: 1;
  min-width: 120px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.hv-agent-status.is-error { color: #b42318; }
.hv-agent-status.is-info { color: var(--text-mid); }
.hv-agent-enter-hint {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mid);
}
.hv-agent-send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #602cc8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.hv-agent-send:hover { background: #4f23a8; transform: translateY(-1px); }
.hv-agent-send:disabled { opacity: 0.55; cursor: default; transform: none; }

/* Trial email + code inputs, sitting left of the send button. */
.hv-agent-trial {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hv-agent-trial-note {
  flex: 1 1 220px;
  min-width: 180px;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.hv-agent-trial-hint {
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-mid);
}
.hv-agent-trial-note .hv-agent-status {
  flex: none;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
}
.hv-agent-trial input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(13, 33, 56, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hv-agent-trial input:focus {
  border-color: #602cc8;
  box-shadow: 0 0 0 3px rgba(96, 44, 200, 0.12);
}
#hv-agent-email { width: 210px; }
#hv-agent-code { width: 84px; text-align: center; letter-spacing: 2px; }
.hv-agent-code-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hv-agent-code-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #602cc8;
  border-radius: 10px;
  background: #fff;
  color: #602cc8;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.hv-agent-code-btn:hover { background: #602cc8; color: #fff; }
.hv-agent-code-btn:disabled { opacity: 0.55; cursor: default; background: #fff; color: #602cc8; }

/* Cards row escapes the 760px hero column; `translate` (not `transform`) so the
   hv-reveal animation on the same element is not overridden. */
.hv-agent-cards {
  position: relative;
  left: 50%;
  translate: -50% 0;
  width: min(1180px, 94vw);
  margin-top: 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
}
.hv-qa-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 208px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  background: linear-gradient(165deg, var(--qa-top) 0%, var(--qa-bottom) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  font: inherit;
}
.hv-qa-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
/* Default-selected card (pre-filled into the composer on load): solid accent
   outline + lift + check badge, so the selection is unmistakable. */
.hv-qa-card.is-selected {
  border-color: var(--qa-icon, #602cc8);
  box-shadow: 0 0 0 1.5px var(--qa-icon, #602cc8), 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.hv-qa-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--qa-icon, #602cc8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.hv-qa-card.is-selected .hv-qa-check { opacity: 1; transform: scale(1); }
.hv-qa-icon-stage {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hv-qa-wash {
  position: absolute;
  inset: -6px;
  border-radius: 44px;
  background: radial-gradient(circle, var(--qa-wash) 0%, transparent 68%);
  pointer-events: none;
}
.hv-qa-icon-stage img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.hv-qa-icon-stage svg { position: relative; z-index: 1; color: var(--qa-icon); }
.hv-qa-title { font-size: 14px; font-weight: 700; line-height: 18px; color: #111827; }
.hv-qa-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #5B6472;
}
@media (max-width: 900px) {
  .hv-agent-cards {
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .hv-agent-cards::-webkit-scrollbar { display: none; }
  .hv-qa-card { flex: 0 0 156px; }
  .hv-agent-prompt { font-size: 16px; }
  .hv-agent-prompt svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
  .hv-agent-composer-head { flex-wrap: wrap; }
  .hv-agent-enter-hint { display: none; }
  .hv-agent-composer-foot { flex-wrap: wrap; }
  .hv-agent-trial { order: 3; width: 100%; margin-top: 4px; }
  #hv-agent-email { flex: 1; width: auto; }
}

/* ============ S2 · Capability tiles by advancement stage ============ */
.hv-features .hv-feat-stage {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 10px 32px;
  margin-top: 52px;
}
.hv-feat-stage-head { padding-top: 4px; }
.hv-feat-stage-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan-dark);
}
.hv-feat-stage-title { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-top: 4px; }
.hv-feat-stage-sub { font-size: 0.9rem; color: var(--text-light); margin-top: 6px; line-height: 1.5; }
.hv-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hv-feat-grid.is-trio { grid-template-columns: repeat(3, 1fr); }
.hv-feat-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hv-feat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hv-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--feat-wash, var(--cyan-light));
  color: var(--feat-accent, var(--cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-feat-title { font-size: 1.06rem; font-weight: 800; color: var(--navy); margin-top: 14px; }
.hv-feat-copy { font-size: 0.88rem; line-height: 1.65; color: var(--text-mid); margin-top: 8px; }
.hv-feat-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.hv-feat-more { font-size: 0.85rem; font-weight: 600; color: var(--cyan-dark); text-decoration: none; white-space: nowrap; }
.hv-feat-more:hover { text-decoration: underline; }
.hv-feat-foot {
  text-align: center;
  margin-top: 56px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.hv-feat-foot a { color: var(--cyan-dark); font-weight: 600; text-decoration: none; }
.hv-feat-foot a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .hv-features .hv-feat-stage { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .hv-feat-grid,
  .hv-feat-grid.is-trio { grid-template-columns: 1fr; }
}

/* Navigation bridge overlay (submit → real workspace finishes loading) */
.hv-agent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f4f6fb;
  display: flex;
  flex-direction: column;
}
.hv-agent-overlay[hidden] { display: none; }
.hv-agent-overlay-shell { display: flex; flex-direction: column; height: 100%; }
.hv-agent-overlay-header {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.hv-agent-overlay-header img { height: 36px; max-width: 160px; object-fit: contain; }
.hv-agent-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}
.hv-agent-overlay-skel {
  width: min(720px, 92vw);
  height: 148px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(90deg, #ffffff 0%, #eef0f6 50%, #ffffff 100%);
  background-size: 200% 100%;
  animation: hv-skel-sweep 1.2s linear infinite;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
@keyframes hv-skel-sweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
#hv-agent-overlay-status { margin: 0; font-size: 14px; font-weight: 500; color: #5a5f7a; }
@media (prefers-reduced-motion: reduce) {
  .hv-agent-overlay-skel { animation: none; }
}

.hv-hero-foot {
  margin-top: 34px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-light);
}
.hero-content .hv-reveal:nth-child(1) { transition-delay: .05s; }
.hero-content .hv-reveal:nth-child(2) { transition-delay: .13s; }
.hero-content .hv-reveal:nth-child(3) { transition-delay: .21s; }
.hero-content .hv-reveal:nth-child(4) { transition-delay: .29s; }
.hero-content .hv-reveal:nth-child(5) { transition-delay: .37s; }

/* Data pulses travelling along the neural links */
@keyframes hvPulseTravel {
  0%   { stroke-dashoffset: 240; opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.nn-pulses line {
  stroke: var(--cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 14 226;
  animation: hvPulseTravel 5.5s linear infinite;
  opacity: 0;
}
.nn-pulses line:nth-child(2) { animation-delay: .9s; }
.nn-pulses line:nth-child(3) { animation-delay: 1.8s; }
.nn-pulses line:nth-child(4) { animation-delay: 2.6s; }
.nn-pulses line:nth-child(5) { animation-delay: 3.4s; }
.nn-pulses line:nth-child(6) { animation-delay: 4.2s; }
.nn-paused .nn-pulses line { animation-play-state: paused; }

/* ---------- S3 Versus ---------- */
/* Constrained so the short comparison rows don't float in an over-wide card. */
.hv-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 920px;
  margin: 48px auto 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
}
.hv-vs-col { padding: 34px 32px; }
.hv-vs-col.is-old { background: rgba(255,255,255,.03); }
.hv-vs-col.is-new { background: rgba(0,168,232,.08); }
.hv-vs-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}
.hv-vs-col.is-new .hv-vs-label { color: var(--cyan); }
.hv-vs-claim {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: rgba(255,255,255,.55);
  margin-bottom: 26px;
}
.hv-vs-col.is-new .hv-vs-claim { color: #fff; }
.hv-vs-list { list-style: none; margin: 0; padding: 0; }
.hv-vs-list li {
  padding: 13px 0;
  font-size: .98rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  transition: color .35s var(--hv-ease), transform .35s var(--hv-ease);
}
.hv-vs-col.is-new .hv-vs-list li {
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.hv-vs-col.is-new .hv-vs-list li.is-lit {
  color: #fff;
  transform: translateX(6px);
}
.hv-vs-col.is-new .hv-vs-list li.is-lit::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 10px;
  vertical-align: 2px;
  box-shadow: 0 0 10px var(--cyan);
}
.hv-bigline {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.hv-bigline em { font-style: normal; color: var(--cyan); }

/* ---------- S6 CRM layers ---------- */
.hv-stack { margin-top: 48px; }
.hv-layer {
  border-radius: 14px;
  padding: 26px 28px;
  text-align: center;
}
.hv-layer-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.hv-layer-crm {
  background: #fff;
  border: 1px solid var(--border);
}
.hv-layer-crm .platform-grid { margin-top: 0; }
.hv-layer-core {
  background: linear-gradient(135deg, var(--navy) 0%, var(--hv-navy-2) 100%);
  color: #fff;
}
.hv-layer-core .hv-layer-label { color: var(--cyan); }
.hv-layer-core strong {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  display: block;
}
.hv-layer-core span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.hv-layer-out {
  background: #fff;
  border: 1px solid var(--border);
}
.hv-layer-out-line {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.hv-arrow {
  height: 46px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hv-arrow svg { height: 100%; width: 26px; }
@keyframes hvFlowDown {
  0%   { transform: translateY(-46px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}
.hv-arrow .hv-arrow-dot { animation: hvFlowDown 2.2s linear infinite; }
.hv-arrow:nth-of-type(2) .hv-arrow-dot { animation-delay: .6s; }
.hv-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-mid);
  font-size: 1.02rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Domain-depth line (folded in from the old chatbot section) ---------- */
.hv-domain {
  max-width: 780px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}
.hv-negative {
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- S8 Trust ---------- */
.hv-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.hv-trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.hv-trust-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.hv-trust-item p { color: var(--text-mid); line-height: 1.7; }
.hv-trust-line {
  margin-top: 40px;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
}

/* ---------- S10 Closing CTA ---------- */
.hv-close-q {
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 900px;
  margin: 0 auto 34px;
}
.hv-close-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hv-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  padding: 11px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: border-color .2s, background .2s, color .2s;
}
.hv-btn-ghost:hover { border-color: var(--cyan); color: #fff; background: rgba(0,168,232,.14); }
.hv-close-note {
  margin-top: 24px;
  font-size: .95rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hv-section { padding: 60px 20px; }
  .hv-versus { grid-template-columns: 1fr; }
  .hv-vs-col { padding: 26px 22px; }
}
@media (max-width: 1000px) {
  .hv-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hv-app-side { display: none; }
  .hv-app-body { height: 620px; }
  .hv-page-title { font-size: 23px; }
  .hv-brief-foot { flex-direction: column; align-items: stretch; }
  .hv-seg-summary { flex-direction: column; }
  .hv-seg-cell + .hv-seg-cell { border-left: 0; border-top: 1px solid #e2e8f0; }
  .hv-task-due { display: none; }
}
@media (max-width: 560px) {
  .hv-app { border-radius: 12px; margin-top: 32px; }
  .hv-app-body { height: 560px; }
  .hv-app-canvas { padding: 14px; }
  .hv-panel { padding: 14px; }
  .hv-app-top { padding: 0 14px; height: 54px; }
  .hv-app-h { font-size: 17px; }
  .hv-page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hv-fields { grid-template-columns: 1fr; }
  .hv-mail { flex-wrap: wrap; }
  .hv-mail-day { border-right: 0; padding-right: 0; }
  .hv-mail-edit { display: none; }
  .hv-actionbar { flex-direction: column; align-items: stretch; }
  .hv-app-btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hv-reveal,
  .hv-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hv-canvas-scroll { transition: none !important; transform: none !important; }
  /* Without the reveal animation there is nothing to scroll the canvas, so let
     the frame grow instead of clipping panels the visitor cannot reach. */
  .hv-app-body { height: auto; }
  .hv-app-canvas { overflow: visible; }
  .nn-pulses line,
  .hv-arrow .hv-arrow-dot,
  .hv-spinner,
  .hv-caret { animation: none; }
  .hv-caret { display: none; }
  .hv-spinner { display: none; }
}

/* ============ Home hero theme — purple AI refresh (homepage only) ============
   Primary: Agent-card purple (#602cc8). Accents: logo ink navy + logo cyan.
   Scoped under body.home so product pages keep the legacy cyan theme. */
:root {
  --hv-purple: #602cc8;
  --hv-violet: #8b5cf6;
  --hv-purple-ink: #3d1a8d;
}

/* Header (homepage): purple accent for active/hover + CTA */
body.home .nav-links > li > a:hover { color: var(--hv-purple); }
body.home .nav-links > li > a.active {
  color: var(--hv-purple);
  box-shadow: inset 0 -2px 0 var(--hv-purple);
}
body.home .nav-cta {
  background: linear-gradient(135deg, var(--hv-violet) 0%, var(--hv-purple) 100%);
  border-color: var(--hv-purple);
  box-shadow: 0 4px 14px rgba(96, 44, 200, 0.28);
}
body.home .nav-cta:hover {
  background: linear-gradient(135deg, var(--hv-purple) 0%, var(--hv-purple-ink) 100%);
  box-shadow: 0 6px 20px rgba(96, 44, 200, 0.38);
}

/* Hero backdrop: bright airy white → soft lavender → hint of cyan.
   Replaces the dull blue-gray gradient; two soft aurora glows carry the AI feel. */
body.home .hero {
  background: linear-gradient(180deg, #FDFDFF 0%, #F8F5FF 42%, #EFF1FF 78%, #EAF7FF 100%);
}
body.home .hero::before {
  background-image:
    radial-gradient(560px 420px at 82% -8%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(520px 400px at 8% 18%, rgba(0, 168, 232, 0.10), transparent 65%),
    radial-gradient(circle, rgba(96, 44, 200, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
}
/* Soft floor glow so the silhouette row melts into the background */
body.home .hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(234, 247, 255, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
body.home .hero-content { z-index: 2; }

/* Headline accent: violet → cyan gradient text, reads "AI" without heavy ink */
body.home .hero .accent {
  background: linear-gradient(120deg, var(--hv-purple) 20%, var(--hv-violet) 55%, #00A8E8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.home .hero p.hv-hero-kicker { color: var(--hv-purple-ink); }

/* Section eyebrow + data pulses switch to the purple family */
body.home .hv-eyebrow { color: var(--hv-purple); }
body.home .nn-pulses line { stroke: var(--hv-violet); }

/* Primary CTA under the composer: purple gradient matching the Agent send button */
body.home .hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--hv-violet) 0%, var(--hv-purple) 100%);
  box-shadow: 0 6px 18px rgba(96, 44, 200, 0.28);
}
body.home .hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, var(--hv-purple) 0%, var(--hv-purple-ink) 100%);
  box-shadow: 0 8px 24px rgba(96, 44, 200, 0.36);
}
body.home .hero-buttons .btn-secondary {
  border-color: rgba(96, 44, 200, 0.35);
  color: var(--hv-purple-ink);
}
body.home .hero-buttons .btn-secondary:hover {
  border-color: var(--hv-purple);
  color: var(--hv-purple);
}

/* Composer: lighter purple-tinted chrome so it floats above the brighter hero */
body.home .hv-agent-composer {
  border-color: rgba(96, 44, 200, 0.14);
  box-shadow: 0 12px 40px rgba(96, 44, 200, 0.10), 0 2px 8px rgba(13, 33, 56, 0.04);
}
body.home .hv-agent-composer:focus-within {
  border-color: rgba(96, 44, 200, 0.45);
  box-shadow: 0 12px 44px rgba(96, 44, 200, 0.16), 0 0 0 4px rgba(96, 44, 200, 0.07);
}
body.home .hv-agent-demo-tag {
  border-color: rgba(96, 44, 200, 0.35);
  color: var(--hv-purple);
  background: rgba(96, 44, 200, 0.06);
}

/* Section-level cyan accents follow the purple theme on the homepage */
body.home .hv-feat-stage-num { color: var(--hv-purple); }
body.home .hv-feat-more { color: var(--hv-purple); }
body.home .hv-feat-foot a { color: var(--hv-purple); }
body.home .hv-vs-col.is-new .hv-vs-label { color: var(--hv-violet); }
body.home .hv-bigline em { color: var(--hv-violet); }
body.home .hv-layer-core .hv-layer-label { color: var(--hv-violet); }
body.home .hv-negative { color: var(--hv-violet); }

/* Registration email verification dialog */
.hv-registration-dialog { position: fixed; inset: 0; height: fit-content; margin: auto; text-align: left; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; border: 1px solid #e8e0fb; border-radius: 20px; padding: 32px; color: #111827; box-shadow: 0 24px 80px #21133b40; }
.hv-registration-dialog::backdrop { background: #17112d88; }
.hv-registration-dialog form { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hv-registration-dialog h2 { margin: 0 26px 0 0; font-size: 24px; }
.hv-registration-dialog p { font-size: 14px; line-height: 1.5; color: #647084; margin: 0 0 8px; }
.hv-registration-dialog label { font-size: 14px; font-weight: 600; }
.hv-registration-dialog input { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid #d8dbe4; border-radius: 10px; font: inherit; font-size: 15px; }
.hv-registration-dialog input:focus { outline: 2px solid #8054df; outline-offset: 2px; }
.hv-registration-email-row { display: flex; align-items: center; gap: 8px; }
.hv-registration-dialog button { cursor: pointer; border: 1px solid #7644d7; border-radius: 10px; padding: 12px; background: white; color: #6735c3; font: inherit; font-size: 14px; font-weight: 600; }
.hv-registration-dialog button:disabled { cursor: default; opacity: .6; }
#hv-registration-send-code { flex-shrink: 0; min-width: 98px; }
#hv-registration-confirm { background: #6b35d1; color: white; }
.hv-registration-dialog .hv-registration-close { position: absolute; right: -14px; top: -16px; border: 0; font-size: 26px; padding: 8px 12px; }
.hv-registration-dialog .hv-registration-cancel { border: 0; color: #647084; }
#hv-registration-status.is-error { color: #b42318; }
#hv-registration-status { min-height: 22px; }
@media (max-width: 480px) { .hv-registration-dialog { padding: 24px; } .hv-registration-email-row { flex-wrap: wrap; } #hv-registration-send-code { width: 100%; } }
