/* ==========================================================================
   Rank Kiwi homepage (v4.0.0). Loaded after premium.css on / only.
   Everything is scoped to main.hm. Calm type scale sized for laptops: every
   section fits a 1280x720 viewport. Motion patterns are documented in
   .claude/queueform-analysis.md; content is always visible without JS.
   ========================================================================== */

.hm {
  --hm-ink: #0b1a0e;
  --hm-soft: #3d4f40;
  --hm-mute: #5b6b5d;
  --hm-line: #e3e8e0;
  --hm-bg-soft: #f6faf1;
  --hm-panel: #f3f6f0;
  --hm-green: #01370b;
  --hm-green-2: #2b7a1e;
  --hm-lime: #cbf990;
  --hm-lime-2: #e4f9c5;
  --hm-dark: #0d1710;
  --hm-radius: 24px;
  --hm-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 8px 24px -14px rgba(11, 26, 14, 0.16);
  --hm-shadow-lift: 0 2px 4px rgba(11, 26, 14, 0.05), 0 24px 48px -24px rgba(1, 55, 11, 0.35);
  --hm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hm-ease2: cubic-bezier(0.22, 1, 0.36, 1);
  /* Was an overshooting spring; everyday UI should not bounce, so this is a soft ease-out now. */
  --hm-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --hm-h1: clamp(32px, 3.6vw, 52px);
  --hm-h2: clamp(26px, 2.5vw, 36px);
  font-size: 16px;
}
.hm .wrap { width: min(1200px, calc(100% - 48px)); }

/* ---------- Shared type ---------- */
.hm-section { position: relative; padding: clamp(56px, 6.5vw, 96px) 0; }
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--hm-green-2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.hm-eyebrow-light { color: var(--hm-lime); }
.hm .hm-h2 {
  margin: 0 0 12px;
  font-size: var(--hm-h2);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--hm-ink);
  text-wrap: balance;
}
.hm .hm-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--hm-soft); text-wrap: pretty; }
.hm-intro { max-width: 680px; margin: 0 auto clamp(24px, 2.8vw, 36px); text-align: center; }
.hm-intro .hm-lead { margin-bottom: 0; }
.hm-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hm-green);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.hm-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.hm .hm-btn-primary, .hm .hm-btn-secondary, .hm .hm-btn-lime, .hm .hm-btn-ghost {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background-image: none;
}
.hm .hm-btn-secondary { background: #fff; color: var(--hm-green); border: 1px solid #cfdcc6; box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05); }
.hm .hm-btn-secondary:hover { background: #f6faf2; border-color: #9fcf78; color: var(--hm-green); }
.hm .hm-btn-lime { background: var(--hm-lime); border-color: var(--hm-lime); color: var(--hm-green); }
.hm .hm-btn-lime:hover { background: #d8fba8; border-color: #d8fba8; color: var(--hm-green); }
.hm .hm-btn-lime .btn-microcopy { color: rgba(1, 55, 11, 0.7); }
.hm .hm-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(203, 249, 144, 0.4); }
.hm .hm-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hm-btn-icon { flex: none; margin-right: 8px; }

/* ==========================================================================
   1. Hero: copy left, tour right (laptop), stacked below 1024
   ========================================================================== */
.hm .hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(16px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px);
  text-align: center;
}
.hm-hero-copy { width: 100%; max-width: 620px; min-width: 0; margin: 0 auto; }
.hm-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 30px;
  margin: 0 0 16px;
  padding: 0 11px 0 4px;
  border: 1px solid #d9eccb;
  border-radius: 999px;
  background: #fff;
  color: var(--hm-soft);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hm-pill::before { content: ""; position: absolute; inset: -8px -4px; }
.hm-pill:hover { border-color: #a9dc80; background: #fbfef7; }
.hm-pill-tag { padding: 2px 8px; border-radius: 999px; background: var(--hm-green); color: var(--hm-lime); font-size: 11px; font-weight: 700; }
.hm-pill-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-pill svg { flex: none; color: var(--hm-green); transition: transform 0.2s var(--hm-ease); }
.hm-pill:hover svg { transform: translateX(2px); }
.hm-kicker { margin: 0 0 10px; color: var(--hm-green-2); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.hm .hm-hero h1 {
  max-width: 14ch;
  margin: 0 auto 14px;
  font-size: var(--hm-h1);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 700;
  color: var(--hm-ink);
  text-wrap: balance;
}
.hm-h1-mark {
  background: linear-gradient(180deg, transparent 64%, rgba(203, 249, 144, 0.9) 64%, rgba(203, 249, 144, 0.9) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hm .hm-hero-text { max-width: 30em; margin: 0 auto 22px; font-size: 16px; line-height: 1.55; color: var(--hm-soft); }
.hm .hm-hero-text strong { color: var(--hm-ink); font-weight: 600; }
.hm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.hm-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--hm-mute); font-size: 14px; font-weight: 500; }
.hm-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hm-trust li::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--hm-lime-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2301370b'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Stage: browser frame, sized by the viewport height so it always fits */
.hm .hm-hero-media { display: block; margin: 0; min-width: 0; }
.hm .hm-stage {
  position: relative;
  width: 100%;
  max-width: min(820px, calc((100svh - 210px) * 1.53));
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(1, 55, 11, 0.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 5px rgba(203, 249, 144, 0.22), 0 30px 70px -36px rgba(1, 55, 11, 0.5);
}
.hm .hm-browserbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 4px 10px;
  border-bottom: 1px solid #e8eee4;
  background: linear-gradient(180deg, #fbfdf9, #f3f7f0);
}
.hm-dots { display: inline-flex; gap: 5px; flex: none; }
.hm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe6da; }
.hm-dots i:first-child { background: #f3b4a8; }
.hm-dots i:nth-child(2) { background: #f1d891; }
.hm-dots i:nth-child(3) { background: #b9e39a; }
.hm .hm-browserbar .hero-platform-tabs { flex: none; margin: 0; padding: 2px; gap: 2px; border-radius: 8px; background: #e9efe4; border: 1px solid #dde6d6; }
.hm .hm-browserbar .hero-tab-btn { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; gap: 6px; }
.hm-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 220px;
  min-width: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3e9de;
  color: var(--hm-mute);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.hm-url svg { flex: none; color: var(--hm-green-2); }
.hm .hm-browserbar .stage-platform-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--hm-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hm .hm-browserbar .stage-actions { flex: none; display: flex; gap: 6px; }
.hm .video-ctrl-btn { min-height: 32px; border-width: 1px; border-radius: 8px; }
.hm .hero-videos-stack { border: 0; box-shadow: none; aspect-ratio: 1200 / 784; }
.hm-stage-hint { margin: 10px auto 0; max-width: 560px; color: var(--hm-mute); font-size: 14px; text-align: center; }
.hm-stage-hint a { color: var(--hm-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Tour, compact: callout lives in the bar under the screen, never on it */
.hm .rk-tour-screen { border-radius: 0; }
.hm .rk-tour-hotspot { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 14px; line-height: 32px; }
.hm .rk-tour-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 10px 8px 14px;
  border-top: 1px solid #eef2eb;
  text-align: left;
}
.hm .rk-tour-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.hm .rk-tour-progress span { display: block; height: 100%; width: 0; background: var(--hm-green-2); transition: width 0.45s var(--hm-ease); }
.hm .rk-tour-nav .rk-tour-callout,
.hm .rk-tour-nav .rk-tour-callout.is-left,
.hm .rk-tour-nav .rk-tour-callout.is-right,
.hm .rk-tour-nav .rk-tour-callout.is-center {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 0;
  transform: none;
  background: none;
  box-shadow: none;
  text-align: left;
}
.hm .rk-tour-kicker { margin: 0 0 1px; font-size: 10.5px; }
.hm .rk-tour-title { display: inline; margin: 0 6px 0 0; font-size: 14px; }
.hm .rk-tour-text { display: inline; font-size: 14px; }
.hm .rk-tour-bar { height: 3px; margin-top: 6px; max-width: 220px; }
.hm .rk-tour-steps { display: none; }
.hm .rk-tour-ghost, .hm .rk-tour-next { height: 40px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.hm .rk-tour-finish h3 { font-size: clamp(18px, 2vw, 24px); }

/* Which hero demo shows: phones get the video, ≥768 the click-through tour */
.hm .rk-tour { display: none; }
.hm .hm-only-tour { display: none; }
@media (min-width: 768px) {
  .hm .rk-tour { display: block; }
  .hm .hero-videos-stack { display: none; }
  .hm .hm-browserbar .stage-actions { display: none; }
  .hm .hm-only-tour { display: block; }
  .hm .hm-only-phone { display: none; }
}
.hm .rk-tour-on .stage-platform-badge { display: none; }
.hm .rk-tour-on .rk-tour { display: block; }
.hm .rk-tour-on .hero-videos-stack { display: none; }
@media (max-width: 1023px) and (min-width: 768px) {
  .hm .hm-url { display: none; }
  .hm .hm-stage { max-width: min(660px, calc((100svh - 440px) * 1.53)); }
}

/* Laptop: two columns */
@media (min-width: 1024px) {
  .hm .hm-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(32px, 3.6vw, 56px);
    text-align: left;
  }
  .hm-hero-copy { margin: 0; }
  .hm .hm-hero h1 { margin-left: 0; max-width: 11ch; }
  .hm .hm-hero-text { margin-left: 0; }
  .hm-hero-actions, .hm-trust { justify-content: flex-start; }
  .hm .hm-stage { margin: 0 0 0 auto; }
  .hm-stage-hint { text-align: right; margin-right: 0; }
}

@media (max-width: 767px) {
  .hm .hm-hero { padding-top: 10px; gap: 24px; }
  .hm .hm-hero h1 { font-size: clamp(32px, 9vw, 34px); }
  .hm .hm-hero-text { font-size: 16px; }
  .hm-hero-actions { flex-direction: column; align-items: stretch; }
  .hm-hero-actions .button { width: 100%; }
  .hm .hm-dots, .hm .hm-url, .hm .hm-browserbar .stage-platform-badge { display: none; }
  .hm .hm-browserbar { gap: 8px; padding: 6px; }
  .hm .hm-browserbar .hero-platform-tabs { flex: 1 1 auto; min-width: 0; }
  .hm .hm-browserbar .hero-tab-btn { flex: 1; justify-content: center; min-height: 44px; }
  .hm .hm-browserbar .stage-actions { margin-left: auto; }
  .hm .video-ctrl-btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .hm .video-ctrl-btn .ctrl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hm .hm-stage { max-width: none; border-radius: 12px; }
  .hm .hm-stage-hint { font-size: 16px; }
}

/* ==========================================================================
   1b. Country strip: flags only, infinite marquee with edge fades
   ========================================================================== */
.hm-proofbar { padding: 10px 0 4px; }
.hm-proof-title {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 auto 2px; padding: 0 16px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
  color: #50624f; text-align: center;
}
.hm-proof-title b { color: #01370b; font-weight: 700; }
.hm-live { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3bb54a; }
.hm-live::after { content: none; } /* the country count is a snapshot, so no "live" pulse */
@keyframes hm-live { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-live::after { animation: none; } }
.hm-flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 24px; line-height: 1; }
.hm-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hm-marquee-track { display: flex; width: max-content; animation: hm-marquee 60s linear infinite; }
.hm-marquee:hover .hm-marquee-track,
.hm-marquee.is-held .hm-marquee-track { animation-play-state: paused; }
.hm-marquee-list { display: flex; flex: none; gap: 10px; margin: 0; padding: 12px 5px; list-style: none; }
.hm-marquee-list li {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.04);
  transition: scale 0.5s var(--hm-spring), border-color 0.3s, box-shadow 0.3s;
}
.hm-marquee-list li:hover { scale: 1.14; border-color: #b9e48f; box-shadow: 0 10px 20px -10px rgba(1, 55, 11, 0.4); }
@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .hm-marquee-list { gap: 8px; padding: 10px 4px; }
  .hm-marquee-list li { width: 42px; height: 42px; border-radius: 12px; }
  .hm-flag { font-size: 21px; }
  .hm-marquee-track { animation-duration: 48s; }
}

/* ==========================================================================
   2. How it works: four steps, each zoomed onto the exact UI being tapped
   ========================================================================== */
.hm-story { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.hm-story-tabs { position: relative; display: flex; flex-direction: column; gap: 6px; }
.hm-story-glide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--gh, 60px);
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--hm-shadow);
  transform: translateY(var(--gy, 0px));
  transition: transform 0.55s var(--hm-ease), height 0.55s var(--hm-ease);
  pointer-events: none;
}
.hm-story-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--hm-mute);
  font: 600 18px/1.25 var(--font-body);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s;
}
.hm-story-tab:hover { color: var(--hm-ink); }
.hm-story-tab:focus-visible { outline: 3px solid var(--hm-green); outline-offset: 2px; }
.hm-story-tab b {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hm-panel);
  color: var(--hm-mute);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.35s, color 0.35s, scale 0.5s var(--hm-spring);
}
.hm-story-tab[aria-selected="true"] { color: var(--hm-ink); }
.hm-story-tab[aria-selected="true"] b { background: var(--hm-green); color: var(--hm-lime); scale: 1.08; }
.hm-story-prog { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.hm-story-prog::after { content: ""; position: absolute; inset: 0; background: var(--hm-green-2); transform: scaleX(0); transform-origin: left; }
.hm-story.is-playing .hm-story-tab[aria-selected="true"] .hm-story-prog { background: #e8efe2; }
.hm-story.is-playing .hm-story-tab[aria-selected="true"] .hm-story-prog::after { animation: hm-prog var(--dur, 4.5s) linear forwards; }
.hm-story.is-paused .hm-story-tab[aria-selected="true"] .hm-story-prog::after { animation-play-state: paused; }
@keyframes hm-prog { to { transform: scaleX(1); } }

.hm-story-steps {
  position: relative;
  display: grid;
  margin: 0;
  padding: clamp(12px, 1.6vw, 18px);
  border-radius: 24px;
  list-style: none;
  background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(203, 249, 144, 0.22), transparent 70%), var(--hm-green);
  perspective: 1400px;
}
.hm-story-step { grid-area: 1 / 1; min-width: 0; }
.hm-zoom {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #0c1014;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
}
.hm-zoom img { position: absolute; max-width: none; height: auto; }
.hm-story-cap { display: none; }

/* Desktop: only the active step shows; directional 3D window swap */
.hm-story.is-ready .hm-story-step { visibility: hidden; opacity: 0; }
.hm-story.is-ready .hm-story-step.is-on { visibility: visible; opacity: 1; }
.hm-story.is-ready .hm-story-step.is-in { animation: hm-window-in 0.95s var(--hm-ease) both; }
.hm-story.is-ready .hm-story-step.is-out { visibility: visible; animation: hm-window-out 0.5s cubic-bezier(0.4, 0, 0.6, 1) both; }
@keyframes hm-window-in {
  0% { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 7%), 2.5%, 0) rotateY(calc(var(--dir, 1) * -9deg)) scale(0.94); filter: blur(8px); }
  25% { opacity: 1; }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes hm-window-out {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -6%), 2%, 0) rotateY(calc(var(--dir, 1) * 8deg)) scale(0.94); }
}

/* Tap: cursor glides in, presses, ripples */
.hm-tap { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; pointer-events: none; }
.hm-cursor { position: absolute; left: -3px; top: -3px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.hm-cursor svg { display: block; transform-origin: 4px 4px; }
.hm-cursor i { position: absolute; left: -18px; top: -18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(203, 249, 144, 0.85); opacity: 0; scale: 0.2; }
.hm-story-step.is-on .hm-cursor { animation: hm-cursor-in 2.6s var(--hm-ease) 0.35s infinite both; }
.hm-story-step.is-on .hm-cursor svg { animation: hm-press 2.6s ease 0.35s infinite both; }
.hm-story-step.is-on .hm-cursor i { animation: hm-ripple 2.6s ease-out 0.35s infinite both; }
@keyframes hm-cursor-in { 0% { translate: 60px 46px; opacity: 0; } 12% { opacity: 1; } 38%, 100% { translate: 0 0; opacity: 1; } }
@keyframes hm-press { 0%, 40% { scale: 1; } 46% { scale: 0.78; } 54%, 100% { scale: 1; } }
@keyframes hm-ripple { 0%, 44% { opacity: 0; scale: 0.2; } 46% { opacity: 0.9; scale: 0.2; } 75%, 100% { opacity: 0; scale: 1.3; } }
/* Step 2: two taps, 50 then Analyze */
.hm-story-step.is-on .hm-tap-2 { animation: hm-two-taps 3.6s var(--hm-ease) 0.35s infinite both; }
.hm-story-step.is-on .hm-tap-2 .hm-cursor { animation: hm-fade-in 0.4s ease 0.35s both; }
.hm-story-step.is-on .hm-tap-2 .hm-cursor svg { animation: hm-press2 3.6s ease 0.35s infinite both; }
.hm-story-step.is-on .hm-tap-2 .hm-cursor i { animation: hm-ripple2 3.6s ease-out 0.35s infinite both; }
@keyframes hm-two-taps { 0%, 35% { left: var(--x); top: var(--y); } 55%, 100% { left: var(--x2); top: var(--y2); } }
@keyframes hm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-press2 { 0%, 18% { scale: 1; } 22% { scale: 0.78; } 28%, 66% { scale: 1; } 70% { scale: 0.78; } 76%, 100% { scale: 1; } }
@keyframes hm-ripple2 { 0%, 20% { opacity: 0; scale: 0.2; } 22% { opacity: 0.9; scale: 0.2; } 40% { opacity: 0; scale: 1.3; } 68% { opacity: 0; scale: 0.2; } 70% { opacity: 0.9; scale: 0.2; } 88%, 100% { opacity: 0; scale: 1.3; } }
.hm-timer {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--hm-lime);
  color: var(--hm-green);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.55);
}
.hm-ring { position: absolute; left: var(--x); top: var(--y); width: 30%; aspect-ratio: 1; translate: -50% -50%; border: 3px solid var(--hm-lime); border-radius: 16px; box-shadow: 0 0 0 4px rgba(1, 55, 11, 0.5), 0 0 40px rgba(203, 249, 144, 0.5); }
.hm-story-step.is-on .hm-ring { animation: hm-ring-pulse 2s ease-in-out infinite; }
@keyframes hm-ring-pulse { 50% { box-shadow: 0 0 0 4px rgba(1, 55, 11, 0.5), 0 0 0 12px rgba(203, 249, 144, 0.25); } }
.hm-end-chip {
  position: absolute;
  left: 34%;
  top: 14%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--hm-lime);
  color: var(--hm-green);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
}
.hm-end-actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hm-end-actions i { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--hm-green); font-size: 14px; font-style: normal; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.hm-story-step.is-on .hm-end-chip { animation: hm-spring-in 0.8s var(--hm-spring) 0.35s both; }
.hm-story-step.is-on .hm-end-actions i { animation: hm-spring-in 0.7s var(--hm-spring) both; }
.hm-story-step.is-on .hm-end-actions i:nth-child(1) { animation-delay: 0.6s; }
.hm-story-step.is-on .hm-end-actions i:nth-child(2) { animation-delay: 0.7s; }
.hm-story-step.is-on .hm-end-actions i:nth-child(3) { animation-delay: 0.8s; }
@keyframes hm-spring-in { from { opacity: 0; translate: 0 14px; scale: 0.9; } }
.hm-story-dots { display: none; }
.hm-story-foot { margin: 16px 0 0; text-align: center; color: var(--hm-mute); font-size: 14px; }

/* No JS on desktop: a calm 2x2 grid of all four steps */
.hm-story:not(.is-ready) .hm-story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm-story:not(.is-ready) .hm-story-step { grid-area: auto; }
.hm-story:not(.is-ready) .hm-story-cap { display: block; margin: 8px 4px 0; color: #e7f3e3; font-size: 16px; }

/* Phones and small tablets: a swipe story, one card per step */
@media (max-width: 899px) {
  .hm-story { grid-template-columns: 1fr; gap: 0; }
  .hm-story-tabs { display: none; }
  .hm-story-steps,
  .hm-story:not(.is-ready) .hm-story-steps {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 6px;
    border-radius: 0;
    background: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .hm-story-steps::-webkit-scrollbar { display: none; }
  .hm-story-step,
  .hm-story.is-ready .hm-story-step {
    flex: 0 0 86%;
    max-width: 440px;
    visibility: visible;
    opacity: 1;
    padding: 10px 10px 14px;
    border-radius: 24px;
    background: var(--hm-green);
    scroll-snap-align: start;
    animation: none !important;
  }
  .hm-story-cap,
  .hm-story:not(.is-ready) .hm-story-cap { display: flex; align-items: center; gap: 10px; margin: 12px 4px 0; color: #e7f3e3; font-size: 16px; line-height: 1.35; }
  .hm-story-cap b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-lime); color: var(--hm-green); font-size: 14px; }
  .hm-story-cap strong { color: #fff; }
  .hm-zoom { border-radius: 12px; }
  .hm-story-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .hm-story-dots i { width: 6px; height: 6px; border-radius: 6px; background: #cfdcc6; transition: width 0.35s var(--hm-ease), background 0.3s; }
  .hm-story-dots i.is-on { width: 22px; background: var(--hm-green); }
  .hm-end-chip { font-size: 14px; padding: 6px 10px; }
  .hm-end-actions i { font-size: 12px; padding: 5px 10px; }
  .hm-timer { font-size: 14px; padding: 6px 10px; }
}

/* ==========================================================================
   3. Raw views lie: one list, flip the sort (FLIP reorder)
   ========================================================================== */
.hm-problem { background: linear-gradient(180deg, var(--hm-bg-soft), #fff 80%); }
.hm-problem-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hm-problem-copy .hm-lead { margin-bottom: 16px; }
.hm-mini-chart { max-width: 360px; margin: 0 0 8px; padding: 14px 16px 12px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff; box-shadow: var(--hm-shadow); }
.hm-mc-label { display: block; margin-bottom: 8px; color: var(--hm-mute); font-size: 12px; font-weight: 600; }
.hm-mc-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 92px; border-bottom: 1px solid #d7e0d2; }
.hm-mc-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: #c9d4c6; transform-origin: bottom; }
.hm-mc-bars i.is-top { background: var(--hm-green); }
.hm-mc-median { position: absolute; left: 0; right: 0; bottom: 13%; border-top: 1.5px dashed #7f9a7c; color: var(--hm-mute); font-size: 10.5px; font-weight: 600; text-align: right; line-height: 1.7; }
.hm .hm-mc-eq { margin: 10px 0 0; color: var(--hm-soft); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-mc-eq b { padding: 2px 8px; border-radius: 8px; background: var(--hm-lime); color: var(--hm-green); }
.is-in .hm-mc-bars i.is-top { animation: hm-shoot 1.4s var(--hm-spring) 0.3s both; }
@keyframes hm-shoot { from { transform: scaleY(0.1); } }

.hm-sortcard { padding: 14px; border: 1px solid var(--hm-line); border-radius: 24px; background: #fff; box-shadow: var(--hm-shadow-lift); }
.hm-sort-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--hm-panel); }
.hm-sort-glide { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(1, 55, 11, 0.12); transition: translate 0.55s var(--hm-ease), background 0.35s; }
.hm-sortcard[data-mode="score"] .hm-sort-glide { translate: 100% 0; background: var(--hm-green); }
.hm-sort-btn { position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--hm-soft); font: 600 16px/1 var(--font-body); cursor: pointer; transition: color 0.35s; }
.hm-sort-btn[aria-pressed="true"] { color: var(--hm-green); }
.hm-sortcard[data-mode="score"] .hm-sort-btn[aria-pressed="true"] { color: var(--hm-lime); }
.hm-sort-btn:focus-visible { outline: 3px solid var(--hm-green); outline-offset: 2px; }
.hm .hm-sort-say { position: relative; height: 26px; margin: 12px 4px 8px; overflow: hidden; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hm-sort-say span { position: absolute; inset: 0; transition: translate 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s; }
.hm-sort-say [data-say="views"] { color: var(--hm-soft); }
.hm-sort-say [data-say="score"] { color: var(--hm-green-2); translate: 0 110%; opacity: 0; }
.hm-sortcard[data-mode="score"] .hm-sort-say [data-say="views"] { translate: 0 -110%; opacity: 0; }
.hm-sortcard[data-mode="score"] .hm-sort-say [data-say="score"] { translate: 0 0; opacity: 1; }
.hm-sortlist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-sr {
  position: relative;
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 12px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fafcf8;
  transition: background 0.4s, border-color 0.4s, opacity 0.4s;
}
.hm-sr-rank { color: #9aa89b; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-sr img { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: #0c1014; }
.hm-sr-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-sr-title { overflow: hidden; color: var(--hm-ink); font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.hm-sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--hm-mute); font-size: 14px; font-weight: 500; }
.hm-size { padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 700; }
.hm-size-big { background: #ece7dc; color: #6b5a3a; }
.hm-size-small { background: var(--hm-lime-2); color: var(--hm-green); }
.hm-sr-val { display: grid; justify-items: end; min-width: 64px; }
.hm-sr-val b { grid-area: 1 / 1; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--hm-ink); font-variant-numeric: tabular-nums; transition: opacity 0.3s, translate 0.45s var(--hm-ease); }
.hm-sr-s { opacity: 0; translate: 0 8px; }
.hm-sortlist[data-mode="score"] .hm-sr-v { opacity: 0; translate: 0 -8px; }
.hm-sortlist[data-mode="score"] .hm-sr-s { opacity: 1; translate: 0 0; }
.hm-sr-bar { position: absolute; left: 106px; right: 12px; bottom: 6px; height: 3px; border-radius: 4px; background: #edf2e9; }
.hm-sr-bar i { position: absolute; inset: 0 auto 0 0; width: var(--vw); border-radius: inherit; background: #a9b7a7; transition: width 0.7s var(--hm-ease), background 0.4s; }
.hm-sortlist[data-mode="score"] .hm-sr-bar i { width: var(--sw); }
.hm-sortlist[data-mode="score"] .hm-sr.is-small { background: linear-gradient(90deg, rgba(203, 249, 144, 0.5), rgba(203, 249, 144, 0.12)); border-color: #cdeca6; }
.hm-sortlist[data-mode="score"] .hm-sr.is-small .hm-sr-bar i { background: var(--hm-green); }
.hm-sortlist[data-mode="score"] .hm-sr.is-small .hm-sr-s { color: var(--hm-green); }
.hm-sortlist[data-mode="score"] .hm-sr:not(.is-small) { opacity: 0.7; }
.hm-sortlist[data-mode="views"] .hm-sr:not(.is-small) .hm-sr-bar i { background: #6f8a70; }
.hm .hm-sort-foot { margin: 10px 4px 2px; color: var(--hm-mute); font-size: 14px; }
@media (max-width: 899px) {
  .hm-problem-grid { grid-template-columns: 1fr; }
  .hm-problem-copy { text-align: center; }
  .hm-mini-chart { margin: 0 auto 8px; text-align: left; }
  .hm-problem-copy .hm-textlink { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .hm-sortcard { padding: 10px; border-radius: 24px; margin: 0 -4px; }
  .hm-sr { grid-template-columns: 18px 52px minmax(0, 1fr) auto; gap: 9px; padding: 7px 10px 11px 6px; }
  .hm-sr img { width: 52px; height: 34px; }
  .hm-sr-title { font-size: 14px; }
  .hm-sr-val { min-width: 52px; }
  .hm-sr-val b { font-size: 16px; }
  .hm-sr-bar { left: 84px; }
  .hm-mini-chart { padding: 12px 14px 10px; }
  .hm-mc-bars { height: 70px; }
}

/* ==========================================================================
   4. Features: cards with animated mini-visuals
   ========================================================================== */
.hm-fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hm-fgrid-dots { display: none; }
.hm-fgrid-dots i { width: 6px; height: 6px; border-radius: 6px; background: #cfdcc6; transition: width 0.35s var(--hm-ease), background 0.3s; }
.hm-fgrid-dots i.is-on { width: 22px; background: var(--hm-green); }
.hm-f {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 18px;
  border: 1px solid var(--hm-line);
  border-radius: 24px;
  background: #fff;
  color: var(--hm-ink);
  text-decoration: none;
  box-shadow: var(--hm-shadow);
  transition: transform 0.35s var(--hm-ease), box-shadow 0.35s var(--hm-ease), border-color 0.25s;
}
.hm-f-wide { grid-column: span 3; }
.hm-f:hover { transform: translateY(-3px); box-shadow: var(--hm-shadow-lift); border-color: #cfe6b9; }
.hm-f:focus-visible { outline: 3px solid var(--hm-green); outline-offset: 3px; }
.hm-f-vis {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, rgba(1, 55, 11, 0.07) 1px, transparent 0) 0 0 / 16px 16px,
    var(--hm-panel);
  overflow: hidden;
}
.hm .hm-f h3 { margin: 0 8px 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--hm-ink); }
.hm .hm-f p { margin: 0 8px; font-size: 16px; line-height: 1.45; color: var(--hm-mute); }

/* a. Outlier bars: the breakout bar grows past the median line */
.hm-mv-bars { position: relative; display: flex; align-items: flex-end; gap: 9px; width: 78%; height: 120px; padding-bottom: 1px; border-bottom: 1px solid #cfd9c9; }
.hm-mv-bars i { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #c7d3c4; transform-origin: bottom; }
.hm-mv-bars i.is-top { background: var(--hm-green); animation: hm-bar 3.6s var(--hm-ease) infinite; }
.hm-mv-bars i em { position: absolute; left: 50%; top: -30px; translate: -50% 0; padding: 3px 8px; border-radius: 8px; background: var(--hm-lime); color: var(--hm-green); font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.hm-mv-median { position: absolute; left: 0; right: 0; bottom: 24%; border-top: 1.5px dashed #8fa18c; color: var(--hm-mute); font-size: 10.5px; font-weight: 600; text-align: right; line-height: 1.6; }
@keyframes hm-bar { 0% { transform: scaleY(0.25); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0.25); } }

/* b. Download: button pulses, file bar fills */
.hm-mv-dl { position: relative; width: 116px; }
.hm-mv-dl img { display: block; width: 116px; height: 140px; object-fit: cover; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.hm-mv-dl-btn { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--hm-green); box-shadow: 0 0 0 0 rgba(203, 249, 144, 0.9); animation: hm-ping 3.2s ease-out infinite; }
.hm-mv-dl-file { position: absolute; left: 62px; bottom: 6px; display: flex; align-items: center; gap: 8px; width: 128px; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 12px 26px -12px rgba(11, 26, 14, 0.45); font-size: 11.5px; }
.hm-mv-dl-file b { padding: 1px 5px; border-radius: 4px; background: var(--hm-green); color: var(--hm-lime); font-size: 10px; }
.hm-mv-dl-bar { flex: 1; height: 5px; border-radius: 6px; background: #e8efe2; overflow: hidden; }
.hm-mv-dl-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #7fd03f; transform-origin: left; animation: hm-fill 3.2s var(--hm-ease) infinite; }
@keyframes hm-ping { 0% { box-shadow: 0 0 0 0 rgba(203, 249, 144, 0.9); } 40%, 100% { box-shadow: 0 0 0 12px rgba(203, 249, 144, 0); } }
@keyframes hm-fill { 0%, 15% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

/* c. Transcript lines reveal one by one */
.hm-mv-tx { width: 86%; padding: 12px 14px; border-radius: 12px; background: var(--hm-dark); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6); }
.hm .hm-mv-tx p { display: flex; gap: 10px; margin: 0 0 7px; color: #d6e3d3; font-size: 12px; line-height: 1.4; }
.hm .hm-mv-tx p:last-child { margin-bottom: 0; }
.hm-mv-tx b { flex: none; color: var(--hm-lime); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-mv-tx span { animation: hm-type 6s steps(1) infinite; }
.hm-mv-tx p:nth-child(2) span { animation-name: hm-type2; }
.hm-mv-tx p:nth-child(3) span { animation-name: hm-type3; }
@keyframes hm-type { 0% { opacity: 0.25; } 8%, 100% { opacity: 1; } }
@keyframes hm-type2 { 0%, 25% { opacity: 0.25; } 33%, 100% { opacity: 1; } }
@keyframes hm-type3 { 0%, 50% { opacity: 0.25; } 58%, 100% { opacity: 1; } }

/* d. Histogram with a sliding range */
.hm-mv-hist { position: relative; width: 76%; }
.hm-mv-hist-bars { display: flex; align-items: flex-end; gap: 4px; height: 74px; }
.hm-mv-hist-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #8bd04e; }
.hm-mv-range { position: relative; height: 4px; margin: 12px 0 16px; border-radius: 4px; background: #d8e2d2; }
.hm-mv-range-fill { position: absolute; top: 0; bottom: 0; left: 8%; right: 30%; border-radius: inherit; background: var(--hm-green); animation: hm-range 5s var(--hm-ease) infinite alternate; }
.hm-mv-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--hm-lime); border: 3px solid var(--hm-green); }
.hm-mv-knob-a { left: 8%; animation: hm-knob-a 5s var(--hm-ease) infinite alternate; }
.hm-mv-knob-b { left: 70%; animation: hm-knob-b 5s var(--hm-ease) infinite alternate; }
.hm-mv-show { position: absolute; right: 0; bottom: -2px; translate: 0 100%; padding: 5px 10px; border-radius: 8px; background: var(--hm-lime); color: var(--hm-green); font-size: 11.5px; font-weight: 700; }
@keyframes hm-range { from { left: 8%; right: 30%; } to { left: 24%; right: 6%; } }
@keyframes hm-knob-a { from { left: 8%; } to { left: 24%; } }
@keyframes hm-knob-b { from { left: 70%; } to { left: 94%; } }

/* e. Sheet rows slide in, files stack */
.hm-mv-sheet { width: 62%; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 16px 30px -16px rgba(11, 26, 14, 0.4); }
.hm-mv-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--hm-ink); animation: hm-row 4.8s var(--hm-ease) infinite; }
.hm-mv-row:nth-child(3) { animation-delay: 0.15s; }
.hm-mv-row:nth-child(4) { animation-delay: 0.3s; }
.hm-mv-head { color: var(--hm-mute); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; animation: none; border-bottom: 1px solid #edf2e9; border-radius: 0; }
.hm-mv-row img { width: 34px; height: 24px; border-radius: 4px; object-fit: cover; }
.hm-mv-score { justify-self: start; padding: 1px 6px; border-radius: 6px; background: var(--hm-lime); color: var(--hm-green); }
.hm-mv-files { position: absolute; right: 7%; bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.hm-mv-files span { padding: 4px 9px; border-radius: 8px; background: var(--hm-green); color: var(--hm-lime); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 8px 16px -8px rgba(1, 55, 11, 0.6); animation: hm-float 4s ease-in-out infinite; }
.hm-mv-files span:nth-child(2) { animation-delay: 0.4s; }
.hm-mv-files span:nth-child(3) { animation-delay: 0.8s; }
@keyframes hm-row { 0% { opacity: 0; transform: translateX(-10px); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

@media (max-width: 1023px) {
  .hm-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-f, .hm-f-wide { grid-column: span 1; }
  .hm-f-export { grid-column: span 2; }
}
@media (max-width: 767px) {
  /* Phones: swipe through the features, one card at a time */
  .hm-fgrid { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hm-fgrid::-webkit-scrollbar { display: none; }
  .hm-f, .hm-f-wide, .hm-f-export { flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; }
  .hm-f-vis { height: 150px; }
  .hm-fgrid-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
}

/* ---------- Filters demo (behaviour in script.js) ---------- */
.hm .hm-filters { padding: clamp(48px, 6vw, 88px) 0; background: var(--hm-bg-soft); border-top: 1px solid #edf3e7; border-bottom: 1px solid #edf3e7; }
.hm-filters-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-filters-demo { position: relative; isolation: isolate; }
.hm-filters-demo::before { content: ""; position: absolute; inset: -10% -6%; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(203, 249, 144, 0.5), transparent 70%); pointer-events: none; }
.hm .hm-filters-demo .filter-modal-interactive { max-width: 440px; margin: 0 auto; }
.hm .filter-metric-btn, .hm .filter-clear-btn, .hm .filter-submit-btn, .hm .filter-reopen-btn { min-height: 36px; }
.hm .filter-panel-close { min-width: 36px; min-height: 36px; }
.hm .filter-slider-thumb::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
@media (max-width: 899px) { .hm-filters-grid { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 767px) {
  .hm .filter-metric-btn, .hm .filter-clear-btn, .hm .filter-submit-btn, .hm .filter-reopen-btn, .hm .filter-num-input { min-height: 44px; }
  .hm .filter-panel-close { min-width: 44px; min-height: 44px; }
}

/* ==========================================================================
   6. Why creators switch: comparison table
   ========================================================================== */
.hm-cmp-wrap { max-width: 900px; margin: 0 auto; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff; box-shadow: var(--hm-shadow); overflow: hidden; }
.hm-cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.hm-cmp th, .hm-cmp td { padding: 12px 16px; border-bottom: 1px solid #eef2eb; text-align: center; vertical-align: middle; }
.hm-cmp tbody tr:last-child th, .hm-cmp tbody tr:last-child td { border-bottom: 0; }
.hm-cmp thead th { padding-top: 14px; padding-bottom: 14px; color: var(--hm-mute); font-size: 14px; font-weight: 600; }
.hm-cmp thead th.is-rk { color: var(--hm-green); font-size: 16px; font-weight: 700; }
.hm-cmp thead th.is-rk img { display: inline-block; vertical-align: -4px; margin-right: 4px; border-radius: 6px; }
.hm-cmp tbody th { text-align: left; color: var(--hm-ink); font-weight: 600; }
.hm-cmp .is-rk { background: rgba(203, 249, 144, 0.18); }
.hm-yes, .hm-no, .hm-mid { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.hm-yes { color: var(--hm-green); }
.hm-yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--hm-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2301370b'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hm-no { color: #8a5a4f; }
.hm-no::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #f6e3de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238a5a4f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E") center / 9px no-repeat; }
.hm-mid { color: var(--hm-mute); }
.hm-mid::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #eef1ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6b5d' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 10h8'/%3E%3C/svg%3E") center / 9px no-repeat; }
.hm-cmp-foot { margin: 14px 0 0; text-align: center; color: var(--hm-mute); font-size: 14px; }
.hm-cmp-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hm-green); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .hm-cmp { font-size: 14px; }
  .hm-cmp th, .hm-cmp td { padding: 10px 6px; }
  .hm-cmp tbody th { padding-left: 12px; font-size: 14px; }
  .hm-cmp thead th { font-size: 12px; }
  .hm-cmp thead th.is-rk { font-size: 14px; }
  .hm-cmp thead th.is-rk img { display: none; }
  .hm-yes, .hm-no, .hm-mid { flex-direction: column; gap: 3px; font-size: 12px; }
}

/* ==========================================================================
   7. Free tools: router + six tool cards
   ========================================================================== */
.hm-tools {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(203, 249, 144, 0.2), transparent 60%),
    var(--hm-green);
  color: #fff;
  overflow: hidden;
}
.hm-tools-head { margin-bottom: 22px; text-align: center; }
.hm .hm-tools .hm-h2 { color: #fff; margin-bottom: 0; }
.hm-router { max-width: 720px; margin: 0 auto 28px; }
.hm-router-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.2s;
}
.hm-router-field:focus-within { box-shadow: 0 0 0 3px var(--hm-lime), 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.hm-router.is-invalid .hm-router-field { box-shadow: 0 0 0 3px #f4b39f, 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.hm-router-icon { display: inline-grid; place-items: center; flex: none; width: 36px; color: #7c8c7e; }
.hm-router-icon img { width: 20px; height: auto; }
.hm-router-field input { flex: 1; min-width: 0; height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--hm-ink); font: inherit; font-size: 16px; }
.hm-router-field input:focus { outline: none; }
.hm-router-field input::placeholder { color: #98a596; }
.hm-router-paste { flex: none; height: 44px; padding: 0 12px; border: 1px solid #dfe8d8; border-radius: 8px; background: #f6faf2; color: var(--hm-green); font: 600 14px/1 var(--font-body); cursor: pointer; }
.hm-router-go { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--hm-green); color: var(--hm-lime); font: 700 16px/1 var(--font-body); cursor: pointer; transition: background 0.2s; }
.hm-router-go:hover { background: #0a4a16; }
.hm-router-go b { margin-left: 6px; }
.hm-router-intents { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.hm-router-intents:empty { display: none; }
.hm-intents-label { margin-right: 4px; color: #b9cfb5; font-size: 14px; font-weight: 600; }
.hm-intent { min-height: 40px; padding: 0 14px; border: 1px solid rgba(203, 249, 144, 0.3); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #e7f3e3; font: 600 14px/1 var(--font-body); cursor: pointer; }
.hm-intent[aria-checked="true"] { background: var(--hm-lime); border-color: var(--hm-lime); color: var(--hm-green); }
.hm-intent:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hm .hm-router-msg { margin: 10px 0 0; color: #b9cfb5; font-size: 14px; text-align: center; }
.hm-router.is-invalid .hm-router-msg { color: #ffd3c4; }
.hm-linkish { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--hm-lime); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hm-toolgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 249, 144, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--hm-ease);
}
.hm-tool:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(203, 249, 144, 0.45); transform: translateY(-2px); }
.hm-tool:focus-visible { outline: 2px solid var(--hm-lime); outline-offset: 2px; }
.hm-tool-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--hm-lime); color: var(--hm-green); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hm-tool:hover .hm-tool-ico { transform: rotate(-6deg) scale(1.06); }
.hm-tool-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-tool-txt strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hm-tool-txt small { display: inline-flex; align-items: center; gap: 5px; color: #b9cfb5; font-size: 12px; font-weight: 500; }
.hm-tool-txt small img { flex: none; }
.hm-tool-all { grid-column: 4; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--hm-lime); border-color: var(--hm-lime); color: var(--hm-green); }
.hm-tool-all:hover { background: #d8fba8; border-color: #d8fba8; }
.hm-tool-all .hm-tool-txt strong { font-size: 18px; }
.hm-tool-all .hm-tool-txt small { color: rgba(1, 55, 11, 0.72); }
.hm-tool-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hm-green); color: var(--hm-lime); transition: transform 0.3s var(--hm-ease); }
.hm-tool-all:hover .hm-tool-arrow { transform: translateX(3px); }
@media (max-width: 899px) {
  .hm-toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tool-all { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; min-height: 60px; }
}
@media (max-width: 600px) {
  .hm-tools { border-radius: 24px; padding: 26px 12px 14px; margin: 0 -4px; }
  .hm-router-field { flex-wrap: wrap; }
  .hm-router-field input { flex-basis: calc(100% - 50px); }
  .hm-router-go { width: 100%; }
  .hm-router-paste { display: none; }
  .hm-tool { gap: 10px; min-height: 64px; padding: 10px; border-radius: 12px; }
  .hm-tool-ico { width: 36px; height: 36px; border-radius: 8px; }
  .hm-tool-txt strong { font-size: 14px; }
}

/* ==========================================================================
   8. Works where you research
   ========================================================================== */
.hm-stack-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--hm-panel); }
.hm-stack-copy .hm-lead { margin-bottom: 0; }
.hm-stack-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-stack-tiles li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; border-radius: 16px; background: #fff; color: var(--hm-ink); font-size: 14px; font-weight: 600; text-align: center; box-shadow: var(--hm-shadow); transition: transform 0.35s var(--hm-ease); }
.hm-stack-tiles li:hover { transform: translateY(-3px); }
.hm-tile-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #f6f8f4; border: 1px solid #e8ede4; color: var(--hm-green); }
.hm-stack-tiles li:nth-child(odd) .hm-tile-ico { animation: hm-float 5s ease-in-out infinite; }
.hm-stack-tiles li:nth-child(even) .hm-tile-ico { animation: hm-float 5s ease-in-out 1.2s infinite; }
@media (max-width: 899px) { .hm-stack-panel { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 480px) { .hm-stack-tiles { gap: 8px; } .hm-stack-tiles li { padding: 14px 6px 12px; font-size: 12px; } .hm-tile-ico { width: 44px; height: 44px; } }

/* ==========================================================================
   10. Privacy
   ========================================================================== */
.hm-trust-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; align-items: stretch; }
.hm-privacy { display: flex; flex-direction: column; padding: 22px 24px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff; box-shadow: var(--hm-shadow); }
.hm .hm-privacy h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--hm-ink); }
.hm-privacy-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.hm-pv { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #e6ece2; border-radius: 12px; background: #fbfdf9; color: var(--hm-ink); font: 600 16px/1.35 var(--font-body); text-align: left; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.hm-pv:hover { border-color: #c9e3b1; background: #f6fbf0; }
.hm-pv em { flex: none; padding: 4px 10px; border-radius: 999px; background: #eef2ea; color: var(--hm-soft); font-style: normal; font-size: 12px; font-weight: 700; transition: background 0.25s, color 0.25s; }
.hm-pv[aria-expanded="true"] { border-color: #bfe39b; background: #f2faea; }
.hm-pv[aria-expanded="true"] em { background: var(--hm-green); color: var(--hm-lime); }
.hm .hm-pv-detail { margin: -2px 0 2px; padding: 0 12px 4px; color: var(--hm-soft); font-size: 16px; line-height: 1.5; }
.hm-trust-side { display: flex; flex-direction: column; gap: 12px; }
.hm-never { padding: 20px 24px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff; }
.hm-never-title { margin: 0 0 12px; color: var(--hm-ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hm-never ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-never li { position: relative; padding-left: 28px; color: var(--hm-soft); font-size: 16px; line-height: 1.45; }
.hm-never li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff; }
.hm-stat-num { color: var(--hm-green); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hm-stat-label { color: var(--hm-soft); font-size: 14px; font-weight: 600; }
.hm-stat-lime { background: var(--hm-lime); border-color: #b9ea7e; }
.hm-stat-lime .hm-stat-label { color: var(--hm-green); }
.hm-stat-dark { background: var(--hm-dark); border-color: var(--hm-dark); }
.hm-stat-dark .hm-stat-num { color: var(--hm-lime); }
.hm-stat-dark .hm-stat-label { color: #b9cdb6; }
.hm-founder { display: flex; gap: 14px; align-items: flex-start; flex: 1; padding: 18px 20px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: linear-gradient(180deg, #fbfdf8, #f3f9ec); }
.hm-founder > img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hm-lime); }
.hm-founder blockquote { margin: 0 0 6px; }
.hm .hm-founder blockquote p { margin: 0; color: var(--hm-ink); font-size: 16px; line-height: 1.5; }
.hm .hm-founder-by { margin: 0; color: var(--hm-mute); font-size: 14px; }
.hm-founder-by a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hm-green); font-weight: 600; }
.hm-research { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--hm-radius); background: var(--hm-dark); color: #fff; text-decoration: none; transition: transform 0.25s var(--hm-ease); }
.hm-research:hover { transform: translateY(-2px); }
.hm-research-copy { display: flex; flex-direction: column; gap: 2px; }
.hm-research-kicker { color: var(--hm-lime); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.hm-research-copy strong { font-size: 18px; letter-spacing: -0.02em; }
.hm-research-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--hm-lime); color: var(--hm-green); font-weight: 700; font-size: 14px; }
@media (max-width: 899px) { .hm-trust-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hm-pv { flex-wrap: nowrap; gap: 8px; } .hm-stat { padding: 12px 10px; } .hm-stat-label { font-size: 12px; } }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hm-faq-intro { position: sticky; top: 100px; }
.hm-who { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }
.hm-who a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--hm-green); font-size: 16px; font-weight: 600; text-decoration: none; }
.hm-who a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm .hm-accordion { border-top: 1px solid var(--hm-line); }
.hm .hm-accordion details { border-bottom: 1px solid var(--hm-line); }
.hm .hm-accordion summary { min-height: 52px; padding: 14px 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hm .hm-accordion summary span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f0f5ec; color: var(--hm-green); font-size: 18px; transition: transform 0.25s var(--hm-ease), background 0.2s; }
.hm .hm-accordion details[open] summary span { background: var(--hm-lime); }
.hm .hm-accordion details p { padding: 0 40px 18px 0; font-size: 16px; line-height: 1.6; color: var(--hm-soft); }
@media (max-width: 899px) { .hm-faq-grid { grid-template-columns: 1fr; } .hm-faq-intro { position: static; } .hm .hm-accordion details p { padding-right: 0; } }

/* ==========================================================================
   12. Final CTA
   ========================================================================== */
.hm-final-wrap { padding: 0 0 clamp(48px, 6vw, 88px); }
.hm-final { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(32px, 5vw, 56px) 20px; border-radius: 24px; background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(203, 249, 144, 0.22), transparent 70%), var(--hm-green); text-align: center; }
.hm-final img { border-radius: 12px; }
.hm .hm-final h2 { max-width: 18ch; margin: 0; color: #fff; font-size: var(--hm-h2); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
.hm-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 600px) { .hm-final-actions { flex-direction: column; align-items: stretch; width: 100%; } }

/* ---------- Phones: gutter + rhythm ---------- */
@media (max-width: 600px) {
  .hm .wrap { width: calc(100% - 32px); }
  .hm-section { padding: 52px 0; }
  .hm .hm-lead { font-size: 16px; }
}

/* ==========================================================================
   Motion system (patterns from .claude/queueform-analysis.md, our own code).
   Content is visible by default. home.js adds .hm-anim to <main> only when
   IntersectionObserver exists and motion is allowed; then [data-reveal]
   waits for .is-in. Reveal: blur 6px + 16px rise, 0.9s expo out, stagger
   0.12s + d * 80ms. Pops use a spring.
   ========================================================================== */
.hm-anim [data-reveal]:not(.is-in) { opacity: 0; }
.hm-anim [data-reveal].is-in { animation: hm-reveal-up 0.5s var(--hm-ease) calc(var(--d, 0) * 40ms) backwards; }
.hm-anim [data-reveal="pop"].is-in { animation: hm-reveal-pop 0.4s var(--hm-ease) calc(var(--d, 0) * 40ms) backwards; }
@keyframes hm-reveal-up { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes hm-reveal-pop { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }

/* Hero entrance on load: words rise out of a mask, then the rest focuses in */
.hm-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hm-w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  /* The whole hero settles in about 600ms. The buttons and trust row are never hidden:
     they are the first thing people look for (and fading them delayed LCP on phones). */
  .hm-w > span { animation: hm-word-up 0.5s var(--hm-ease) calc(var(--w, 0) * 40ms) backwards; }
  .hm-hero-copy .hm-pill { animation: hm-pill-pop 0.4s var(--hm-ease) backwards; transform-origin: 20% 50%; }
  .hm-hero-copy .hm-kicker { animation: hm-focus 0.4s var(--hm-ease) 0.05s backwards; }
  .hm-hero-copy .hm-focus-in { animation: hm-focus 0.45s var(--hm-ease) 0.15s backwards; }
  .hm-hero-media { animation: hm-stage-in 0.6s var(--hm-ease) 0.1s backwards; }
}
@keyframes hm-word-up { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes hm-pill-pop { from { opacity: 0.01; translate: 0 6px; scale: 0.97; } }
@keyframes hm-focus { from { opacity: 0.01; translate: 0 6px; } }
@keyframes hm-spring-up { from { opacity: 0; translate: 0 16px; scale: 0.92; } }
@keyframes hm-slide-in { from { opacity: 0; filter: blur(4px); translate: -8px 0; } }
@keyframes hm-stage-in { from { translate: 0 28px; scale: 0.985; } }

/* ==========================================================================
   Buttons: label roll on hover, cursor-origin fill, spring press
   ========================================================================== */
.hm .button { position: relative; overflow: hidden; isolation: isolate; transition: background-color 0.2s var(--hm-ease2), color 0.2s var(--hm-ease2), border-color 0.2s, box-shadow 0.2s, scale 0.15s var(--hm-ease2); }
.hm .button::before {
  content: "";
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  z-index: -1;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hm-fill, var(--hm-lime));
  translate: -50% -50%;
  scale: 0;
  transition: scale 0.35s var(--hm-ease);
  pointer-events: none;
}
.hm .button:active { scale: 0.97; }
.hm-roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3; }
.hm-roll > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: translate 0.25s var(--hm-ease2); }
@media (hover: hover) and (pointer: fine) {
  .hm .button:hover::before { scale: 1; }
  .hm .button:hover .hm-roll > span { translate: 0 -1.3em; }
  .hm .hm-btn-primary:hover { color: var(--hm-green); border-color: var(--hm-lime); }
  .hm .hm-btn-primary:hover .btn-microcopy { color: rgba(1, 55, 11, 0.7); }
  .hm .hm-btn-lime { --hm-fill: #fff; }
  .hm .hm-btn-lime:hover { color: var(--hm-green); }
  .hm .hm-btn-secondary { --hm-fill: var(--hm-green); }
  .hm .hm-btn-secondary:hover { color: #fff; border-color: var(--hm-green); background: #fff; }
  .hm .hm-btn-ghost { --hm-fill: var(--hm-lime); }
  .hm .hm-btn-ghost:hover { color: var(--hm-green); border-color: var(--hm-lime); background: transparent; }
}
/* Primary hero CTA: slow spinning lime ring */
@property --hm-ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hm-ring-btn { position: relative; display: inline-flex; padding: 2px; border-radius: 12px; background: conic-gradient(from var(--hm-ring), var(--hm-lime) 0deg, var(--hm-lime) 200deg, #ffffff 280deg, #7fd03f 320deg, var(--hm-lime) 360deg); animation: hm-ring-spin 2.4s var(--hm-ease2) 0.6s 1 both; }
.hm-ring-btn > .button { margin: 0; }
@keyframes hm-ring-spin { to { --hm-ring: 360deg; } }
/* Small icon buttons and chips: spring press */
.hm-tool:active, .hm-f:active, .hm-story-tab:active, .hm-sort-btn:active, .hm-pv:active, .hm-router-go:active, .hm-intent:active, .hm-who a:active { scale: 0.97; }
.hm-tool, .hm-f, .hm-story-tab, .hm-sort-btn, .hm-pv, .hm-router-go, .hm-intent { transition-property: background, border-color, box-shadow, color, transform, translate, scale; transition-duration: 0.2s; transition-timing-function: var(--hm-ease2); }

@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hm-anim [data-reveal]:not(.is-in) { opacity: 1; }
  .hm-marquee { -webkit-mask-image: none; mask-image: none; }
  .hm-marquee-track { width: auto; }
  .hm-marquee-track > .hm-marquee-list { flex-wrap: wrap; justify-content: center; }
  .hm-marquee-track > .hm-marquee-list + .hm-marquee-list { display: none; }
}
@media (max-width: 767px) {
  .hm-hero-actions .hm-ring-btn { display: flex; }
  .hm-hero-actions .hm-ring-btn > .button { flex: 1; width: auto; }
}
.hm .button .hm-roll, .hm .button .hm-roll > span { color: inherit !important; opacity: 1; margin: 0 !important; padding: 0; font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit; background: none; pointer-events: none; }
/* Headline highlight sweeps in after the words land */
.hm-h1-mark { background-repeat: no-repeat; background-size: 100% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hm-h1-mark { animation: hm-mark 0.9s var(--hm-ease) 0.85s backwards; }
}
@keyframes hm-mark { from { background-size: 0% 100%; } }

.hm-zoom-in { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); }
@media (max-width: 899px) { .hm-zoom-in { transform: scale(var(--ms, 1)); } }

/* ==========================================================================
   Phones (375 to 430): tighter, thumb-first layouts
   ========================================================================== */
@media (max-width: 600px) {
  .hm-section { padding: 44px 0; }
  .hm-intro { margin-bottom: 20px; }
  .hm .hm-h2 { font-size: 26px; }
  .hm-eyebrow { margin-bottom: 10px; }
  /* Raw views lie: list first, then the tiny chart */
  .hm-problem-copy { display: contents; }
  .hm-problem-grid { gap: 14px; }
  .hm-problem-copy > .hm-eyebrow, .hm-problem-copy > .hm-h2, .hm-problem-copy > .hm-lead { justify-self: center; text-align: center; }
  .hm-problem-copy > .hm-eyebrow { order: 1; margin: 0 auto -6px; }
  .hm-problem-copy > .hm-h2 { order: 2; margin: 0; }
  .hm-problem-copy > .hm-lead { order: 3; margin: -6px 0 0; }
  .hm-sortcard { order: 4; }
  .hm-mini-chart { order: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 12px; max-width: none; width: 100%; margin: 0; }
  .hm-mc-label { grid-column: 1 / -1; margin: 0; }
  .hm-mc-bars { height: 52px; }
  .hm .hm-mc-eq { margin: 0; font-size: 14px; }
  .hm-problem-copy > .hm-textlink { order: 6; justify-self: center; }
  .hm .hm-sort-foot { display: none; }
  /* Comparison: tighter rows */
  .hm-cmp th, .hm-cmp td { padding: 8px 5px; }
  /* Works with: compact tiles */
  .hm-stack-panel { padding: 22px 14px; gap: 16px; border-radius: 24px; }
  .hm-stack-tiles li { gap: 6px; padding: 10px 4px 9px; border-radius: 12px; font-size: 12px; }
  .hm-tile-ico { width: 38px; height: 38px; border-radius: 12px; }
  .hm-tile-ico svg { width: 20px; height: 20px; }
  .hm-tile-ico img { max-width: 22px; height: auto; }
  /* Privacy: stats, then the list; founder and research shrink */
  .hm-trust-grid { gap: 10px; }
  .hm-trust-side { order: -1; gap: 10px; }
  .hm-privacy { padding: 16px 14px; }
  .hm .hm-privacy h3 { font-size: 18px; margin-bottom: 8px; }
  .hm-pv { min-height: 48px; padding: 6px 10px; font-size: 14px; }
  .hm-pv em { font-size: 11.5px; padding: 3px 8px; }
  .hm-founder { padding: 14px; gap: 12px; }
  .hm-founder > img { width: 40px; height: 40px; }
  .hm .hm-founder blockquote p { font-size: 16px; }
  .hm-research { padding: 12px 14px; }
  .hm-research-copy strong { font-size: 16px; }
  /* FAQ: compact summaries */
  .hm .hm-accordion summary { min-height: 48px; padding: 12px 0; font-size: 16px; }
  .hm-faq-intro .hm-who { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
  /* Free tools: 44px+ targets, less chrome */
  .hm-tools-head { margin-bottom: 16px; }
  .hm-router { margin-bottom: 18px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .hm-story-step.is-on .hm-cursor svg { transform-origin: 4px 4px; }
}
@media (max-width: 600px) { .hm-mc-median { font-size: 0; } }
@media (min-width: 900px) {
  .hm-story-steps { width: 100%; max-width: min(760px, calc((100svh - 262px) / 0.75 + 36px)); justify-self: end; }
  .hm-story:not(.is-ready) .hm-story-steps { max-width: none; }
}

/* ==========================================================================
   Round 5 (Queueform study, recordings 2026-11-13)
   ========================================================================== */

/* ---------- Drifting rows (flags + logo wall) ---------- */
.hm-drift { display: flex; width: max-content; animation: hm-drift var(--dur, 40s) linear infinite; }
.hm-drift[data-dir="r"] { animation-direction: reverse; }
.hm-drift-row { display: flex; flex: none; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
@keyframes hm-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
[data-marquee]:hover .hm-drift, [data-marquee].is-held .hm-drift, [data-marquee].is-stopped .hm-drift { animation-play-state: paused; }
.hm-motion-toggle { display: block; margin: 4px auto 0; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 8px; background: none; color: var(--hm-mute); font: 500 14px/1.2 var(--font-body, Inter, system-ui, sans-serif); cursor: pointer; }
.hm-motion-toggle:hover { color: var(--hm-green); }
.hm-motion-toggle:focus-visible { outline: 2px solid var(--hm-green); outline-offset: 2px; }
@media (pointer: coarse) { .hm-motion-toggle { min-height: 44px; } }

/* Flags as white tiles, two rows drifting in opposite directions */
.hm-flagwall { padding: 18px 0 8px; }
.hm-flagwall .hm-proof-title { margin-bottom: 14px; }
.hm-drift-wrap { display: grid; gap: 12px; overflow: hidden; padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hm-flagwall .hm-drift-row li { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff;
  border: 1px solid #edf1ea; box-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 10px 22px -14px rgba(11, 26, 14, 0.22);
  transition: transform 0.45s var(--hm-spring), box-shadow 0.3s; }
.hm-flagwall .hm-drift-row li:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 28px -14px rgba(1, 55, 11, 0.4); }
.hm-flagwall .hm-flag { font-size: 27px; line-height: 1; }

/* ---------- Statement: words fill in as you scroll ---------- */
.hm-statement { padding: clamp(48px, 7vw, 104px) 0 clamp(36px, 5vw, 72px); text-align: center; }
.hm-say { max-width: 900px; margin: 14px auto 0; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.28; font-weight: 600; letter-spacing: -0.028em; color: var(--hm-ink); text-wrap: balance; }
.hm-say .w { color: #879385; transition: color 0.25s ease-out; } /* 3.2:1 before it fills in: still readable as large text */
.hm-say .w.on { color: var(--hm-ink); }
.hm-say-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 920px; margin: clamp(32px, 4vw, 52px) auto 0; padding: 0; list-style: none; text-align: left; }
.hm-say-cols li { display: flex; flex-direction: column; gap: 4px; }
.hm-say-cols b { font-size: 16px; font-weight: 700; color: var(--hm-ink); }
.hm-say-cols li > span:last-child { font-size: 16px; line-height: 1.5; color: var(--hm-mute); }
.hm-say-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 8px; background: var(--hm-lime-2); color: var(--hm-green); }

/* ---------- How it works: stacked step cards ---------- */
.hm-st-list { display: grid; gap: 22px; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.hm-st { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) clamp(22px, 3.4vw, 48px);
  border: 1px solid var(--hm-line); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 30px 60px -40px rgba(1, 55, 11, 0.4); }
@media (min-width: 900px) {
  .hm-st { position: sticky; top: calc(86px + var(--i) * 16px); min-height: min(440px, 64vh); }
}
.hm-st-copy h3 { margin: 12px 0 8px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; color: var(--hm-ink); }
.hm-st-copy p { margin: 0; max-width: 26em; font-size: 16px; line-height: 1.55; color: var(--hm-soft); }
.hm-st-copy p b { color: var(--hm-ink); }
.hm-st-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--hm-lime); color: var(--hm-green); font-size: 12px; font-weight: 700; }
.hm-st-cta { margin-top: 20px; }
.hm-st-stage { position: relative; display: grid; place-items: center; min-height: clamp(260px, 30vw, 400px); overflow: hidden; border-radius: 24px;
  background: radial-gradient(120% 90% at 85% 0%, #1f5a2a 0%, #0c3315 55%, #072410 100%); isolation: isolate; }
.hm-st-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.hm-st-card { position: relative; margin: 0; width: min(var(--w), 78%); border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.65); }
.hm-st-card img { display: block; width: 100%; height: auto; }
.hm-st-url { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #d9ecd2; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.hm-st-tap { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(203, 249, 144, 0.95); border: 2px solid #01370b; }
.hm-st-tap::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #b6f36a; animation: hm-ripple 1.8s var(--hm-ease) infinite; }
@keyframes hm-ripple { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.hm-st-ring { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); transform: translate(-50%, -50%); border-radius: 8px;
  box-shadow: 0 0 0 2.5px #8fd14f, 0 0 0 7px rgba(143, 209, 79, 0.25); animation: hm-breathe 2.4s ease-in-out infinite; }
@keyframes hm-breathe { 50% { box-shadow: 0 0 0 2.5px #8fd14f, 0 0 0 11px rgba(143, 209, 79, 0.12); } }
.hm-st-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--hm-lime);
  color: var(--hm-green); font-size: 14px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.hm-st-chip-a { right: 9%; top: 18%; }
.hm-st-chip-b { left: 7%; bottom: 12%; }
.hm-st-c3 { margin-bottom: 56px; }
.hm-st-live { position: absolute; left: 50%; bottom: 14%; display: flex; align-items: center; gap: 10px; width: min(380px, 78%); transform: translateX(-50%);
  padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #e6f3df; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.hm-st-bar { position: relative; flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.hm-st-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: inherit; background: var(--hm-lime); }
.hm-st-sec { font-variant-numeric: tabular-nums; color: var(--hm-lime); }
.hm-st-c4 { align-self: start; margin-top: 26px; }
.hm-st-c5 { position: absolute; right: 6%; bottom: 8%; }

/* Step motion: cards rise in, then breathe; triggered when the stage is in view */
.hm-js .hm-st-stage .hm-st-card, .hm-js .hm-st-stage .hm-st-chip, .hm-js .hm-st-stage .hm-st-live, .hm-js .hm-st-stage .hm-st-url { opacity: 0; transform: translateY(18px) scale(0.97); }
.hm-js .hm-st-stage .hm-st-live { transform: translate(-50%, 18px); }
.hm-js .hm-st-stage.is-in .hm-st-card, .hm-js .hm-st-stage.is-in .hm-st-chip, .hm-js .hm-st-stage.is-in .hm-st-url { opacity: 1; transform: none; transition: opacity 0.6s var(--hm-ease), transform 0.9s var(--hm-ease); }
.hm-js .hm-st-stage.is-in .hm-st-live { opacity: 1; transform: translate(-50%, 0); transition: opacity 0.6s var(--hm-ease) 0.2s, transform 0.9s var(--hm-ease) 0.2s; }
.hm-js .hm-st-stage.is-in .hm-st-c5 { transition-delay: 0.18s; }
.hm-js .hm-st-stage.is-in .hm-st-chip { transition-delay: 0.32s; }
.hm-st-stage.is-in .hm-st-card:first-of-type { animation: hm-float 6s ease-in-out 1s infinite; }
.hm-st-stage.is-in .hm-st-bar i { animation: hm-fill 3.2s cubic-bezier(0.45, 0, 0.2, 1) 0.4s infinite; }
@keyframes hm-float { 50% { translate: 0 -6px; } }
@keyframes hm-fill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }

/* ---------- Works with: drifting logo wall ---------- */
.hm-wall { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(26px, 4vw, 52px) 0 clamp(26px, 4vw, 52px) clamp(24px, 4vw, 56px); border-radius: 24px; background: var(--hm-panel); overflow: hidden; }
.hm-wall-copy .hm-h2 { max-width: 13em; }
.hm-wall-copy .hm-lead { max-width: 30em; }
.hm-wall-grid { display: grid; gap: 14px; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hm-logo-drift .hm-drift-row li { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05), 0 14px 26px -16px rgba(11, 26, 14, 0.3); transition: transform 0.45s var(--hm-spring); }
.hm-logo-drift .hm-drift-row li:hover { transform: translateY(-4px) rotate(-3deg); }
.hm-logo-txt { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #1d6f42; }

/* ---------- Free tools: light, airy cards ---------- */
.hm-tools-light .hm-tools { background: none; color: var(--hm-ink); box-shadow: none; padding: 0; }
.hm-tools-light .hm-tools::before, .hm-tools-light .hm-tools::after { display: none; }
.hm-tools-light .hm-tools .hm-h2 { color: var(--hm-ink); }
.hm-tools-light .hm-router-field { border: 1px solid #dbe7d1; box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05), 0 28px 60px -32px rgba(1, 55, 11, 0.45); }
.hm-tools-light .hm-router-field:focus-within { border-color: #9fd36c; box-shadow: 0 0 0 5px rgba(203, 249, 144, 0.5), 0 28px 60px -32px rgba(1, 55, 11, 0.45); }
.hm-tools-light .hm-router-go { color: #fff; }
.hm-tools-light .hm-router-go b { color: var(--hm-lime); display: inline-block; transition: transform 0.3s var(--hm-ease); }
.hm-tools-light .hm-router-go:hover b { transform: translateX(3px); }
.hm-tools-light .hm-router-msg, .hm-tools-light .hm-intents-label { color: var(--hm-mute); }
.hm-tools-light .hm-linkish { color: var(--hm-green); }
.hm-tools-light .hm-intent { border-color: #dbe7d1; background: #fff; color: var(--hm-soft); }
.hm-tools-light .hm-intent[aria-checked="true"] { background: var(--hm-lime); border-color: #b5e57d; color: var(--hm-green); }
.hm-tools-light .hm-toolgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 0 auto; }
.hm-tools-light .hm-tool { position: relative; align-items: flex-start; gap: 14px; min-height: 0; padding: 18px 18px 18px 18px; border: 1px solid var(--hm-line); border-radius: 16px;
  background: #fff; color: var(--hm-ink); box-shadow: 0 1px 2px rgba(11, 26, 14, 0.04);
  transition: transform 0.4s var(--hm-ease), box-shadow 0.4s var(--hm-ease), border-color 0.3s; }
.hm-tools-light .hm-tool:hover { background: #fff; border-color: #c9e9a8; transform: translateY(-3px); box-shadow: 0 24px 44px -26px rgba(1, 55, 11, 0.45); }
.hm-tools-light .hm-tool-ico { background: var(--hm-lime-2); color: var(--hm-green); }
.hm-tools-light .hm-tool-txt { padding-right: 34px; }
.hm-tools-light .hm-tool-txt em { font-style: normal; font-size: 14px; line-height: 1.45; color: var(--hm-mute); }
.hm-tools-light .hm-tool-txt small { margin-top: 6px; color: var(--hm-mute); }
.hm-tool-go { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hm-line); color: var(--hm-green); background: #fff; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--hm-spring); }
.hm-tools-light .hm-tool:hover .hm-tool-go { background: var(--hm-green); border-color: var(--hm-green); color: var(--hm-lime); transform: rotate(45deg); }
.hm-tools-light .hm-tool-all { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 14px; border: 0;
  background: var(--hm-green); color: #fff; }
.hm-tools-light .hm-tool-all:hover { background: #0a4a16; }
.hm-tools-light .hm-tool-all .hm-tool-txt { padding: 0; flex-direction: row; align-items: baseline; gap: 10px; }
.hm-tools-light .hm-tool-all .hm-tool-txt strong { font-size: 16px; color: #fff; }
.hm-tools-light .hm-tool-all .hm-tool-txt small { margin: 0; color: #b9cfb5; }
.hm-tools-light .hm-tool-all .hm-tool-arrow { width: 30px; height: 30px; background: var(--hm-lime); color: var(--hm-green); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 899px) {
  .hm-st { grid-template-columns: 1fr; gap: 16px; padding: 22px 14px 14px; border-radius: 24px; }
  .hm-st-copy { padding: 0 6px; }
  .hm-st-stage { min-height: 250px; }
  .hm-wall { grid-template-columns: 1fr; padding: 28px 0 26px; gap: 20px; }
  .hm-wall-copy { padding: 0 22px; }
  .hm-say-cols { grid-template-columns: 1fr; max-width: 420px; gap: 20px; }
  .hm-tools-light .hm-toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hm-flagwall .hm-drift-row li { width: 46px; height: 46px; border-radius: 12px; }
  .hm-flagwall .hm-flag { font-size: 22px; }
  .hm-drift-row { gap: 10px; padding: 0 5px; }
  .hm-logo-drift .hm-drift-row li { width: 58px; height: 58px; border-radius: 16px; }
  .hm-logo-drift svg { width: 24px; height: 24px; }
  .hm-st-card { width: min(var(--w), 84%); }
  .hm-st-c5 { width: 56%; right: 4%; bottom: 5%; }
  .hm-st:has(.hm-st-c5) .hm-st-stage { min-height: 290px; }
  .hm-st-c4 { width: 88%; margin-top: 18px; }
  .hm-st-chip-b { left: 5%; bottom: 8%; height: 30px; font-size: 12px; }
  .hm-st-c3 { margin-bottom: 64px; }
  .hm-tools-light .hm-toolgrid { grid-template-columns: 1fr; gap: 10px; }
  .hm-tools-light .hm-tool { padding: 14px; gap: 12px; }
  .hm-tools-light .hm-tool-go { top: 50%; margin-top: -15px; }
  .hm-tools-light .hm-tool-txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-drift, .hm-st-tap::after, .hm-st-ring, .hm-st-stage.is-in .hm-st-card:first-of-type, .hm-st-stage.is-in .hm-st-bar i { animation: none !important; }
  .hm-st-bar i { transform: scaleX(0.7); }
  .hm-say .w { color: var(--hm-ink); }
  .hm-drift-wrap, .hm-wall-grid { -webkit-mask-image: none; mask-image: none; }
  .hm-drift { flex-wrap: wrap; width: auto; justify-content: center; }
  .hm-drift .hm-drift-row + .hm-drift-row { display: none; }
  .hm-drift-row { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
}
.hm-st-stage:has(.hm-st-c2) { min-height: clamp(430px, 34vw, 460px); }
.hm-st-c2 { margin: 18px 0; }
@media (max-width: 600px) { .hm-st-c2 { width: min(190px, 58%); } .hm-st-chip-a { right: 5%; top: 10%; } }

/* ---------- Round 6: hero for the ICP ---------- */
@media (min-width: 1024px) { .hm .hm-hero h1 { max-width: 12.5ch; } }
.hm-type { position: relative; display: inline-flex; align-items: baseline; white-space: nowrap; }
.hm-type-t { color: var(--hm-green-2); }
.hm-caret { display: inline-block; width: 3px; height: 0.82em; margin-left: 3px; border-radius: 2px; background: var(--hm-green-2); transform: translateY(0.08em); animation: hm-caret 1s steps(1) infinite; }
@keyframes hm-caret { 50% { opacity: 0; } }
.hm .hm-for { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed #dfe7da; font-size: 14px; line-height: 1.5; color: var(--hm-mute); max-width: 34em; }
.hm-for b { color: var(--hm-ink); font-weight: 600; }
@media (max-width: 1023px) { .hm .hm-for { margin-left: auto; margin-right: auto; text-align: center; } }
.hm .hm-hero-media { position: relative; }
.hm-float { position: absolute; z-index: 5; display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border-radius: 12px; background: #fff;
  border: 1px solid var(--hm-line); color: var(--hm-soft); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(11, 26, 14, 0.06), 0 22px 44px -22px rgba(1, 55, 11, 0.5); animation: hm-float-y 6s ease-in-out infinite; }
.hm-float b { color: var(--hm-ink); font-weight: 700; }
.hm-float-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--hm-lime); color: var(--hm-green); }
.hm-float-dot { width: 10px; height: 10px; margin: 0 2px 0 8px; border-radius: 50%; background: #3bb54a; box-shadow: 0 0 0 4px rgba(59, 181, 74, 0.18); }
.hm-float-a { top: -20px; right: 28px; }
.hm-float-b { bottom: 96px; left: -30px; padding-left: 4px; animation-delay: -3s; }
@keyframes hm-float-y { 50% { transform: translateY(-7px); } }
@media (min-width: 1100px) { .hm-float { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .hm-caret, .hm-float { animation: none; } }

/* ---------- Round 7: hero word swaps in place (no typing, no layout shift) ---------- */
.hm .hm-h1-mark { white-space: nowrap; }
.hm-swap { display: inline-grid; vertical-align: bottom; }
.hm-swap-w { grid-area: 1 / 1; color: var(--hm-green-2); opacity: 0; filter: blur(6px); transform: scale(0.96); transition: opacity 0.55s var(--hm-ease), filter 0.55s var(--hm-ease), transform 0.7s var(--hm-ease); }
.hm-swap-w.is-on { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .hm-swap-w { transition: none; } }

/* ---------- Round 7: Raw views lie, as a three-step duel ---------- */
.hm-duel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 36px); align-items: stretch; margin-top: clamp(22px, 3vw, 36px); }
.hm-duel-tabs { display: grid; gap: 10px; align-content: center; }
.hm-duel-tab { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 18px; border: 1px solid var(--hm-line); border-radius: 16px; background: #fff;
  text-align: left; cursor: pointer; overflow: hidden; color: var(--hm-mute); transition: border-color 0.3s, box-shadow 0.4s var(--hm-ease), transform 0.3s var(--hm-ease); }
.hm-duel-tab:hover { border-color: #c9e9a8; }
.hm-duel-tab b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-panel); color: var(--hm-mute); font-size: 14px; transition: background 0.3s, color 0.3s; }
.hm-duel-tab span { display: flex; flex-direction: column; gap: 2px; }
.hm-duel-tab strong { font-size: 16px; color: var(--hm-ink); }
.hm-duel-tab em { font-style: normal; font-size: 14px; line-height: 1.45; }
.hm-duel-tab[aria-selected="true"] { border-color: #b5e57d; box-shadow: 0 22px 44px -30px rgba(1, 55, 11, 0.5); }
.hm-duel-tab[aria-selected="true"] b { background: var(--hm-green); color: var(--hm-lime); }
.hm-duel-tab:focus-visible { outline: 3px solid var(--hm-green); outline-offset: 2px; }
.hm-duel-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--hm-lime); transform: scaleX(0); transform-origin: left; }
.hm-duel.is-auto .hm-duel-tab[aria-selected="true"] .hm-duel-prog { animation: hm-duel-prog 3.4s linear forwards; }
@keyframes hm-duel-prog { to { transform: scaleX(1); } }

.hm-duel-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(14px, 2vw, 22px); padding-bottom: 64px; border-radius: 24px;
  background: radial-gradient(120% 100% at 100% 0%, #1f5a2a, #0c3315 60%, #072410); }
.hm-duel-v { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; transition: transform 0.6s var(--hm-ease), box-shadow 0.6s var(--hm-ease); }
.hm-duel-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-duel-head img { flex: none; width: 64px; height: 40px; border-radius: 8px; object-fit: cover; }
.hm-duel-head span { display: flex; flex-direction: column; min-width: 0; }
.hm-duel-head b { font-size: 14px; color: var(--hm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-duel-head em { font-style: normal; font-size: 12px; color: var(--hm-mute); }
.hm-duel-head .hm-size { margin-left: 4px; }
.hm-duel-num { position: relative; display: grid; height: 46px; }
.hm-duel-num > span { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 6px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; color: var(--hm-ink);
  font-variant-numeric: tabular-nums; transition: opacity 0.45s var(--hm-ease), transform 0.6s var(--hm-ease), filter 0.45s; }
.hm-duel-num small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--hm-mute); }
.hm-duel-num .n-s { opacity: 0; transform: translateY(10px); filter: blur(4px); color: var(--hm-green-2); }
.hm-duel-bar { position: relative; height: 12px; border-radius: 999px; background: #eef3ea; overflow: hidden; }
.hm-duel-fill { position: absolute; inset: 0 auto 0 0; width: var(--fv); border-radius: inherit; background: #9bc98a; transition: width 0.9s var(--hm-ease), background 0.5s; }
.hm-duel-usual { position: absolute; top: 0; bottom: 0; left: 0; width: max(var(--u), 3px); border-radius: inherit; background: #d4553a; opacity: 0; transition: opacity 0.4s; }
.hm-duel-usual-l, .hm-duel-eq { margin: 0; font-size: 14px; color: var(--hm-mute); transition: opacity 0.45s, max-height 0.5s var(--hm-ease); max-height: 0; opacity: 0; overflow: hidden; }
.hm-duel-usual-l b { color: #b8432b; }
.hm-duel-eq b { color: var(--hm-green); }
.hm-duel-badge { position: absolute; top: -12px; right: 12px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--hm-lime); color: var(--hm-green); font-size: 12px; font-weight: 700; line-height: 26px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(6px) scale(0.9); transition: opacity 0.4s, transform 0.5s var(--hm-spring); }
.hm-duel-say { position: absolute; left: 22px; right: 22px; bottom: 18px; display: grid; margin: 0; color: #e6f3df; font-size: 14px; font-weight: 600; }
.hm-duel-say span { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.6s var(--hm-ease); }
.hm-duel-say b { color: var(--hm-lime); }

/* Step states */
.hm-duel[data-step="1"] .hm-duel-say [data-s="1"], .hm-duel[data-step="2"] .hm-duel-say [data-s="2"], .hm-duel[data-step="3"] .hm-duel-say [data-s="3"] { opacity: 1; transform: none; }
.hm-duel[data-step="1"] [data-v="a"] .hm-duel-badge { opacity: 1; transform: none; }
.hm-duel[data-step="1"] [data-v="a"] .hm-duel-badge::after { content: "Most views"; }
.hm-duel[data-step="2"] .hm-duel-usual, .hm-duel[data-step="2"] .hm-duel-usual-l { opacity: 1; max-height: 40px; }
.hm-duel[data-step="3"] .hm-duel-fill { width: var(--fs); }
.hm-duel[data-step="3"] [data-v="b"] .hm-duel-fill { background: var(--hm-green-2); }
.hm-duel[data-step="3"] .hm-duel-num .n-v { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.hm-duel[data-step="3"] .hm-duel-num .n-s { opacity: 1; transform: none; filter: none; }
.hm-duel[data-step="3"] .hm-duel-eq { opacity: 1; max-height: 40px; }
.hm-duel[data-step="3"] [data-v="b"] { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--hm-lime), 0 26px 50px -24px rgba(0, 0, 0, 0.7); }
.hm-duel[data-step="3"] [data-v="b"] .hm-duel-badge { opacity: 1; transform: none; }
.hm-duel[data-step="3"] [data-v="b"] .hm-duel-badge::after { content: "Real breakout"; }
.hm-duel[data-step="3"] [data-v="a"] { opacity: 0.86; }
.hm-duel-foot { margin: 16px 0 0; font-size: 14px; color: var(--hm-mute); text-align: center; }
.hm-duel-foot .hm-textlink { margin-left: 6px; }

@media (max-width: 899px) {
  .hm-duel { grid-template-columns: 1fr; }
  .hm-duel-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hm-duel-tab { flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 12px; text-align: center; border-radius: 12px; }
  .hm-duel-tab em { display: none; }
  .hm-duel-tab strong { font-size: 14px; }
}
@media (max-width: 520px) {
  .hm-duel-card { grid-template-columns: 1fr; padding-bottom: 70px; }
  .hm-duel-say { font-size: 14px; left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-duel *, .hm-duel *::after { transition: none !important; animation: none !important; }
}

/* Round 7: richer logo wall */
.hm-logo-drift .hm-drift-row li { width: 78px; height: 78px; border-radius: 24px; border: 1px solid #edf1ea;
  background: linear-gradient(180deg, #fff, #fbfcfa); box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05), 0 16px 30px -18px rgba(11, 26, 14, 0.32); }
.hm-logo-drift .hm-drift-row li img { width: 32px; height: auto; }
.hm-logo-txt.is-csv { color: #1d6f42; }
.hm-logo-txt.is-json { color: #b8860b; }
.hm-wall-grid { gap: 16px; padding: 10px 0; }
@media (max-width: 600px) { .hm-logo-drift .hm-drift-row li { width: 60px; height: 60px; border-radius: 16px; } .hm-logo-drift .hm-drift-row li img { width: 26px; } }

/* ---------- Reels from @rank.kiwi (above the footer) ---------- */
.hm-reels { padding-top: clamp(8px, 2vw, 24px); }
.hm-reels-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.4vw, 28px); }
.hm-reels-copy { max-width: 560px; }
.hm-reels-copy .hm-eyebrow svg { width: 13px; height: 13px; }
.hm-reels-copy .hm-lead { margin-bottom: 0; }
.hm-reels-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hm .hm-reels-follow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.hm-reels-nav { display: flex; gap: 8px; }
.hm-reels-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--hm-line); background: #fff; color: var(--hm-green); cursor: pointer;
  transition: background-color 0.25s var(--hm-ease2), transform 0.3s var(--hm-spring), opacity 0.2s;
}
.hm-reels-arrow:hover:not(:disabled) { background: var(--hm-lime-2); transform: scale(1.06); }
.hm-reels-arrow:active:not(:disabled) { transform: scale(0.94); }
.hm-reels-arrow:disabled { opacity: 0.35; cursor: default; }
.hm-reels-arrow:focus-visible, .hm-reel-play:focus-visible, .hm-reel-link:focus-visible { outline: 2px solid var(--hm-green); outline-offset: 3px; }

.hm-reels-track {
  --reel-w: clamp(196px, 18.4vw, 222px);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--reel-w); gap: 16px;
  margin: 0; padding: 4px 2px 14px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hm-reels-track::-webkit-scrollbar { display: none; }
.hm-reel { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hm-reel-media {
  position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--hm-panel);
  box-shadow: 0 0 0 1px var(--hm-line), var(--hm-shadow);
  transition: transform 0.45s var(--hm-ease), box-shadow 0.45s var(--hm-ease);
}
.hm-reel:hover .hm-reel-media { transform: translateY(-3px); box-shadow: 0 0 0 1px #d5dfcd, var(--hm-shadow-lift); }
.hm-reel-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--hm-panel); }
.hm-reel-play {
  position: absolute; inset: 0; display: grid; place-items: end; width: 100%; padding: 10px; border: 0; cursor: pointer;
  background: linear-gradient(to top, rgba(11, 26, 14, 0.34), rgba(11, 26, 14, 0) 30%);
  transition: opacity 0.3s var(--hm-ease2);
}
.hm-reel-play-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; padding-left: 2px;
  background: rgba(255, 255, 255, 0.94); color: var(--hm-green);
  box-shadow: 0 8px 24px -8px rgba(11, 26, 14, 0.45);
  transition: transform 0.4s var(--hm-spring), background-color 0.25s;
}
.hm-reel-play:hover .hm-reel-play-ico, .hm-reel-media:hover .hm-reel-play-ico { transform: scale(1.1); background: var(--hm-lime); }
.hm-reel-play:active .hm-reel-play-ico { transform: scale(0.94); }
.hm-reel-dur {
  position: absolute; left: 10px; bottom: 19px; padding: 3px 8px; border-radius: 999px;
  background: rgba(11, 26, 14, 0.62); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  pointer-events: none; transition: opacity 0.3s;
}
.hm-reel.is-playing .hm-reel-play, .hm-reel.is-playing .hm-reel-dur { opacity: 0; pointer-events: none; }
.hm-reel-meta { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.hm-reel-tag { font-size: 12px; font-weight: 600; color: var(--hm-green-2); letter-spacing: 0.01em; }
.hm .hm-reel-title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--hm-ink); text-wrap: pretty; }
.hm-reel-link { align-self: flex-start; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--hm-soft); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.hm-reel-link:hover { color: var(--hm-green); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .hm-reels-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hm-reels-nav { display: none; }
  .hm-reels-track { --reel-w: 58vw; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-reel-media, .hm-reel-play-ico, .hm-reels-arrow { transition: none; }
  .hm-reel:hover .hm-reel-media { transform: none; }
}

/* ---------- Smoothness (v7.2) ----------
   1. Looping animations pause while their section is off screen (home.js adds .hm-paused).
   2. Phones and touch devices skip blur in reveals: blur is the most expensive thing to animate there.
   3. Hint the compositor only while an element is actually animating. */
.hm-paused, .hm-paused * { animation-play-state: paused !important; }
.hm-anim [data-reveal]:not(.is-in) { will-change: opacity, translate; }
@keyframes hm-reveal-lite { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes hm-fade-lite { from { opacity: 0.01; translate: 0 6px; } } /* 0.01, not 0: an invisible hero would delay LCP */
@media (max-width: 767px), (hover: none) {
  .hm-anim [data-reveal].is-in { animation-name: hm-reveal-lite; animation-duration: 0.45s; }
  .hm-hero-copy .hm-pill, .hm-hero-copy .hm-kicker, .hm-hero-copy .hm-focus-in, .hm-hero-copy .hm-trust li { animation-name: hm-fade-lite; }
  .hm-swap-w { filter: none; }
  .hm-duel-num .n-s, .hm-duel[data-step="3"] .hm-duel-num .n-v { filter: none; }
  .hm-story.is-ready .hm-story-step.is-in { animation-name: hm-window-in-lite; }
}
@keyframes hm-window-in-lite {
  0% { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 6%), 2%, 0) scale(0.96); }
  100% { opacity: 1; transform: none; }
}

/* Faster taps (INP): the browser skips layout and paint for sections far below the
   screen until you scroll near them. "auto" remembers each section's real height. */
.hm #features, .hm #content-details, .hm #why-switch, .hm #free-tools, .hm #works-with,
.hm #proof, .hm #faq, .hm #get-started, .hm #reels {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* Trust lines next to every main install button (same three promises as the hero) */
.hm-trust.hm-trust-inline { justify-content: flex-start; margin: 14px 0 0; }
.hm-final-trust { margin: 14px 0 0; color: #c9dcc2; font-size: 16px; line-height: 1.4; text-align: center; }

/* ---------- Premium details (playbook: buttons, feedback, accordions) ---------- */
/* Main buttons: slight top-lit gradient + four-layer shadow (inner highlight, contact, near, far) */
.hm .hm-btn-primary {
  background-image: linear-gradient(180deg, #0b4a17 0%, #01370b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 1px rgba(1, 55, 11, 0.24), 0 3px 6px -2px rgba(1, 55, 11, 0.22), 0 12px 24px -10px rgba(1, 55, 11, 0.38);
}
.hm .hm-btn-lime {
  background-image: linear-gradient(180deg, #d9fca8 0%, #cbf990 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 1px rgba(1, 55, 11, 0.18), 0 3px 6px -2px rgba(0, 0, 0, 0.18), 0 12px 24px -10px rgba(0, 0, 0, 0.35);
}
/* Wrong input: shake twice. Recognised link: one small pulse. */
.hm-router.is-invalid .hm-router-field { animation: hm-shake 0.18s ease-in-out 2; }
.hm-router-field.is-pulse { animation: hm-pulse 0.32s ease-out; }
@keyframes hm-shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@keyframes hm-pulse { 0% { scale: 1; } 40% { scale: 1.012; } 100% { scale: 1; } }
/* FAQ answers open and close smoothly (height: auto via interpolate-size, where supported) */
.hm .hm-accordion { interpolate-size: allow-keywords; }
.hm .hm-accordion details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.24s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.24s allow-discrete; }
.hm .hm-accordion details[open]::details-content { block-size: auto; }
.hm .hm-accordion summary span { transition: background-color 0.2s ease-out, rotate 0.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .hm-router.is-invalid .hm-router-field, .hm-router-field.is-pulse { animation: none; }
  .hm .hm-accordion details::details-content { transition: none; }
}

/* Phones can't install extensions: lead with the web tools, offer a send-to-desktop link */
.hm-phone-cta, .hm-phone-desk-link { display: none; }
@media (max-width: 767px) {
  .hm-hero-actions .hm-ring-btn, .hm-hero-actions .hm-btn-secondary { display: none; }
  .hm-hero-actions .hm-phone-cta { display: inline-flex; justify-content: center; }
  .hm-hero-actions .hm-phone-desk-link { display: block; text-align: center; font-size: 14px; font-weight: 600; color: var(--hm-green); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
}

/* ==========================================================================
   Calm pass (2 Dec 2026). Fewer moving parts, so the page reads as made by a
   person: the hero text is there at first paint (no word-by-word entrance, no
   highlighter sweep), and the scroll reveals are off (see home.js). Demos that
   respond to a click or show the product working keep their motion.
   ========================================================================== */
.hm-hero-copy h1 { text-wrap: balance; }
/* (superseded below by the quick hero entrance) */
.hm-anim [data-reveal]:not(.is-in) { opacity: 1; }
/* Text links read as links without a trailing arrow: always underlined. */
.hm-textlink { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(1, 55, 11, 0.35); }
.hm-textlink:hover { text-decoration-color: currentColor; }
/* Flag and logo rows sit still: decorative motion that needed its own pause button. */
.hm-drift { animation: none !important; }
.hm-drift[data-dir="r"] { transform: translate3d(-12%, 0, 0); }

/* Premium pass (2 Dec 2026): one soft surface tint, quieter card shadows, and the
   hero headline in a gentle ink gradient (the only gradient on text). */
.hm {
  --hm-bg-soft: #f5f9f0;
  --hm-panel: #f5f9f0;
  --hm-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 4px 12px -6px rgba(11, 26, 14, 0.08);
  --hm-shadow-lift: 0 1px 2px rgba(11, 26, 14, 0.05), 0 16px 32px -20px rgba(1, 55, 11, 0.28);
}
.hm-hero-copy h1 {
  background: linear-gradient(90deg, #0b1a0e 0%, #0b1a0e 45%, #3f5443 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.035em;
}
@media (forced-colors: active) { .hm-hero-copy h1 { background: none; color: CanvasText; } }

/* Flag line (2 Dec 2026): plain flags, no tiles. One slow continuous drift that
   pauses on hover; still for anyone who prefers reduced motion. */
.hm-flagline {
  overflow: hidden; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-flagline-track { display: flex; width: max-content; animation: hm-flagline 140s linear infinite; will-change: transform; }
.hm-flagline ul { display: flex; flex: none; gap: 26px; margin: 0; padding: 0 13px; list-style: none; }
.hm-flagline li { display: block; line-height: 1; }
.hm-flagline .hm-flag {
  display: block; font-size: 38px; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(11, 26, 14, 0.16));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .hm-flagline:hover .hm-flagline-track { animation-play-state: paused; }
  .hm-flagline li:hover .hm-flag { transform: translateY(-3px) scale(1.12); }
}
@keyframes hm-flagline { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) {
  .hm-flagline ul { gap: 16px; padding: 0 8px; }
  .hm-flagline .hm-flag { font-size: 28px; }
  .hm-flagline-track { animation-duration: 110s; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-flagline { -webkit-mask-image: none; mask-image: none; }
  .hm-flagline-track { animation: none; width: auto; }
  .hm-flagline-track ul + ul { display: none; }
  .hm-flagline ul { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
}
.hm-flagline.is-paused .hm-flagline-track { animation-play-state: paused; }

/* Hero entrance (2 Dec 2026, second pass): one quick, soft settle on load instead of a
   static drop-in. Everything is on screen within 0.7s; text is never held back long. */
@media (prefers-reduced-motion: no-preference) {
  .hm-hero-copy > h1 { animation: hm-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hm-hero-copy > .hm-hero-text { animation: hm-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
  .hm-hero-copy > .hm-hero-actions { animation: hm-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
  .hm-hero-copy > .hm-trust, .hm-hero-copy > .hm-for { animation: hm-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
  .hm-hero-media { animation: hm-stage-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
}
@keyframes hm-hero-in { from { opacity: 0; translate: 0 10px; filter: blur(3px); } }
@keyframes hm-stage-rise { from { opacity: 0; translate: 0 18px; scale: 0.985; } }
