/* =========================================================
   hlssoftware.com — home page ("Mist & Slate")
   The hs-app-design skill's two themes: Slate (dark) is the site's own
   charcoal, slate and orange; Mist (light) is the same palette with the lights on.
   One accent per theme for every tool: navy in Mist, orange in Slate. The theme follows the system
   (prefers-color-scheme) and changes live with it; the switch in the
   header can pin Light or Dark (js/theme.js). Glass objects are kept to
   the hero and a few section corners; product cards stay clean.
   ========================================================= */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- tokens: Mist (light): the dark theme with the lights on ---------- */
:root {
  color-scheme: light;
  --bg: #eef1f2;
  --bg-2: #f6f8f8;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --rim: linear-gradient(145deg, #fff 0%, rgba(255,255,255,.4) 35%, rgba(28,32,35,.06) 60%, rgba(154,170,178,.4) 100%);
  --line: rgba(28, 32, 35, 0.09);
  --line-2: rgba(28, 32, 35, 0.16);
  --text: #1c2023;
  --text-2: #4a5357;
  --text-3: #626c71;
  /* Mist's accent is navy, #1e4f8f (white text 8.2:1; 7.2:1 as icons and text on the page, so small text can be
     navy too). Slate keeps the site's orange. On the slate cards, which stay dark in Mist, the accent is a light
     navy, #8fb6ea (6.8:1 on slate, dark text on it 8.5:1). */
  --accent: #1e4f8f;
  --accent-hover: #163c6e;
  --accent-text: #1e4f8f;
  --accent-small: #1e4f8f;
  --accent-rgb: 30, 79, 143;
  --focus: #1e4f8f;
  --go-bg: rgba(30, 79, 143, 0.10);
  --on-accent: #ffffff;
  --ink-accent: #8fb6ea;      /* the accent on slate cards */
  --ink-accent-hover: #b9d2f3;
  --ink-small: #8fb6ea;
  /* the decorative objects (spheres, pills, cylinders, the chart cube's bars): highlight to deep */
  --obj-1: #dbe7f8; --obj-2: #8fb6ea; --obj-3: #4a78b8; --obj-4: #102a4d;
  --accent-soft: rgba(30, 79, 143, 0.12);
  --glow-1: rgba(154, 170, 178, 0.35);
  --glow-2: rgba(30, 79, 143, 0.10);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 4px rgba(28,32,35,.05), 0 24px 48px -28px rgba(28,32,35,.32);
  --shadow-lift: 0 2px 4px rgba(28,32,35,.06), 0 40px 70px -34px rgba(28,32,35,.40);
  /* the slate cards: dark in both themes */
  --ink: #262c30;
  --ink-2: #30373c;
  --ink-line: rgba(255, 255, 255, 0.09);
  --ink-shadow: 0 2px 4px rgba(16,19,21,.2), 0 40px 70px -34px rgba(16,19,21,.55);
  /* glass objects: clear glass with a grey-blue depth */
  --glass: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.45) 50%, rgba(214,224,229,.6));
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-shadow: inset 0 2px 0 #fff, inset 0 -14px 26px rgba(109,124,132,.18), 0 30px 50px -22px rgba(28,32,35,.35);
  --steel: linear-gradient(180deg, #d7e0e4, #9aaab2 60%, #6d7c84);
}
/* ---------- tokens: Slate (dark), from the system or pinned ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1c2023;
    --bg-2: #30373c;
    --card: rgba(38, 44, 48, 0.82);
    --card-solid: #262c30;
    --rim: linear-gradient(145deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 35%, rgba(255,255,255,0) 60%, rgba(232,121,59,.45) 100%);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eef1f2;
    --text-2: #a9b3b8;
    --text-3: #97a1a6;
    --accent: #e8793b;
    --accent-hover: #f39a63;
    --accent-text: #f39a63;
    --accent-small: #f39a63;
    --go-bg: var(--accent-soft);
    --ink-small: #f39a63;
  --focus: #e8793b;
    --focus: #e8793b;
    --on-accent: #16191b;
    --accent-rgb: 232, 121, 59;
    --ink-accent: #e8793b;
    --ink-accent-hover: #f39a63;
    --obj-1: #ffd2b4; --obj-2: #f39a63; --obj-3: #e8793b; --obj-4: #8c3a10;
    --accent-soft: rgba(232, 121, 59, 0.16);
    --glow-1: rgba(232, 121, 59, 0.16);
    --glow-2: rgba(154, 170, 178, 0.16);
    --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 4px rgba(0,0,0,.2), 0 30px 60px -30px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.25), 0 44px 80px -34px rgba(0,0,0,.75);
    --ink: #15181b;
    --ink-2: #1f2427;
    --ink-line: rgba(255, 255, 255, 0.07);
    --ink-shadow: 0 2px 4px rgba(0,0,0,.3), 0 44px 80px -34px rgba(0,0,0,.8);
    --glass: linear-gradient(140deg, rgba(255,255,255,.26), rgba(255,255,255,.06) 50%, rgba(232,121,59,.18));
    --glass-edge: rgba(255, 255, 255, 0.22);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -14px 26px rgba(232,121,59,.18), 0 30px 50px -22px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c2023;
  --bg-2: #30373c;
  --card: rgba(38, 44, 48, 0.82);
  --card-solid: #262c30;
  --rim: linear-gradient(145deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 35%, rgba(255,255,255,0) 60%, rgba(232,121,59,.45) 100%);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f2;
  --text-2: #a9b3b8;
  --text-3: #97a1a6;
  --accent: #e8793b;
  --accent-hover: #f39a63;
  --accent-text: #f39a63;
  --accent-small: #f39a63;
  --go-bg: var(--accent-soft);
  --ink-small: #f39a63;
  --focus: #e8793b;
  --on-accent: #16191b;
  --accent-rgb: 232, 121, 59;
  --ink-accent: #e8793b;
  --ink-accent-hover: #f39a63;
  --obj-1: #ffd2b4; --obj-2: #f39a63; --obj-3: #e8793b; --obj-4: #8c3a10;
  --accent-soft: rgba(232, 121, 59, 0.16);
  --glow-1: rgba(232, 121, 59, 0.16);
  --glow-2: rgba(154, 170, 178, 0.16);
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 4px rgba(0,0,0,.2), 0 30px 60px -30px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.25), 0 44px 80px -34px rgba(0,0,0,.75);
  --ink: #15181b;
  --ink-2: #1f2427;
  --ink-line: rgba(255, 255, 255, 0.07);
  --ink-shadow: 0 2px 4px rgba(0,0,0,.3), 0 44px 80px -34px rgba(0,0,0,.8);
  --glass: linear-gradient(140deg, rgba(255,255,255,.26), rgba(255,255,255,.06) 50%, rgba(232,121,59,.18));
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -14px 26px rgba(232,121,59,.18), 0 30px 50px -22px rgba(0,0,0,.6);
}

:root {
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1.125rem;
  --t-lg: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --t-xl: clamp(2.5rem, 1.3rem + 3.8vw, 4.25rem);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --max: 1240px; --gutter: clamp(16px, 3vw, 32px);
  /* fixed brand colours (the same in both themes) */
  --orange: #e8793b; --orange-2: #f39a63; --on-dark: #eef1f2; --on-dark-2: #a9b3b8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(60rem 40rem at 85% -10rem, var(--glow-1), transparent 70%), radial-gradient(50rem 30rem at -10% 20rem, var(--glow-2), transparent 70%), var(--bg);
  transition: background-color .3s, color .3s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.ink :focus-visible { outline-color: var(--ink-accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); background: var(--accent); color: var(--on-accent); padding: var(--s-2) var(--s-4); border-radius: 999px; z-index: 20; }

/* ---------- glass object kit ---------- */
.glass { position: absolute; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px; box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); overflow: hidden; }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 22%, rgba(255,255,255,.55) 32%, transparent 40%); opacity: .7; }
.sphere { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 5%, var(--obj-1) 16%, var(--obj-2) 38%, var(--obj-3) 62%, var(--obj-4) 92%);
  box-shadow: inset -10px -14px 22px rgba(0,0,0,.3), 0 26px 40px -16px rgba(var(--accent-rgb),.55); }
.sphere::after { content: ""; position: absolute; left: 22%; top: 14%; width: 28%; height: 16%; border-radius: 50%; background: rgba(255,255,255,.8); filter: blur(2px); transform: rotate(-30deg); }
.pill { position: absolute; border-radius: 999px; box-shadow: inset 0 6px 8px rgba(255,255,255,.55), inset 0 -8px 12px rgba(0,0,0,.14), 0 18px 30px -14px rgba(28,32,35,.45); }
.pill::after { content: ""; position: absolute; left: 14%; right: 30%; top: 16%; height: 22%; border-radius: 999px; background: rgba(255,255,255,.65); filter: blur(1.5px); }
.pill.steel { background: var(--steel); } .pill.orange { background: linear-gradient(180deg, var(--obj-1), var(--obj-2) 45%, var(--obj-3) 70%, var(--obj-4)); }
.cube { position: absolute; border-radius: 18px; background: linear-gradient(145deg, #3a4247, #1c2023 70%); display: grid; place-items: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(var(--accent-rgb),.55), 0 26px 44px -18px rgba(16,19,21,.65); }
.float { animation: float 7s ease-in-out infinite; }
.float.d2 { animation-duration: 9s; animation-delay: -2s; } .float.d3 { animation-duration: 8s; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); } }

/* ---------- header ---------- */
header { position: sticky; top: 12px; z-index: 10; margin-top: 12px; }
.nav { position: relative; isolation: isolate; display: flex; align-items: center; gap: var(--s-5); min-height: 64px; padding: 0 var(--s-3) 0 var(--s-5); border-radius: 999px;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
/* the frosted glass is a layer behind the bar, not the bar itself: Safari (iOS) can hide or clip a menu that opens
   inside an element with backdrop-filter */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--card);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.mark { display: flex; align-items: center; gap: var(--s-3); font-weight: 700; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.tile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 11.5px/1 var(--font); letter-spacing: .02em; color: var(--orange);
  background: linear-gradient(160deg, rgba(232,121,59,.3), rgba(232,121,59,.08)), #1c2023; border: 1px solid rgba(232,121,59,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.primary-nav { margin: 0 auto; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: var(--s-2) var(--s-4); border-radius: 999px; text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--text-2); }
.nav ul a:hover { background: var(--accent-soft); color: var(--text); }
.nav .right { display: flex; gap: var(--s-2); align-items: center; }

/* theme switch: System / Light / Dark */
.theme { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.theme button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--card-solid); color: var(--accent-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.theme svg { width: 18px; height: 18px; }

.btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5); border-radius: 999px; font: 600 var(--t-sm)/1 var(--font); text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 26px -12px rgba(var(--accent-rgb),.6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: #1c2023; color: #eef1f2; }
.btn-ink:hover { background: #30373c; }
:root[data-theme="dark"] .btn-ink { background: var(--accent); color: #16191b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ink { background: var(--accent); color: #16191b; } }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-solid); }
/* buttons on slate cards: the slate-card accent with dark text */
.ink .btn-primary { background: var(--ink-accent); color: #16191b; }
.ink .btn-primary:hover { background: var(--ink-accent-hover); }
.btn-ghost-ink { color: var(--on-dark); border-color: rgba(255,255,255,.18); }
.btn-ghost-ink:hover { background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-6); align-items: center; padding: var(--s-9) 0 var(--s-8); }
.badge { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); font-weight: 500; color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px var(--s-4) 6px 6px; }
.badge b { background: var(--accent-soft); color: var(--accent-small); border-radius: 999px; padding: 4px var(--s-3); font-size: var(--t-xs); font-weight: 700; }
h1 { font: 600 var(--t-xl)/1.02 var(--font); letter-spacing: -0.045em; margin: var(--s-5) 0 0; }
h1 span { color: var(--accent-text); }
.lede { font-size: var(--t-md); color: var(--text-2); max-width: 44ch; margin: var(--s-5) 0 var(--s-6); }
.actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.scene { position: relative; aspect-ratio: 1 / 0.86; perspective: 1600px; }
.tray { position: absolute; left: 6%; right: 5%; top: 26%; height: 62%; border-radius: 36px; transform: rotateX(58deg) rotateZ(-18deg);
  background: linear-gradient(160deg, #3a4247, #1c2023 40%, #121517 85%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(var(--accent-rgb),.55), inset 0 -24px 44px rgba(0,0,0,.45), 0 80px 110px -40px rgba(16,19,21,.6); }
.tray::after { content: ""; position: absolute; inset: 7%; border-radius: 26px; background: radial-gradient(60% 80% at 40% 40%, rgba(var(--accent-rgb),.22), transparent 70%), linear-gradient(160deg, #262c30, #15181b);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.35), inset 0 0 50px rgba(var(--accent-rgb),.18); }
.screen { left: 14%; right: 10%; top: 6%; padding: 10px; border-radius: 22px; transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg); }
.screen img { position: relative; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(16,19,21,.55); }
.screen::after { content: ""; position: absolute; inset: 10px; border-radius: 14px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 30%, transparent 31%); }
.o1 { width: 18%; aspect-ratio: 1; left: 0; top: 4%; --rot: -8deg; transform: rotate(-8deg); color: var(--accent-text); }
.o1 svg { position: relative; width: 50%; height: 50%; margin: 25%; }
.o2 { width: 11%; aspect-ratio: 1; right: 3%; top: 2%; }
.o3 { width: 20%; height: 8%; left: 2%; bottom: 22%; --rot: -24deg; transform: rotate(-24deg); }
.o4 { width: 14%; height: 6%; right: 6%; bottom: 14%; --rot: 18deg; transform: rotate(18deg); }
.o5 { width: 15%; aspect-ratio: 1; right: 0; top: 34%; --rot: 10deg; transform: rotate(10deg); }
.o5 i { display: flex; gap: 5px; align-items: flex-end; height: 45%; }
.o5 i b { width: 9px; border-radius: 3px; background: linear-gradient(180deg, var(--obj-2), var(--obj-3)); }
.o6 { width: 7%; aspect-ratio: 1; left: 18%; bottom: 6%; }
.chip { left: 4%; top: 46%; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: var(--t-xs); color: var(--text-2); }
.chip::before { display: none; }
.chip.glass { background: var(--card-solid); }
.chip strong { position: relative; display: block; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.shadow-blob { position: absolute; left: 20%; right: 10%; bottom: 4%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,32,35,.28), transparent); filter: blur(6px); }

/* ---------- console strip (an object sits on its edge) + stats ---------- */
.console { position: relative; background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--on-dark); border: 1px solid var(--ink-line); border-radius: var(--r-xl); padding: var(--s-5) var(--s-6);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6); align-items: center; box-shadow: var(--ink-shadow); }
.console::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(40rem 12rem at 70% 130%, rgba(var(--accent-rgb),.22), transparent 70%); }
.console > * { position: relative; }
.console .ring { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--ink-accent) 0 72%, rgba(255,255,255,.1) 0); display: grid; place-items: center; }
.console .ring::after { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2); }
.console h2 { font: 600 var(--t-md)/1.3 var(--font); margin: 0; }
.console p { margin: 2px 0 0; color: var(--on-dark-2); font-size: var(--t-sm); }
.console .tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.console .tags span { font-size: var(--t-xs); font-weight: 600; padding: 6px var(--s-3); border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-4); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat small { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: var(--s-2); }
.stat .t { font-size: var(--t-xs); font-weight: 600; color: var(--accent-small); background: var(--accent-soft); border-radius: 999px; padding: 6px var(--s-3); white-space: nowrap; }

/* ---------- sections ---------- */
section.block { position: relative; padding: var(--s-10) 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.kicker { font-size: var(--t-xs); font-weight: 700; color: var(--accent-small); text-transform: uppercase; letter-spacing: .1em; }
h2.title { font: 600 var(--t-lg)/1.05 var(--font); letter-spacing: -0.04em; margin: var(--s-3) 0 0; max-width: 18ch; }
.head p { margin: 0; color: var(--text-2); max-width: 42ch; }

/* bento */
.bento { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.card { position: relative; border-radius: var(--r-xl); padding: var(--s-6); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); }
.light { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.light:hover { box-shadow: var(--shadow-lift); }
.ink { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--on-dark); border: 1px solid var(--ink-line); box-shadow: var(--ink-shadow); }
.ink::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.28), transparent 65%); pointer-events: none; }
.card .meta { position: relative; display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.ink .meta { color: var(--on-dark-2); }
.code { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; color: var(--orange);
  background: linear-gradient(160deg, rgba(232,121,59,.3), rgba(232,121,59,.08)), #1c2023; border: 1px solid rgba(232,121,59,.45); }
.card h3 { position: relative; font: 600 1.625rem/1.15 var(--font); letter-spacing: -0.03em; margin: var(--s-4) 0 var(--s-2); }
.card p { position: relative; margin: 0; color: var(--text-2); font-size: var(--t-sm); max-width: 38ch; }
.ink p { color: var(--on-dark-2); }
.card .go { position: absolute; top: var(--s-5); right: var(--s-5); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--go-bg); color: var(--accent-text); transition: background .2s, color .2s; }
.ink .go { background: var(--ink-accent); color: #16191b; }
.card:hover .go { background: var(--accent); color: var(--on-accent); }
.ink.card:hover .go { background: var(--ink-accent-hover); color: #16191b; }
.card .shot { position: relative; margin-top: auto; padding-top: var(--s-5); }
.card .shot img { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -26px rgba(16,19,21,.6); }
.card .shot::after { content: ""; position: absolute; inset: var(--s-5) 0 0 0; border-radius: 14px; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 28%, transparent 29%); }
.bleed .shot { margin-right: calc(-1 * var(--s-6)); margin-bottom: calc(-1 * var(--s-6)); }
.bleed .shot img, .bleed .shot::after { border-radius: 14px 0 0 0; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-12 { grid-column: span 12; }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.list a:hover { border-color: var(--focus); }
.list b { font-weight: 600; font-size: var(--t-sm); }
.list .d { font-size: var(--t-xs); color: var(--text-3); margin-left: auto; text-align: right; }

/* objects that cross card and section edges */
.cross { z-index: 3; pointer-events: none; }
.x4 { width: 110px; height: 40px; right: 4%; top: -18px; --rot: 8deg; transform: rotate(8deg); }

/* workflow */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.steps li { border-radius: var(--r-lg); padding: var(--s-5); }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 700; font-size: var(--t-sm); background: var(--accent-soft); color: var(--accent-small); }
.steps li:last-child .n { background: var(--accent); color: var(--on-accent); }
.steps h3 { font: 600 1.25rem/1.2 var(--font); margin: var(--s-4) 0 var(--s-2); letter-spacing: -0.02em; }
.steps p { margin: 0 0 var(--s-4); color: var(--text-2); font-size: var(--t-sm); }
.steps .tools { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.steps .tools span { font-size: .6875rem; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }

/* pricing + CTA */
.pricing { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-4); }
.cta { position: relative; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; }
.cta > .copy, .cta > .actions { position: relative; z-index: 2; max-width: 54%; }
.cta h2 { font: 600 clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem)/1.05 var(--font); letter-spacing: -0.04em; margin: var(--s-3) 0 0; max-width: 12ch; }
.cta p { margin: var(--s-4) 0 var(--s-6); max-width: 34ch; color: var(--on-dark-2); }
.cta .kicker { color: var(--ink-small); }
/* glass cylinders standing in the card and rising out of its top edge */
.cyls { position: absolute; right: 6%; bottom: 0; width: 38%; height: calc(100% + 36px); display: flex; gap: 10%; align-items: flex-end; pointer-events: none; z-index: 1; }
.cyl { position: relative; flex: 1; border-radius: 0 0 40% 40% / 0 0 14px 14px; border: 1px solid rgba(255,255,255,.4); border-top: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.26), rgba(255,255,255,.06) 30%, rgba(255,255,255,.03) 60%, rgba(255,255,255,.22));
  box-shadow: inset 0 -40px 40px -24px rgba(var(--accent-rgb),.45), 0 30px 40px -20px rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cyl::before { content: ""; position: absolute; left: -1px; right: -1px; top: -14px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.35), rgba(255,255,255,.08) 70%); }
.cyl i { position: absolute; left: 10%; right: 10%; bottom: 6px; border-radius: 0 0 40% 40% / 0 0 10px 10px; background: linear-gradient(180deg, var(--obj-2), var(--obj-3) 50%, var(--obj-4)); }
.cyl i::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, var(--obj-1), var(--obj-2) 70%); }
.cyl.steel i { background: linear-gradient(180deg, #c4d0d5, #9aaab2 50%, #6d7c84); } .cyl.steel i::before { background: radial-gradient(ellipse, #eef3f5, #b4c2c8 70%); }
.cyl b { position: absolute; left: 16%; top: 6%; bottom: 10%; width: 10%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); }
.price { min-height: 0; overflow: visible; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.tier { border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); text-align: center; background: var(--bg-2); border: 1px solid var(--line); }
.tier small { font-size: var(--t-xs); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.tier strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tier span { font-size: var(--t-sm); color: var(--text-2); }
.tier.hi { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent) 70%); color: var(--on-accent); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 30px 50px -24px rgba(var(--accent-rgb),.7); position: relative; overflow: hidden; }
.tier.hi small, .tier.hi span { color: var(--on-accent); opacity: .85; }
.tier.hi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 42%, transparent 52%); }
.price .x5 { width: 78px; height: 78px; right: -28px; top: -30px; --rot: -10deg; transform: rotate(-10deg); }


/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav ul { display: none; }
  .nav .right { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: var(--s-8); }
  .scene { max-width: 640px; width: 100%; margin: 0 auto; }
  .console { grid-template-columns: auto 1fr; } .console .tags { grid-column: 1 / -1; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .span-7, .span-5 { grid-column: span 12; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { padding-left: var(--s-4); gap: var(--s-3); }
  .nav .btn-ghost { display: none; }
  .stats, .steps, .tiers { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: var(--s-5); }
  .bleed .shot { margin-right: calc(-1 * var(--s-5)); margin-bottom: calc(-1 * var(--s-5)); }
  .price .x5 { width: 56px; height: 56px; right: -8px; top: -24px; }
  .cta > .copy, .cta > .actions { max-width: none; }
  .cyls { width: 42%; height: 40%; opacity: .35; }
  .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } * { transition: none !important; } }

/* ---------- mobile menu ---------- */
.nav-toggle { display: none; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; }
@media (max-width: 1000px) {
  .nav { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .primary-nav ul { display: none; }
  .primary-nav.open ul { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: var(--s-3);
    background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
  .primary-nav.open ul a { padding: var(--s-3) var(--s-4); font-size: 1rem; }
}
@media (max-width: 600px) { .right .theme { display: none; } .right .btn-ink { display: none; } }

/* ---------- footer ---------- */
.site-foot { margin-top: var(--s-10); padding: var(--s-8) 0 var(--s-6); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
.foot-brand p { max-width: 34ch; margin: var(--s-3) 0 0; }
.site-foot h2 { font: 700 var(--t-xs)/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 0 0 var(--s-4); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent-small); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.foot-base a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* product icons: the tool's glyph on its own in the theme's accent (img/icons/<slug>-glyph-sm.svg as a mask) */
.tool-fit-reader { --icon: url("../img/icons/fit-reader-glyph.svg"); --icon-sm: url("../img/icons/fit-reader-glyph-sm.svg"); }
.tool-frame-guard { --icon: url("../img/icons/frame-guard-glyph.svg"); --icon-sm: url("../img/icons/frame-guard-glyph-sm.svg"); }
.tool-scout { --icon: url("../img/icons/scout-glyph.svg"); --icon-sm: url("../img/icons/scout-glyph-sm.svg"); }
.tool-forgery-lens { --icon: url("../img/icons/forgery-lens-glyph.svg"); --icon-sm: url("../img/icons/forgery-lens-glyph-sm.svg"); }
.tool-quick-capture { --icon: url("../img/icons/quick-capture-glyph.svg"); --icon-sm: url("../img/icons/quick-capture-glyph-sm.svg"); }
.tool-simgo { --icon: url("../img/icons/simgo-glyph.svg"); --icon-sm: url("../img/icons/simgo-glyph-sm.svg"); }
.tool-deep-table { --icon: url("../img/icons/deep-table-glyph.svg"); --icon-sm: url("../img/icons/deep-table-glyph-sm.svg"); }
.tool-ground-truth { --icon: url("../img/icons/ground-truth-glyph.svg"); --icon-sm: url("../img/icons/ground-truth-glyph-sm.svg"); }
.tool-case-file { --icon: url("../img/icons/case-file-glyph.svg"); --icon-sm: url("../img/icons/case-file-glyph-sm.svg"); }
.code[class*="tool-"] { color: transparent; border: 0; box-shadow: none; border-radius: 0; background: var(--focus); -webkit-mask: var(--icon-sm) center / 92% 92% no-repeat; mask: var(--icon-sm) center / 92% 92% no-repeat; }
/* on the slate cards: the slate-card accent (light navy in Mist, orange in Slate) */
.ink .code[class*="tool-"] { background: var(--ink-accent); }

/* links that only the phone menu needs: Account and Early access are in the bar on wider screens */
.primary-nav .m-only { display: none; }
@media (max-width: 600px) {
  .primary-nav.open .m-only { display: block; }
  .primary-nav.open .m-only .btn { display: flex; justify-content: center; margin-top: var(--s-2); padding: 0 var(--s-5); font-size: 1rem; }
  .mark { font-size: .95rem; }
}
.primary-nav .m-only .btn-primary, .primary-nav .m-only .btn-primary:hover { color: var(--on-accent); }

/* the HLS Software mark: a braille-like grid of dots (hs-app-design, design-system.md section 7). Inline SVG in the
   text colour, so it follows the theme; the orange dots are the brand orange in both themes. */
.logo { width: 2rem; height: 2rem; flex: none; display: block; color: var(--text); }
