/* ═══ THE HOME-PAGE WORKSPACE DEMO (v=923) ═══════════════════════════════════════════════════════
   Shop's brief: a designer lands on goinklink.com and thinks "that looks like Illustrator, Corel".
   The layout IS the pitch, so the front page opens on a working miniature of the app: menu bar,
   tool rail, document tabs (estimate / invoice / customer), the white page on the pasteboard, the
   Layers + Properties dock, the swatch column and the status bar. Built by homedemo.js into #hd.
   ⚠ EVERY CLASS IS hd- PREFIXED. landing.html already owns .page .canvas .rail .stage .zoom .cur
   and the demo must not fight its cascade (or be swept by deadcss-test, which reads landing only).
   Drawn at a fixed 1180×640 and scaled to the column, so it is one picture at any width. */
#hd { --hd-acc:#00e5cc; --hd-spark:#A8D820; --hd-strip:#1b1d21; --hd-menubar:#26282d; --hd-panel:#1f2125; --hd-content:#33363c;
  --hd-hair:#3a3d44; --hd-hair-d:#131418; --hd-input:#17181c; --hd-bri:#c9ccd2; --hd-sec:#a3a7af; --hd-mut:#8d929b;
  --hd-mono:'Spline Sans Mono',ui-monospace,monospace; --hd-disp:'Barlow Condensed',sans-serif; --hd-ui:'Hanken Grotesk',system-ui,sans-serif;
  position:relative; width:100%; margin-top:26px; }
:where(#hd *) { box-sizing:border-box; margin:0; padding:0; }   /* :where = no specificity, so hd- rules win */
#hd .hd-i { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.hd-ws { position:absolute; left:0; top:0; width:1180px; height:640px; transform-origin:0 0; border-radius:12px; overflow:hidden;
  background:var(--hd-content); border:1px solid #000; box-shadow:0 40px 90px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04);
  display:grid; grid-template-rows:28px 34px 1fr 24px; font:400 12px var(--hd-ui); color:var(--hd-bri); user-select:none; text-align:left; }
.hd-menu { display:flex; align-items:center; gap:18px; padding:0 14px; background:var(--hd-strip); border-bottom:1px solid var(--hd-hair-d); font-size:12.5px; }
.hd-lg { font:700 13px var(--hd-disp); letter-spacing:.08em; color:#f3f5ef; margin-right:6px; }
.hd-lg b { color:var(--hd-spark); }
.hd-menu > * { white-space:nowrap; }
.hd-menu .hd-r { margin-left:auto; color:var(--hd-sec); }
.hd-tool { display:flex; align-items:center; gap:14px; padding:0 12px; background:var(--hd-menubar); border-bottom:1px solid var(--hd-hair-d); color:var(--hd-sec); }
.hd-tool .hd-i { width:16px; height:16px; }
.hd-sep { width:1px; height:16px; background:var(--hd-hair); }
.hd-ctx { font:500 11.5px var(--hd-mono); color:var(--hd-bri); display:flex; gap:16px; }
.hd-ctx i { font-style:normal; color:var(--hd-mut); margin-right:5px; }
.hd-body { display:grid; grid-template-columns:46px 1fr 300px 22px; min-height:0; }
.hd-rail { background:var(--hd-panel); border-right:1px solid var(--hd-hair-d); display:flex; flex-direction:column; align-items:center; padding-top:8px; gap:4px; }
.hd-t { width:34px; height:34px; display:grid; place-items:center; border-radius:7px; color:var(--hd-sec); transition:background .25s,color .25s; }
.hd-t.hd-on { background:rgba(0,229,204,.13); color:var(--hd-acc); }
.hd-t.hd-hi { background:rgba(168,216,32,.18); color:var(--hd-spark); }
.hd-center { display:grid; grid-template-rows:34px 1fr; min-width:0; min-height:0; }
.hd-tabs { display:flex; background:var(--hd-panel); border-bottom:1px solid var(--hd-hair-d); overflow:hidden; }
.hd-tab { display:flex; align-items:center; gap:7px; padding:0 14px; border-right:1px solid var(--hd-hair-d); color:var(--hd-sec); white-space:nowrap; font-size:12px; position:relative; }
.hd-tab[data-tab] { cursor:pointer; }
.hd-tab::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--kc); }
.hd-tab.hd-on { background:var(--hd-content); color:#fff; }
.hd-tab.hd-on::after { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:var(--kc); }
.hd-kd { font:700 9.5px var(--hd-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--kc); }
.hd-x { color:var(--hd-mut); margin-left:4px; }
.hd-k-estimate { --kc:#f0a050; } .hd-k-invoice { --kc:#00e5cc; } .hd-k-customer { --kc:#A8D820; }
.hd-canvas { position:relative; overflow:hidden; background:radial-gradient(circle at 50% 0,rgba(255,255,255,.035),transparent 60%),var(--hd-content); }
.hd-page { position:absolute; left:50%; top:26px; width:540px; height:620px; margin-left:-270px; background:#fff; color:#1c1c1e;
  box-shadow:0 18px 50px rgba(0,0,0,.45); padding:38px 40px; transition:opacity .28s ease,transform .28s ease; font-family:var(--hd-ui); }
.hd-page.hd-swap { opacity:0; transform:translateY(8px); }
.hd-ph { display:flex; justify-content:space-between; align-items:flex-start; }
.hd-shop { display:flex; gap:10px; }
.hd-logo { width:28px; height:28px; border-radius:5px; background:#f6d9b8; display:grid; place-items:center; font:700 13px var(--hd-disp); color:#b5651d; }
.hd-shop h4 { font:700 15px var(--hd-disp); letter-spacing:.03em; color:#1c1c1e; }
.hd-shop p { font:400 8.5px var(--hd-mono); color:#6d6d72; line-height:1.5; }
.hd-kind { text-align:right; }
.hd-kind h3 { font:700 22px var(--hd-disp); color:#e8892b; letter-spacing:.03em; }
.hd-kind p { font:400 9px var(--hd-mono); color:#57575b; line-height:1.6; }
.hd-kind p b { color:#1c1c1e; }
.hd-paid { display:inline-block; font:700 9px var(--hd-mono); letter-spacing:.12em; color:#1f7a50; background:#dff5ea; padding:2px 6px; border-radius:3px; margin:4px 0 2px; }
.hd-rule { height:2px; background:#e8892b; margin:14px 0 12px; }
.hd-to { font:700 8.5px var(--hd-mono); letter-spacing:.14em; color:#e8892b; }
.hd-cust { font:700 15px var(--hd-disp); margin-top:2px; color:#1c1c1e; }
.hd-attn { font-size:9.5px; color:#57575b; }
.hd-re { font-size:10px; margin:12px 0 8px; color:#333; }
.hd-tbl { width:100%; border-collapse:collapse; font-size:10px; color:#1c1c1e; }
.hd-tbl th { font:600 8px var(--hd-mono); letter-spacing:.12em; color:#6d6d72; text-align:left; padding:5px 4px; border-bottom:1.5px solid #1c1c1e; }
.hd-tbl .hd-n { text-align:right; }
.hd-tbl td { padding:9px 4px; border-bottom:1px solid #ececea; vertical-align:top; }
.hd-tbl td small { display:block; font:400 8.5px var(--hd-mono); color:#8b8b90; margin-top:2px; }
.hd-tbl tr[data-line] { cursor:pointer; }
.hd-tot { margin:12px 0 0 auto; width:220px; font-size:10px; color:#1c1c1e; }
.hd-tot div { display:flex; justify-content:space-between; padding:3px 0; }
.hd-tot .hd-g { border-top:1.5px solid #1c1c1e; margin-top:4px; padding-top:6px; font:700 15px var(--hd-disp); }
.hd-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:6px; }
.hd-tiles div { border:1px solid #e6e6e2; border-radius:6px; padding:8px 10px; }
.hd-tiles span { display:block; font:600 8px var(--hd-mono); letter-spacing:.12em; text-transform:uppercase; color:#6d6d72; }
.hd-tiles b { font:700 15px var(--hd-disp); }
/* the selection: a design app's bounding box, in the selected layer's own colour */
.hd-sel { position:absolute; pointer-events:none; border:1.5px solid var(--sc,#3b82f6); opacity:0; transition:top .35s cubic-bezier(.22,1,.36,1),height .35s,opacity .2s; }
.hd-sel.hd-on { opacity:1; }
.hd-sel i { position:absolute; width:7px; height:7px; background:#fff; border:1.5px solid var(--sc,#3b82f6); }
.hd-sel i:nth-child(1){left:-4px;top:-4px} .hd-sel i:nth-child(2){left:50%;margin-left:-4px;top:-4px} .hd-sel i:nth-child(3){right:-4px;top:-4px}
.hd-sel i:nth-child(4){left:-4px;bottom:-4px} .hd-sel i:nth-child(5){left:50%;margin-left:-4px;bottom:-4px} .hd-sel i:nth-child(6){right:-4px;bottom:-4px}
.hd-sel i:nth-child(7){left:-4px;top:50%;margin-top:-4px} .hd-sel i:nth-child(8){right:-4px;top:50%;margin-top:-4px}
.hd-zm { position:absolute; right:18px; bottom:14px; display:flex; align-items:center; gap:10px; background:#202226; border:1px solid var(--hd-hair); border-radius:7px; padding:5px 10px; font:600 11px var(--hd-mono); color:var(--hd-bri); }
.hd-zm span { color:var(--hd-mut); }
.hd-dock { background:var(--hd-panel); border-left:1px solid var(--hd-hair-d); display:flex; flex-direction:column; min-height:0; }
.hd-dtabs { display:flex; gap:16px; padding:0 14px; height:34px; align-items:center; border-bottom:1px solid var(--hd-hair-d); color:var(--hd-sec); }
.hd-dtabs .hd-on { color:#fff; box-shadow:inset 0 -2px 0 var(--hd-acc); padding:9px 0; }
.hd-dh { font:700 11px var(--hd-ui); color:#eceef1; padding:10px 14px 6px; display:flex; justify-content:space-between; border-left:2px solid var(--hd-acc); margin-top:8px; }
.hd-dh span { color:var(--hd-mut); font-weight:500; }
.hd-lyr { display:flex; align-items:center; gap:8px; padding:7px 12px 7px 0; border-bottom:1px solid var(--hd-hair-d); cursor:pointer; color:var(--hd-bri); }
.hd-lyr .hd-bar { width:4px; align-self:stretch; background:var(--lc); }
.hd-lyr .hd-i { width:14px; height:14px; color:var(--hd-mut); }
.hd-nm { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hd-amt { font:500 11px var(--hd-mono); color:var(--hd-sec); }
.hd-lyr.hd-on { background:rgba(0,229,204,.09); color:#fff; }
.hd-lyr.hd-on .hd-amt { color:#fff; }
.hd-props { padding:4px 14px 0; display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.hd-fld { display:flex; flex-direction:column; gap:4px; }
.hd-fld.hd-w { grid-column:span 2; }
.hd-fld label { font:600 9.5px var(--hd-mono); letter-spacing:.12em; color:var(--hd-mut); }
.hd-fld div { background:var(--hd-input); border:1px solid var(--hd-hair); border-radius:5px; padding:6px 8px; font:500 12px var(--hd-mono); color:#fff; transition:background .4s; }
.hd-fld div.hd-flash { background:#103a35; }
.hd-sw { background:var(--hd-panel); border-left:1px solid var(--hd-hair-d); display:flex; flex-direction:column; gap:5px; align-items:center; padding-top:8px; }
.hd-sw i { width:13px; height:13px; border-radius:2px; display:block; }
.hd-status { display:flex; align-items:center; gap:18px; padding:0 12px; background:var(--hd-strip); border-top:1px solid var(--hd-hair-d); font:500 11px var(--hd-mono); color:var(--hd-sec); }
.hd-status .hd-r { margin-left:auto; color:#fff; }
.hd-cur { position:absolute; left:600px; top:300px; width:20px; height:24px; pointer-events:none; z-index:9; filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));
  transition:left .75s cubic-bezier(.45,0,.2,1),top .75s cubic-bezier(.45,0,.2,1),opacity .3s; }
.hd-cur.hd-click { animation:hdClk .25s ease; }
@keyframes hdClk { 50% { transform:scale(.82); } }
/* callouts: the words a designer already knows */
.hd-co { position:absolute; z-index:8; max-width:128px; pointer-events:none; opacity:0; transform:translateY(6px) scale(.96); transition:opacity .3s,transform .35s cubic-bezier(.34,1.56,.64,1); }
.hd-co.hd-on { opacity:1; transform:none; }
.hd-co b, .hd-cap b { display:inline-block; background:var(--hd-spark); color:#101400; font:800 13px var(--hd-ui); letter-spacing:.1em; text-transform:uppercase; padding:6px 11px; border-radius:6px; box-shadow:0 10px 26px rgba(0,0,0,.45); }
.hd-co small { display:block; margin-top:5px; font:600 12px var(--hd-ui); color:#fff; text-shadow:0 1px 3px #000,0 0 12px #000; }
/* ⚠ ON A PHONE the workspace is ~0.3× and a label inside it is unreadable, so the same words move
   to a caption line under the picture, at full size. */
.hd-cap { display:none; align-items:center; gap:10px; min-height:34px; margin-top:12px; font:600 14px var(--hd-ui); color:#eceef1; text-align:left; }
#hd.hd-narrow .hd-co { display:none; }
#hd.hd-narrow .hd-body { grid-template-columns:46px 1fr; }
#hd.hd-narrow .hd-dock, #hd.hd-narrow .hd-sw { display:none; }
#hd.hd-narrow .hd-cap { display:flex; }
.hd-hint { text-align:center; color:var(--hd-sec); font:400 13px var(--hd-ui); margin-top:12px; }
#hd.hd-narrow .hd-hint { display:none; }
@media (prefers-reduced-motion:reduce) { .hd-cur { display:none; } .hd-page, .hd-sel, .hd-co { transition:none; } }
