/* Homepage services, 9 Nov 2026: two feature cards on top (AI consulting, AI operating system / second brain),
   the four build cards underneath. Loads after home-v2.css and only adds hs-* rules, so other pages are untouched. */

/* ---------- layout ---------- */
.hs-feat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.hs-card{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,252,245,.7))}
/* the two cards share rows, so both example screens end at the same line and both footers line up */
@supports (grid-template-rows:subgrid){
  @media (min-width:941px){
    .hs-feat{grid-template-rows:auto auto}
    .hs-card{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0}
  }
}
.hs-card .demo{min-height:578px;padding-top:54px}
.hs-card .svc-body{padding-top:26px}
.hs-card .h3{font-size:clamp(1.375rem,1.05rem + .75vw,1.75rem);line-height:1.18;letter-spacing:-.035em}
.hs-pts{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.hs-pts li{display:flex;align-items:center;gap:10px;font-size:14.5px;line-height:1.45;color:var(--ink)}
.hs-pts .tk{width:18px;height:18px}
.hs-pts .tk .i{width:10px;height:10px}

/* ---------- shared window bits ---------- */
.hs-demo .dm-title>.i{color:var(--gold-deep)}
.hs-demo .dm-title .dm-org{color:var(--ink)}
.hs-st{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;color:var(--gold-ink);white-space:nowrap}
.hs-st-dot{width:7px;height:7px;border-radius:50%;background:var(--gold)}
.hs-st .s-a,.hs-st .s-b{display:none}
.hs-on:not(.fin) .hs-st .s-c{display:none}
.hs-on:not(.fin) .hs-st .s-a{display:inline;color:var(--ink-3)}
.hs-on:not(.fin) .hs-st-dot{background:#d8d1c3}
.hs-on.run .hs-st .s-a{display:none}
.hs-on.run .hs-st .s-b{display:inline}
.hs-on.run .hs-st-dot{background:var(--gold);animation:blink 1s steps(2,start) infinite}
.hs-body{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:14px}
.hs-freeze,.hs-freeze *,.hs-freeze *::before,.hs-freeze *::after{transition:none!important;animation:none!important}

/* hidden states: only while the script runs and the stage is not finished. No script = the finished still. */
.hs-on:not(.fin) [data-at]{transition:opacity .4s var(--ease),transform .45s var(--ease),box-shadow .35s var(--ease),background-color .35s}

/* ---------- A. audit roadmap ---------- */
.hs-panel{position:relative;padding:11px 12px 12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px rgba(29,29,31,.08),0 10px 22px -16px rgba(60,44,12,.4);overflow:hidden}
.hs-ph{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
.hs-ph b{font-size:12.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.hs-ph span{font-size:11px;color:var(--ink-3);white-space:nowrap}
.hs-rows{display:flex;flex-direction:column}
.hs-row{display:grid;grid-template-columns:minmax(0,7.4em) minmax(0,1fr) auto;align-items:center;gap:10px;min-height:33px;font-size:12.5px}
.hs-row+.hs-row{border-top:1px solid var(--line)}
.hs-row b{font-weight:550;white-space:nowrap}
.hs-why{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-rt{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px 0 8px;border-radius:var(--r-pill);font-size:11px;font-weight:600;white-space:nowrap}
.hs-rt::before{content:"";width:6px;height:6px;border-radius:50%;flex:none}
.hs-rt-low{background:#f6f1e6;color:var(--ink);box-shadow:inset 0 0 0 1px rgba(29,29,31,.08)}
.hs-rt-low::before{box-shadow:inset 0 0 0 1.3px #b8913f}
.hs-rt-mid{background:var(--gold-wash);color:var(--gold-ink);box-shadow:inset 0 0 0 1px rgba(200,164,85,.3)}
.hs-rt-mid::before{background:linear-gradient(90deg,#c39d4c 50%,transparent 50%);box-shadow:inset 0 0 0 1.3px #b8913f}
.hs-rt-high{background:var(--gold-tint);color:var(--gold-ink);box-shadow:inset 0 0 0 1px rgba(200,164,85,.45)}
.hs-rt-high::before{background:#c39d4c}
.hs-scan{position:absolute;left:0;right:0;top:0;height:40px;pointer-events:none;opacity:0;background:linear-gradient(180deg,rgba(214,176,92,0),rgba(214,176,92,.16) 70%,rgba(200,164,85,.7) 98%,rgba(200,164,85,0))}
.hs-on.playing .hs-scan.on{animation:hsScan 1.7s cubic-bezier(.45,0,.3,1) forwards}
@keyframes hsScan{0%{opacity:0;transform:translateY(-10px)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(150px)}}
.hs-on:not(.fin) .hs-row[data-at]:not(.on){opacity:.28}
.hs-on:not(.fin) .hs-row[data-at]:not(.on) .hs-why{opacity:0}
.hs-on:not(.fin) .hs-rt[data-at]:not(.on){opacity:0;transform:scale(.7)}
.hs-on:not(.fin) .hs-rt[data-at]{transition:opacity .25s var(--ease),transform .3s var(--spring)}
.hs-plan{background:linear-gradient(180deg,#fdfaf2,#fbf6ea);box-shadow:inset 0 0 0 1px rgba(200,164,85,.3)}
.hs-on:not(.fin) .hs-plan[data-at]:not(.on){opacity:.5}
.hs-ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.hs-ol li{display:flex;align-items:center;gap:10px;min-height:38px;padding:6px 9px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(29,29,31,.07)}
.hs-n{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--gold-fill);color:#fff;font-size:11px;font-weight:700;box-shadow:0 3px 8px -3px rgba(140,109,44,.7)}
.hs-n .i{width:11px;height:11px}
.hs-ot{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.hs-ot b{font-size:12.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-ot span{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-tag{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:var(--r-pill);background:var(--gold-wash);box-shadow:inset 0 0 0 1px rgba(200,164,85,.38);font-size:10.5px;font-weight:600;color:var(--gold-ink);white-space:nowrap}
.hs-leave{background:transparent!important;box-shadow:inset 0 0 0 1px rgba(29,29,31,.1)!important;border:0}
.hs-leave .hs-n{background:#f1ede4;color:var(--ink-3);box-shadow:none}
.hs-leave .hs-ot b{color:var(--ink-2)}
.hs-leave .hs-tag{background:#f3f0e9;color:var(--ink-3);box-shadow:inset 0 0 0 1px rgba(29,29,31,.08)}
.hs-on:not(.fin) .hs-ol li[data-at]:not(.on){opacity:0;transform:translateX(-10px)}
.hs-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;padding:10px 12px;border-radius:12px;background:#2b2926;color:#f5ecd6}
.hs-hl{display:block;font-size:10.5px;font-weight:550;color:#c9bfa8;letter-spacing:.01em;margin-bottom:3px}
.hs-hv{display:flex;align-items:baseline;gap:5px;font-size:12px;color:#e8d6a8}
.hs-hv b{font-size:22px;line-height:1;font-weight:600;letter-spacing:-.03em;color:#fff;font-variant-numeric:tabular-nums;min-width:.7em}
.hs-bar{display:block;height:4px;margin-top:7px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden}
.hs-bar i{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#c39d4c,#e8d6a8);transform-origin:left}
.hs-on:not(.fin) .hs-bar i[data-at]{transition:transform 1.1s cubic-bezier(.33,1,.68,1)}
.hs-on:not(.fin) .hs-bar i[data-at]:not(.on){transform:scaleX(0)}
.hs-tools{text-align:right}
.hs-tl{display:flex;gap:5px;justify-content:flex-end}
.hs-ti{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px 0 6px;border-radius:var(--r-pill);background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(232,214,168,.22);font-size:11px;font-weight:550;color:#f5ecd6;white-space:nowrap}
.hs-ti img{width:14px;height:14px;border-radius:3px;background:#fff;padding:1px}
.hs-on:not(.fin) .hs-ti[data-at]:not(.on){opacity:0;transform:translateY(5px) scale(.9)}
.hs-on:not(.fin) .hs-ti[data-at]{transition:opacity .25s var(--ease),transform .35s var(--spring)}

/* ---------- B. second brain ---------- */
.hs-gold{color:var(--gold-deep)!important}
.hs-bn{justify-content:space-between;padding-top:16px}
.hs-sh{display:none}
.hs-conn{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:12px;background:#fbf9f4;box-shadow:inset 0 0 0 1px rgba(29,29,31,.06)}
.hs-cl{font-size:11px;font-weight:550;color:var(--ink-3);margin-right:2px}
.hs-ci{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:#fff;box-shadow:0 0 0 1px rgba(29,29,31,.08);color:var(--ink-2);line-height:0}
.hs-ci img{width:14px;height:14px}
.hs-ci .i{width:14px;height:14px}
.hs-on:not(.fin) .hs-ci[data-at]:not(.on){opacity:.25;transform:scale(.85)}
.hs-on:not(.fin) .hs-ci[data-at]{transition:opacity .25s var(--ease),transform .35s var(--spring)}
.hs-cn{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:550;color:var(--gold-ink);white-space:nowrap}
.hs-live{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px rgba(200,164,85,.2)}
.hs-q{display:flex;align-items:flex-start;gap:10px}
.hs-q .av{margin-top:3px}
.hs-av{background:linear-gradient(160deg,#e9e4da,#cdc3b1);color:#3d3a33}
.hs-qbox{flex:1;min-width:0;padding:8px 12px 9px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2),0 8px 18px -14px rgba(60,44,12,.35)}
.hs-who{display:block;font-size:11px;font-weight:550;color:var(--ink-3)}
.hs-qt{margin-top:2px;min-height:1.45em;font-size:13.5px;line-height:1.45;font-weight:500;letter-spacing:-.012em;color:var(--ink)}
.hs-on:not(.fin) .hs-qt[data-at]:not(.on){opacity:1}
.hs-lab{margin-bottom:7px;font-size:11px;font-weight:550;letter-spacing:.02em;color:var(--ink-3)}
.hs-srcs{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.hs-chip{position:relative;display:flex;align-items:center;gap:9px;min-width:0;padding:7px 9px;border-radius:11px;background:#fff;box-shadow:0 0 0 1px rgba(200,164,85,.5),0 6px 14px -10px rgba(140,109,44,.5)}
.hs-chip::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 2px rgba(200,164,85,.6);opacity:0;pointer-events:none}
.hs-on.playing .hs-chip.on::after{animation:hsHit .7s var(--ease)}
@keyframes hsHit{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.06,1.22)}}
.hs-ico{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#f7f4ee;color:var(--ink-2);line-height:0}
.hs-ico img,.hs-ico .i{width:16px;height:16px}
.hs-ct{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.hs-ct b{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-ct span{font-size:11px;color:var(--ink-3);white-space:nowrap}
.hs-chip .tk{width:16px;height:16px;box-shadow:none}
.hs-chip .tk .i{width:10px;height:10px}
.hs-on:not(.fin) .hs-chip[data-at]:not(.on){opacity:.4;transform:scale(.98);box-shadow:0 0 0 1px var(--line)}
.hs-on:not(.fin) .hs-chip:not(.on) .tk{transform:scale(0)}
.hs-ans{padding:11px 13px 12px;border-radius:13px;background:linear-gradient(180deg,#fdfaf2,#fbf6ea);box-shadow:inset 0 0 0 1px rgba(200,164,85,.34)}
.hs-on:not(.fin) .hs-ans[data-at]:not(.on){opacity:.4}
.hs-ah{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hs-spark{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--ink);color:#f0d698}
.hs-spark .i{width:12px;height:12px}
.hs-ah b{font-size:12px;font-weight:600;color:var(--gold-ink)}
.hs-at{min-height:4.65em;font-size:13px;line-height:1.55;letter-spacing:-.008em;color:var(--ink)}
.hs-af{display:flex;align-items:center;gap:7px;margin-top:8px;padding-top:9px;border-top:1px solid rgba(140,109,44,.16);font-size:11.5px;font-weight:550;color:var(--gold-ink)}
.hs-af .tk{width:16px;height:16px;box-shadow:none}
.hs-af .tk .i{width:10px;height:10px}
.hs-af>span:last-child{margin-left:auto;font-weight:500;color:var(--ink-3)}
.hs-on:not(.fin) .hs-af[data-at]:not(.on){opacity:0;transform:translateY(5px)}
.hs-demo .typing::after{background:var(--gold)}
.hs-ask{display:flex;align-items:center;gap:9px;height:40px;padding:0 5px 0 12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2)}
.hs-ask>.i{width:14px;height:14px;color:var(--ink-4)}
.hs-ask span{flex:1;min-width:0;font-size:12.5px;color:#b2aa9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-ask b{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--ink);color:#f0d698}
.hs-ask b .i{width:13px;height:13px}
.hs-on:not(.fin) .hs-ask[data-at]:not(.on){opacity:.45}

/* ---------- widths ---------- */
@media (max-width:1180px){
  .hs-why{display:none}
  .hs-row{grid-template-columns:minmax(0,1fr) auto}
}
@media (max-width:1099.98px) and (min-width:941px){
  .hs-tools .hs-ti{padding:0 6px}
  .hs-ti{font-size:0;gap:0}
  .hs-ti img{margin:0}
}
@media (max-width:940px){
  .hs-feat{grid-template-columns:minmax(0,1fr)}
  .hs-card .demo{min-height:0}
  .hs-row{grid-template-columns:minmax(0,9em) minmax(0,1fr) auto}
  .hs-why{display:block}
}
@media (max-width:720px){
  .hs-card .demo{padding-top:48px}
  .hs-body{padding:11px;gap:10px}
  .hs-row{grid-template-columns:minmax(0,1fr) auto}
  .hs-why{display:none}
  .hs-ph span{display:none}
  .hs-ol li{padding:6px 8px;gap:8px}
  .hs-foot{grid-template-columns:1fr;gap:10px}
  .hs-tools{text-align:left}
  .hs-tl{justify-content:flex-start}
  .hs-conn{gap:5px;padding:6px 8px}
  .hs-ci{width:24px;height:24px}
  .hs-cl{display:none}
  .hs-srcs{grid-template-columns:1fr 1fr}
  .hs-chip{padding:6px 7px;gap:7px}
  .hs-chip .hs-ico{width:24px;height:24px}
  .hs-chip .tk{display:none}
  .hs-af>span:last-child{display:none}
}
@media (max-width:520px),(min-width:941px) and (max-width:1180px){
  .hs-lg{display:none}
  .hs-sh{display:inline}
}
@media (max-width:400px){
  .hs-tag{display:none}
  .hs-demo .dm-dots{display:none}
}
