/* Home hero: copy on the left, the "lead arrives at 11:42 pm" card on the right, with three
   labelled cursors that build the steps (js/home-hero.js). */
.hh {
    --hh-flow: #6366f1;      /* workflow */
    --hh-agent: #00A896;     /* AI agent */
    --hh-people: #e0892f;    /* person */
    position: relative;
    width: 100%;
    /* the site header floats over this page (edi.css fixes it wherever .edi-page is present, and the
       closing CTA uses that class), so the top padding has to clear it: about 88px of header plus air */
    padding: calc(88px + clamp(28px, 5vh, 60px)) 0 clamp(48px, 8vh, 96px);
    background:
        radial-gradient(900px 440px at 88% 0, rgba(0, 168, 150, .13), transparent 70%),
        #f8fafc;
    font-family: 'Inter', system-ui, sans-serif;
    color: #0f172a;
}
.hh, .hh * { box-sizing: border-box; }
.hh-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 72px);
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px);
    align-items: center;
    min-height: min(640px, 70svh);
}
.hh-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── copy ── */
.hh-tag { margin: 0 0 16px; font-size: .95rem; font-weight: 600; color: #00A896; }
.hh-title {
    margin: 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em;
    color: #0f172a; text-wrap: balance;
}
.hh-title em { font-style: normal; color: #0f766e; }
.hh-lede { margin: clamp(16px, 2.6vh, 24px) 0 0; max-width: 34rem; font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.6; color: #475569; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.6vh, 34px); }
.hh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: .95rem 1.5rem; border-radius: 8px; border: 1px solid transparent;
    font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.hh-btn svg { width: 16px; height: 16px; }
.hh-btn--primary { background: #0b1020; color: #fff; box-shadow: 0 8px 24px rgba(11, 16, 32, .18); }
.hh-btn--primary:hover { transform: translateY(-2px); background: #1e293b; box-shadow: 0 12px 30px rgba(11, 16, 32, .25); }
.hh-btn--ghost { background: #fff; color: #0b1020; border-color: rgba(15, 23, 42, .12); }
.hh-btn--ghost:hover { transform: translateY(-2px); border-color: #00A896; color: #0f766e; }
.hh-btn:focus-visible { outline: 3px solid #00A896; outline-offset: 3px; }
.hh-trust { margin: 20px 0 0; max-width: 32rem; font-size: .9rem; line-height: 1.55; color: #64748b; }

/* ── the flow card ── */
.hh-flow {
    position: relative;
    /* a compact card, set lower than the headline so it never tucks under the floating header */
    width: 100%; max-width: 440px; justify-self: end; margin-top: clamp(4px, 1.5vh, 20px);
    background: #fff; border: 1px solid #e2e8f0; border-radius: 22px;
    padding: 20px 20px 22px;
    box-shadow: 0 30px 70px -36px rgba(15, 60, 60, .4), 0 1px 0 rgba(15, 23, 42, .03);
}
.hh-flow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hh-flow-title { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: #475569; }
.hh-flow-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #ccfbf1; color: #0f766e; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hh-flow-live i { width: 7px; height: 7px; border-radius: 50%; background: #00A896; animation: hh-pulse 1.6s infinite; }
@keyframes hh-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 150, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(0, 168, 150, 0); } }

.hh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hh-step {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff;
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .35);
}
.hh-step > div { flex: 1; min-width: 0; }
.hh-step b { display: block; font-size: .9rem; font-weight: 600; color: #0f172a; }
.hh-step span { display: block; font-size: .78rem; color: #64748b; margin-top: 1px; }
.hh-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.hh-step[data-by="flow"] .hh-dot { background: var(--hh-flow); box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.hh-step[data-by="agent"] .hh-dot { background: var(--hh-agent); box-shadow: 0 0 0 4px rgba(0, 168, 150, .16); }
.hh-step[data-by="people"] .hh-dot { background: var(--hh-people); box-shadow: 0 0 0 4px rgba(224, 137, 47, .18); }
.hh-by { flex: none; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #fff; }
.hh-by--flow { background: var(--hh-flow); }
.hh-by--agent { background: var(--hh-agent); }
.hh-by--people { background: var(--hh-people); }

.hh-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .8rem; color: #475569; }
.hh-who span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; }
.hh-who span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.hh-who--people::before { background: var(--hh-people); }
.hh-who--agent::before { background: var(--hh-agent); }
.hh-who--flow::before { background: var(--hh-flow); }

/* ── assembly: cursors carry each piece in from the hero's edges (js/home-hero.js) ── */
.hh-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.hh-flow.is-building [data-piece] { opacity: 0; }
.hh-flow.is-building [data-piece].is-flying { opacity: 1; position: relative; z-index: 6; box-shadow: 0 24px 50px -10px rgba(15, 23, 42, .28); }
.hh-flow.is-building [data-piece].is-placed { opacity: 1; }
.hh-flow.is-clearing [data-piece] { opacity: 0 !important; transition: opacity .45s ease; }
.hh-drop { animation: hh-drop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes hh-drop { 0% { transform: scale(1.06); } 55% { transform: scale(.975); } 100% { transform: scale(1); } }
.hh-typed .ch { opacity: 0; }
.hh-typed .ch.on { opacity: 1; }
.hh-caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -.12em; background: var(--hh-flow); animation: hh-blink .6s steps(1) infinite; }
@keyframes hh-blink { 50% { opacity: 0; } }

.hh-slot { position: absolute; border: 1.5px dashed #c7cdd8; background: rgba(255, 255, 255, .45); transition: opacity .3s; }
.hh-cursor { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .25)); }
.hh-cursor svg { display: block; width: 22px; height: 22px; }
.hh-cursor b { position: absolute; left: 16px; top: 18px; padding: 5px 9px; border-radius: 4px 10px 10px 10px; background: var(--c); color: #fff; font: 600 11.5px/1 'Inter', system-ui, sans-serif; white-space: nowrap; }
.hh-pulse { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--c); animation: hh-pulse-out .5s ease-out forwards; }
@keyframes hh-pulse-out { to { transform: scale(5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .hh-flow-live i { animation: none; }
    .hh-btn { transition: none; }
}

@media (max-width: 960px) {
    .hh { padding-top: 116px; }
    .hh-inner { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
    .hh-flow { max-width: 500px; justify-self: start; margin-top: 0; }
}
@media (max-width: 560px) {
    .hh { padding-top: 104px; }
    .hh-title { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
    .hh-btn { flex: 1 1 auto; padding: .9rem 1.1rem; font-size: .95rem; }
    .hh-flow { padding: 18px 16px 18px; border-radius: 20px; }
    .hh-step { padding: 11px 12px; gap: 10px; }
    .hh-step b { font-size: .92rem; }
    .hh-step span { font-size: .78rem; }
    .hh-by { font-size: .6rem; padding: 3px 7px; }
    .hh-cursor b { font-size: 10.5px; }
}

/* ── Green wash ────────────────────────────────────────────────────────────────────────
   A soft green-white glow behind the hero copy and card, drawn with gradients only (no image).
   It sits under .hh-inner, so text and card stay the sharpest things on screen. */
.hh-inner { position: relative; z-index: 1; }
.hh-nature {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
    /* fade the glow out before the bottom edge, so the hero runs into the logo strip with no line */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    background:
        radial-gradient(52% 60% at 8% 74%, rgba(126, 200, 120, .24), transparent 70%),
        radial-gradient(38% 46% at 30% 82%, rgba(64, 170, 150, .15), transparent 72%),
        radial-gradient(46% 62% at 100% 18%, rgba(170, 222, 150, .21), transparent 72%),
        radial-gradient(60% 50% at 60% 78%, rgba(214, 240, 200, .28), transparent 75%);
}

/* The cursors and pieces start just outside the hero's right edge (js/home-hero.js, edge()), which
   widened the page and showed a horizontal scrollbar while the card was being built. Clip them at
   the hero's sides; top and bottom stay open so nothing else is cut. */
.hh { overflow: hidden; }
@supports (overflow: clip) {
    .hh { overflow: visible; overflow-x: clip; }
}
