/* Hero test (digigami.ai/hero-test/). Static by default; js/hero.js adds .ht-anim when motion is on. */
.ht { display: block; padding: calc(var(--header-h) + 24px) 16px 64px; max-width: 1160px; margin: 0 auto; }
.ht-intro { min-height: calc(80svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 760px; }
.ht-kicker { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--text-muted); }
.ht-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; color: var(--text-primary); }
.ht-lead { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-secondary); max-width: 40ch; }
.ht-cue { margin: 16px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

.ht-for { display: none; flex-wrap: wrap; align-items: center; gap: 8px; }
.js .ht-for { display: flex; }
.ht-for-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); margin-right: 4px; }
.ht-for-btn { min-height: 44px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.ht-for-btn[aria-pressed="true"] { background: var(--gradient-mystical); color: #050508; border-color: transparent; }
.ht-for-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.ht-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: 24px 0; }
.ht-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ht-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); color: var(--text-secondary); font-size: 1rem; line-height: 1.45; }
.ht-step b { color: var(--text-primary); }
.ht-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; border: 1px solid var(--line-strong); color: var(--text-primary); }

.ht-frame { border-radius: var(--radius-lg); background: var(--gradient-mystical); padding: 2px; box-shadow: var(--shadow-card); }
.ht-screen { border-radius: calc(var(--radius-lg) - 2px); background: var(--bg-surface); color: var(--text-primary); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ht-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ht-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.ht-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.ht-msg, .ht-draft { padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-deep); }
.ht-msg p, .ht-draft p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.ht-draft { background: var(--bg-surface); border-color: var(--line-strong); }
.ht-chip { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 100px; border: 1px dashed var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.ht-approve-wrap { display: flex; flex-direction: column; gap: 6px; }
.ht-approve { min-height: 52px; border: none; border-radius: 100px; background: var(--gradient-mystical); color: #050508; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; pointer-events: none; }
.ht-note { font-size: 0.9rem; color: var(--text-secondary); text-align: center; }
.ht-sent { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--green); font-size: 0.98rem; }
.ht-sent small { color: var(--text-muted); }
.ht-check { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #050508; font-weight: 700; }

.ht-after { max-width: 640px; padding: 96px 0 32px; }
.ht-after h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ht-after p { color: var(--text-secondary); font-size: 1.1rem; }

/* Motion on: pin fills the viewport; the active step is lit, the others dim. */
.ht-outcome { display: flex; flex-direction: column; gap: 14px; }
.ht-anim .ht-pin { height: 100svh; box-sizing: border-box; align-content: start; padding: calc(var(--header-h) + min(6vh, 48px)) 0 12px; }
.ht-anim .ht-screen { padding: 16px; gap: 10px; }
.ht-anim .ht-outcome { display: grid; }
.ht-anim .ht-approve-wrap, .ht-anim .ht-sent { grid-area: 1 / 1; align-self: center; }
.ht-anim .ht-step { opacity: 0.45; transition: opacity 0.3s, border-color 0.3s, background 0.3s; }
.ht-anim .ht-step.is-on { opacity: 1; border-color: var(--purple); background: var(--bg-deep); }
.ht-anim .ht-step.is-on .ht-num { background: var(--purple); border-color: var(--purple); color: #fff; }

@media (max-width: 760px) {
    .ht-pin { grid-template-columns: 1fr; gap: 16px; }
    .ht-anim .ht-step { display: none; }
    .ht-anim .ht-step.is-on { display: flex; }
    .ht-screen { padding: 14px; gap: 10px; }
    .ht-msg p, .ht-draft p { font-size: 0.92rem; }
    .ht-anim .ht-pin { padding-top: calc(var(--header-h) + 8px); gap: 10px; }
    .ht-anim .ht-step { padding: 10px 12px; font-size: 0.92rem; }
}
@media (max-width: 760px) and (max-height: 760px) {
    .ht-anim .ht-label, .ht-anim .ht-note, .ht-anim .ht-bar { display: none; }
    .ht-anim .ht-msg, .ht-anim .ht-draft { padding: 10px 12px; }
    .ht-anim .ht-msg p, .ht-anim .ht-draft p { font-size: 0.88rem; line-height: 1.4; }
    .ht-anim .ht-approve { min-height: 44px; }
}

/* Home page placement (swap_home_hero.py). */
/* Solid backdrop: the hero opts out of the art view (data-art="off"), so the art wave must not show through it. */
.ht-home { position: relative; z-index: 1; max-width: none; background: var(--bg-void); padding: 24px max(16px, calc((100% - 1128px) / 2)) 0; }
/* site.css gives sections `contain: layout style`; containment makes position:fixed relative to the section,
   which breaks the ScrollTrigger pin. */
.ht-home, :root[data-art-ready] main > section.ht-home { contain: none; }
/* The art view makes the surface tokens transparent page-wide; the hero keeps solid dark ones. */
:root[data-art-ready] .ht-home { --bg-void: #050508; --bg-deep: #0a0a0f; --bg-medium: #14141c; --bg-surface: #1a1a24; }
.ht-home .ht-intro { min-height: calc(88svh - var(--header-h)); }
.ht-home .hero-badge { align-self: flex-start; }
.ht-actions { flex-direction: row; flex-wrap: wrap; margin: 8px 0 0; }
.ht-actions .btn { width: auto; }
@media (max-width: 560px) { .ht-actions { flex-direction: column; } .ht-actions .btn { width: 100%; } }
