/* /home/v3 — business story, motion on the decision path. Builds on home-v2.css. */

#demo, #decision, #for, #proof, #security { scroll-margin-top: 88px; }

.hv3-cta-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.hv3-cta-note a { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }

/* Hero story */
.hv3-story {
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.hv3-beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hv3-beat {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  animation: hv3-rise 0.6s var(--ease-out) both;
  animation-delay: calc(0.12s + var(--i) * 0.16s);
  transition: border-color 0.45s ease, background 0.45s ease;
}
.hv3-beat span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(111, 81, 206, 0.14);
  color: var(--brand-light);
}
.hv3-beat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  color: var(--text-0);
  margin-bottom: 2px;
}
.hv3-beat p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-2);
}
.hv3-beat.is-hot {
  border-color: var(--border-brand);
  background: rgba(111, 81, 206, 0.12);
}
.hv3-story-result {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-1);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
}
.hv3-story-result span {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
}

/* Problem cards stagger in */
.hv3 .hv2-gcard {
  opacity: 0;
  transform: translateY(18px);
}
.hv3 .hv2-gcard.is-in {
  animation: hv3-rise 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* Decision path */
.hv3-flow .hv3-step {
  opacity: 0;
}
.hv3-flow.is-in .hv3-step {
  animation: hv3-rise 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i) * 140ms);
}
.hv3-flow.is-in .hv2-af:not(:last-child)::after {
  animation: hv3-arrow 0.4s ease both;
  animation-delay: calc(var(--i) * 140ms + 280ms);
}
.hv3-meanings {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hv3-meanings article {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.hv3-meanings strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
}
.hv3-meanings p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.hv3-meanings article:nth-child(1) strong { color: #86efac; }
.hv3-meanings article:nth-child(2) strong { color: #c4b5fd; }
.hv3-meanings article:nth-child(3) strong { color: #7dd3fc; }
.hv3-meanings article:nth-child(4) strong { color: #fcd34d; }
[data-theme="light"] .hv3-meanings article:nth-child(1) strong { color: #166534; }
[data-theme="light"] .hv3-meanings article:nth-child(2) strong { color: #5b21b6; }
[data-theme="light"] .hv3-meanings article:nth-child(3) strong { color: #075985; }
[data-theme="light"] .hv3-meanings article:nth-child(4) strong { color: #92400e; }

/* Demo */
.hv3 .hv2-sigs { grid-template-columns: 1fr 1fr; }
.hv2-stage.is-shown { animation: hv3-fade 0.38s var(--ease-out); }
.hv3-check {
  margin-top: 12px;
  width: min(100%, 680px);
  display: grid;
  gap: 8px;
}
.hv3-check-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-1);
}
.hv3-check-row span {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
}
.hv3-check-row p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-2);
}
.hv3-illus {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Team path */
.hv3-team {
  list-style: none;
  margin: 0;
  padding: 4px 2px 0;
  display: grid;
  gap: 8px;
}
.hv3-team li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 12px;
}
.hv3-team span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(111, 81, 206, 0.14);
  color: var(--brand-light);
}
.hv3-team strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-0);
  margin-bottom: 2px;
}
.hv3-team p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.hv3-proof {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hv3-proof article {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.hv3-proof span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.hv3-proof p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.hv3-proof-gap {
  max-width: 40rem;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-2);
}
.hv3-sec-link {
  max-width: 40rem;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
}
.hv3-sec-link a {
  color: var(--text-0);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes hv3-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hv3-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes hv3-arrow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .hv3-meanings, .hv3-proof { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hv3-meanings, .hv3-proof, .hv3 .hv2-sigs { grid-template-columns: 1fr; }
  .hv3-check-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv3-beat,
  .hv3 .hv2-gcard,
  .hv3-flow .hv3-step,
  .hv2-stage.is-shown,
  .hv3-flow.is-in .hv2-af:not(:last-child)::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wl-cycle-word { transition: none !important; }
}

/* Workload name cycle. The slot keeps the width of the longest name. */
.wl-cycle {
  display: inline-block;
  vertical-align: baseline;
  max-width: 100%;
  text-align: left;
}
.wl-cycle-word {
  display: inline;
  padding-right: 0.06em;
  white-space: nowrap;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.wl-cycle.is-out .wl-cycle-word,
.wl-cycle.is-in .wl-cycle-word {
  opacity: 0;
}
.wl-cycle.is-in .wl-cycle-word { transition: none; }
.wl-cycle-word[data-wl="workload"], strong[data-wl="workload"] { color: #c4b5fd; }
.wl-cycle-word[data-wl="dbt"], strong[data-wl="dbt"] { color: #ff8a65; }
.wl-cycle-word[data-wl="fivetran"], strong[data-wl="fivetran"] { color: #38bdf8; }
.wl-cycle-word[data-wl="airbyte"], strong[data-wl="airbyte"] { color: #a5b4fc; }
.wl-cycle-word[data-wl="airflow"], strong[data-wl="airflow"] { color: #2dd4bf; }
.wl-cycle-word[data-wl="dataform"], strong[data-wl="dataform"] { color: #60a5fa; }
.wl-cycle-word[data-wl="snowpark"], strong[data-wl="snowpark"] { color: #22d3ee; }
.wl-cycle-word[data-wl="dynamic-table"], strong[data-wl="dynamic-table"] { color: #fbbf24; }
.wl-cycle-word[data-wl="snowpipe"], strong[data-wl="snowpipe"] { color: #67e8f9; }
.wl-cycle-word[data-wl="task"], strong[data-wl="task"] { color: #fb923c; }
.wl-cycle-word[data-wl="cortex"], strong[data-wl="cortex"] { color: #d8b4fe; }
.wl-cycle-word[data-wl="cortex-analyst"], strong[data-wl="cortex-analyst"] { color: #e879f9; }
.wl-cycle-word[data-wl="cortex-search"], strong[data-wl="cortex-search"] { color: #c084fc; }
.wl-cycle-word[data-wl="cortex-agent"], strong[data-wl="cortex-agent"] { color: #f0abfc; }
.wl-cycle-word[data-wl="streamlit"], strong[data-wl="streamlit"] { color: #fb7185; }
.wl-cycle-word[data-wl="notebook"], strong[data-wl="notebook"] { color: #bef264; }
.wl-cycle-word[data-wl="looker"], strong[data-wl="looker"] { color: #f9a8d4; }
.wl-cycle-word[data-wl="looker-studio"], strong[data-wl="looker-studio"] { color: #facc15; }
.wl-cycle-word[data-wl="tableau"], strong[data-wl="tableau"] { color: #fdba74; }
.wl-cycle-word[data-wl="power-bi"], strong[data-wl="power-bi"] { color: #fde047; }
.wl-cycle-word[data-wl="sigma"], strong[data-wl="sigma"] { color: #6ee7b7; }
.wl-cycle-word[data-wl="dbt-agent"], strong[data-wl="dbt-agent"] { color: #fda4af; }
.wl-cycle-word[data-wl="scheduled-query"], strong[data-wl="scheduled-query"] { color: #5eead4; }
.wl-cycle-word[data-wl="continuous-query"], strong[data-wl="continuous-query"] { color: #99f6e4; }
.wl-cycle-word[data-wl="bigquery-ml"], strong[data-wl="bigquery-ml"] { color: #93c5fd; }
.wl-cycle-word[data-wl="connected-sheets"], strong[data-wl="connected-sheets"] { color: #86efac; }
[data-theme="light"] .wl-cycle-word[data-wl="workload"], [data-theme="light"] strong[data-wl="workload"] { color: #5b21b6; }
[data-theme="light"] .wl-cycle-word[data-wl="dbt"], [data-theme="light"] strong[data-wl="dbt"] { color: #c2410c; }
[data-theme="light"] .wl-cycle-word[data-wl="fivetran"], [data-theme="light"] strong[data-wl="fivetran"] { color: #0369a1; }
[data-theme="light"] .wl-cycle-word[data-wl="airbyte"], [data-theme="light"] strong[data-wl="airbyte"] { color: #4338ca; }
[data-theme="light"] .wl-cycle-word[data-wl="airflow"], [data-theme="light"] strong[data-wl="airflow"] { color: #0f766e; }
[data-theme="light"] .wl-cycle-word[data-wl="dataform"], [data-theme="light"] strong[data-wl="dataform"] { color: #1d4ed8; }
[data-theme="light"] .wl-cycle-word[data-wl="snowpark"], [data-theme="light"] strong[data-wl="snowpark"] { color: #155e75; }
[data-theme="light"] .wl-cycle-word[data-wl="dynamic-table"], [data-theme="light"] strong[data-wl="dynamic-table"] { color: #a16207; }
[data-theme="light"] .wl-cycle-word[data-wl="snowpipe"], [data-theme="light"] strong[data-wl="snowpipe"] { color: #0e7490; }
[data-theme="light"] .wl-cycle-word[data-wl="task"], [data-theme="light"] strong[data-wl="task"] { color: #c2410c; }
[data-theme="light"] .wl-cycle-word[data-wl="cortex"], [data-theme="light"] strong[data-wl="cortex"] { color: #7e22ce; }
[data-theme="light"] .wl-cycle-word[data-wl="cortex-analyst"], [data-theme="light"] strong[data-wl="cortex-analyst"] { color: #a21caf; }
[data-theme="light"] .wl-cycle-word[data-wl="cortex-search"], [data-theme="light"] strong[data-wl="cortex-search"] { color: #6d28d9; }
[data-theme="light"] .wl-cycle-word[data-wl="cortex-agent"], [data-theme="light"] strong[data-wl="cortex-agent"] { color: #86198f; }
[data-theme="light"] .wl-cycle-word[data-wl="streamlit"], [data-theme="light"] strong[data-wl="streamlit"] { color: #be123c; }
[data-theme="light"] .wl-cycle-word[data-wl="notebook"], [data-theme="light"] strong[data-wl="notebook"] { color: #3f6212; }
[data-theme="light"] .wl-cycle-word[data-wl="looker"], [data-theme="light"] strong[data-wl="looker"] { color: #9d174d; }
[data-theme="light"] .wl-cycle-word[data-wl="looker-studio"], [data-theme="light"] strong[data-wl="looker-studio"] { color: #a16207; }
[data-theme="light"] .wl-cycle-word[data-wl="tableau"], [data-theme="light"] strong[data-wl="tableau"] { color: #9a3412; }
[data-theme="light"] .wl-cycle-word[data-wl="power-bi"], [data-theme="light"] strong[data-wl="power-bi"] { color: #854d0e; }
[data-theme="light"] .wl-cycle-word[data-wl="sigma"], [data-theme="light"] strong[data-wl="sigma"] { color: #047857; }
[data-theme="light"] .wl-cycle-word[data-wl="dbt-agent"], [data-theme="light"] strong[data-wl="dbt-agent"] { color: #9f1239; }
[data-theme="light"] .wl-cycle-word[data-wl="scheduled-query"], [data-theme="light"] strong[data-wl="scheduled-query"] { color: #0f766e; }
[data-theme="light"] .wl-cycle-word[data-wl="continuous-query"], [data-theme="light"] strong[data-wl="continuous-query"] { color: #115e59; }
[data-theme="light"] .wl-cycle-word[data-wl="bigquery-ml"], [data-theme="light"] strong[data-wl="bigquery-ml"] { color: #1e40af; }
[data-theme="light"] .wl-cycle-word[data-wl="connected-sheets"], [data-theme="light"] strong[data-wl="connected-sheets"] { color: #166534; }

.hv3-br { display: block; }
.hv3:not(.hv4) .hv2-hero-grid > *,
.hv3:not(.hv4) .hv2-growth > *,
.hv3:not(.hv4) .hv2-compare > *,
.hv3:not(.hv4) .hv2-plats > *,
.hv3:not(.hv4) .hv2-for > *,
.hv3:not(.hv4) .hv2-secure > *,
.hv3:not(.hv4) .hv3-names > * { min-width: 0; }

.hv3-names {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.hv3-name {
  min-width: 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.hv3-name strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
}
.hv3-name p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-2);
}
.hv3-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.hv3-steps article {
  min-width: 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.hv3-steps span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-light);
}
.hv3-steps h3 { margin-bottom: 6px; }
.hv3-steps p { margin: 0; font-size: 0.875rem; color: var(--text-2); }

@media (max-width: 980px) {
  .hv3-names, .hv3-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hv3:not(.hv4) .hv2-hero { padding: 92px 16px 36px; }
  .hv3:not(.hv4) .hv2-hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }
  .hv3:not(.hv4) .hv2-actions .btn,
  .hv3:not(.hv4) .hv2-cta .cta-actions .btn { width: 100%; }
  .hv3:not(.hv4) .hv3-br { display: inline; }
  .hv3:not(.hv4) .hv3-story { padding: 16px 14px 14px; }
  .hv3-names, .hv3-steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hv3:not(.hv4) .hv2-actions .btn,
  .hv3:not(.hv4) .hv2-cta .cta-actions .btn { white-space: normal; }
}
