/* ============================================================================
   home-v2.css: Streamlined hierarchy, Sibling-App Ecosystem, Core Spotlight,
   and 2-Tier Category layout layered on top of home.css.

   WIDTH RULE (hard requirement: see .cursor/rules/landing-page-width.mdc):
   Headlines, sub-headlines, leads, and captions fill the full .hm-shell width.
   Never put max-width in ch/em/px on text elements, and never use
   text-wrap: balance on headlines.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   ACCESSIBLE INTELLIGENCE CARDS (Compact icon + benefit header + proof line)
   ---------------------------------------------------------------------------- */
.hm-reach-item {
  gap: 10px;
  padding: 18px 20px;
}
.hm-reach-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hm-reach-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.hm-reach-item:nth-child(2) .hm-reach-icon { border-color: #f0d3ad; background: #fff7ec; }
.hm-reach-item:nth-child(3) .hm-reach-icon { border-color: #b9ddcf; background: #ecf8f3; }
.hm-reach-item:nth-child(4) .hm-reach-icon { border-color: #d2c3ee; background: #f4effd; }
.hm-reach-benefit {
  font-family: var(--hm-display);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}
.hm-reach-item p {
  font-size: clamp(0.92rem, 1.02vw, 0.98rem);
  line-height: 1.45;
  color: var(--hm-ink-soft);
}

/* ----------------------------------------------------------------------------
   TWO-APP ECOSYSTEM SECTION (Standalone section above the feature showcase)
   ---------------------------------------------------------------------------- */
.hm-siblings {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--hm-bg);
  border-top: 1px solid var(--hm-line-soft);
}
.hm-siblings-header {
  text-align: center;
  margin-bottom: clamp(30px, 3.8vw, 44px);
}
.hm-siblings-title {
  margin: 0 auto;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.hm-siblings-sub {
  margin: 14px auto 0;
  max-width: none;
  font-size: clamp(1.06rem, 1.4vw, 1.26rem);
  line-height: 1.5;
  color: var(--hm-ink-soft);
}

.hm-ecosystem {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  margin-inline: auto;
}
.hm-eco-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 2.5vw, 30px);
  border-radius: 18px;
  border: 1px solid var(--hm-line);
  background: #ffffff;
  box-shadow: var(--hm-shadow-sm);
  text-align: left;
}
.hm-eco-card--ec {
  border-color: #c5d4fc;
  background: linear-gradient(160deg, #f3f6ff 0%, #ffffff 65%);
}
.hm-eco-card--bts {
  border-color: #a7f3d0;
  background: linear-gradient(160deg, #f2fdf8 0%, #ffffff 65%);
}
.hm-eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hm-eco-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.hm-eco-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hm-eco-brand-mark--ec svg {
  width: 34px;
  height: 28px;
  display: block;
}
.hm-eco-brand-mark--bts svg {
  width: 26px;
  height: 30px;
  display: block;
}
.hm-eco-brand-word {
  font-family: var(--hm-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--hm-ink);
}
.hm-eco-brand-word--ec span {
  color: var(--hm-brand);
}
.hm-eco-brand-word--bts span {
  color: #047857;
}
.hm-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.hm-eco-card--ec .hm-eco-badge {
  color: var(--hm-brand-dark);
  background: var(--hm-brand-wash);
  border: 1px solid #d5e1fb;
}
.hm-eco-card--bts .hm-eco-badge {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}
.hm-eco-card h3 {
  margin: 12px 0 0;
  max-width: none;
  font-size: clamp(1.2rem, 1.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}
.hm-eco-card p {
  margin: 8px 0 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--hm-ink-soft);
}
.hm-eco-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}
.hm-eco-card--ec .hm-eco-link { color: var(--hm-brand-dark); }
.hm-eco-card--bts .hm-eco-link { color: #047857; }
.hm-eco-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------
   THE NON-MATH QUANT GUIDE SECTION (Cover left, headline + subheadline right)
   ---------------------------------------------------------------------------- */
.hm-book {
  padding: clamp(44px, 5.5vw, 68px) 0;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-top: 1px solid var(--hm-line-soft);
}

.hm-book-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hm-book-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.hm-book-thumb:hover {
  transform: translateY(-3px);
}
.hm-book-thumb-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cfd9ec;
  background: #ffffff;
  box-shadow: -6px 10px 24px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.08);
}
.hm-book-thumb-top {
  padding: 18px 16px 14px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}
.hm-book-thumb-head {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.24;
  color: #0f172a;
}
.hm-book-thumb-sub {
  display: block;
  margin-top: 6px;
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.32;
  color: #475569;
}
.hm-book-thumb-author {
  display: block;
  margin-top: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a8a;
}
.hm-book-thumb-img {
  height: 250px;
  overflow: hidden;
  background: #0f172a;
}
.hm-book-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.hm-book-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.hm-book-title {
  margin: 0 0 4px;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: pretty;
  color: var(--hm-ink);
}
.hm-book-free {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid #a7d8c3;
  border-radius: 6px;
  font-family: var(--hm-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #047857;
  vertical-align: 0.35em;
  white-space: nowrap;
}
.hm-book-sub {
  margin: 0;
  max-width: none;
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--hm-ink-soft);
}

.hm-book-actions {
  margin-top: 6px;
}
.hm-book-cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--hm-brand);
  color: var(--hm-brand-dark);
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.hm-book-cta:hover {
  background: var(--hm-brand-wash);
}

/* ----------------------------------------------------------------------------
   CORE DISTINCT CAPABILITIES SPOTLIGHT SECTION
   ---------------------------------------------------------------------------- */
.hm-spotlight {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--hm-bg-alt);
  border-top: 1px solid var(--hm-line-soft);
}
.hm-spotlight-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hm-brand-dark);
  background: var(--hm-brand-wash);
  border: 1px solid #d0dfff;
  border-radius: 999px;
}
.hm-spotlight-header {
  text-align: center;
  margin-bottom: clamp(30px, 3.8vw, 44px);
}
.hm-spotlight-title {
  margin: 0 auto;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.hm-spotlight-sub {
  margin: 14px auto 0;
  max-width: none;
  font-size: clamp(1.06rem, 1.4vw, 1.26rem);
  line-height: 1.5;
  color: var(--hm-ink-soft);
}

.hm-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.hm-spot-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 28px);
  background: #ffffff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-lg);
  box-shadow: var(--hm-shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hm-spot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hm-shadow-md);
  border-color: #b8cbfa;
}
.hm-spot-card--wide {
  grid-column: span 3;
}
.hm-spot-card h3 {
  margin: 0;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.2rem, 1.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}
.hm-spot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  margin-right: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--hm-brand-dark);
  background: var(--hm-brand-wash);
  border: 1px solid #cbdafd;
  border-radius: 7px;
  vertical-align: 0.12em;
}
.hm-spot-card p {
  margin: 8px 0 0;
  max-width: none;
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  color: var(--hm-ink-soft);
}
.hm-spot-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--hm-brand-dark);
}

/* ----------------------------------------------------------------------------
   WITHIN-CATEGORY 2-TIER HIERARCHY:
   1. Flagship capabilities (full-width spotlight)
   2. Supporting capabilities (2-column bento grid below a subheader divider)
   ---------------------------------------------------------------------------- */
.hm-tier-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(56px, 7vw, 88px) 0 clamp(28px, 3.5vw, 42px);
}
.hm-tier-divider::before,
.hm-tier-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hm-line);
}
.hm-tier-divider-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-ink-faint);
  background: var(--hm-bg-alt);
  border: 1px solid var(--hm-line);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Streamlined inline prefix numbering for both full-width and bento cards */
.hm-feat-head {
  display: block;
}

/* 2-column Bento grid for Tier-2 features in each category */
.hm-feats--bento {
  margin-top: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}
.hm-feats--bento > .hm-feat {
  position: static;
  left: auto;
  width: 100%;
  margin: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-lg);
  box-shadow: var(--hm-shadow-sm);
}
.hm-feats--bento > .hm-feat .hm-feat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hm-feats--bento > .hm-feat .hm-feat-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  margin-right: 0;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--hm-brand-dark);
  background: var(--hm-brand-wash);
  border: 1px solid #cbdafd;
  border-radius: 8px;
  box-shadow: none;
  vertical-align: baseline;
  transform: translateY(-1px);
}
.hm-feats--bento > .hm-feat .hm-feat-title {
  display: inline;
  font-size: clamp(1.25rem, 1.65vw, 1.52rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
}
.hm-feats--bento > .hm-feat .hm-feat-caption {
  margin: 10px 0 0;
  max-width: none;
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  line-height: 1.5;
}
.hm-feats--bento > .hm-feat .hm-feat-media {
  margin: auto 0 0;
  padding-top: 18px;
  width: 100%;
}
.hm-feats--bento > .hm-feat .hm-feat-frame {
  width: 100%;
  box-shadow: var(--hm-shadow-md);
}
.hm-feats--bento > .hm-feat .hm-feat-frame img,
.hm-feats--bento > .hm-feat .hm-feat-frame video,
.hm-feats--bento > .hm-feat .hm-feat-frame svg {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .hm-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-spot-card,
  .hm-spot-card--wide {
    grid-column: span 1;
  }
  .hm-ecosystem,
  .hm-feats--bento,
  .hm-book-pillars {
    grid-template-columns: 1fr;
  }
  .hm-book-layout {
    grid-template-columns: 1fr;
  }
  .hm-book-thumb {
    width: min(280px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hm-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   WHY EASYCOMPARE STORY (dark brand statement: mission, proof stats,
   four investor questions, closing CTA)
   ---------------------------------------------------------------------------- */
.hm-story {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6.5vw, 88px) 0 clamp(48px, 6vw, 80px);
  color: #e6ebf5;
  text-align: center;
  background:
    radial-gradient(900px 420px at 18% -6%, rgba(96, 165, 250, 0.22), transparent 62%),
    radial-gradient(820px 420px at 86% 4%, rgba(52, 211, 153, 0.16), transparent 60%),
    #0b1220;
}
.hm-story-title {
  margin: 0 auto;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #ffffff;
}
.hm-story-title-accent {
  display: block;
  background: linear-gradient(90deg, #93c5fd 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-story-sub {
  margin: clamp(14px, 1.6vw, 20px) auto 0;
  max-width: none;
  font-size: clamp(1.18rem, 1.72vw, 1.52rem);
  font-weight: 500;
  line-height: 1.45;
  color: #dbe5f3;
}

.hm-story-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}
.hm-story-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 34px) 16px;
}
.hm-story-stat + .hm-story-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.hm-story-stat strong {
  font-family: var(--hm-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.hm-story-stat span {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.4;
  color: #94a3b8;
}

.hm-story-questions-title {
  margin: clamp(56px, 6.5vw, 88px) auto 0;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hm-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(26px, 3vw, 38px);
  text-align: left;
}
.hm-story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(16px, 1.6vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hm-story-card:hover {
  border-color: rgba(147, 197, 253, 0.35);
  transform: translateY(-2px);
}
/* Each card gets its own accent: a glow from the top corner over a tinted
   fill that fades into the dark section, with a matching border. */
.hm-story-grid > .hm-story-card {
  --card-rgb: 52, 211, 153;
  --card-glow-x: 0%;
  border-color: rgba(var(--card-rgb), 0.28);
  background:
    radial-gradient(120% 70% at var(--card-glow-x) 0%, rgba(var(--card-rgb), 0.24), rgba(var(--card-rgb), 0) 62%),
    linear-gradient(180deg, rgba(var(--card-rgb), 0.1) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.75) 100%);
  box-shadow:
    inset 0 1px 0 rgba(var(--card-rgb), 0.35),
    0 14px 32px rgba(2, 6, 23, 0.32);
}
.hm-story-grid > .hm-story-card.hm-story-card--featured {
  border-color: rgba(52, 211, 153, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(110, 231, 183, 0.5),
    0 0 0 1px rgba(52, 211, 153, 0.18),
    0 16px 36px rgba(2, 6, 23, 0.4);
}
.hm-story-grid > .hm-story-card:nth-child(2) { --card-rgb: 96, 165, 250; --card-glow-x: 100%; }
.hm-story-grid > .hm-story-card:nth-child(3) { --card-rgb: 167, 139, 250; }
.hm-story-grid > .hm-story-card:nth-child(4) { --card-rgb: 251, 191, 36; --card-glow-x: 100%; }
.hm-story-grid > .hm-story-card:hover { border-color: rgba(var(--card-rgb), 0.55); }
.hm-story-visual {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}
.hm-story-pulse {
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: hm-story-pulse 2.2s ease-out infinite;
}
@keyframes hm-story-pulse {
  0% { opacity: 0.45; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-story-pulse { animation: none; }
}
.hm-story-question {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #93c5fd;
}
.hm-story-card-title {
  margin: 8px 0 0;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.2rem, 1.45vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: #ffffff;
}
.hm-story-card-text {
  margin: 10px 0 0;
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.5;
  color: #b6c2d9;
}
.hm-story-proof {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hm-story-proof li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  line-height: 1.38;
  color: #dbe3f0;
}
.hm-story-proof li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    rgba(52, 211, 153, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 9px no-repeat;
}
.hm-story-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #93c5fd;
}
.hm-story-link:hover { color: #ffffff; }

/* Bias cards (home.html): compact cards with bias headline + 3-bullet solution. */
.hm-story-bias-kicker,
.hm-story-fix-label {
  display: none;
}
.hm-story-bias {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.18rem, 1.48vw, 1.42rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #fecdd3 0%, #fda4af 45%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-story-bias::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  background:
    rgba(244, 63, 94, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fda4af' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6v4.5M10 14h.01'/%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.22);
}
.hm-story-bias-text {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.42;
  color: #b6c2d9;
}
.hm-story-fix {
  flex: 1;
  margin-top: 16px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: none;
}
.hm-story-fix-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: #6ee7b7;
}

.hm-story-close {
  margin-top: clamp(56px, 6.5vw, 88px);
}
.hm-story-mission {
  margin: 0 auto;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hm-story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 26px;
}
.hm-story-mission-link {
  font-weight: 600;
  text-decoration: none;
  color: #b6c2d9;
}
.hm-story-mission-link:hover { color: #ffffff; }

@media (max-width: 1100px) {
  .hm-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hm-story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-story-stat:nth-child(3) { border-left: 0; }
  .hm-story-stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
/* Phones: cards become a swipeable row with the next card peeking in. */
@media (max-width: 640px) {
  .hm-story { padding-block: 44px 42px; }
  .hm-story-title { font-size: 1.55rem; }
  .hm-story-title-accent { display: block; margin-top: 4px; }
  .hm-story-sub { margin-top: 10px; font-size: 0.98rem; }
  .hm-story-grid {
    display: flex;
    gap: 12px;
    margin: 22px calc(-1 * var(--hm-pad)) 0;
    padding: 0 var(--hm-pad) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hm-pad);
    scrollbar-width: none;
  }
  .hm-story-grid::-webkit-scrollbar { display: none; }
  .hm-story-card {
    flex: 0 0 84%;
    padding: 16px;
    scroll-snap-align: start;
  }
  .hm-story-card:hover { transform: none; }
  .hm-story-link { padding-top: 12px; }
}

/* ----------------------------------------------------------------------------
   HOW IT WORKS ("It couldn't get any simpler" — 3-step input -> instant output)
   Surface cadence: Hero (airy glow) -> Workflow (crisp white stage) -> Questions (cool slate band) -> Why (deep navy)
   ---------------------------------------------------------------------------- */
.hm-simple {
  position: relative;
  padding: clamp(58px, 6.5vw, 90px) 0;
  border-top: 1px solid rgba(14, 23, 38, 0.09);
  border-bottom: 1px solid rgba(14, 23, 38, 0.09);
  background:
    radial-gradient(640px 280px at 50% 0%, rgba(255, 255, 255, 0.85), transparent 72%),
    linear-gradient(180deg, #edf2fa 0%, #f4f7fc 50%, #eef3fa 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.hm-ask {
  border-top: 0;
  background:
    radial-gradient(760px 300px at 14% 12%, rgba(59, 91, 219, 0.08), transparent 70%),
    radial-gradient(760px 300px at 86% 88%, rgba(43, 138, 110, 0.08), transparent 70%),
    linear-gradient(180deg, #eef2f9 0%, #f3f6fc 100%);
}
.hm-simple-head {
  text-align: center;
  margin-bottom: clamp(28px, 3.4vw, 42px);
}
.hm-simple-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(43, 138, 110, 0.28);
  background: linear-gradient(125deg, rgba(218, 228, 255, 0.72) 0%, rgba(206, 239, 226, 0.85) 52%, rgba(235, 226, 255, 0.68) 100%);
  box-shadow: 0 4px 14px rgba(29, 143, 110, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #165b4c;
}
.hm-simple-title {
  margin: 0 auto;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--hm-ink);
}

/* Layout: Step 1 (input frame) on the left -> bridge connector -> Steps 2 & 3 ("The Prize" output frame) */
.hm-simple-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) auto minmax(0, 2.04fr);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
}
@media (max-width: 1020px) {
  .hm-simple-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (min-width: 1021px) {
  .hm-simple-bridge { display: flex; }
}

/* Left stage: Your Input (brand-blue frame + top accent bar) */
.hm-simple-input-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 1.5vw, 18px);
  border-radius: 24px;
  border: 1.5px solid rgba(59, 91, 219, 0.34);
  background:
    linear-gradient(90deg, #3b5bdb 0%, #6078ea 100%) top / 100% 4px no-repeat,
    radial-gradient(95% 85% at 0% 0%, rgba(218, 228, 255, 0.65), transparent 65%),
    #f8faff;
  box-shadow: 0 14px 34px rgba(59, 91, 219, 0.08), 0 1px 3px rgba(14, 23, 38, 0.04);
}
.hm-simple-stage-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(59, 91, 219, 0.24);
  font-size: clamp(0.86rem, 1vw, 0.95rem);
  font-weight: 600;
  color: var(--hm-ink-soft);
}
.hm-simple-stage-banner strong {
  color: var(--hm-brand-dark);
  font-weight: 750;
}
.hm-simple-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hm-brand);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.18);
}

/* Right stage: The Prize / Instant Output (emerald frame + top accent bar) */
.hm-simple-outputs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 1.5vw, 18px);
  border-radius: 24px;
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  background:
    linear-gradient(90deg, #10b981 0%, #059669 55%, #3b5bdb 100%) top / 100% 4px no-repeat,
    radial-gradient(90% 90% at 0% 0%, rgba(196, 241, 222, 0.65), transparent 65%),
    radial-gradient(90% 90% at 100% 100%, rgba(218, 228, 255, 0.52), transparent 65%),
    #f4fbf8;
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.12), 0 2px 6px rgba(14, 23, 38, 0.05);
}
.hm-simple-outputs-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
  font-size: clamp(0.88rem, 1.04vw, 0.98rem);
  font-weight: 600;
  color: var(--hm-ink);
}
.hm-simple-outputs-banner strong {
  color: #047857;
  font-weight: 750;
}
.hm-simple-prize-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
}
.hm-simple-bolt {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b5bdb, #1d8f6e);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1;
}
.hm-simple-outputs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

/* Arrow connector between Step 1 and the Instant Output group */
.hm-simple-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
}
.hm-simple-bridge-line {
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(59, 91, 219, 0.35), rgba(16, 185, 129, 0.55));
}
.hm-simple-bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.16);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hm-ink);
}
.hm-simple-bridge-pill strong {
  color: #047857;
  font-weight: 750;
}
.hm-simple-bridge-arrow {
  width: 17px;
  height: 17px;
  color: #059669;
  transform: rotate(90deg);
}

@media (min-width: 1021px) {
  .hm-simple-bridge {
    padding: 0 2px;
  }
  .hm-simple-bridge-line { display: none; }
  .hm-simple-bridge-pill > span { display: none; }
  .hm-simple-bridge-pill {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #3b5bdb, #10b981);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
  }
  .hm-simple-bridge-arrow {
    width: 18px;
    height: 18px;
    color: #ffffff;
    transform: none;
  }
}

.hm-simple-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  border: 1px solid rgba(14, 23, 38, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(14, 23, 38, 0.05), 0 1px 3px rgba(14, 23, 38, 0.04);
  overflow: hidden;
  text-align: left;
}
.hm-simple-card--input {
  border-color: rgba(59, 91, 219, 0.18);
  background: #ffffff;
}
.hm-simple-step-head {
  padding: clamp(16px, 1.6vw, 20px) clamp(16px, 1.6vw, 20px) 14px;
}

/* Concise two-point list inside Step 1 */
.hm-simple-input-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.hm-simple-input-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  line-height: 1.44;
  color: var(--hm-ink-soft);
}
.hm-simple-input-points strong {
  font-weight: 700;
  color: var(--hm-ink);
}
.hm-simple-point-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: #3b5bdb;
}
.hm-simple-point-dot--violet {
  background: #6d28d9;
}
.hm-simple-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hm-brand-dark);
  background: #e8efff;
  border: 1px solid #cfdcff;
}
.hm-simple-badge--out {
  color: #047857;
  background: #dcf5ea;
  border-color: #bce8d5;
}
.hm-simple-badge--quant {
  color: #6d28d9;
  background: #ede7fe;
  border-color: #dacff9;
}
.hm-simple-step-title {
  margin: 10px 0 0;
  max-width: none;
  font-family: var(--hm-display);
  font-size: clamp(1.12rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--hm-ink);
}
.hm-simple-step-note {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.44;
  color: var(--hm-ink-soft);
}

/* Thumbnail button: bleeds to bottom/sides of the card and opens a lightbox */
.hm-simple-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(14, 23, 38, 0.07);
  background: #f4f7fc;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}
.hm-simple-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.28s ease;
}
.hm-simple-thumb:hover img,
.hm-simple-thumb:focus-visible img {
  transform: scale(1.035);
}
.hm-simple-thumb:focus-visible {
  outline: 2px solid var(--hm-brand);
  outline-offset: -2px;
}
.hm-simple-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 23, 38, 0.76);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hm-simple-zoom svg { width: 13px; height: 13px; }
.hm-simple-thumb:hover .hm-simple-zoom {
  background: var(--hm-brand);
  transform: translateY(-1px);
}
.hm-simple-card--input .hm-simple-thumb {
  height: 150px;
}

/* Lightbox modal for enlarged step visuals */
.hm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
}
.hm-lightbox[hidden] { display: none; }
.hm-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hm-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1240px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.hm-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hm-line);
  background: #f8fafd;
}
.hm-lightbox-caption {
  margin: 0;
  font-family: var(--hm-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hm-ink);
}
.hm-lightbox-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--hm-line);
  background: #ffffff;
  color: var(--hm-ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.hm-lightbox-close:hover { background: var(--hm-brand-wash); }
.hm-lightbox-body {
  overflow: auto;
  background: #f3f6fb;
}
.hm-lightbox-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 58px);
  object-fit: contain;
}

@media (max-width: 1020px) {
  .hm-simple-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* Phones: no frame-inside-a-frame. The stage frames drop away so each card
   gets the full width, and the input/output colors move onto the cards. */
@media (max-width: 640px) {
  .hm-simple {
    padding: 56px 0 64px;
  }
  .hm-simple-head {
    margin-bottom: 34px;
  }
  .hm-simple-title {
    font-size: 1.7rem;
  }
  .hm-simple-flow {
    gap: 0;
  }
  .hm-simple-input-stage,
  .hm-simple-outputs {
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .hm-simple-stage-banner,
  .hm-simple-outputs-banner {
    align-self: center;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .hm-simple-outputs-banner-text {
    display: none;
  }
  .hm-simple-outputs-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hm-simple-bridge {
    padding: 22px 0 26px;
  }
  .hm-simple-card {
    border-radius: 20px;
    border-top: 3px solid #10b981;
    box-shadow: 0 10px 30px rgba(14, 23, 38, 0.07), 0 1px 3px rgba(14, 23, 38, 0.04);
  }
  .hm-simple-card--input {
    border-top-color: #3b5bdb;
  }
  .hm-simple-step-head {
    padding: 22px 20px 18px;
  }
  .hm-simple-step-title {
    margin-top: 12px;
    font-size: 1.2rem;
    line-height: 1.28;
  }
  .hm-simple-step-note,
  .hm-simple-input-points li {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .hm-simple-step-note {
    margin-top: 8px;
  }
  .hm-simple-input-points {
    gap: 10px;
    margin-top: 14px;
  }
  .hm-simple-thumb,
  .hm-simple-card--input .hm-simple-thumb {
    width: auto;
    height: 190px;
    margin: auto 14px 14px;
    border: 1px solid rgba(14, 23, 38, 0.08);
    border-radius: 12px;
  }
  .hm-simple-zoom {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .hm-simple-zoom svg {
    width: 15px;
    height: 15px;
  }
}
