/* ==========================================================================
   kqhosting — design system
   Dark, technical, high-contrast. Built on CSS custom properties so an owner
   can retheme the entire site by editing the token block below.

   Contents
   01. Tokens
   02. Reset & base
   03. Layout primitives
   04. Typography
   05. Buttons & pills
   06. Header / nav
   07. Hero
   08. Product cards & price table
   09. Spec tables
   10. Feature & trust blocks
   11. Plans comparison
   12. FAQ
   13. Checkout portal
   14. Footer
   15. Utilities & motion
   ========================================================================== */

/* 01. Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces — layered so cards read as elevated without heavy shadows. */
  --hf-abyss: #070a10;
  --hf-bg: #0a0e15;
  --hf-surface: #101620;
  --hf-surface-2: #151d2a;
  --hf-surface-3: #1b2534;
  --hf-line: #1f2a3a;
  --hf-line-strong: #2b3a4f;

  /* Text */
  --hf-text: #e8eef7;
  --hf-text-soft: #a9b7c9;
  --hf-text-mute: #788aa1;

  /* Brand */
  --hf-primary: #2ee6a8;
  --hf-primary-dim: #1fbd88;
  --hf-primary-glow: rgba(46, 230, 168, 0.16);
  --hf-accent: #3d8bff;
  --hf-accent-glow: rgba(61, 139, 255, 0.18);
  --hf-warn: #ffb547;
  --hf-danger: #ff5c72;

  /* Type */
  --hf-font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hf-font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo,
    Consolas, monospace;

  /* Rhythm */
  --hf-radius-sm: 8px;
  --hf-radius: 14px;
  --hf-radius-lg: 22px;
  --hf-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --hf-max: 1240px;
  --hf-section-y: clamp(3.5rem, 8vw, 7rem);

  /* Effects */
  --hf-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --hf-ring: 0 0 0 3px rgba(46, 230, 168, 0.28);
  --hf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 02. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.hf-theme {
  margin: 0;
  background: var(--hf-bg);
  color: var(--hf-text);
  font-family: var(--hf-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle grid + glow backdrop. Pure CSS, no image request. */
body.hf-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(60rem 40rem at 78% -10%, var(--hf-primary-glow), transparent 62%),
    radial-gradient(50rem 34rem at 8% 4%, var(--hf-accent-glow), transparent 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

body.hf-theme > * {
  position: relative;
  z-index: 1;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hf-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #6ff2c6;
}

:focus-visible {
  outline: none;
  box-shadow: var(--hf-ring);
  border-radius: var(--hf-radius-sm);
}

::selection {
  background: var(--hf-primary);
  color: #04110c;
}

.hf-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}

/* 03. Layout primitives --------------------------------------------------- */
.hf-wrap {
  width: 100%;
  max-width: var(--hf-max);
  margin-inline: auto;
  padding-inline: var(--hf-gutter);
}

.hf-section {
  padding-block: var(--hf-section-y);
}

.hf-section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.hf-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.hf-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.hf-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.hf-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.hf-stack > * + * {
  margin-top: 1rem;
}

.hf-center {
  text-align: center;
}

.hf-center .hf-section__lead {
  margin-inline: auto;
}

/* 04. Typography ---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--hf-text);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
  color: var(--hf-text-soft);
}

.hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-family: var(--hf-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-primary);
}

.hf-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hf-section__title {
  margin-bottom: 0.55rem;
}

.hf-section__lead {
  max-width: 62ch;
  color: var(--hf-text-soft);
  font-size: 1.04rem;
}

.hf-mono {
  font-family: var(--hf-font-mono);
}

.hf-muted {
  color: var(--hf-text-mute);
}

.hf-gradient-text {
  background: linear-gradient(96deg, #ffffff 8%, var(--hf-primary) 58%, var(--hf-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 05. Buttons & pills ----------------------------------------------------- */
.hf-btn {
  --btn-bg: var(--hf-primary);
  --btn-fg: #04120c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 640;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--hf-ease), box-shadow 0.2s var(--hf-ease),
    background-color 0.2s var(--hf-ease), border-color 0.2s var(--hf-ease);
}

.hf-btn:hover {
  transform: translateY(-1px);
  color: var(--btn-fg);
  box-shadow: 0 12px 28px -14px var(--hf-primary);
}

.hf-btn:active {
  transform: translateY(0);
}

.hf-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--hf-text);
  border-color: var(--hf-line-strong);
}

.hf-btn--ghost:hover {
  --btn-fg: var(--hf-primary);
  border-color: var(--hf-primary);
  box-shadow: none;
}

.hf-btn--block {
  width: 100%;
}

.hf-btn--lg {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
}

.hf-btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--hf-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--hf-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--hf-text-soft);
}

.hf-pill--primary {
  border-color: rgba(46, 230, 168, 0.38);
  background: rgba(46, 230, 168, 0.1);
  color: var(--hf-primary);
}

.hf-pill--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.14);
  animation: hf-pulse 2.4s ease-in-out infinite;
}

@keyframes hf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* 06. Header / nav -------------------------------------------------------- */
.hf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--hf-ease), border-color 0.25s var(--hf-ease),
    backdrop-filter 0.25s var(--hf-ease);
}

.hf-header.is-scrolled {
  background: rgba(8, 12, 19, 0.82);
  border-bottom-color: var(--hf-line);
  backdrop-filter: blur(14px) saturate(140%);
}

.hf-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hf-text);
  text-decoration: none;
  white-space: nowrap;
}

.hf-brand:hover {
  color: var(--hf-text);
}

.hf-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--hf-primary), var(--hf-accent));
  color: #04120c;
  font-weight: 800;
  font-size: 1rem;
}

.hf-nav {
  margin-left: auto;
}

.hf-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--hf-text-soft);
  font-size: 0.93rem;
  font-weight: 520;
  text-decoration: none;
  transition: color 0.18s var(--hf-ease), background-color 0.18s var(--hf-ease);
}

.hf-nav__link:hover,
.hf-nav__link[aria-current="page"] {
  color: var(--hf-text);
  background: rgba(255, 255, 255, 0.05);
}

.hf-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hf-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hf-line-strong);
  border-radius: 11px;
  background: transparent;
  color: var(--hf-text);
  cursor: pointer;
}

@media (max-width: 960px) {
  .hf-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    margin: 0;
    padding: 1rem var(--hf-gutter) 1.5rem;
    background: rgba(8, 12, 19, 0.97);
    border-bottom: 1px solid var(--hf-line);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--hf-ease), transform 0.2s var(--hf-ease),
      visibility 0.2s;
  }

  .hf-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* The toggle adds this to <body>. Without it the page behind the panel keeps
     scrolling under the finger on touch devices, which reads as a broken menu. */
  body.hf-nav-locked {
    overflow: hidden;
  }

  .hf-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .hf-nav__link {
    padding: 0.85rem 0.75rem;
    border-radius: var(--hf-radius-sm);
  }

  .hf-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hf-header__actions .hf-btn--ghost {
    display: none;
  }
}

/* 07. Hero ---------------------------------------------------------------- */
.hf-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hf-hero__grid {
    grid-template-columns: 1fr;
  }
}

.hf-hero__title {
  margin-bottom: 1rem;
}

.hf-hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--hf-text-soft);
}

.hf-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hf-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hf-line);
}

.hf-stat__value {
  font-family: var(--hf-font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--hf-text);
  letter-spacing: -0.02em;
}

.hf-stat__label {
  font-size: 0.82rem;
  color: var(--hf-text-mute);
}

/* Terminal card: the signature visual of the hero. */
.hf-terminal {
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: linear-gradient(180deg, var(--hf-surface-2), var(--hf-surface));
  box-shadow: var(--hf-shadow-card);
  overflow: hidden;
}

.hf-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hf-line);
  background: rgba(255, 255, 255, 0.02);
}

.hf-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hf-line-strong);
}

.hf-terminal__dot:nth-child(1) { background: #ff5f57; }
.hf-terminal__dot:nth-child(2) { background: #febc2e; }
.hf-terminal__dot:nth-child(3) { background: #28c840; }

.hf-terminal__title {
  margin-left: 0.5rem;
  font-family: var(--hf-font-mono);
  font-size: 0.76rem;
  color: var(--hf-text-mute);
}

.hf-terminal__body {
  margin: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  font-family: var(--hf-font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--hf-text-soft);
  overflow-x: auto;
  white-space: pre;
}

.hf-terminal__body .k { color: var(--hf-primary); }
.hf-terminal__body .c { color: var(--hf-text-mute); }
.hf-terminal__body .v { color: #9ecbff; }
.hf-terminal__body .ok { color: var(--hf-primary); }

/* 08. Product cards & price table ----------------------------------------- */
.hf-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.hf-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 40%),
    var(--hf-surface);
  box-shadow: var(--hf-shadow-card);
  transition: transform 0.22s var(--hf-ease), border-color 0.22s var(--hf-ease),
    box-shadow 0.22s var(--hf-ease);
}

.hf-plan:hover {
  transform: translateY(-3px);
  border-color: var(--hf-line-strong);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
}

.hf-plan--featured {
  border-color: rgba(46, 230, 168, 0.42);
  background: linear-gradient(180deg, rgba(46, 230, 168, 0.07), transparent 42%),
    var(--hf-surface);
}

.hf-plan--featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(46, 230, 168, 0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hf-plan__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  left: auto;
}

.hf-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/*
 * Titles are allowed two lines and then clamped. Truncating to a single line
 * cut real information off cards — "E5-2680V4 Dual · Silicon Valley" and even
 * "SV BMS E5-2620 Dual" overflowed the 300px grid column. A fixed two-line box
 * keeps every card the same height whether the name wraps or not, so the spec
 * lines below stay aligned across the row.
 */
.hf-plan__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0.2rem;
  font-size: 1.16rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: calc(2 * 1.3 * 1.16rem);
}

.hf-plan__region {
  font-family: var(--hf-font-mono);
  font-size: 0.76rem;
  color: var(--hf-text-mute);
}

.hf-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0 0 0.15rem;
  font-family: var(--hf-font-mono);
  /* Down from clamp(1.75rem, 3vw, 2.15rem): the maximum is now 1.9rem so
   * four-digit prices ($2,198/mo, $7,330/mo) do not visually overpower the
   * card title. The lower bound also drops to keep the hierarchy intact on
   * mobile, where the same card column is still ~300px. */
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--hf-text);
  letter-spacing: -0.03em;
}

.hf-plan__unit {
  font-family: var(--hf-font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--hf-text-mute);
}

.hf-plan__note {
  min-height: 1.25rem;
  font-size: 0.82rem;
  color: var(--hf-primary);
}

.hf-plan__specs {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
  list-style: none;
}

.hf-plan__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.hf-plan__spec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--hf-text-mute);
}

.hf-plan__spec-value {
  font-weight: 560;
  color: var(--hf-text);
  text-align: right;
}

.hf-plan__features {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--hf-text-soft);
}

.hf-plan__features li {
  display: flex;
  gap: 0.5rem;
}

.hf-plan__features .hf-icon {
  color: var(--hf-primary);
  margin-top: 0.15em;
}

.hf-plan__foot {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}

/* Period switcher */
.hf-periods {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--hf-line);
  border-radius: 999px;
  background: var(--hf-surface);
}

.hf-periods__btn {
  padding: 0.42rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hf-text-mute);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.18s var(--hf-ease), color 0.18s var(--hf-ease);
}

.hf-periods__btn:hover {
  color: var(--hf-text);
}

.hf-periods__btn.is-active {
  background: var(--hf-primary);
  color: #04120c;
}

.hf-periods__save {
  margin-left: 0.2rem;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: rgba(4, 18, 12, 0.22);
  font-family: var(--hf-font-mono);
  font-size: 0.72rem;
}

.hf-periods__btn:not(.is-active) .hf-periods__save {
  background: rgba(46, 230, 168, 0.16);
  color: var(--hf-primary);
}

/* 09. Spec tables --------------------------------------------------------- */
.hf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hf-table caption {
  caption-side: top;
  padding-bottom: 0.75rem;
  color: var(--hf-text-mute);
  font-size: 0.84rem;
  text-align: left;
}

.hf-table th,
.hf-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hf-line);
  text-align: left;
  vertical-align: top;
}

.hf-table thead th {
  font-family: var(--hf-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
  border-bottom-color: var(--hf-line-strong);
}

.hf-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.hf-table td:first-child {
  color: var(--hf-text-mute);
  width: 34%;
  white-space: nowrap;
}

.hf-table td strong {
  color: var(--hf-text);
}

.hf-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-surface);
}

/* 10. Feature & trust blocks --------------------------------------------- */
.hf-feature {
  padding: 1.5rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-surface);
  transition: border-color 0.2s var(--hf-ease), transform 0.2s var(--hf-ease);
}

.hf-feature:hover {
  border-color: var(--hf-line-strong);
  transform: translateY(-2px);
}

.hf-feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.22);
  color: var(--hf-primary);
}

.hf-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.hf-feature__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hf-text-soft);
}

.hf-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-line);
}

.hf-strip__item {
  padding: 1.35rem 1.25rem;
  background: var(--hf-surface);
  text-align: center;
}

.hf-strip__value {
  font-family: var(--hf-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hf-primary);
}

.hf-strip__label {
  font-size: 0.82rem;
  color: var(--hf-text-mute);
}

/* Category tab bar */
.hf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hf-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hf-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hf-text-soft);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s var(--hf-ease);
}

.hf-tabs__btn:hover {
  border-color: var(--hf-line-strong);
  color: var(--hf-text);
}

.hf-tabs__btn.is-active {
  border-color: rgba(46, 230, 168, 0.45);
  background: rgba(46, 230, 168, 0.1);
  color: var(--hf-primary);
}

/* 11. Plans comparison ---------------------------------------------------- */
.hf-compare {
  display: grid;
  gap: 0.75rem;
}

.hf-compare__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-sm);
  background: var(--hf-surface);
  font-size: 0.9rem;
  align-items: center;
}

.hf-compare__row--head {
  border-color: var(--hf-line-strong);
  background: var(--hf-surface-2);
  font-weight: 640;
}

.hf-compare__row > span:first-child {
  color: var(--hf-text-mute);
}

/* 12. FAQ ----------------------------------------------------------------- */
.hf-faq {
  display: grid;
  gap: 0.6rem;
  max-width: 860px;
  margin-inline: auto;
}

.hf-faq details {
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-surface);
  overflow: hidden;
}

.hf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.hf-faq summary::-webkit-details-marker {
  display: none;
}

.hf-faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--hf-text-mute);
  border-bottom: 2px solid var(--hf-text-mute);
  transform: rotate(45deg);
  transition: transform 0.2s var(--hf-ease);
}

.hf-faq details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--hf-primary);
}

.hf-faq details[open] summary {
  color: var(--hf-primary);
}

.hf-faq__body {
  padding: 0 1.25rem 1.15rem;
  color: var(--hf-text-soft);
  font-size: 0.93rem;
}

/* 13. Checkout portal ----------------------------------------------------- */
body.hf-portal-open {
  overflow: hidden;
}

.hf-portal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.hf-portal[hidden] {
  display: none;
}

.hf-portal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(6px);
  animation: hf-fade 0.2s var(--hf-ease);
}

.hf-portal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--hf-line-strong);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1);
  animation: hf-rise 0.24s var(--hf-ease);
  overflow: hidden;
}

.hf-portal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--hf-line);
}

.hf-portal__eyebrow {
  margin: 0 0 0.15rem;
  font-family: var(--hf-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-primary);
}

.hf-portal__title {
  margin: 0;
  font-size: 1.15rem;
}

.hf-portal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hf-line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--hf-text-soft);
  cursor: pointer;
  flex: none;
}

.hf-portal__close:hover {
  border-color: var(--hf-danger);
  color: var(--hf-danger);
}

.hf-portal__body {
  position: relative;
  flex: 1;
  min-height: 320px;
  background: var(--hf-bg);
}

.hf-portal__frame {
  display: block;
  width: 100%;
  height: min(72dvh, 720px);
  border: 0;
  background: transparent;
}

.hf-portal__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  color: var(--hf-text-mute);
  font-size: 0.9rem;
}

.hf-portal__loader[hidden] {
  display: none;
}

.hf-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--hf-line-strong);
  border-top-color: var(--hf-primary);
  border-radius: 50%;
  animation: hf-spin 0.8s linear infinite;
}

@keyframes hf-spin {
  to { transform: rotate(360deg); }
}

.hf-portal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--hf-line);
  font-size: 0.78rem;
  color: var(--hf-text-mute);
}

.hf-portal__foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@keyframes hf-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hf-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* Order (product detail) page layout. */
.hf-order-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .hf-order-grid {
    grid-template-columns: 1fr;
  }
}

.hf-order-aside {
  position: sticky;
  top: 96px;
}

@media (max-width: 900px) {
  .hf-order-aside {
    position: static;
  }
}

/* Tab panels share the catalog spacing. */
.hf-tabpanel[hidden] {
  display: none;
}

/* 16. Generic page & post ---------------------------------------------- */
.hf-page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.hf-page-head h1 {
  margin-bottom: 0.5rem;
}

.hf-contact-card {
  padding: 1.5rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-surface);
}

.hf-contact-card__label {
  font-family: var(--hf-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
  margin-bottom: 0.35rem;
}

.hf-contact-card__value {
  font-size: 1.05rem;
  color: var(--hf-text);
  word-break: break-word;
}

.hf-wrap--narrow {
  max-width: 820px;
}

.hf-wrap--tight {
  max-width: 640px;
}

.hf-grid--center {
  align-items: center;
}

.hf-prose--centered {
  margin-inline: auto;
}

.hf-prose--spaced {
  margin-top: 3rem;
}

/* 14. Footer -------------------------------------------------------------- */
.hf-footer {
  margin-top: var(--hf-section-y);
  border-top: 1px solid var(--hf-line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.hf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 860px) {
  .hf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hf-footer__grid {
    grid-template-columns: 1fr;
  }
}

.hf-footer__title {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-family: var(--hf-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

.hf-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hf-footer__links a {
  color: var(--hf-text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.hf-footer__links a:hover {
  color: var(--hf-primary);
}

/* Widgets dropped into the footer sidebar. WordPress wraps each one in
   .widget and the theme sets the title class to .widget__title, so these two
   selectors are the contract - everything else here is presentation polish. */
.hf-footer .widget {
  margin: 0 0 1.2rem;
  color: var(--hf-text-soft);
  font-size: 0.9rem;
}

.hf-footer .widget:last-child {
  margin-bottom: 0;
}

.hf-footer .widget__title {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-family: var(--hf-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

.hf-footer .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hf-footer .widget a {
  color: var(--hf-text-soft);
  text-decoration: none;
}

.hf-footer .widget a:hover {
  color: var(--hf-primary);
}

.hf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid var(--hf-line);
  font-size: 0.82rem;
  color: var(--hf-text-mute);
}

.hf-footer__bottom a {
  color: var(--hf-text-mute);
  text-decoration: none;
}

.hf-footer__bottom a:hover {
  color: var(--hf-primary);
}

/* 15. Utilities & motion -------------------------------------------------- */
[data-hf-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--hf-ease), transform 0.5s var(--hf-ease);
}

[data-hf-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-hf-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.hf-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--hf-primary);
  color: #04120c;
  font-weight: 600;
  z-index: 100;
}

.hf-skip:focus {
  left: 1rem;
  top: 1rem;
}

.hf-notice {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 181, 71, 0.35);
  border-radius: var(--hf-radius);
  background: rgba(255, 181, 71, 0.08);
  color: #ffd8a1;
  font-size: 0.9rem;
}

.hf-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--hf-line-strong);
  border-radius: var(--hf-radius);
  text-align: center;
  color: var(--hf-text-mute);
}

/* Content styles for standard WordPress pages/posts. */
.hf-prose {
  max-width: 74ch;
}

.hf-prose h2 {
  margin-top: 2rem;
}

.hf-prose ul,
.hf-prose ol {
  padding-left: 1.25rem;
  color: var(--hf-text-soft);
}

.hf-prose li {
  margin-bottom: 0.4rem;
}

.hf-prose code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--hf-surface-3);
  font-family: var(--hf-font-mono);
  font-size: 0.88em;
  color: var(--hf-primary);
}

.hf-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--hf-primary);
  background: var(--hf-surface);
  border-radius: 0 var(--hf-radius-sm) var(--hf-radius-sm) 0;
  color: var(--hf-text-soft);
}

.hf-prose img {
  border-radius: var(--hf-radius);
}

/* 16. Stat strip, matrix badges & contact form ----------------------------- */

/* Key figures pulled out of the copy so they can be scanned, not read. */
.hf-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-line);
  overflow: hidden;
}

.hf-fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  background: var(--hf-surface);
  text-align: center;
}

.hf-fact__value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hf-text);
  line-height: 1.1;
}

.hf-fact__unit {
  margin-left: 0.15em;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--hf-text-mute);
}

.hf-fact__label {
  font-size: 0.82rem;
  color: var(--hf-text-mute);
  letter-spacing: 0.01em;
}

/* Capability matrix: green tick / red cross, readable at a glance. */
.hf-table--matrix td {
  vertical-align: middle;
}

.hf-table__center {
  text-align: center;
}

.hf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.hf-badge--yes {
  background: rgba(46, 230, 168, 0.12);
  border: 1px solid rgba(46, 230, 168, 0.32);
  color: var(--hf-primary);
}

.hf-badge--no {
  background: rgba(255, 92, 114, 0.1);
  border: 1px solid rgba(255, 92, 114, 0.28);
  color: var(--hf-danger);
}

/* A wide card that behaves like a panel, not a floating tile. */
.hf-card--feature {
  padding: 1.6rem 1.5rem;
}

.hf-card--feature .hf-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid rgba(46, 230, 168, 0.24);
  border-radius: 12px;
  background: var(--hf-primary-glow);
  color: var(--hf-primary);
}

.hf-card--aside {
  padding: 1.75rem 1.5rem;
}

.hf-card__title--sm {
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

/* Contact form ----------------------------------------------------------- */
.hf-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-surface);
  box-shadow: var(--hf-shadow-card);
}

.hf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.hf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.hf-field__label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--hf-text-soft);
}

.hf-field__label em {
  font-style: normal;
  color: var(--hf-primary);
}

.hf-input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--hf-line-strong);
  border-radius: var(--hf-radius-sm);
  background: var(--hf-abyss);
  color: var(--hf-text);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.18s var(--hf-ease), box-shadow 0.18s var(--hf-ease);
}

.hf-input::placeholder {
  color: var(--hf-text-mute);
}

.hf-input:hover {
  border-color: #3a4c66;
}

.hf-input:focus {
  outline: none;
  border-color: var(--hf-primary);
  box-shadow: var(--hf-ring);
}

.hf-input--area {
  resize: vertical;
  min-height: 8rem;
}

select.hf-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hf-text-mute) 50%),
    linear-gradient(135deg, var(--hf-text-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.15rem, calc(100% - 13px) 1.15rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

/* Honeypot: removed from the visual flow but still present in the DOM. */
.hf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hf-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hf-form__status {
  font-size: 0.88rem;
  color: var(--hf-text-mute);
}

.hf-form__status.is-ok {
  color: var(--hf-primary);
}

.hf-form__status.is-error {
  color: var(--hf-danger);
}

.hf-form__legal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--hf-text-mute);
}

.hf-notice--ok {
  border-color: rgba(46, 230, 168, 0.35);
  background: rgba(46, 230, 168, 0.08);
  color: #9ff0d2;
}

/* Contact detail list ---------------------------------------------------- */
.hf-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.hf-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.hf-contact-list svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--hf-primary);
}

.hf-contact-list__label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hf-text-mute);
  margin-bottom: 0.15rem;
}

.hf-contact-list a {
  color: var(--hf-text);
  text-decoration: none;
  border-bottom: 1px solid var(--hf-line-strong);
}

.hf-contact-list a:hover {
  color: var(--hf-primary);
  border-bottom-color: var(--hf-primary);
}

.hf-rule {
  height: 1px;
  margin: 1.35rem 0;
  border: 0;
  background: var(--hf-line);
}

@media (max-width: 720px) {
  .hf-form__row {
    grid-template-columns: 1fr;
  }
}

/* 17. Aliases & missing modifiers ------------------------------------------
   These fill gaps between what the templates emit and what the design system
   already defined. Grouped here so the earlier numbered sections stay stable.
   hf-btn--block / hf-btn--full and hf-card__title / hf-card__title--sm are
   near-duplicates kept as aliases: renaming them in templates would churn
   five files for no visual gain. */

.hf-btn--primary {
  background: var(--hf-primary);
  border-color: var(--hf-primary);
  color: #04120c;
  font-weight: 600;
}

.hf-btn--primary:hover {
  background: var(--hf-primary-dim);
  border-color: var(--hf-primary-dim);
  color: #04120c;
  box-shadow: 0 8px 24px -10px var(--hf-primary-glow);
}

.hf-btn--full,
.hf-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.hf-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--hf-text);
}

.hf-card__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--hf-text-soft);
}

/* Logo wordmark next to the mark square. */
.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--hf-text);
}

.hf-brand__name {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.hf-nav__item {
  list-style: none;
}

/* A quieter section used to alternate rhythm without changing background. */
.hf-section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 18%, rgba(255, 255, 255, 0.015) 82%, transparent);
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
}

/* Hero stat row: big mono number over a small label. */
.hf-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hf-stat__value,
.hf-stat__num {
  font-family: var(--hf-font-mono);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--hf-primary);
  line-height: 1.1;
}

.hf-stat__label {
  font-size: 0.78rem;
  color: var(--hf-text-mute);
  letter-spacing: 0.02em;
}

/* Call-to-action panel reused on marketing pages. */
.hf-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--hf-line-strong);
  border-radius: var(--hf-radius-lg);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(46, 230, 168, 0.14), transparent 58%),
    var(--hf-surface);
  text-align: center;
}

.hf-cta__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.hf-cta__lead {
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  color: var(--hf-text-soft);
}

.hf-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Checkout portal: hidden helper blocks and the multi-line title area. */
.hf-portal__noscript {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--hf-radius-sm);
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.34);
  color: #ffd8a1;
  font-size: 0.88rem;
  line-height: 1.6;
}

.hf-portal__titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

/* Base card. Must come after the modifier rules above because several
   modifiers rely on inheriting this surface, border and radius. */
.hf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-surface);
  box-shadow: var(--hf-shadow-card);
  transition: border-color 0.2s var(--hf-ease), transform 0.2s var(--hf-ease);
}

.hf-card:hover {
  border-color: var(--hf-line-strong);
}

/* ==========================================================================
   18. Price-grid layout (reference-aligned)
   --------------------------------------------------------------------------
   The price grid leads with a big number, then the machine name, then a short
   bulleted spec list. Everything here is scoped to classes used by
   template-parts/card-product.php and page-templates/pricing.php so it cannot
   leak into other sections.
   ========================================================================== */

/* A three-up showcase on desktop, one-up on phones. auto-fit with a 300px
   floor does both without a media query. */
.hf-plans--showcase {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* Section head: title block on the left, period switcher on the right. */
.hf-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.hf-section-head > div {
  min-width: 0;
}

/* Centred hero variant. The reference layout puts the claim in the middle of
   the page rather than beside a device screenshot. */
.hf-hero__title--center,
.hf-hero__lead--center {
  margin-inline: auto;
  text-align: center;
}

.hf-hero__lead--center {
  max-width: 66ch;
}

.hf-hero__cta--center,
.hf-hero__meta--center {
  justify-content: center;
}

/* "Starting from" label above the number. */
.hf-plan__from {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

/* The spec list on a price-grid card is left-aligned stacked text, not a
   two-column key/value row: at four or five lines, labels would squeeze the
   values into a ragged column. Each line is prefixed with a bullet drawn in
   CSS so the markup stays a plain <li>. */
.hf-plan__specs .hf-plan__spec {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.6rem;
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.88rem;
}

.hf-plan__specs .hf-plan__spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hf-primary);
}

.hf-plan__specs .hf-plan__spec-label {
  font-family: var(--hf-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

.hf-plan__specs .hf-plan__spec-value {
  font-weight: 560;
  color: var(--hf-text);
  text-align: left;
  overflow-wrap: anywhere;
}

/* Narrow cards: drop the label column and let the value take the full width,
   because a 5.2rem label plus a value does not fit under ~280px. */
@media (max-width: 420px) {
  .hf-plan__specs .hf-plan__spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* Product name sits below the price, so it gets room to be large. */
.hf-plan__head {
  margin: 1rem 0 0.25rem;
}

/* Category intro block: prose on the left, coupon card on the right. */
.hf-cat-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 55%),
    var(--hf-surface);
}

@media (max-width: 860px) {
  .hf-cat-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hf-cat-intro__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.hf-cat-intro__copy p {
  margin: 0 0 0.8rem;
  max-width: 68ch;
  color: var(--hf-text-soft);
  font-size: 0.95rem;
}

/* Test IP / refund facts. Monospace values so IPs stay copy-exact. */
.hf-cat-intro__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem 1.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hf-line);
}

.hf-cat-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hf-cat-fact__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

.hf-cat-fact__value {
  font-family: var(--hf-font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hf-text);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.hf-cat-fact__value:hover {
  color: var(--hf-primary);
}

/* Coupon card. Dashed border + notched corners reads as a coupon without
   needing an image. */
.hf-coupon {
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(46, 230, 168, 0.45);
  border-radius: var(--hf-radius);
  background: rgba(46, 230, 168, 0.06);
  text-align: center;
}

.hf-coupon__hint {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

.hf-coupon__code {
  margin: 0 0 0.75rem;
  font-family: var(--hf-font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hf-primary);
  overflow-wrap: anywhere;
}

.hf-coupon__terms {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: var(--hf-text-mute);
}

/* Count chip inside a category tab. */
.hf-tabs__count {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--hf-line);
  color: var(--hf-text-mute);
  font-family: var(--hf-font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hf-tabs__btn.is-active .hf-tabs__count {
  background: rgba(46, 230, 168, 0.18);
  color: var(--hf-primary);
}

/* Front page: the hero carries the claim, so the section below it starts
   tighter than on an interior page and the price grid arrives sooner.
   `hf-front` is added to <body> by functions.php::body_class(). */
body.hf-front .hf-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

body.hf-front .hf-hero__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   16. Home showcase, support block, footer columns
   --------------------------------------------------------------------------
   Added with the reference-layout pass. Scoped to classes introduced by
   template-parts/card-product.php (`.hf-plan--showcase`), front-page.php
   (`.hf-help`) and footer.php (`.hf-footer__facts`, `.hf-footer__pay`).
   ========================================================================== */

/* Showcase card: the family name is the headline, the plan name the subtitle.
   Both are clamped to one line because a two-line family name on a 380px card
   pushes the price below the fold. */
.hf-plan--showcase {
  padding-top: 1.75rem;
}

.hf-plan__family {
  margin: 0 0 0.55rem;
  font-size: clamp(1.22rem, 1.9vw, 1.42rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hf-text);
  /* Two lines, not one: "Silicon Valley China Optimization Bare Metal Server"
     and "Los Angeles Virtual Cloud Servers CU2 VIP" do not fit on one line in a
     third-of-a-1240px column, and truncating the family name is worse than
     wrapping it. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.25 * 1.22rem);
}

/* On the showcase card the plan name is supporting information, so it drops to
   a single quiet line under the price. It keeps `.hf-plan__name` so the shared
   truncation measurement still covers it. */
.hf-plan--showcase .hf-plan__head {
  margin: 0.9rem 0 0.35rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.hf-plan--showcase .hf-plan__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hf-text-soft);
  line-height: 1.4;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  min-height: 0;
}

.hf-plan--showcase .hf-plan__region {
  order: -1;
}

/* The showcase has one action, so it sits flush at the bottom of the card and
   every card's button aligns even when a spec value wraps to two lines. */
.hf-plan--showcase .hf-plan__foot {
  margin-top: auto;
  padding-top: 1.35rem;
}

/* --------------------------------------------------------------------------
   Support block — three doors, each with an icon, a promise, a fact and a link
   -------------------------------------------------------------------------- */
.hf-help {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.6rem 1.5rem;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 45%),
    var(--hf-surface);
  box-shadow: var(--hf-shadow-card);
  transition: transform 0.22s var(--hf-ease), border-color 0.22s var(--hf-ease);
}

.hf-help:hover {
  transform: translateY(-3px);
  border-color: var(--hf-line-strong);
}

.hf-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  background: rgba(46, 230, 168, 0.08);
  color: var(--hf-primary);
}

.hf-help__title {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.hf-help__body {
  margin: 0;
  color: var(--hf-text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* The fact line is the receipt for the promise above it: an email address, an
   uptime figure, a response time. Monospace so numbers line up across cards. */
.hf-help__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hf-text-mute);
  overflow-wrap: anywhere;
}

.hf-help__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hf-line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hf-primary);
  text-decoration: none;
}

.hf-help__link:hover {
  color: var(--hf-text);
}

.hf-help__link .hf-icon {
  transition: transform 0.2s var(--hf-ease);
}

.hf-help__link:hover .hf-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Footer — brand column facts plus the four link columns
   -------------------------------------------------------------------------- */
.hf-footer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.35rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--hf-line);
  list-style: none;
}

.hf-footer__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hf-footer__fact-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hf-primary);
}

.hf-footer__fact-label {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hf-text-mute);
}

/* Four link columns plus the brand column. The brand column is wider because
   it also carries the address and the facts. */
.hf-footer__grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 1080px) {
  .hf-footer__grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .hf-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hf-footer__links li {
  list-style: none;
}

/* Bottom-bar payment methods: dim, small, never a link. */
.hf-footer__pay {
  color: var(--hf-text-mute);
  letter-spacing: 0.02em;
}
