/*
 * Front page — modern product design language.
 *
 * The home page does not share the front-page component set in style.css. Its
 * own language: **an all-light page** - a cool near-white ground, tinted stages
 * where a section needs to step forward, cards with soft elevation, one
 * blue→cyan accent gradient carried through headings, icon chips, meters and
 * the closing panel, and Instrument Sans set tight and heavy for every display
 * line. There are no dark sections: the owner asked for them gone after the
 * first modern pass, so the only saturated surfaces left are the CTA panel and
 * the FAQ card, both gradient rather than near-black.
 *
 * Everything is scoped under .hm-page. style.css still loads (the header, the
 * footer, the demo modal, the .btn-strategy pill, the shared .marquee and the
 * .faq-list accordion all come from there), so a handful of rules below exist
 * purely to unpick a shared default — each of those says so.
 *
 * Motion contract: [data-reveal] gets .is-in from home.js on first
 * intersection, and each descendant carrying an inline --i staggers off it.
 * Hero elements carry .hm-rise and animate on load instead, since they are
 * already in view. The whole system collapses to "everything visible, nothing
 * moving" under prefers-reduced-motion, at the foot of this file.
 */

.hm-page {
  --hm-paper: #f6f7fa;
  --hm-paper-2: #eef1f6;
  /* the tinted ground the stepped-forward sections sit on */
  --hm-tint-1: #e9f0fd;
  --hm-tint-2: #f4f7fd;
  --hm-white: #fff;

  --hm-blue: #2563ff;
  --hm-blue-deep: #1442c8;
  --hm-cyan: #22d3ee;
  --hm-violet: #7c5cff;
  --hm-grad: linear-gradient(100deg, #2563ff 0%, #22d3ee 100%);
  --hm-grad-soft: linear-gradient(
    100deg,
    rgba(37, 99, 255, 0.12),
    rgba(34, 211, 238, 0.12)
  );

  --hm-text: #0c1222;
  --hm-muted: #5a6478;
  --hm-muted-2: #8a93a6;
  --hm-muted-light: rgba(255, 255, 255, 0.66);
  --hm-line: rgba(12, 18, 34, 0.09);
  --hm-line-2: rgba(12, 18, 34, 0.14);
  --hm-line-light: rgba(255, 255, 255, 0.3);

  --hm-display: "Instrument Sans", "Plus Jakarta Sans", system-ui, sans-serif;

  --hm-r: 20px;
  --hm-r-lg: 28px;
  --hm-shadow:
    0 2px 4px rgba(12, 18, 34, 0.04), 0 12px 32px rgba(12, 18, 34, 0.06);
  --hm-shadow-lg:
    0 8px 18px rgba(12, 18, 34, 0.06), 0 34px 70px rgba(12, 18, 34, 0.12);

  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Tighter than the site's --section-y (clamp(56px, 8vw, 110px)): two of
     those stacked between sections read as too much on a page this card-heavy,
     where each block already carries its own padding. */
  --hm-sec-y: clamp(30px, 3.2vw, 48px);

  background: var(--hm-paper);
  color: var(--hm-text);
  overflow-x: clip; /* the glows and tilted frames overhang; never scroll for them */
}

/* Bootstrap's .container caps at 1320px and pads 12px; this page wants a
   wider measure and real gutters, so .hm-wrap out-specifies it. */
.hm-page .container.hm-wrap {
  max-width: 1300px;
  padding-inline: clamp(20px, 4.4vw, 60px);
}

.hm-sec {
  position: relative;
  padding-block: var(--hm-sec-y);
}

/* ---------------------------------------------------------------
 * Shared type
 * ------------------------------------------------------------ */
.hm-page .hm-h2 {
  font-family: var(--hm-display);
  font-size: clamp(30px, 3.9vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.hm-page .hm-h2-xl {
  font-size: clamp(34px, 4.8vw, 68px);
}

.hm-h2-center {
  text-align: center;
  margin-inline: auto;
}

.hm-h2-light {
  color: #fff;
}

/* The accent spans are authored into the copy (content-defaults.php). They are
   the one place the page raises its voice: the headline gradient, clipped to
   the glyphs. `display: inline-block` would break the line, so the clip is left
   on an inline box — which is why the padding trick below (not a margin) is
   what stops the last letter being shaved. */
.hm-page .hm-h2 .text-blue,
.hm-page .hm-h2 .text-purple,
.hm-page .hm-hero-title .ai-badge,
.hm-page .hm-panel-heading .text-blue {
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.hm-page .hm-panel-heading .text-red {
  background: linear-gradient(100deg, #e2563c, #f08a62);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-prose {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--hm-muted);
  font-size: 16px;
  line-height: 1.75;
}

.hm-prose-lead {
  font-size: clamp(16.5px, 1.1vw, 18.5px);
  color: #2b3448;
}

.hm-prose-light {
  color: var(--hm-muted-light);
}

.hm-prose-center {
  margin-inline: auto;
  text-align: center;
}

/* Section heads --------------------------------------------------- */
.hm-head {
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

.hm-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

/* The counterweight on the right of a split head: a thin gradient meter that
   draws itself in as the head reveals. */
.hm-head-rule {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--hm-grad);
  transform-origin: right center;
  margin-bottom: 14px;
  opacity: 0.85;
}

.hm-js [data-reveal] .hm-head-rule {
  transform: scaleX(0);
  transition: transform 0.9s var(--hm-ease) 0.2s;
}

.hm-js [data-reveal].is-in .hm-head-rule {
  transform: scaleX(1);
}

.hm-head-center {
  text-align: center;
}

/* ---------------------------------------------------------------
 * Reveal
 * ------------------------------------------------------------ */
/* Every staggered element carries an inline --i, so the attribute selector is
   what ties the markup to the stagger without a second class on each node.
   Scoped to .hm-js: no script, no class, nothing hidden.

   The lift runs on the standalone `translate` property, not on `transform`, so
   a component that wants a resting `transform` of its own keeps it. */
/* The reveal runs as an ANIMATION, not a transition, and that is deliberate.
   This selector is `(0,3,0)` and out-specifies every card rule on the page, so
   while it declared `transition` it won the cascade for that property outright
   — which left `.hm-voice`, `.hm-figure`, `.hm-point` and `.hm-svc` with no
   transition on the `transform` and `box-shadow` their hover lifts move, and
   every one of those hovers snapped. An animation touches only the properties
   in its keyframes, so `transition` stays with the component. */
.hm-js [data-reveal] [style*="--i"] {
  opacity: 0;
  translate: 0 22px;
}

/* The resting state is declared alongside the animation on purpose: a
   `display: none` element never runs an animation, so fill-forwards would never
   land and it would still be at opacity 0 if a resize past a breakpoint showed
   it. The animation overrides these two while it plays.

   Fill mode is `backwards`, not `forwards`: the resting rule above already
   holds the end state, and a forwards fill keeps the opacity animation "in
   effect" forever, which makes the element its own backdrop root. That is
   what starved `.flow-thumb`'s backdrop-filter — the connector behind it was
   outside the root, so the blur only showed before the reveal fired. */
.hm-js [data-reveal].is-in [style*="--i"] {
  opacity: 1;
  translate: none;
  animation: hm-reveal 0.7s var(--hm-ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes hm-reveal {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}

/* The hero is already on screen, so it plays on load rather than on scroll. */
.hm-js .hm-rise {
  opacity: 0;
  translate: 0 26px;
  animation: hm-rise 0.95s var(--hm-ease) forwards;
  animation-delay: calc(140ms + var(--i, 0) * 95ms);
}

@keyframes hm-rise {
  to {
    opacity: 1;
    translate: none;
  }
}

/* ---------------------------------------------------------------
 * Tinted stages and their atmosphere
 * ------------------------------------------------------------ */
/* A stage is a section that steps forward without going dark: a cool tint, the
   same drifting glows at a fraction of their strength, and a hairline along the
   top so it reads as a band. */
.hm-tint {
  background: linear-gradient(
    180deg,
    var(--hm-tint-1) 0%,
    var(--hm-tint-2) 62%,
    var(--hm-paper) 100%
  );
  isolation: isolate;
}

.hm-tint::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--hm-line-2),
    transparent
  );
}

.hm-hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* A gradient mesh rather than a ruled grid — blurred blobs that drift. On a
   light ground they are washes, not light sources, so the alphas are low. */
.hm-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
}

.hm-glow-a {
  width: 48vw;
  height: 44vw;
  left: -10vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.2), transparent 66%);
  animation: hm-drift-a 22s ease-in-out infinite alternate;
}

.hm-glow-b {
  width: 40vw;
  height: 38vw;
  right: -8vw;
  bottom: -12vw;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.26),
    transparent 66%
  );
  animation: hm-drift-b 26s ease-in-out infinite alternate;
}

.hm-glow-c {
  width: 56vw;
  height: 40vw;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  background: radial-gradient(
    ellipse,
    rgba(124, 92, 255, 0.16),
    transparent 68%
  );
  animation: hm-drift-b 30s ease-in-out infinite alternate;
}

@keyframes hm-drift-a {
  to {
    transform: translate3d(7vw, 5vw, 0) scale(1.16);
  }
}

@keyframes hm-drift-b {
  to {
    transform: translate3d(-6vw, -4vw, 0) scale(1.12);
  }
}

/* A faint dot field over the mesh — texture, not a grid. */
.hm-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(12, 18, 34, 0.14) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    ellipse 72% 62% at 50% 38%,
    #000,
    transparent 74%
  );
  mask-image: radial-gradient(
    ellipse 72% 62% at 50% 38%,
    #000,
    transparent 74%
  );
  opacity: 0.45;
}

/* Concentric rings behind the trust band. */
.hm-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(37, 99, 255, 0.13) 0 1px,
    transparent 1px 92px
  );
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 66%);
  mask-image: radial-gradient(circle, #000 8%, transparent 66%);
  animation: hm-rings 38s linear infinite;
}

@keyframes hm-rings {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------ */
/* style.css's .btn-strategy pill. Its hover is a glide driven by
   `transition: all` on the base rule — the padding swap and the travelling
   disc — so nothing here may narrow that transition list. */
.hm-page .btn-strategy {
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 99, 255, 0.32);
}

/* On the gradient closing panel the pill inverts to white. */
.hm-cta-panel .btn-strategy {
  background: #fff;
  color: var(--hm-text);
  box-shadow: 0 12px 34px rgba(8, 20, 60, 0.28);
}

.hm-hero-cta,
.hm-band-cta {
  margin-top: clamp(28px, 3vw, 42px);
  display: flex;
  justify-content: center;
}

/* Solid ink pill, not a white ghost: on the tinted section a white outline
   read as a chip, not a control. The bolt keeps the page gradient. */
.hm-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 24px 8px 8px;
  border: 1px solid var(--hm-text);
  border-radius: 999px;
  background: var(--hm-text);
  font-family: var(--hm-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 26px rgba(12, 18, 34, 0.22);
  transition:
    transform 0.35s var(--hm-ease),
    box-shadow 0.35s var(--hm-ease),
    background-color 0.35s var(--hm-ease),
    border-color 0.35s var(--hm-ease);
}

.hm-ghost-bolt {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hm-grad);
  color: #fff;
  transition:
    transform 0.45s var(--hm-ease),
    background-color 0.35s var(--hm-ease),
    color 0.35s var(--hm-ease);
}

.hm-ghost:hover {
  transform: translateY(-2px);
  background: var(--hm-blue);
  border-color: var(--hm-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 255, 0.34);
}

.hm-ghost:hover .hm-ghost-bolt {
  transform: rotate(-12deg) scale(1.08);
  background: #fff;
  color: var(--hm-blue);
}

/* ---------------------------------------------------------------
 * 1. Hero
 * ------------------------------------------------------------ */
.hm-hero {
  position: relative;
  /* opens on the tint and settles onto the paper the next section uses, so the
     product shot's mask has something to dissolve into */
  background: linear-gradient(
    180deg,
    #e6eefc 0%,
    #eff4fd 46%,
    var(--hm-paper) 100%
  );
  color: var(--hm-text);
  padding-top: clamp(132px, 9.4vw, 154px);
  padding-bottom: clamp(8px, 1.4vw, 20px);
  overflow: hidden;
  isolation: isolate;
}

.hm-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hm-page .hm-hero-title {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--hm-display);
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: var(--hm-text);
  text-wrap: balance;
}

/*
   style.css's .ai-badge is a rotated blue chip with its own padding and
   margin — all three are unset here or the word sits tilted in a gap. */
.hm-page .hm-hero-title .ai-badge {
  display: inline;
  padding: 0;
  margin: 0;
  transform: none;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-hero-sub {
  margin: clamp(20px, 2.4vw, 30px) auto 0;
  max-width: 66ch;
  font-size: clamp(15.5px, 1.05vw, 17.5px);
  line-height: 1.75;
  color: var(--hm-muted);
}

/* --- the product shot --- */
/* The artwork is a 699x263 export — the largest that exists on disk. Capping
   the frame near that width is the only sharpness lever available without a new
   asset: at min(940px, 92vw) it upscales ~1.3x instead of ~1.7x. */
.hm-hero-art {
  position: relative;
  z-index: 1;
  margin: clamp(40px, 5vw, 72px) auto 0;
  width: min(940px, 92vw);
}

.hm-hero-frame {
  position: relative;
  border-radius: 24px 24px 0 0;
  padding: 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.35)
  );
  box-shadow: 0 40px 90px rgba(12, 30, 80, 0.16);
  /* The parallax is a translate, not a rotate. A rotateX under a perspective
     rasterises the frame once and then resamples it, which softened an already
     upscaled screenshot. */
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate 0.5s var(--hm-ease);
}

.hm-hero-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
  /* the shot dissolves into the plate instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 99%);
}

/* --- the seven ornaments --- */
/* The artboards differ by a factor of three, so each is sized from its own
   intrinsic width rather than from one shared clamp. f2/f3/f6/f7 are white UI
   chips; f1 and f5 are small glyphs; f4 is a square badge. */
.hm-float {
  position: absolute;
  filter: drop-shadow(0 16px 32px rgba(12, 30, 80, 0.18));
  animation: hm-bob 7s ease-in-out infinite alternate;
  z-index: 2;
}

.hm-js .hm-float {
  opacity: 0;
  animation:
    hm-float-in 0.8s var(--hm-ease) forwards,
    hm-bob 7s ease-in-out 1s infinite alternate;
  animation-delay:
    calc(500ms + var(--i, 0) * 110ms), calc(1200ms + var(--i, 0) * 110ms);
}

@keyframes hm-float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hm-bob {
  to {
    transform: translateY(-16px) rotate(4deg);
  }
}

/* Positions are percentages of the SECTION, not of the artwork — the way the
   pre-redesign hero placed them (style.css `.hf-l1`..`.hf-r3`), so the set
   rings the whole hero instead of hugging the product shot. The mapping is one
   to one with the old classes; the only change is that the top pair and the
   lower-left pair are pulled further out, because this headline is wider than
   the one those percentages were written for. */
.hm-f1 {
  top: 16%;
  left: 6%;
  width: clamp(44px, 4.4vw, 70px);
}

.hm-f2 {
  top: 33%;
  left: 2.5%;
  width: clamp(126px, 13.5vw, 204px);
  animation-duration: 8.5s;
}

.hm-f3 {
  bottom: 30%;
  left: 7%;
  width: clamp(124px, 13.2vw, 200px);
  animation-duration: 6.4s;
}

/* the only one that had to move off the old percentage: at left 8% it landed
   half on the laptop's left bezel */
.hm-f4 {
  bottom: 14%;
  left: 3%;
  width: clamp(68px, 7.4vw, 112px);
  animation-duration: 9s;
}

.hm-f5 {
  top: 16%;
  right: 7%;
  width: clamp(46px, 4.8vw, 76px);
}

.hm-f6 {
  top: 33%;
  right: 2.5%;
  width: clamp(126px, 13.5vw, 204px);
  animation-duration: 7.8s;
}

.hm-f7 {
  bottom: 30%;
  right: 7%;
  width: clamp(124px, 13.2vw, 200px);
  animation-duration: 6.8s;
}

/* left-icon.svg is a single #2F2F2F stroke; on the light ground it only needs
   toning down. */
.hm-f1 {
  opacity: 0.35;
}

/* ---------------------------------------------------------------
 * 2. Trust figures
 * ------------------------------------------------------------ */
.hm-stats {
  padding-top: clamp(30px, 3.4vw, 48px);
}

.hm-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.hm-figure {
  position: relative;
  padding: clamp(26px, 2.8vw, 38px) clamp(20px, 2.2vw, 30px);
  border-radius: var(--hm-r-lg);
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  overflow: hidden;
  transition:
    transform 0.45s var(--hm-ease),
    box-shadow 0.45s var(--hm-ease);
}

/* a gradient wash that rises out of the bottom edge on hover */
.hm-figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--hm-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--hm-ease);
}

.hm-figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-figure:hover::after {
  transform: scaleX(1);
}

.hm-figure-num {
  display: flex;
  align-items: flex-start;
  font-family: var(--hm-display);
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  /* tabular figures stop the width jittering while the counter runs */
  font-variant-numeric: tabular-nums;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A transform on a child breaks out of the parent's `background-clip: text`
   layer, so the suffix went invisible; it carries its own clipped gradient and
   is nudged with a margin instead. */
.hm-figure-suffix {
  margin-top: 0.14em;
  font-size: 0.5em;
  font-style: normal;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-figure-lbl {
  display: block;
  margin-top: 16px;
  max-width: 20ch;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------------
 * 3. Awards
 * ------------------------------------------------------------ */
.hm-awards {
  padding-top: clamp(20px, 2.2vw, 30px);
}

.hm-marquee-shell {
  margin-top: clamp(30px, 3.6vw, 48px);
  /* the strip runs off both edges instead of stopping inside the gutter */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

/* unpicks style.css's .marquee top margin — the shell owns the spacing here.
   The vertical padding is not decoration: .marquee is `overflow: hidden`, so
   without room inside that box the hover lift and the card's shadow are sliced
   off at the edges. */
.hm-page .marquee {
  margin-top: 0;
  padding-block: 18px 26px;
}

.hm-page .award-row {
  gap: 16px;
  padding-right: 16px;
}

/* unpicks the old boxed award card for this page's softer tile */
.hm-page .award {
  width: 166px;
  padding: 20px 14px 18px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  gap: 12px;
  transition:
    transform 0.45s var(--hm-ease),
    box-shadow 0.45s var(--hm-ease);
}

.hm-page .award:hover {
  transform: translateY(-5px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-page .award-badge {
  height: 88px;
  margin: 0;
  display: grid;
  place-items: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter 0.45s var(--hm-ease),
    opacity 0.45s var(--hm-ease);
}

/* a percentage max-height does not clamp a grid item in Chrome, so the cap is
   stated in the same unit as the box */
.hm-page .award-badge img {
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

.hm-page .award:hover .award-badge {
  filter: none;
  opacity: 1;
}

.hm-page .award-name {
  font-family: var(--hm-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--hm-muted-2);
  transition: color 0.35s var(--hm-ease);
}

.hm-page .award:hover .award-name {
  color: var(--hm-text);
}

/* ---------------------------------------------------------------
 * 4. Before / after
 * ------------------------------------------------------------ */
.hm-versus .container,
.hm-band .container,
.hm-cta .container {
  position: relative;
  z-index: 1; /* the glows are painted over the section, not over the copy */
}

.hm-switcher input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hm-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  margin-bottom: clamp(34px, 4vw, 56px);
}

/* A real segmented control: two pills sharing one glass track. */
.hm-switch-label {
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  font-family: var(--hm-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hm-muted);
  transition:
    color 0.4s var(--hm-ease),
    background 0.4s var(--hm-ease),
    box-shadow 0.4s var(--hm-ease);
}

.hm-switch-label:hover {
  color: var(--hm-text);
}

#ba-before:checked ~ .hm-switch-row .hm-lbl-before,
#ba-after:checked ~ .hm-switch-row .hm-lbl-after {
  color: #fff;
  border-color: transparent;
  background: var(--hm-grad);
  box-shadow: 0 10px 28px rgba(37, 99, 255, 0.4);
}

/* keyboard users get the same ring the rest of the site uses */
.hm-switcher input:focus-visible ~ .hm-switch-row .hm-switch-label {
  outline: 2px solid var(--hm-cyan);
  outline-offset: 3px;
}

.hm-knob {
  flex: none;
  width: clamp(64px, 6.6vw, 92px);
  display: grid;
  place-items: center;
}

.hm-knob-face {
  width: 100%;
  height: auto;
  transition: transform 0.75s var(--hm-ease);
}

#ba-before:checked ~ .hm-switch-row .hm-knob-face {
  transform: rotate(0deg);
}

#ba-after:checked ~ .hm-switch-row .hm-knob-face {
  transform: rotate(168deg);
}

/* Both panels share one grid cell, so flipping never changes the height. */
.hm-panel-stack {
  display: grid;
}

.hm-panel {
  grid-area: 1 / 1;
  padding: clamp(26px, 3.2vw, 46px);
  border: 1px solid var(--hm-line);
  border-radius: clamp(24px, 2.4vw, 34px);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  transition:
    opacity 0.55s var(--hm-ease),
    transform 0.55s var(--hm-ease);
}

.hm-panel-stack .hm-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.99);
}

#ba-before:checked ~ .hm-panel-stack .hm-panel-before,
#ba-after:checked ~ .hm-panel-stack .hm-panel-after {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hm-panel-chip {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--hm-display);
  font-size: 12.5px;
  font-weight: 500;
}

.hm-panel[data-tone="bad"] .hm-panel-chip {
  background: rgba(226, 86, 60, 0.12);
  color: #c9432a;
}

.hm-panel[data-tone="good"] .hm-panel-chip {
  background: rgba(37, 99, 255, 0.1);
  color: var(--hm-blue-deep);
}

.hm-page .hm-panel-heading {
  margin: 18px 0 0;
  max-width: 22ch;
  font-family: var(--hm-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--hm-text);
}

.hm-ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px clamp(20px, 3vw, 44px);
  margin: clamp(26px, 3vw, 38px) 0 0;
}

.hm-ticks li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--hm-paper);
  font-size: 14.5px;
  line-height: 1.4;
  color: #39414f;
}

.hm-tick-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.hm-tick-mark svg {
  width: 12px;
  height: 12px;
}

.hm-panel[data-tone="bad"] .hm-tick-mark {
  background: rgba(226, 86, 60, 0.14);
  color: #c9432a;
}

.hm-panel[data-tone="good"] .hm-tick-mark {
  background: var(--hm-grad);
  color: #fff;
}

/* --- the scoreboard --- */
.hm-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 3.2vw, 42px);
  padding-top: clamp(24px, 2.8vw, 34px);
  border-top: 1px solid var(--hm-line);
}

.hm-metric-lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hm-muted-2);
}

.hm-metric-num {
  display: block;
  margin-top: 8px;
  font-family: var(--hm-display);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--hm-text);
}

.hm-metric-bar {
  display: block;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.08);
  overflow: hidden;
}

.hm-metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--hm-ease);
  transition-delay: calc(0.25s + var(--i, 0) * 90ms);
}

/* The bar length is the tone cue: the "before" column stays short. */
.hm-panel[data-tone="bad"] .hm-metric-bar i {
  width: 28%;
  background: linear-gradient(90deg, #e2563c, #ff9a7e);
}

.hm-panel[data-tone="good"] .hm-metric-bar i {
  width: 100%;
  background: var(--hm-grad);
}

#ba-before:checked ~ .hm-panel-stack .hm-panel-before .hm-metric-bar i,
#ba-after:checked ~ .hm-panel-stack .hm-panel-after .hm-metric-bar i {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------
 * 5. Search has changed
 * ------------------------------------------------------------ */
.hm-shift-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}

.hm-shift-head {
  position: sticky;
  /* clears the fixed header pill — same offset the rest of the theme uses */
  top: clamp(96px, 9vw, 124px);
}

.hm-shift-head .hm-h2 {
  font-size: clamp(32px, 4.4vw, 60px);
}

.hm-shift-copy {
  padding-top: 6px;
}

.hm-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(44px, 5.4vw, 76px);
}

.hm-point {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px);
  border-radius: var(--hm-r-lg);
  border: 1px solid var(--hm-line);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  transition:
    transform 0.45s var(--hm-ease),
    box-shadow 0.45s var(--hm-ease);
}

.hm-point:hover {
  transform: translateY(-5px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-point-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 22px;
  border-radius: 15px;
  background: var(--hm-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.3);
  transition: transform 0.45s var(--hm-ease);
}

.hm-point-icon svg {
  width: 22px;
  height: 22px;
}

.hm-point:hover .hm-point-icon {
  transform: translateY(-2px) rotate(-8deg);
}

.hm-point p {
  margin: 0;
  font-family: var(--hm-display);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.028em;
}

/* ---------------------------------------------------------------
 * 6. Services
 * ------------------------------------------------------------ */
.hm-svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
  margin-bottom: clamp(44px, 5.2vw, 72px);
}

.hm-svc-head-r {
  position: relative;
  padding-top: clamp(6px, 2vw, 30px);
}

/* The rotating seal — style.css sizes the shared `.seal`; this is its own. */
.hm-seal {
  position: relative;
  width: 128px;
  height: 128px;
  margin-top: 32px;
  display: grid;
  place-items: center;
}

.hm-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: hm-spin 22s linear infinite;
}

.hm-seal text,
.hm-seal textPath {
  font-family: var(--hm-display);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  fill: var(--hm-muted-2);
}

.hm-seal-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #0c1222;
  box-shadow: 0 10px 26px rgba(12, 18, 34, 0.24);
}

.hm-seal-logo img {
  width: 34px;
  height: auto;
}

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

/* --- the bento --- */
.hm-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

/* The first two run double width, so the block opens on two feature tiles and
   settles into a four-up rhythm underneath. */
.hm-svc:nth-child(-n + 2) {
  grid-column: span 2;
}

.hm-svc {
  position: relative;
  border-radius: var(--hm-r-lg);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  overflow: hidden;
  transition:
    transform 0.45s var(--hm-ease),
    box-shadow 0.45s var(--hm-ease);
}

.hm-svc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--hm-line);
  pointer-events: none;
  transition: border-color 0.45s var(--hm-ease);
}

/* The pointer glow. home.js publishes --mx/--my on the card; without the script
   the variables never resolve, the fallback centres it and nothing moves. */
.hm-svc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(37, 99, 255, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s var(--hm-ease);
  pointer-events: none;
}

.hm-svc:hover {
  transform: translateY(-5px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-svc:hover::before {
  opacity: 1;
}

.hm-svc:hover::after {
  border-color: rgba(37, 99, 255, 0.28);
}

.hm-svc-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.2vw, 30px);
}

.hm-svc-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--hm-grad-soft);
  transition: transform 0.5s var(--hm-ease);
}

.hm-svc-icon img {
  width: 62px;
  height: auto;
}

.hm-svc:hover .hm-svc-icon {
  transform: translateY(-3px) scale(1.05);
}

.hm-page .hm-svc-name {
  margin: 0;
  font-family: var(--hm-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* The name text is the link, and only the text. */
.hm-page .hm-svc-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--hm-ease);
}

.hm-page .hm-svc-link:hover {
  color: var(--hm-blue);
}

.hm-svc-text {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--hm-muted);
}

/* The two feature tiles get room to breathe and a larger plate. */
.hm-svc:nth-child(-n + 2) .hm-svc-icon {
  width: 104px;
  height: 88px;
}

.hm-svc:nth-child(-n + 2) .hm-svc-icon img {
  width: 78px;
}

.hm-svc:nth-child(-n + 2) .hm-svc-name {
  font-size: clamp(21px, 1.9vw, 28px);
}

.hm-svc:nth-child(-n + 2) .hm-svc-text {
  max-width: 46ch;
  font-size: 15.5px;
}

/* ---------------------------------------------------------------
 * 7. Trust band
 * ------------------------------------------------------------ */
/* The split panel again, with the USA carried by a flag mark above the
   heading and a soft red-to-navy wash across the glass - the flag as colour,
   not as a background. */
.hm-band-panel {
  --hm-usa-red: #b22234;
  --hm-usa-navy: #3c3b6e;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  padding: clamp(30px, 3.6vw, 56px);
  border-radius: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--hm-line);
  /* the flag's three colours as one wash: navy from the top-left corner,
     white through the middle, red out of the bottom-right */
  background:
    linear-gradient(
      118deg,
      rgba(60, 59, 110, 0.26) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0) 58%,
      rgba(178, 34, 52, 0.22) 100%
    ),
    rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--hm-shadow);
}

/* A red-to-navy hairline down the seam between the two halves. */
.hm-band-panel::after {
  content: "";
  position: absolute;
  top: clamp(24px, 3vw, 44px);
  bottom: clamp(24px, 3vw, 44px);
  left: calc(46% - 0.5px);
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(178, 34, 52, 0.45),
    rgba(60, 59, 110, 0.45),
    transparent
  );
}

/* the flag mark: inline after the word USA, sized to the cap height */
.hm-band-flag {
  display: inline-block;
  margin-left: 0.18em;
  line-height: 0;
  /* Instrument Sans caps are ~0.7em; the flag fills that band and sits on
     the baseline, so it reads as a glyph in the word, not a badge beside it. */
  vertical-align: baseline;
}

.hm-band-flag svg {
  display: block;
  width: auto;
  height: 0.74em;
  border-radius: 0.08em;
  box-shadow: 0 2px 8px rgba(12, 18, 34, 0.18);
}

.hm-band-l .hm-h2 {
  max-width: 14ch;
}

.hm-band-l .hm-band-cta {
  justify-content: flex-start;
  margin-top: clamp(22px, 2.4vw, 32px);
}

/* the pill takes the flag navy, red on hover */
.hm-band-l .btn-strategy {
  background: var(--hm-usa-navy);
  border-color: var(--hm-usa-navy);
  box-shadow: 0 10px 30px rgba(60, 59, 110, 0.32);
}

.hm-band-l .btn-strategy .icon-circle {
  background: #fff;
}

.hm-band-l .btn-strategy .icon-circle svg path {
  fill: var(--hm-usa-navy);
}

.hm-band-l .btn-strategy:hover {
  background: var(--hm-usa-red);
  border-color: var(--hm-usa-red);
}

.hm-band-r .hm-prose {
  max-width: none;
}

.hm-band-r .hm-prose:first-child {
  margin-top: 0;
}

/* ---------------------------------------------------------------
 * 8. Process — the theme's shared .flow--tile, re-accented
 * ------------------------------------------------------------ */
/* The component itself lives in style.css (it is shared with /seo-reseller/)
   and is accented in flat `--blue`. Here it carries the page's blue→cyan
   gradient instead. Nothing about the layout is touched. */

/* the chip under each tile */
.hm-page .flow--tile .flow-num {
  background: var(--hm-grad);
  box-shadow: 0 6px 16px rgba(37, 99, 255, 0.3);
}

/* the tile itself: a gradient wash rather than the flat --blue-soft tint */
.hm-page .flow--tile .flow-thumb {
  border-color: rgba(37, 99, 255, 0.16);
  background: linear-gradient(
    150deg,
    rgba(37, 99, 255, 0.1) 0%,
    rgba(34, 211, 238, 0.1) 38%,
    var(--hm-white) 82%
  );
  backdrop-filter: blur(2px);
}

.hm-page .flow--tile .flow-step:hover .flow-thumb {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--hm-shadow-lg);
}

.hm-page .flow-body h3 {
  font-family: var(--hm-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hm-text);
}

.hm-page .flow-body p {
  color: var(--hm-muted);
}

/* The straight connector used below 1101px and on the reseller-style layout.
   `background-image`, never the `background` shorthand: this rule out-specifies
   style.css's `.flow--tile::before`, and the shorthand would reset the
   repeat/position/size that positions the four-across wave's arrowheads. */
.hm-page .flow::before {
  background-image: linear-gradient(
    90deg,
    rgba(37, 99, 255, 0) 0%,
    rgba(37, 99, 255, 0.45) 14%,
    rgba(34, 211, 238, 0.45) 86%,
    rgba(34, 211, 238, 0) 100%
  );
}

/* The four-across wave and its three arrowheads are data-URI artwork, so the
   gradient has to be re-encoded rather than restyled: the wave carries a real
   <linearGradient>, and each arrow is drawn in the colour the gradient has
   reached at its own stop (25% / 50% / 75%). Geometry, positions and sizes are
   style.css's verbatim — only the strokes changed. */
@media (min-width: 1101px) {
  .hm-page .flow--tile::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7cfa' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23239bf6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(-17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323baf2' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232563ff'/%3E%3Cstop offset='1' stop-color='%2322d3ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12.5 0 C25 0 25 100 37.5 100 C50 100 50 0 62.5 0 C75 0 75 100 87.5 100' fill='none' stroke='url(%23g)' stroke-opacity='0.5' stroke-width='2' stroke-dasharray='7 7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    /* restated, not inherited: the `.hm-page .flow::before` rule above resets
       these for every .flow, this one included */
    background-repeat: no-repeat;
    background-position:
      calc(25% - 5px) 50%,
      50% 50%,
      calc(75% + 5px) 50%,
      center;
    background-size:
      20px 20px,
      20px 20px,
      20px 20px,
      100% 100%;
  }
}

/* ---------------------------------------------------------------
 * 9. Client voices
 * ------------------------------------------------------------ */
.hm-voices {
  background: linear-gradient(180deg, var(--hm-paper), var(--hm-paper-2));
}

.hm-voices-head .hm-prose {
  max-width: 62ch;
}

/* The original layout: a narrow left column carrying the quote mark and the
   list title, with all three quotes in one row beside it. */
.hm-voices-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.hm-voices-aside {
  align-self: center;
}

.hm-quote-mark {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  color: rgba(37, 99, 255, 0.16);
}

.hm-page .hm-voices-aside h3 {
  margin: 0;
  font-family: var(--hm-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.032em;
}

.hm-voices-line {
  display: block;
  width: 70px;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--hm-grad);
}

.hm-voices-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

.hm-voice {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--hm-r-lg);
  border: 1px solid var(--hm-line);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
  transition:
    transform 0.5s var(--hm-ease),
    box-shadow 0.5s var(--hm-ease);
}

.hm-voice:hover {
  transform: translateY(-4px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-voice blockquote {
  margin: 0 0 22px;
  font-family: var(--hm-display);
  font-size: clamp(15px, 1.15vw, 16.5px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--hm-text);
}

/* pushed to the foot so three quotes of different lengths still line their
   captions up across the row */
.hm-voice figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line);
}

.hm-voice-who strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.hm-voice-who small {
  font-size: 12px;
  color: var(--hm-muted-2);
}

.hm-voice-stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a623;
}

/* ---------------------------------------------------------------
 * 10. Closing CTA
 * ------------------------------------------------------------ */
/* The page's one saturated surface. It replaces the dark stage the first pass
   used: the same stop in the rhythm, without going dark. */
.hm-cta-panel {
  position: relative;
  padding: clamp(44px, 5.4vw, 86px) clamp(24px, 4vw, 72px);
  border-radius: clamp(28px, 3vw, 44px);
  background: var(--hm-grad);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 70px rgba(37, 99, 255, 0.24);
}

/* Two soft lights inside the panel so the gradient is not a flat sweep. */
.hm-cta-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 90% at 15% 10%,
      rgba(255, 255, 255, 0.34),
      transparent 70%
    ),
    radial-gradient(
      50% 80% at 90% 100%,
      rgba(124, 92, 255, 0.4),
      transparent 70%
    );
}

.hm-cta-inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hm-cta-inner .hm-prose {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------
 * 11. FAQ
 * ------------------------------------------------------------ */
.hm-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: start;
}

.hm-faq-left {
  position: sticky;
  top: clamp(96px, 9vw, 124px);
}

.hm-faq-card {
  margin-top: clamp(26px, 3vw, 40px);
  padding: clamp(26px, 2.8vw, 34px);
  border-radius: var(--hm-r-lg);
  background: var(--hm-grad);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 44px rgba(37, 99, 255, 0.26);
}

.hm-faq-card::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -60%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.42),
    transparent 66%
  );
  filter: blur(44px);
}

.hm-page .hm-faq-card h3 {
  position: relative;
  margin: 0;
  font-family: var(--hm-display);
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 600;
  letter-spacing: -0.032em;
}

.hm-faq-card p {
  position: relative;
  margin: 12px 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

/* The card's CTA is the shared .btn-strategy, inverted to white on the
   gradient exactly as it is on the closing panel. */
.hm-faq-card .btn-strategy {
  background: #fff;
  border-color: #fff;
  color: var(--hm-text);
  box-shadow: 0 12px 34px rgba(8, 20, 60, 0.28);
}

.hm-faq-card .btn-strategy:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* --- the accordion --- */
/* animations.js owns the open/close; these rules only unpick style.css's
   defaults so the questions read as this page's cards. */
.hm-page .hm-faq-list {
  display: grid;
  gap: 12px; /* .faq-list's own flex gap is 10px; restated for the grid */
}

.hm-page .hm-faq-list details {
  padding: 4px clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
}

.hm-page .hm-faq-list details.is-open,
.hm-page .hm-faq-list details.is-pinned {
  border-color: rgba(37, 99, 255, 0.3);
  box-shadow: 0 10px 30px rgba(37, 99, 255, 0.12);
}

.hm-page .hm-faq-list summary {
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 1.8vw, 22px) 0;
  font-family: var(--hm-display);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.028em;
  color: var(--hm-text);
  align-items: center;
  transition: color 0.35s var(--hm-ease);
}

.hm-page .hm-faq-list details.is-open summary {
  color: var(--hm-blue);
}

.hm-q-text {
  flex: 1 1 auto;
}

.hm-page .hm-faq-list summary::after {
  margin-top: 0;
  color: var(--hm-muted-2);
}

.hm-page .hm-faq-list details p {
  padding: 0 clamp(20px, 4vw, 70px) clamp(18px, 2vw, 24px) 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hm-muted);
}

/* style.css paints `#faq` with Faq.png — decoration for the old design. The id
   is kept (it is an anchor target), only the artwork goes. */
.hm-page #faq {
  background-image: none;
}

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .hm-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-svc:nth-child(-n + 2) {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .hm-shift-spread,
  .hm-svc-head,
  .hm-voices-main,
  .hm-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-shift-head,
  .hm-faq-left {
    position: static;
  }

  /* stacked, the aside becomes a header for the row rather than a column */
  .hm-voices-aside {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .hm-quote-mark {
    flex: none;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }

  .hm-voices-line {
    display: none;
  }

  .hm-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-band-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-band-panel::after {
    display: none;
  }

  .hm-band-l .hm-h2 {
    max-width: none;
  }

  .hm-seal {
    margin-top: 26px;
  }
}

@media (max-width: 860px) {
  .hm-hero {
    padding-top: 122px;
  }

  /* the ornaments crowd the shot at this width */
  .hm-float {
    display: none;
  }

  .hm-hero-frame {
    translate: none;
  }

  .hm-ticks {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .hm-switch-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hm-knob {
    order: -1;
    width: 72px;
  }

  .hm-switch-label {
    flex: 1 1 42%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .hm-figures,
  .hm-svc-grid,
  .hm-voices-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-svc:nth-child(-n + 2) {
    grid-column: auto;
  }

  .hm-scoreboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-head-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-head-rule {
    display: none;
  }

  .hm-panel {
    padding: 22px 18px;
  }

  .hm-voice figcaption {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ---------------------------------------------------------------
 * Reduced motion — everything visible, nothing moving
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hm-page *,
  .hm-page *::before,
  .hm-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .hm-js [data-reveal] [style*="--i"],
  .hm-js .hm-rise,
  .hm-js .hm-float {
    opacity: 1;
    translate: none;
  }

  .hm-js [data-reveal] .hm-head-rule {
    transform: scaleX(1);
  }

  .hm-hero-frame {
    translate: none;
  }
}
