/*
 * Cyber Fidget - home page long-scroll (phase-B marketing cutover).
 * Speaks the settled kit language: tokens + self-hosted fonts come from
 * cf-kit.css (loaded before this file). Everything here is scoped under
 * body.cf-home so no other page inherits it.
 *
 * Shape language: chamfered corners (echoing the machined chassis),
 * stamped mono labels, neon magenta/cyan accents over deep violet.
 */

body.cf-home {
  background: var(--cf-bg-deep);
  color: var(--cf-ink);
  font-family: 'Chakra Petch', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.cf-home .brand-title { font-family: 'Chakra Petch', system-ui, sans-serif; }

/* the shared sticky header, tinted into the kit's palette on this page */
body.cf-home header.site-header {
  background: rgba(8, 5, 15, 0.85);
  border-bottom: 1px solid rgba(255, 43, 184, 0.18);
}
/* the nav "Get Updates" CTA drops its legacy Kickstarter green for the
   kit's magenta on this page only (same trigger, same behavior) */
body.cf-home .site-nav .cta {
  background-color: var(--cf-magenta);
  border-color: var(--cf-magenta);
  color: #08050f !important;
  font-weight: 700;
}
body.cf-home .site-nav .cta:hover { background-color: #ff5cc9; }

/* ── layout atoms ───────────────────────────────────────────────── */

.hm-wrap { max-width: 1340px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 880px) { .hm-wrap { padding: 0 20px; } }

.hm-section { padding: 96px 0 80px; }
.hm-section-alt { background: var(--cf-bg-page); padding: 64px 0; }

/* stamped section delimiter (the mock's SectionStamp) */
.hm-stamp {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--cf-font-mono);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hm-stamp-c-soft, rgba(104,225,253,.19));
}
.hm-stamp-index { color: var(--hm-stamp-c, var(--cf-cyan)); font-size: 13px; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }
.hm-stamp-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #877aa4; white-space: nowrap; }
.hm-stamp-rule { flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--hm-stamp-c-soft, rgba(104,225,253,.25)), transparent); min-width: 24px; }
.hm-stamp-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--cf-ink); text-align: right;
}
@media (max-width: 880px) {
  .hm-stamp { flex-wrap: wrap; row-gap: 6px; }
  .hm-stamp-rule { display: none; }
  .hm-stamp-title { flex-basis: 100%; text-align: left; font-size: 20px; }
}

/* small stamped mono label */
.hm-label {
  font-family: var(--cf-font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cf-ink-dim);
}

/* ── buttons (the mock's NeonButton, chunky bevel keys) ─────────── */

.hm-btn {
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  font-size: 13px; padding: 12px 22px;
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: #08050f; background: var(--cf-magenta);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.3);
  transition: transform .12s, filter .12s;
}
.hm-btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.hm-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(0,0,0,.25); }
.hm-btn-lg { font-size: 15px; padding: 16px 30px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.hm-btn-cyan { background: var(--cf-cyan); color: #001a24; }
.hm-btn-ghost { background: transparent; color: var(--cf-ink); box-shadow: inset 0 0 0 1.5px var(--cf-cyan); }
.hm-btn-ghost:hover { background: rgba(104,225,253,.08); }
.hm-btn-outline { background: transparent; color: var(--cf-magenta); box-shadow: inset 0 0 0 1.5px var(--cf-magenta); }
.hm-btn-outline:hover { background: rgba(255,43,184,.08); }

/* ── hero ───────────────────────────────────────────────────────── */

/* display:block + the h1 scoping below beat theme.css's generic .hero
   rules (the section keeps the .hero class as the stable test hook) */
.cf-hero {
  position: relative;
  display: block;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hm-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hm-hero-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #08050f 0%, #1a0820 38%, #45125c 54%, #b51976 70%, #ff2bb8 80%, #ff8a3d 90%, #1a0820 100%);
  opacity: .65;
}
.hm-hero-sun {
  position: absolute; left: 57%; bottom: 40%;
  width: 260px; height: 260px; margin-left: -130px;
  background: radial-gradient(circle, var(--cf-magenta) 0%, var(--cf-magenta) 38%, transparent 60%);
  opacity: .9;
  border-radius: 50%; overflow: hidden; /* keep the slats inside the disc */
}
/* Synthwave-sun "slats" removed by request - the sun is now a clean glow
   disc. Re-enable by restoring the repeating-linear-gradient here. */
.hm-hero-sun::after {
  content: none;
}
.hm-grid-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 50%; }
.hm-hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8,5,15,.85) 96%),
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent, rgba(8,5,15,.72));
}

.hm-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hm-hero-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hm-badge {
  font-family: var(--cf-font-mono);
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--cf-cyan); padding: 6px 12px; border: 1px solid var(--cf-cyan);
}
.hm-badge-side {
  font-family: var(--cf-font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cf-ink-dim);
}
.cf-hero .hm-h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: .92; font-weight: 700;
  letter-spacing: .01em; text-transform: uppercase;
  margin: 0 0 24px; color: var(--cf-ink);
}
.hm-h1-accent { color: var(--cf-cyan); text-shadow: 0 0 24px var(--cf-cyan); }
.hm-hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--cf-ink-dim);
  max-width: 520px; margin: 0 0 36px;
}
.hm-hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hm-hero-media { position: relative; text-align: center; }
.hm-hero-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, var(--cf-magenta) 0%, transparent 60%);
  opacity: .35; filter: blur(40px); pointer-events: none;
}
.hm-hero-figure { position: relative; display: inline-block; }
.hm-hero-figure img {
  display: block; width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
/* HUD callouts anchored just outside the render's box */
/* links inside body copy (why cards, HUD notes) */
.hm-pos-body a, .hm-hud-note a {
  color: var(--cf-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hm-pos-body a:hover, .hm-hud-note a:hover { color: var(--cf-magenta); }

.hm-callout {
  position: absolute; display: block; width: 200px;
  font-family: var(--cf-font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.hm-callout-line > span:not(.hm-callout-rule) { white-space: nowrap; }
.hm-callout-line { display: flex; align-items: center; gap: 10px; }
.hm-callout-rule { display: block; width: 56px; height: 1px; background: currentColor; flex: none; position: relative; }
.hm-callout-rule::after {
  content: ''; position: absolute; top: -3px; width: 7px; height: 7px;
  background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor;
}
.hm-callout-sub { display: block; margin-top: 4px; color: var(--cf-ink-mute); }
/* dot-anchored percentages of .hm-hero-figure (placed with
   tools/callout-positioner/ - re-drag there rather than hand-tuning).
   The laser dot + line are drawn by home-callouts.js from data-marker. */
.hm-callout-tl { left: -43.6%; top: 5.2%; color: var(--cf-cyan); text-align: right; }
.hm-callout-tl .hm-callout-line { justify-content: flex-end; }
.hm-callout-tl .hm-callout-sub { padding-right: 0; }
.hm-callout-br { left: 10.6%; top: 103%; color: var(--cf-magenta); text-align: right; }
.hm-callout-br .hm-callout-line { justify-content: flex-end; flex-direction: row-reverse; }
.hm-callout-br .hm-callout-sub { padding-left: 0; }
/* elements with a data-marker get a JS-drawn laser; the inline rule/dot
   retires there. Spots keep their rule in the <881px static-grid layout. */
.hm-callout[data-marker] .hm-callout-rule { display: none; }
@media (min-width: 881px) {
  .hm-spot[data-marker] .hm-spot-rule { display: none; }
}
@media (max-width: 1280px) { .hm-callout { display: none; } }

@media (max-width: 880px) {
  .cf-hero { padding: 36px 0 48px; }
  /* the stacked layout puts the CTAs where the sun would sit - the
     device glow carries the neon at this width */
  .hm-hero-sun { display: none; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hm-hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hm-hero-media img { max-width: 280px; }
  .hm-callout { display: none; }
  .hm-hero-ctas { flex-direction: column; align-items: stretch; }
  .hm-hero-ctas .hm-btn { justify-content: center; }
}

/* ── marquee band ───────────────────────────────────────────────── */

.hm-marquee {
  background: var(--cf-magenta); color: #08050f;
  padding: 14px 0; overflow: hidden;
  border-top: 1px solid rgba(0,0,0,.2); border-bottom: 1px solid rgba(0,0,0,.2);
}
.hm-marquee-track {
  display: flex; gap: 56px; white-space: nowrap; width: max-content;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase;
  animation: hm-marquee 36s linear infinite;
}
.hm-marquee-track > span { flex: none; }
@keyframes hm-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hm-marquee-track { animation: none; } }
@media (max-width: 880px) { .hm-marquee { padding: 10px 0; } .hm-marquee-track { font-size: 13px; gap: 28px; } }

/* ── 01 story ───────────────────────────────────────────────────── */

/* align-items start: the photo frame must hug the image height, or the
   absolute caption + offset echo-border detach from the photo when the
   text column runs taller */
.hm-story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 40px; align-items: start; }
.hm-quote {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500; font-size: 30px; line-height: 1.3;
  color: var(--cf-ink); margin: 0; padding: 0 0 0 24px;
  border-left: 3px solid var(--cf-magenta);
}
.hm-story-p { margin-top: 24px; font-size: 15px; color: var(--cf-ink-dim); line-height: 1.7; }
.hm-story-p + .hm-story-p { margin-top: 12px; }
.hm-byline { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.hm-byline-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cf-bg-elev);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; color: var(--cf-cyan);
}
.hm-byline-name { font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 700; }
.hm-byline-sub { font-family: var(--cf-font-mono); font-size: 11px; color: #877aa4; letter-spacing: .15em; }

/* framed photo with the offset cyan echo-border */
.hm-frame { position: relative; }
.hm-frame::before {
  content: ''; position: absolute;
  top: 12px; left: 12px; right: -12px; bottom: -12px;
  border: 1.5px solid var(--cf-cyan); opacity: .4; pointer-events: none;
}
.hm-frame img { position: relative; width: 100%; height: auto; display: block; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.hm-frame-cap {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--cf-font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cf-ink); background: rgba(8,5,15,.85); padding: 6px 10px;
}
@media (max-width: 880px) {
  .hm-story-grid { grid-template-columns: 1fr; gap: 36px; }
  .hm-quote { font-size: 20px; }
  .hm-frame { margin-right: 12px; }
}

/* ── 02 specs ───────────────────────────────────────────────────── */

.hm-specs-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; margin-top: 40px; align-items: start; }
.hm-diagram { position: relative; padding: 40px 190px; }
.hm-diagram img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hm-spot {
  position: absolute; width: 180px;
  display: flex; align-items: center; gap: 12px;
}
.hm-spot[data-side="left"] { left: 0; flex-direction: row; text-align: right; }
.hm-spot[data-side="right"] { right: 0; flex-direction: row-reverse; text-align: left; }
.hm-spot-txt { flex: 1; }
.hm-spot-k { font-family: var(--cf-font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.hm-spot-v { font-size: 12px; color: var(--cf-ink-mute); margin-top: 2px; }
.hm-spot-rule { flex: none; width: 36px; height: 1px; background: currentColor; position: relative; }
.hm-spot-rule::after {
  content: ''; position: absolute; top: -3px; width: 7px; height: 7px;
  background: currentColor; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.hm-spot[data-side="left"] .hm-spot-rule::after { right: -4px; }
.hm-spot[data-side="right"] .hm-spot-rule::after { left: -4px; }

/* HUD frame (boxdraw terminal aesthetic) */
.hm-hud {
  position: relative;
  border: 1px solid var(--cf-cyan);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
  padding: 24px 20px 16px;
  font-family: var(--cf-font-mono);
  /* corner ticks, CSS-only: 2 bars per corner */
  background:
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 0 0 / 10px 2px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 0 0 / 2px 10px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 100% 0 / 10px 2px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 100% 0 / 2px 10px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 0 100% / 10px 2px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 0 100% / 2px 10px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 100% 100% / 10px 2px,
    linear-gradient(var(--cf-cyan), var(--cf-cyan)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.hm-hud-title {
  position: absolute; top: -8px; left: 12px; padding: 0 8px;
  background: var(--cf-bg-page);
  font-size: 11px; letter-spacing: .15em;
  color: var(--cf-cyan); text-transform: uppercase; font-weight: 700;
}
.hm-hud table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hm-hud td { padding: 8px 0; border-bottom: 1px dashed rgba(104,225,253,.12); }
.hm-hud td:first-child { color: var(--cf-ink-mute); letter-spacing: .15em; white-space: nowrap; padding-right: 14px; }
.hm-hud td:last-child { color: var(--cf-ink); text-align: right; }
.hm-hud-note { margin-top: 12px; font-size: 10px; color: var(--cf-ink-mute); letter-spacing: .15em; text-transform: uppercase; }

@media (max-width: 1100px) { .hm-specs-grid { grid-template-columns: 1fr; } }
@media (max-width: 880px) {
  .hm-diagram { padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
  .hm-diagram img { max-width: 260px; }
  .hm-spot { position: static; width: auto; }
  .hm-spots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .hm-spot[data-side="left"], .hm-spot[data-side="right"] { flex-direction: row-reverse; text-align: left; }
  .hm-spot[data-side="left"] .hm-spot-rule::after { left: -4px; right: auto; }
}
@media (min-width: 881px) { .hm-spots { display: contents; } }

/* the screensaver sub-section */
.hm-oled-row {
  margin-top: 80px; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 56px; align-items: center; padding-top: 56px;
  border-top: 1px dashed rgba(104,225,253,.12);
}
.hm-h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 40px; font-weight: 700; margin: 12px 0 16px;
  text-transform: uppercase; letter-spacing: .02em;
}
.hm-h3 .hm-accent-m { color: var(--cf-magenta); }
.hm-body-p { font-size: 16px; color: var(--cf-ink-dim); line-height: 1.6; margin: 0; max-width: 440px; }
.hm-glowchips { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hm-glowchip { text-align: center; }
.hm-glowchip-pane {
  width: 44px; height: 22px; background: #0a0a0a; position: relative;
  box-shadow: 0 0 8px var(--gc, #b8f1ff), inset 0 0 0 1px rgba(255,255,255,.05);
}
.hm-glowchip-pane::after { content: ''; position: absolute; inset: 4px; background: var(--gc, #b8f1ff); opacity: .85; }
.hm-glowchip-name { font-family: var(--cf-font-mono); font-size: 9px; letter-spacing: .15em; color: #877aa4; margin-top: 6px; }

.hm-screen-slot { display: flex; justify-content: center; }
.hm-screen {
  position: relative;
  padding: 8px; background: #1a1424; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.05);
}
.hm-screen-pane {
  position: relative; width: min(410px, 72vw); aspect-ratio: 2 / 1;
  background: #06080a; overflow: hidden;
  color: #b8f1ff;
  box-shadow: inset 0 0 40px rgba(0,0,0,.8), 0 0 26px color-mix(in srgb, currentColor 28%, transparent);
  animation: hm-screen-glow-cycle 5s steps(1, end) infinite;
}
.hm-screen-pane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-screen-pane::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.28) 3px 4px);
  mix-blend-mode: multiply;
}
.hm-screen-tag {
  position: absolute; top: 8px; left: 10px;
  font-family: var(--cf-font-pixel);
  font-size: 12px; color: currentColor; opacity: .7;
  text-shadow: 0 0 6px currentColor;
}
@keyframes hm-screen-glow-cycle {
  0%, 100% { color: #b8f1ff; }
  20% { color: #2effc3; }
  40% { color: #5fb8ff; }
  60% { color: #ff4d4d; }
  80% { color: #ffb13a; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-screen-pane { animation: none; }
}
@media (max-width: 880px) {
  .hm-oled-row { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; padding-top: 36px; }
  .hm-h3 { font-size: 26px; }
}

/* ── 03 finishes ────────────────────────────────────────────────── */

.hm-fin-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 40px; align-items: center; }
.hm-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 24px; }
.hm-swatch-pane {
  width: 100%; aspect-ratio: .85; background: var(--sw, #c8c8d2);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.25), inset 0 3px 0 rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.4);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.hm-swatch-name {
  margin-top: 8px; text-align: center;
  font-family: var(--cf-font-mono); font-size: 9px; letter-spacing: .12em;
  color: #877aa4; text-transform: uppercase;
}
.hm-swatches-caption {
  margin-top: 12px; font-family: var(--cf-font-mono); font-size: 10px;
  letter-spacing: .15em; color: #877aa4; text-transform: uppercase;
}
.hm-price-card {
  margin-top: 28px; padding: 20px; background: var(--cf-bg-card);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.hm-price-txt { flex: 1; min-width: 200px; }
.hm-price-line { font-size: 15px; color: var(--cf-ink); font-weight: 600; }
.hm-price-sub { font-family: var(--cf-font-mono); font-size: 11px; color: #877aa4; letter-spacing: .15em; text-transform: uppercase; margin-top: 4px; }
.hm-chamfer-img {
  width: 100%; height: auto; display: block;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
@media (max-width: 880px) { .hm-fin-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── 04 in action ───────────────────────────────────────────────── */

.hm-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.hm-card {
  position: relative; background: var(--cf-bg-card); padding: 20px;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}
.hm-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.hm-card-title { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 20px; }
.hm-embed {
  position: relative; width: 100%; height: 500px;
  background: #06080a; overflow: hidden;
  border: 1px solid var(--hm-card-accent, var(--cf-cyan));
}
/* pixel-font backdrop shows while the third-party feed loads */
.hm-embed::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cf-font-pixel);
  font-size: 18px; letter-spacing: .1em;
  color: var(--hm-card-accent, var(--cf-cyan)); opacity: .55;
  text-shadow: 0 0 12px currentColor;
}
.hm-embed-load {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--hm-card-accent, var(--cf-cyan));
  font-family: var(--cf-font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.hm-embed-load span {
  padding: 10px 14px; background: rgba(8,5,15,.88);
  border: 1px solid currentColor;
}
.hm-embed-load:hover span, .hm-embed-load:focus-visible span { background: #15102a; }
.hm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-card-foot { font-family: var(--cf-font-mono); font-size: 11px; color: #877aa4; letter-spacing: .1em; margin-top: 12px; text-transform: uppercase; }
.hm-center-cta { margin-top: 32px; text-align: center; }
@media (max-width: 1100px) { .hm-cards3 { grid-template-columns: 1fr; } }

/* ── 05 three ways ──────────────────────────────────────────────── */

.hm-ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* long unbreakable code lines must scroll inside the pane, never size the
   track (a 63-char sample line was forcing 49px of page overflow at 390px) */
.hm-ways-grid > * { min-width: 0; }
.hm-ways { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.hm-way { display: flex; gap: 18px; align-items: flex-start; }
.hm-way-num {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700;
  font-size: 36px; color: var(--cf-magenta);
  width: 60px; flex-shrink: 0; line-height: 1.1;
  text-shadow: 0 0 12px var(--cf-magenta);
}
.hm-way-t { font-family: 'Chakra Petch', sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.hm-way-d { font-size: 14px; color: var(--cf-ink-dim); line-height: 1.6; }
.hm-ways-cta { margin-top: 28px; }

/* the code window */
.hm-code {
  background: #06040c; position: relative;
  border: 1px solid rgba(104,225,253,.25);
  font-family: var(--cf-font-mono); font-size: 13px; line-height: 1.65;
  padding: 14px 0 18px;
}
.hm-code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 12px; border-bottom: 1px solid rgba(104,225,253,.12);
  color: var(--cf-ink-mute); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.hm-code-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hm-code-name { margin-left: 10px; }
.hm-code pre { margin: 0; padding: 14px 18px 0; overflow-x: auto; color: var(--cf-ink-dim); }
.hm-code .c-kw { color: var(--cf-cyan); }
.hm-code .c-str { color: var(--cf-sunset, #ff8a3d); }
.hm-code .c-num { color: var(--cf-magenta); }
.hm-code .c-com { color: var(--cf-ink-mute); }
.hm-code::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cf-magenta), var(--cf-cyan));
}
@media (max-width: 1100px) { .hm-ways-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 880px) { .hm-code { font-size: 11px; } }

/* ── 06 in the box ──────────────────────────────────────────────── */

.hm-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; align-items: center; }
.hm-h3-plain { font-family: 'Chakra Petch', sans-serif; font-size: 36px; font-weight: 700; margin: 0 0 16px; }
.hm-parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.hm-part {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--cf-bg-card);
  border-left: 2px solid #ff8a3d;
}
.hm-part-n { font-family: var(--cf-font-mono); font-size: 11px; color: #ff8a3d; letter-spacing: .15em; flex: none; }
.hm-part-k { font-size: 13px; }
.hm-box-cta { margin-top: 24px; }
@media (max-width: 880px) {
  .hm-box-grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-h3-plain { font-size: 26px; }
  .hm-parts { grid-template-columns: 1fr; }
}

/* ── 07 what it isn't ───────────────────────────────────────────── */

.hm-lead { margin-top: 20px; font-size: 17px; color: var(--cf-ink-dim); max-width: 760px; line-height: 1.6; }
.hm-pos-card { background: var(--cf-bg-card); padding: 28px; position: relative; overflow: hidden; }
.hm-pos-ghost {
  position: absolute; top: -20px; right: -20px;
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 120px;
  color: transparent; line-height: 1;
  -webkit-text-stroke: 1px var(--hm-ghost-aa, #3a6c87);
  pointer-events: none; user-select: none;
}
.hm-pos-card:nth-child(1) .hm-pos-ghost { --hm-ghost-aa: #b4228b; }
.hm-pos-card:nth-child(2) .hm-pos-ghost { --hm-ghost-aa: #3a6c87; }
.hm-pos-card:nth-child(3) .hm-pos-ghost { --hm-ghost-aa: #776437; }
.hm-pos-title { font-family: 'Chakra Petch', sans-serif; font-size: 26px; font-weight: 700; margin: 10px 0 12px; }
.hm-pos-body { font-size: 14px; color: var(--cf-ink-dim); line-height: 1.6; }
.hm-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.hm-why-grid .hm-pos-card { padding: 22px; }
.hm-why-grid .hm-pos-title { font-size: 20px; margin-top: 0; }
@media (max-width: 1100px) { .hm-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hm-why-grid { grid-template-columns: 1fr; } }

/* ── 08 FAQ ─────────────────────────────────────────────────────── */

.hm-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.hm-faq { background: var(--cf-bg-card); padding: 24px; border-left: 2px solid var(--cf-cyan); }
.hm-faq-q { font-family: 'Chakra Petch', sans-serif; font-size: 18px; font-weight: 700; margin: 10px 0 8px; }
.hm-faq-a { font-size: 14px; color: var(--cf-ink-dim); line-height: 1.6; }
@media (max-width: 880px) { .hm-faq-grid { grid-template-columns: 1fr; } }

/* ── 09 newsletter CTA ──────────────────────────────────────────── */

.hm-cta-section { padding: 80px 0 64px; }
.hm-cta-card {
  position: relative; overflow: hidden;
  padding: 56px 32px; text-align: center;
  background:
    linear-gradient(135deg, rgba(255,43,184,.12), rgba(104,225,253,.06)),
    var(--cf-bg-card);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}
.hm-cta-grid-bg { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.hm-cta-inner { position: relative; }
.hm-cta-h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 700;
  margin: 16px 0; text-transform: uppercase; letter-spacing: .02em;
}
.hm-cta-p { font-size: 16px; color: var(--cf-ink-dim); max-width: 480px; margin: 0 auto 28px; }

/* footer, tinted for this page */
body.cf-home footer.site-footer { border-top-color: rgba(245,236,255,.08); }
