/* ──────────────────────────────────────────────────────
   cozyCAD · homepage
   Short-scroll marketing: nav → hero → logos → themes
   → pricing → CTA → footer. Uses cozy.css tokens.
   ────────────────────────────────────────────────────── */

html, body { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }
body[data-home="1"] {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* Page container */
.hm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Ambient glow ─────────────────────────────────────── */
.hm-glow {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh;
  background: radial-gradient(60% 55% at 50% 35%,
    color-mix(in oklab, var(--accent) 28%, transparent) 0%,
    color-mix(in oklab, var(--accent) 10%, transparent) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-breathe 8s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%,100% { opacity: 0.7; transform: translateY(0); }
  50%     { opacity: 1;   transform: translateY(-10px); }
}

/* ── Nav ─────────────────────────────────────────────── */
.hm-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--night) 72%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.hm-nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 16px 32px;
  max-width: 1200px; margin: 0 auto;
}
.hm-wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hm-wordmark b { color: var(--accent); font-weight: 700; }
.hm-wordmark .spark {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  margin-left: 6px; margin-bottom: 2px;
  animation: spark 2.4s ease-in-out infinite;
}
@keyframes spark {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}
.hm-nav-links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.hm-nav-links a {
  color: inherit; text-decoration: none; cursor: pointer;
  transition: color 0.15s var(--ease);
}
.hm-nav-links a:hover { color: var(--ink); }
.hm-nav-spacer { flex: 1; }
.hm-nav-right { display: flex; gap: 10px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────── */
.hm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.hm-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 0 0 color-mix(in oklab, var(--accent) 50%, #000),
              0 8px 24px -8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.hm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 color-mix(in oklab, var(--accent) 50%, #000),
              0 14px 32px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.hm-btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 0 color-mix(in oklab, var(--accent) 50%, #000); }
.hm-btn-ghost {
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--ink);
  border-color: var(--border);
}
.hm-btn-ghost:hover { background: var(--surface); border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); }
.hm-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: var(--r-lg); }
.hm-btn .arr { display: inline-block; transition: transform 0.2s var(--ease); }
.hm-btn:hover .arr { transform: translateX(3px); }

/* ── Hero ────────────────────────────────────────────── */
.hm-hero {
  position: relative; z-index: 1;
  padding: 56px 0 64px;
  text-align: center;
}

/* Hero logo mark — the centerpiece */
.hm-hero-mark {
  position: relative;
  margin: 24px auto 40px;
  width: min(1100px, 96vw);
  display: grid; place-items: center;
  padding: 0 40px;
  overflow: visible;
}
.hm-hero-wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-shadow:
    0 0 60px color-mix(in oklab, var(--accent) 40%, transparent),
    0 0 120px color-mix(in oklab, var(--accent) 25%, transparent);
  padding: 0 0.08em 0.12em;
  white-space: nowrap;
}
.hm-hero-wordmark em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg,
    var(--accent) 0%,
    color-mix(in oklab, var(--accent) 70%, var(--ink)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-hero-spark {
  display: inline-block;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent), 0 0 60px color-mix(in oklab, var(--accent) 60%, transparent);
  margin-left: 10px;
  margin-bottom: 10px;
  vertical-align: middle;
  animation: spark 2.4s ease-in-out infinite;
}
@keyframes spark {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.55; transform: scale(0.72); }
}

/* Hero tag — the "Finally, CAD..." line, BELOW the mark */
.hm-hero-tag {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hm-hero-tag em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hm-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hm-hero h1:not(.hm-hero-tag) {
  display: none; /* old tag, replaced by .hm-hero-tag */
}
.hm-hero-legacy-h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hm-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  background: linear-gradient(180deg,
    var(--accent) 0%,
    color-mix(in oklab, var(--accent) 70%, var(--ink)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-hero .sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: balance;
}
.hm-hero .ctas {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 16px;
  flex-direction: row;
  align-items: center;
}
.hm-hero .fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.hm-hero .fineprint b { color: var(--ink-2); font-weight: 600; }

/* Scroll cue at the base of the hero */
.hm-scrollcue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 48px auto 0;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  width: fit-content;
}
.hm-scrollcue:hover { opacity: 1; color: var(--ink-2); }
.hm-scrollcue-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--accent));
}
.hm-scrollcue-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 11px;
  position: relative;
}
.hm-scrollcue-mouse span {
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { transform: translate(-50%, 0);   opacity: 1; }
  70%  { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Theme picker in nav */
.hm-wordmark-link { text-decoration: none; display: inline-flex; }
.hm-theme-menu { position: relative; }
.hm-theme-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.hm-theme-trigger:hover { border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); background: var(--surface); }
.hm-theme-dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.hm-theme-nm { font-weight: 600; }
.hm-theme-caret { font-size: 10px; color: var(--muted); }
.hm-theme-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 260px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 40px -10px color-mix(in oklab, var(--accent) 30%, transparent), 0 2px 4px rgba(0,0,0,0.2);
  z-index: 50;
  animation: pop-in 0.18s var(--ease);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hm-theme-pop-hd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 6px;
}
.hm-theme-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-md);
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s var(--ease);
  font-family: var(--font-ui);
}
.hm-theme-opt:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.hm-theme-opt.is-on { background: color-mix(in oklab, var(--accent) 14%, transparent); }
.hm-theme-opt .sw {
  width: 14px; height: 14px; border-radius: 50%;
}
.hm-theme-opt .nm { font-size: 14px; font-weight: 600; }
.hm-theme-opt .kc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Hero scene (CSS isometric house) ────────────────── */
.hm-scene {
  position: relative; z-index: 1;
  margin: 72px auto 0;
  width: min(820px, 92vw);
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in oklab, var(--accent) 12%, var(--surface)) 0%, var(--surface) 60%),
    var(--surface);
  box-shadow:
    0 30px 80px -30px color-mix(in oklab, var(--accent) 40%, transparent),
    0 1px 0 0 color-mix(in oklab, var(--ink) 8%, transparent) inset;
  overflow: hidden;
  perspective: 1600px;
}
.hm-scene-chrome {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}
.hm-scene-topbar {
  height: 36px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: color-mix(in oklab, var(--night) 60%, var(--surface));
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.hm-scene-topbar .dots { display: flex; gap: 5px; }
.hm-scene-topbar .dots i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
}
.hm-scene-topbar .dots i:first-child { background: #e0826d; }
.hm-scene-topbar .dots i:nth-child(2) { background: #e8b766; }
.hm-scene-topbar .dots i:last-child { background: #a8c88f; }
.hm-scene-topbar .title { font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.hm-scene-topbar .spacer { flex: 1; }
.hm-scene-topbar .stat { color: var(--accent); }

.hm-scene-stage {
  position: relative;
  display: grid; place-items: center;
  background-image:
    linear-gradient(color-mix(in oklab, var(--accent) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--accent) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

/* Isometric house — pure CSS */
.iso {
  position: relative;
  width: 360px; height: 260px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-30deg);
  animation: iso-float 6s ease-in-out infinite;
}
@keyframes iso-float {
  0%,100% { transform: rotateX(58deg) rotateZ(-30deg) translateZ(0); }
  50%     { transform: rotateX(58deg) rotateZ(-30deg) translateZ(8px); }
}
.iso-floor {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--accent) 22%, var(--surface-2));
  border: 1.5px solid color-mix(in oklab, var(--accent) 40%, var(--border));
  border-radius: 6px;
  box-shadow: 0 20px 40px -10px color-mix(in oklab, var(--accent) 50%, transparent);
}
.iso-wall {
  position: absolute;
  background: color-mix(in oklab, var(--accent) 14%, var(--surface));
  border: 1.5px solid color-mix(in oklab, var(--accent) 35%, var(--border));
  transform-origin: 0 100%;
  animation: wall-rise 1.4s var(--ease-bounce) backwards;
}
.iso-wall.n { left: 0; top: 0; width: 100%; height: 80px; transform: rotateX(-90deg); animation-delay: 0.2s; }
.iso-wall.e { right: 0; top: 0; width: 80px; height: 100%; transform: rotateY(90deg) translateZ(-80px); animation-delay: 0.35s; }
.iso-wall.s { left: 0; bottom: 0; width: 100%; height: 80px; transform: rotateX(-90deg) translateY(-260px) translateZ(80px); animation-delay: 0.5s; }
.iso-wall.w { left: 0; top: 0; width: 80px; height: 100%; transform: rotateY(90deg); animation-delay: 0.35s; }
@keyframes wall-rise {
  from { opacity: 0; transform: var(--tx, rotateX(-90deg)) scaleY(0); }
}
.iso-door {
  position: absolute;
  left: 46%; bottom: 8px; width: 36px; height: 56px;
  background: color-mix(in oklab, var(--accent) 55%, var(--surface));
  border: 1.5px solid color-mix(in oklab, var(--accent) 70%, var(--border));
  border-radius: 3px 3px 0 0;
  transform: rotateX(-90deg) translateZ(0);
  transform-origin: 0 100%;
  animation: pop 0.6s var(--ease-bounce) 1s backwards;
}
.iso-window {
  position: absolute;
  width: 38px; height: 28px;
  background: color-mix(in oklab, var(--accent) 30%, #88ccee);
  border: 1.5px solid color-mix(in oklab, var(--accent) 60%, var(--border));
  border-radius: 2px;
  animation: pop 0.6s var(--ease-bounce) backwards;
}
.iso-window.w1 { left: 20%; top: 24px; transform: rotateX(-90deg); animation-delay: 0.8s; }
.iso-window.w2 { right: 20%; top: 24px; transform: rotateX(-90deg); animation-delay: 1s; }
.iso-window.w3 { right: 24px; top: 40%; transform: rotateY(90deg) translateZ(-80px); animation-delay: 1.2s; }
@keyframes pop {
  from { opacity: 0; transform-origin: center; scale: 0; }
}
.iso-tree {
  position: absolute;
  width: 22px; height: 50px;
  animation: pop 0.5s var(--ease-bounce) backwards;
}
.iso-tree::before {
  content: ''; position: absolute; left: 6px; bottom: 0;
  width: 10px; height: 22px;
  background: color-mix(in oklab, var(--accent) 30%, #6b4a2e);
}
.iso-tree::after {
  content: ''; position: absolute; left: 0; top: 0;
  width: 22px; height: 32px;
  background: color-mix(in oklab, var(--accent) 18%, #6b8c5a);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--accent) 40%, #2a3e22);
}
.iso-tree.t1 { left: -24px; top: 20px; animation-delay: 1.4s; }
.iso-tree.t2 { right: -24px; bottom: 20px; animation-delay: 1.55s; }
.iso-tree.t3 { left: 40px; bottom: -30px; animation-delay: 1.7s; }

.iso-roof {
  position: absolute; left: 0; top: 0; width: 100%; height: 140px;
  background: color-mix(in oklab, var(--accent) 40%, var(--surface-2));
  border: 1.5px solid color-mix(in oklab, var(--accent) 55%, var(--border));
  transform: translateZ(80px) rotateX(0);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  opacity: 0;
  animation: roof-land 0.8s var(--ease-bounce) 1.6s forwards;
}
@keyframes roof-land {
  from { opacity: 0; transform: translateZ(160px) rotateX(0); }
  to   { opacity: 1; transform: translateZ(80px) rotateX(0); }
}

.hm-scene-caption {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--night) 80%, transparent);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

/* ── Logo strip ──────────────────────────────────────── */
.hm-logos {
  position: relative; z-index: 1;
  padding: 72px 0;
  text-align: center;
}
.hm-logos .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hm-logos-row {
  display: flex; justify-content: center; align-items: center; gap: 56px;
  flex-wrap: wrap;
  opacity: 0.65;
}
.hm-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
  white-space: nowrap;
}
.hm-logo:hover { opacity: 1; }
.hm-logo .kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  opacity: 0.6;
  margin-top: 2px;
  font-weight: 500;
}

/* ── Theme showcase ──────────────────────────────────── */
.hm-themes {
  position: relative; z-index: 1;
  padding: 72px 0;
}
.hm-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.hm-section-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hm-section-head h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 640px;
  text-wrap: balance;
}
.hm-section-head .aside {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 360px;
}
.hm-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hm-theme-card {
  position: relative;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hm-theme-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--accent) 40%, transparent);
}
.hm-theme-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent),
              0 20px 40px -20px color-mix(in oklab, var(--accent) 50%, transparent);
}
.hm-theme-preview {
  height: 180px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
}
.hm-theme-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 30%, transparent 0%, color-mix(in oklab, currentColor 10%, transparent) 100%);
  pointer-events: none;
}
.hm-theme-preview .chip {
  width: 36px; height: 8px; border-radius: 4px;
  background: currentColor;
  opacity: 0.5;
}
.hm-theme-preview .bar {
  height: 10px; border-radius: 5px;
  background: currentColor;
  opacity: 0.15;
}
.hm-theme-preview .bar.lg { width: 70%; opacity: 0.3; }
.hm-theme-preview .bar.md { width: 50%; }
.hm-theme-preview .bar.sm { width: 30%; }
.hm-theme-preview .cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  background: currentColor;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--tcta-ink);
}
.hm-theme-meta {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--night) 20%, var(--surface));
}
.hm-theme-meta .nm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.hm-theme-meta .ds {
  font-size: 12px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Pricing ─────────────────────────────────────────── */
.hm-pricing {
  position: relative; z-index: 1;
  padding: 80px 0;
}
.hm-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 8px 1fr;
  gap: 12px;
  align-items: stretch;
}
.hm-price-divider {
  border-left: 2px dotted color-mix(in oklab, var(--accent) 35%, var(--border));
  margin: 20px 0;
  align-self: stretch;
  justify-self: center;
  width: 0;
}
.hm-price.is-addon {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-style: dashed;
  border-color: color-mix(in oklab, var(--accent) 25%, var(--border));
}
.hm-price {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hm-price:hover { border-color: color-mix(in oklab, var(--accent) 30%, var(--border)); }
.hm-price.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 8%, var(--surface)) 0%,
    var(--surface) 80%);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent),
    0 30px 60px -30px color-mix(in oklab, var(--accent) 50%, transparent);
  transform: translateY(-8px);
}
.hm-price-tag {
  position: absolute; top: -10px; right: 16px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hm-price .nm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hm-price .blurb {
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 22px; line-height: 1.5;
  min-height: 40px;
}
.hm-price .amt {
  display: baseline; margin-bottom: 4px;
}
.hm-price .amt .n {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.hm-price .amt .cur { color: var(--ink-2); font-size: 28px; font-family: var(--font-display); font-weight: 500; margin-right: 2px; }
.hm-price .per {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 22px;
}
.hm-price ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  flex: 1;
}
.hm-price li {
  display: flex; gap: 10px; align-items: flex-start;
}
.hm-price li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.3;
}
.hm-price li b { color: var(--ink); font-weight: 600; }
.hm-price .hm-btn { justify-content: center; }

/* ── Who it's for ───────────────────────────────────── */
.hm-whofor {
  position: relative; z-index: 1;
  padding: 60px 0 40px;
}
.hm-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.hm-who-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hm-who-card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  transform: translateY(-3px);
}
.hm-who-card:nth-child(2) {
  border-color: color-mix(in oklab, var(--accent) 28%, var(--border));
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 5%, var(--surface)) 0%,
    var(--surface) 70%);
}
.hm-who-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.hm-who-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.hm-who-card svg { color: var(--accent); }
.hm-who-nm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--ink);
  text-wrap: balance;
}
.hm-who-blurb {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.hm-who-list {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in oklab, var(--accent) 25%, var(--border));
  font-size: 12.5px;
  color: var(--ink);
}
.hm-who-list li {
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.45;
}
.hm-who-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ── CTA band ────────────────────────────────────────── */
.hm-cta {
  position: relative; z-index: 1;
  margin: 40px auto 80px;
  max-width: 720px;
  padding: 56px 48px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 50% 50%,
      color-mix(in oklab, var(--accent) 22%, var(--surface)) 0%,
      var(--surface) 80%);
  border: 1.5px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  text-align: center;
  box-shadow: 0 30px 80px -40px color-mix(in oklab, var(--accent) 70%, transparent);
}
.hm-cta h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hm-cta .sub {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 28px;
}
.hm-cta .ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ──────────────────────────────────────────── */
.hm-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: color-mix(in oklab, var(--night) 50%, #000);
}
.hm-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.hm-foot-brand .hm-wordmark { font-size: 26px; margin-bottom: 14px; }
.hm-foot-brand .tag {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 260px;
}
.hm-foot-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.hm-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-foot-col a {
  color: var(--ink-2); text-decoration: none;
  font-size: 14px;
  transition: color 0.15s var(--ease);
  cursor: pointer;
}
.hm-foot-col a:hover { color: var(--ink); }
.hm-foot-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hm-foot-base .accent-picker { display: flex; gap: 6px; align-items: center; }
.hm-foot-base .accent-picker .lbl { margin-right: 6px; text-transform: uppercase; letter-spacing: 0.16em; }
.hm-accent-swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.hm-accent-swatch:hover { transform: scale(1.15); border-color: var(--ink-2); }
.hm-accent-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hm-price-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-price-divider { display: none; }
  .hm-who-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-price.is-featured { transform: none; }
  .hm-theme-grid { grid-template-columns: 1fr; }
  .hm-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hm-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hm { padding: 0 20px; }
  .hm-nav-inner { padding: 12px 20px; gap: 16px; }
  .hm-nav-links { display: none; }
  .hm-price-grid { grid-template-columns: 1fr; }
  .hm-who-grid { grid-template-columns: 1fr; }
  .hm-section-head { flex-direction: column; align-items: flex-start; }
  .hm-foot-grid { grid-template-columns: 1fr; }
  .hm-foot-base { flex-direction: column; gap: 12px; }
}
