/*
 * Hex Tracker: components
 * Every value comes from tokens.css. Load tokens.css first.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ht-void);
  color: var(--ht-text);
  font-family: var(--ht-sans);
  font-size: var(--ht-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ht-cyan); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ht-text); }
:focus-visible { outline: 2px solid var(--ht-cyan); outline-offset: 2px; }
::selection { background: var(--ht-cyan); color: var(--ht-cyan-ink); }

.ht-container { width: 100%; max-width: var(--ht-container); margin: 0 auto; padding: 0 var(--ht-gutter); }
.ht-measure { max-width: var(--ht-measure); }

/* ---------- Nav ---------- */
.ht-nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--ht-nav-h);
  background: rgba(10, 11, 13, 0.92);
  border-bottom: var(--ht-border);
  backdrop-filter: blur(8px);
}
.ht-nav__inner { height: 100%; display: flex; align-items: center; gap: var(--ht-space-6); }
.ht-logo {
  display: inline-flex; align-items: center; gap: var(--ht-space-2);
  color: var(--ht-text); text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: var(--ht-track-wide); text-transform: uppercase;
  white-space: nowrap;
}
.ht-logo__mark { width: 26px; height: 14px; color: var(--ht-text); }
.ht-logo:hover { color: var(--ht-text); }
.ht-nav__links { display: flex; gap: var(--ht-space-5); }
.ht-nav__links a, .ht-nav__right a {
  color: var(--ht-text); text-decoration: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: var(--ht-track-caps); text-transform: uppercase;
  white-space: nowrap;
}
.ht-nav__links a:hover, .ht-nav__links a[aria-current] { color: var(--ht-cyan); }
.ht-nav__right { margin-left: auto; display: flex; align-items: center; gap: var(--ht-space-4); }
.ht-nav__bag { width: 20px; height: 20px; color: var(--ht-text); }
@media (max-width: 720px) {
  .ht-nav__links { display: none; }
  .ht-nav__inner { gap: var(--ht-space-4); }
}

/* ---------- Bands ---------- */
.ht-band { padding: var(--ht-space-9) 0; background: var(--ht-void); position: relative; }
.ht-band--deck { background: var(--ht-deck); }
.ht-band--tight { padding: var(--ht-space-8) 0; }
.ht-band--line { border-top: var(--ht-border); }
@media (max-width: 720px) { .ht-band { padding: var(--ht-space-8) 0; } .ht-band--tight { padding: var(--ht-space-7) 0; } }

/* ---------- Type ---------- */
.ht-hero-title {
  font-size: var(--ht-text-hero); font-weight: 500; line-height: 1.12; letter-spacing: 0.005em;
  margin: 0; color: var(--ht-text);
}
.ht-h2 { font-size: var(--ht-text-h2); font-weight: 500; line-height: 1.18; margin: 0 0 var(--ht-space-4); }
.ht-h3 { font-size: var(--ht-text-h3); font-weight: 600; line-height: 1.35; margin: 0 0 var(--ht-space-2); }
.ht-lead { font-size: var(--ht-text-lead); color: var(--ht-soft); line-height: 1.7; margin: 0 0 var(--ht-space-5); }
.ht-small { font-size: var(--ht-text-small); color: var(--ht-dim); }
.ht-label {
  display: inline-block;
  font-size: var(--ht-text-label); font-weight: 600; letter-spacing: var(--ht-track-label); text-transform: uppercase;
  color: var(--ht-cyan); margin: 0 0 var(--ht-space-3);
}
.ht-label--dim { color: var(--ht-dim); }
.ht-section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--ht-space-5); flex-wrap: wrap; margin-bottom: var(--ht-space-6); }
.ht-section-head .ht-h2 { margin: 0; }

/* ---------- Buttons ---------- */
.ht-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ht-space-2);
  min-height: 42px; padding: 0 var(--ht-space-5);
  border: 1px solid var(--ht-cyan); border-radius: var(--ht-radius);
  background: var(--ht-cyan); color: var(--ht-cyan-ink);
  font: 500 13px/1 var(--ht-sans); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ht-btn:hover { background: var(--ht-text); border-color: var(--ht-text); color: var(--ht-cyan-ink); }
.ht-btn--ghost { background: transparent; color: var(--ht-text); border-color: var(--ht-line-strong); }
.ht-btn--ghost:hover { background: transparent; border-color: var(--ht-cyan); color: var(--ht-cyan); }
.ht-btn--sm { min-height: 34px; padding: 0 var(--ht-space-4); font-size: 12px; }
.ht-btn--block { width: 100%; }
.ht-btn-row { display: flex; flex-wrap: wrap; gap: var(--ht-space-3); }
.ht-btn-row--center { justify-content: center; }

/* ---------- Hero ---------- */
.ht-hero {
  position: relative; overflow: clip;
  background: var(--ht-grain), var(--ht-vignette), var(--ht-void);
  padding: var(--ht-space-8) 0 var(--ht-space-9);
  text-align: center;
  border-bottom: var(--ht-border);
}
.ht-hero__stage { position: relative; max-width: 760px; margin: 0 auto var(--ht-space-7); perspective: 1400px; }
.ht-hero__stage .ht-screen { transform: rotateX(14deg) rotateZ(-5deg); }
.ht-hero .ht-lead { max-width: 560px; margin: var(--ht-space-4) auto var(--ht-space-6); }
@media (max-width: 720px) { .ht-hero__stage .ht-screen { transform: rotateX(10deg) rotateZ(-3deg); } }

/* ---------- Tracker screen (signature) ---------- */
.ht-screen {
  background: var(--ht-screen);
  border: 10px solid #1b1d22;
  outline: 1px solid var(--ht-line-strong);
  box-shadow: var(--ht-glow);
  padding: var(--ht-space-4);
  font-family: var(--ht-pixel);
  font-size: var(--ht-text-screen);
  line-height: 1.55;
  color: var(--ht-text);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.ht-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.ht-screen--flat { border-width: 1px; border-color: var(--ht-line); outline: 0; box-shadow: none; }
.ht-screen__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ht-space-3);
  color: var(--ht-cyan); margin-bottom: var(--ht-space-3);
}
.ht-screen__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--ht-space-4); }
.ht-screen__cols { display: grid; grid-template-columns: 2.2em repeat(4, 1fr); gap: 0 var(--ht-space-2); color: var(--ht-violet); }
.ht-screen__rows { display: grid; gap: 0; }
.ht-screen__row { display: grid; grid-template-columns: 2.2em repeat(4, 1fr); gap: 0 var(--ht-space-2); white-space: nowrap; }
.ht-screen__row b { font-weight: 400; color: var(--ht-dim); }
.ht-screen__row em { font-style: normal; color: var(--ht-cyan); }
.ht-screen__row--cursor { background: var(--ht-cyan); color: var(--ht-cyan-ink); }
.ht-screen__row--cursor b, .ht-screen__row--cursor em { color: var(--ht-cyan-ink); }
.ht-screen__foot { display: flex; justify-content: space-between; gap: var(--ht-space-3); margin-top: var(--ht-space-3); color: var(--ht-dim); flex-wrap: wrap; }
@media (max-width: 560px) {
  .ht-screen { font-size: 10.5px; padding: var(--ht-space-3); border-width: 6px; }
  .ht-screen__body { grid-template-columns: 1fr; }
}

/* Dot meter columns: set --h on each <i> (0% to 100%) */
.ht-meters { display: flex; align-items: flex-end; gap: 5px; height: 100%; min-height: 150px; }
.ht-meters i {
  flex: 1; height: 100%; position: relative;
  background: repeating-linear-gradient(to top, var(--ht-violet-dim) 0 4px, transparent 4px 7px);
}
.ht-meters i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 50%);
  background: repeating-linear-gradient(to top, var(--ht-violet) 0 4px, transparent 4px 7px);
}
.ht-meters--short { min-height: 90px; }

/* Level meter: lime into amber */
.ht-level { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.ht-level i { width: 4px; height: 100%; background: var(--ht-lime); }
.ht-level i:nth-child(n+6) { background: var(--ht-amber); }
.ht-level i.is-off { background: var(--ht-violet-dim); }

/* ---------- Blueprint diagram (signature) ---------- */
.ht-diagram { color: var(--ht-line-strong); width: 100%; max-width: 520px; margin: 0 auto; }
.ht-diagram text {
  fill: var(--ht-soft); font-family: var(--ht-sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ht-diagram .ht-ink { stroke: var(--ht-line-strong); fill: none; stroke-width: 1.2; }
.ht-diagram .ht-ink-hi { stroke: var(--ht-cyan); fill: none; stroke-width: 1.2; }
.ht-diagram .ht-lead-line { stroke: var(--ht-dim); fill: none; stroke-width: 1; }
.ht-diagram .ht-dot { fill: var(--ht-dim); }
.ht-diagram .ht-hatch { fill: url(#ht-hatch); }

/* ---------- Split layouts ---------- */
.ht-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ht-space-8); align-items: center; }
.ht-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ht-split--top { align-items: start; }
@media (max-width: 900px) { .ht-split, .ht-split--even { grid-template-columns: 1fr; gap: var(--ht-space-7); } }

/* ---------- Spec panels ---------- */
.ht-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ht-space-2); }
.ht-spec { background: var(--ht-void); border: var(--ht-border); padding: var(--ht-space-5); }
.ht-band:not(.ht-band--deck) .ht-spec { background: var(--ht-deck); }
.ht-spec .ht-label { margin-bottom: var(--ht-space-3); }
.ht-dashlist { list-style: none; margin: 0; padding: 0; color: var(--ht-soft); font-size: var(--ht-text-small); line-height: 1.75; }
.ht-dashlist li { padding-left: 14px; position: relative; }
.ht-dashlist li::before { content: "-"; position: absolute; left: 0; color: var(--ht-dim); }
@media (max-width: 900px) { .ht-specs { grid-template-columns: 1fr; } }

/* ---------- Feature cells ---------- */
.ht-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--ht-border); border-left: var(--ht-border); }
.ht-cell { padding: var(--ht-space-5); border-right: var(--ht-border); border-bottom: var(--ht-border); }
.ht-cell__num { font-family: var(--ht-pixel); color: var(--ht-violet); font-size: 13px; display: block; margin-bottom: var(--ht-space-3); }
.ht-cell p { margin: 0; color: var(--ht-soft); font-size: var(--ht-text-small); }
@media (max-width: 900px) { .ht-cells { grid-template-columns: 1fr; } }

/* ---------- Badge and status ---------- */
.ht-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ht-line-strong); padding: 3px 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--ht-track-label); text-transform: uppercase; color: var(--ht-soft);
  white-space: nowrap;
}
.ht-badge--cyan { border-color: var(--ht-cyan); color: var(--ht-cyan); }
.ht-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ht-text-small); color: var(--ht-soft); }
.ht-status::before { content: ""; width: 7px; height: 7px; background: var(--ht-lime); box-shadow: 0 0 8px var(--ht-lime); }
.ht-status--warn::before { background: var(--ht-amber); box-shadow: 0 0 8px var(--ht-amber); }

/* ---------- Strip (scrolling readout) ---------- */
.ht-strip { overflow-x: clip; border-top: var(--ht-border); border-bottom: var(--ht-border); background: var(--ht-screen); }
.ht-strip__track {
  display: flex; gap: var(--ht-space-7); width: max-content; padding: var(--ht-space-3) 0;
  font-family: var(--ht-pixel); font-size: 12px; color: var(--ht-soft); white-space: nowrap;
  animation: ht-scroll 40s linear infinite;
}
.ht-strip__track em { font-style: normal; color: var(--ht-cyan); }
@keyframes ht-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ht-strip__track { animation: none; } }

/* ---------- Quote ---------- */
.ht-quote { margin: 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; line-height: 1.5; color: var(--ht-text); }
.ht-quote__by { display: block; margin-top: var(--ht-space-4); font-size: var(--ht-text-small); font-weight: 500; color: var(--ht-dim); letter-spacing: 0.04em; }

/* ---------- Pricing ---------- */
.ht-toggle { display: inline-flex; border: var(--ht-border-strong); }
.ht-toggle button {
  background: transparent; border: 0; color: var(--ht-soft); padding: 8px 16px; cursor: pointer;
  font: 600 11px/1 var(--ht-sans); letter-spacing: var(--ht-track-label); text-transform: uppercase; white-space: nowrap;
}
.ht-toggle button[aria-pressed="true"] { background: var(--ht-cyan); color: var(--ht-cyan-ink); }
.ht-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ht-space-2); align-items: stretch; }
.ht-plan { background: var(--ht-deck); border: var(--ht-border); padding: var(--ht-space-6) var(--ht-space-5); display: flex; flex-direction: column; gap: var(--ht-space-4); }
.ht-plan--featured { border-color: var(--ht-cyan); box-shadow: inset 0 3px 0 var(--ht-cyan); }
.ht-plan__name { font-size: 18px; font-weight: 600; margin: 0; }
.ht-plan__desc { color: var(--ht-soft); font-size: var(--ht-text-small); margin: 0; min-height: 3.4em; }
.ht-plan__price { font-family: var(--ht-pixel); font-size: 34px; line-height: 1; color: var(--ht-text); margin: 0; }
.ht-plan__price small { font-family: var(--ht-sans); font-size: 12px; color: var(--ht-dim); margin-left: 4px; }
.ht-plan .ht-dashlist { flex: 1; }
@media (max-width: 900px) { .ht-plans { grid-template-columns: 1fr; } }

.ht-table-wrap { overflow-x: auto; border: var(--ht-border); }
.ht-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--ht-text-small); }
.ht-table th, .ht-table td { text-align: left; padding: 12px 16px; border-bottom: var(--ht-border); }
.ht-table thead th { background: var(--ht-screen); font-family: var(--ht-pixel); font-weight: 400; color: var(--ht-violet); font-size: 12px; }
.ht-table tbody th { font-weight: 500; color: var(--ht-text); }
.ht-table td { color: var(--ht-soft); }
.ht-table tr:last-child th, .ht-table tr:last-child td { border-bottom: 0; }
.ht-yes { color: var(--ht-cyan); font-family: var(--ht-pixel); }
.ht-no { color: var(--ht-dim); font-family: var(--ht-pixel); }

/* ---------- FAQ ---------- */
.ht-faq { border-top: var(--ht-border); }
.ht-faq details { border-bottom: var(--ht-border); }
.ht-faq summary {
  list-style: none; cursor: pointer; padding: var(--ht-space-4) 0; display: flex; justify-content: space-between; gap: var(--ht-space-4);
  font-weight: 600; font-size: 15px;
}
.ht-faq summary::-webkit-details-marker { display: none; }
.ht-faq summary::after { content: "+"; font-family: var(--ht-pixel); color: var(--ht-cyan); }
.ht-faq details[open] summary::after { content: "-"; }
.ht-faq p { margin: 0 0 var(--ht-space-4); color: var(--ht-soft); max-width: var(--ht-measure); }

/* ---------- Article ---------- */
.ht-article-head { padding: var(--ht-space-8) 0 var(--ht-space-6); border-bottom: var(--ht-border); background: var(--ht-grain), var(--ht-void); }
.ht-article-head .ht-hero-title { max-width: 820px; }
.ht-meta { display: flex; flex-wrap: wrap; gap: var(--ht-space-2) var(--ht-space-5); margin-top: var(--ht-space-5); font-size: var(--ht-text-small); color: var(--ht-dim); }
.ht-article { display: grid; grid-template-columns: 200px minmax(0, var(--ht-measure)); gap: var(--ht-space-8); justify-content: center; }
.ht-toc { position: sticky; top: calc(var(--ht-nav-h) + 24px); align-self: start; font-size: var(--ht-text-small); }
.ht-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ht-space-2); }
.ht-toc a { color: var(--ht-soft); text-decoration: none; }
.ht-toc a:hover { color: var(--ht-cyan); }
@media (max-width: 900px) { .ht-article { grid-template-columns: 1fr; gap: var(--ht-space-6); } .ht-toc { position: static; } }
.ht-prose { font-size: 15.5px; line-height: 1.8; color: var(--ht-soft); }
.ht-prose > :first-child { margin-top: 0; }
.ht-prose h2 { color: var(--ht-text); font-size: 22px; font-weight: 600; line-height: 1.3; margin: var(--ht-space-7) 0 var(--ht-space-3); }
.ht-prose p { margin: 0 0 var(--ht-space-4); }
.ht-prose strong { color: var(--ht-text); font-weight: 600; }
.ht-prose ul { list-style: none; padding: 0; margin: 0 0 var(--ht-space-5); }
.ht-prose li { padding-left: 18px; position: relative; margin-bottom: var(--ht-space-2); }
.ht-prose li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--ht-cyan); }
.ht-prose blockquote { margin: var(--ht-space-6) 0; padding: var(--ht-space-2) 0 var(--ht-space-2) var(--ht-space-5); border-left: 2px solid var(--ht-violet); color: var(--ht-text); font-size: 19px; font-weight: 500; line-height: 1.55; }
.ht-prose code { font-family: var(--ht-pixel); font-size: 0.82em; color: var(--ht-cyan); background: var(--ht-screen); padding: 2px 5px; }
.ht-prose figure { margin: var(--ht-space-6) 0; }
.ht-prose figcaption { margin-top: var(--ht-space-3); font-size: var(--ht-text-small); color: var(--ht-dim); }
.ht-note { border: 1px solid var(--ht-amber); padding: var(--ht-space-4) var(--ht-space-5); font-size: 14px; color: var(--ht-soft); margin: var(--ht-space-6) 0; }
.ht-note b { color: var(--ht-amber); font-weight: 600; letter-spacing: var(--ht-track-label); text-transform: uppercase; font-size: var(--ht-text-label); display: block; margin-bottom: 4px; }

.ht-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ht-space-2); }
.ht-card { display: block; background: var(--ht-void); border: var(--ht-border); padding: var(--ht-space-5); text-decoration: none; color: var(--ht-text); }
.ht-card:hover { border-color: var(--ht-cyan); color: var(--ht-text); }
.ht-card__title { font-size: 16px; font-weight: 600; line-height: 1.4; margin: var(--ht-space-2) 0; }
.ht-card p { margin: 0; color: var(--ht-soft); font-size: var(--ht-text-small); }
@media (max-width: 900px) { .ht-cards { grid-template-columns: 1fr; } }

.ht-author { display: flex; align-items: center; gap: var(--ht-space-3); }
.ht-avatar {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: var(--ht-screen); border: 1px solid var(--ht-violet); color: var(--ht-cyan); font-family: var(--ht-pixel); font-size: 14px;
}

/* ---------- Forms ---------- */
.ht-form { display: grid; gap: var(--ht-space-5); }
.ht-field { display: grid; gap: var(--ht-space-2); }
.ht-field label, .ht-legend {
  font-size: var(--ht-text-label); font-weight: 600; letter-spacing: var(--ht-track-label); text-transform: uppercase; color: var(--ht-soft);
}
.ht-input, .ht-select {
  width: 100%; min-height: 46px; padding: 0 var(--ht-space-4);
  background: transparent; color: var(--ht-text); border: var(--ht-border-strong); border-radius: var(--ht-radius);
  font: 400 14px var(--ht-sans);
}
.ht-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ht-cyan) 50%), linear-gradient(135deg, var(--ht-cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ht-select option { background: var(--ht-deck); }
.ht-input::placeholder { color: var(--ht-dim); }
.ht-input:hover, .ht-select:hover { background-color: var(--ht-panel); }
.ht-input:focus, .ht-select:focus { outline: none; border-color: var(--ht-cyan); }
.ht-field--error .ht-input { border-color: var(--ht-red); }
.ht-help { font-size: var(--ht-text-small); color: var(--ht-dim); margin: 0; }
.ht-error { font-size: var(--ht-text-small); color: var(--ht-red); margin: 0; }
.ht-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ht-space-4); }
@media (max-width: 560px) { .ht-row { grid-template-columns: 1fr; } }
.ht-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--ht-space-2); }
.ht-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--ht-border-strong); }
.ht-choice label { position: relative; cursor: pointer; }
.ht-choice input { position: absolute; opacity: 0; }
.ht-choice span { display: block; text-align: center; padding: 12px 6px; font-size: 12.5px; font-weight: 500; color: var(--ht-soft); border-right: var(--ht-border); }
.ht-choice label:last-child span { border-right: 0; }
.ht-choice input:checked + span { background: var(--ht-cyan); color: var(--ht-cyan-ink); }
.ht-choice input:focus-visible + span { outline: 2px solid var(--ht-cyan); outline-offset: -4px; }
.ht-check { display: flex; gap: var(--ht-space-3); align-items: flex-start; font-size: var(--ht-text-small); color: var(--ht-soft); }
.ht-check input { appearance: none; width: 16px; height: 16px; flex: none; margin: 2px 0 0; border: var(--ht-border-strong); background: transparent; cursor: pointer; }
.ht-check input:checked { background: var(--ht-cyan); border-color: var(--ht-cyan); box-shadow: inset 0 0 0 3px var(--ht-void); }

/* Inline email row: input with an arrow button inside the border */
.ht-inline { display: flex; border: var(--ht-border-strong); max-width: 380px; }
.ht-inline .ht-input { border: 0; min-width: 0; }
.ht-inline button { background: transparent; border: 0; color: var(--ht-text); padding: 0 var(--ht-space-4); cursor: pointer; font: 500 16px var(--ht-sans); }
.ht-inline button:hover { color: var(--ht-cyan); }
.ht-inline:focus-within { border-color: var(--ht-cyan); }

.ht-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--ht-nav-h)); }
.ht-auth__form { padding: var(--ht-space-8) var(--ht-gutter); display: flex; justify-content: center; }
.ht-auth__form > div { width: 100%; max-width: 440px; }
.ht-auth__side { background: var(--ht-grain), var(--ht-vignette), var(--ht-deck); border-left: var(--ht-border); padding: var(--ht-space-8) var(--ht-gutter); display: flex; flex-direction: column; justify-content: center; gap: var(--ht-space-6); }
@media (max-width: 900px) { .ht-auth { grid-template-columns: 1fr; } .ht-auth__side { border-left: 0; border-top: var(--ht-border); } }

/* ---------- Footer ---------- */
.ht-footer { border-top: var(--ht-border); padding: var(--ht-space-8) 0 var(--ht-space-6); background: var(--ht-void); }
.ht-footer__top { display: flex; justify-content: space-between; align-items: end; gap: var(--ht-space-6); flex-wrap: wrap; }
.ht-footer__title { font-size: 15px; font-weight: 500; margin: 0 0 var(--ht-space-3); }
.ht-footer__social { display: flex; gap: var(--ht-space-5); }
.ht-footer__social a { color: var(--ht-text); text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: var(--ht-track-caps); text-transform: uppercase; }
.ht-footer__social a:hover { color: var(--ht-cyan); }
.ht-footer__bottom { display: flex; justify-content: space-between; gap: var(--ht-space-4); flex-wrap: wrap; margin-top: var(--ht-space-7); padding-top: var(--ht-space-5); border-top: var(--ht-border); font-size: var(--ht-text-small); color: var(--ht-dim); }
.ht-footer__bottom a { color: var(--ht-dim); text-decoration: none; }

/* ---------- Helpers ---------- */
.ht-center { text-align: center; }
.ht-mt-4 { margin-top: var(--ht-space-4); }
.ht-mt-6 { margin-top: var(--ht-space-6); }
.ht-mt-7 { margin-top: var(--ht-space-7); }
.ht-mb-0 { margin-bottom: 0; }
.ht-stack { display: grid; gap: var(--ht-space-4); }
.ht-mx-auto { margin-left: auto; margin-right: auto; }
.ht-auth__side > * { width: 100%; max-width: 520px; }
@media (max-width: 560px) { .ht-meters { min-height: 96px; } }
