/* HBB POS — marketing site.
 *
 * Near-black ground, lapis and gold, hairline rules. The page is built to show the
 * product rather than describe it, so most sections are a screenshot with an argument
 * beside them. One accent colour, used sparingly; no decorative colour anywhere else. */

:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f4f7fd;
  --ink-2: #9aa6bf;
  --ink-3: #626d87;
  --gold: #e8bf62;
  --gold-2: #f6dda0;
  --lapis: #3f61e8;
  --ok: #4ade80;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }

/* ---------- type ---------- */

.display {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.h2 {
  font-size: clamp(29px, 3.8vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 660;
}
.h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 620; }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-2); max-width: 58ch; }
.h2 + .lede, .display + .lede { margin-top: 20px; }
.small { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 620; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.6; }

/* ---------- layout ---------- */

.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-size: 16px; font-weight: 660; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.top nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.top nav > a { font-size: 14.5px; color: var(--ink-2); }
.top nav > a:hover { color: var(--ink); }
/* The nav link colour is more specific than the button variants — restate it. */
.top nav > a.btn { color: var(--ink); }
.top nav > a.btn--gold { color: #1a1302; }
.top__phone { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { border-color: var(--ink-2); background: var(--panel); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1a1302; }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(56px, 7vw, 92px) 0 clamp(60px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -240px -20% auto -20%; height: 760px;
  background:
    radial-gradient(46% 52% at 22% 34%, rgba(63, 97, 232, 0.30), transparent 68%),
    radial-gradient(38% 44% at 78% 12%, rgba(232, 191, 98, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 78%);
  opacity: 0.5;
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero__ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ticks .icon { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- browser frame ---------- */

.frame {
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.frame__bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.frame__url {
  margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  font-style: normal; letter-spacing: 0.01em;
}
.frame img { width: 100%; height: auto; }
.frame--tall img { max-height: 520px; object-fit: cover; object-position: top left; }

.hero__float {
  position: absolute; right: -14px; bottom: -22px; z-index: 2;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 14, 26, 0.94);
  backdrop-filter: blur(8px); padding: 13px 16px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}
.hero__floatWrap { position: relative; }
.hero__float b { display: block; font-size: 21px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero__float span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- logo rail ---------- */

.rail { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rail__label { text-align: center; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.rail__marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.rail__marks span {
  font-size: 15px; font-weight: 620; letter-spacing: -0.01em; color: var(--ink-3);
  transition: color 0.2s ease; white-space: nowrap;
}
.rail__marks span:hover { color: var(--ink); }

/* ---------- numbered story rows ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.story + .story { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.story--flip .story__copy { order: 2; }
.story__n {
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  letter-spacing: 0.14em; margin-bottom: 16px; display: block;
}
.story h3 { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 660; margin-bottom: 16px; }
.story p { color: var(--ink-2); }
.story__list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.story__list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.story__list .icon { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 4px; }
.story__list b { color: var(--ink); font-weight: 600; }

/* ---------- placement list ---------- */

.zone { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.zone__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.zone__row {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line); transition: background 0.4s ease;
}
.zone__row:last-child { border-bottom: 0; }
.zone__row.is-you { background: rgba(232, 191, 98, 0.08); }
.zone__pos { font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.zone__row.is-you .zone__pos { color: var(--gold); }
.zone__name { font-size: 14.5px; }
.zone__row.is-you .zone__name { font-weight: 620; }
.zone__meta { font-size: 12px; color: var(--ink-3); }

/* ---------- comparison ---------- */

.compare { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare__head { display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.compare__head > div { padding: 18px 20px; font-size: 13.5px; font-weight: 620; }
.compare__head > div + div { border-left: 1px solid var(--line); }
.compare__head .is-good { color: var(--gold); }
.compare__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { padding: 15px 20px; font-size: 14.5px; }
.compare__row > div + div { border-left: 1px solid var(--line); }
.compare__row > div:first-child { color: var(--ink-3); }
.compare__row .is-good { color: var(--ink); font-weight: 560; }
.compare__row .is-good b { color: var(--gold); font-weight: 620; }

/* ---------- trades & features ---------- */

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cols3 > * { background: var(--bg); padding: clamp(24px, 3vw, 34px); }
.trade__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.trade h3 { margin: 12px 0 16px; }
.trade ul { display: flex; flex-direction: column; gap: 11px; }
.trade li { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 11px; }
.trade .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; margin-top: 4px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feature { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature .icon { width: 22px; height: 22px; color: var(--gold); }
.feature h4 { font-size: 16px; font-weight: 620; letter-spacing: -0.015em; }
.feature p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- calculator ---------- */

.calc { display: grid; grid-template-columns: 340px 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink);
  font: inherit; font-size: 15px;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 191, 98, 0.15); }
.calc__out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.calc__tile { background: var(--bg); padding: 26px; }
.calc__tile span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.calc__tile b { display: block; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.calc__tile em { font-style: normal; font-size: 13px; color: var(--ink-3); }

/* ---------- stance ---------- */

.stance {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(32px, 4.5vw, 60px);
  background: radial-gradient(80% 140% at 8% 0%, rgba(63, 97, 232, 0.18), transparent 62%), var(--bg-2);
}
.stance blockquote { font-size: clamp(21px, 2.6vw, 32px); line-height: 1.24; letter-spacing: -0.03em; font-weight: 600; max-width: 26ch; }
.stance cite { display: block; font-style: normal; color: var(--ink-3); font-size: 14px; margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 40px; }
.stat { background: var(--bg); padding: 24px; }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; color: var(--gold); }
.stat span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form .wide { grid-column: 1 / -1; }
.form__actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.note { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 34px; }
.foot__in { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 34px; }
.foot h4 { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.foot a:hover { color: var(--gold); }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero__in, .story, .calc { grid-template-columns: 1fr; }
  .story--flip .story__copy { order: 0; }
  .cols3, .features { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__float { right: 12px; bottom: -18px; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .top nav > a:not(.btn) { display: none; }
  .cols3, .features, .calc__out, .form { grid-template-columns: 1fr; }
  .compare__head, .compare__row { grid-template-columns: 1fr; }
  .compare__head > div + div, .compare__row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .frame--tall img { max-height: 320px; }
}
