/* Home page only (enqueued on the front page). Uses the theme tokens from style.css. */

/* ── Shared ── */
.hm-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.1rem; text-wrap: balance; }
.hm-h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); text-wrap: balance; }
.hm-lead { margin-top: 1rem; font-size: 1.075rem; line-height: 1.7; color: var(--muted); max-width: 60ch; }
.hm-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.hm-head .hm-lead { margin-left: auto; margin-right: auto; }
.hm-center { display: flex; justify-content: center; margin-top: 2.5rem; }
.hm-btn--block { width: 100%; }
.hm-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.hm-pro-tag { display: inline-block; vertical-align: middle; font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand-2); padding: .15rem .5rem; border-radius: 99px; }

.hm-ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; color: var(--ink-2); }
.hm-ticks li { position: relative; padding-left: 1.85rem; line-height: 1.6; }
.hm-ticks li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 18px; height: 18px; border-radius: 99px;
  background: #1f6bff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>") center / 12px 12px no-repeat;
}
.hm-ticks--sm { gap: .6rem; font-size: .95rem; }

/* ── Hero ── */
.hm-hero { padding: 0 !important; }
.hm-hero-glow { position: absolute; right: -10%; top: 10%; width: 46rem; height: 30rem; background: radial-gradient(closest-side, rgba(59,130,255,.22), transparent); pointer-events: none; }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hm-hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06 !important; margin-top: 1.4rem; text-wrap: balance; }
@media (min-width: 1280px) { .hm-hero-title .grad-text { white-space: nowrap; } }
.hm-hero-lead { margin-top: 1.4rem; font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 36rem; }
.hm-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hm-hero-meta { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hm-hero-rating { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-2); }

/* Free checker form */
.hm-check { margin-top: 1.75rem; max-width: 34rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: .85rem; box-shadow: var(--shadow-md); }
.hm-check-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: 0 0 .55rem .2rem; }
.hm-check-row { position: relative; display: flex; gap: .5rem; }
.hm-check-icon { position: absolute; left: .8rem; top: 1.425rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hm-check-row input { flex: 1 1 auto; min-width: 0; height: 2.85rem; padding: 0 .9rem 0 2.3rem; border: 1px solid var(--line); border-radius: .7rem; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-soft); transition: border-color .15s, box-shadow .15s, background .15s; }
.hm-check-row input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(31,107,255,.15); }
.hm-check-btn { flex: 0 0 auto; height: 2.85rem; padding: 0 1.15rem; border: 0; border-radius: .7rem; background: linear-gradient(135deg, #1f6bff, #0a4ee0); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(31,107,255,.6); transition: filter .15s, transform .15s; }
.hm-check-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hm-check-btn:focus-visible { outline: 3px solid rgba(31,107,255,.4); outline-offset: 2px; }

/* Screenshot with floating facts */
.hm-hero-visual { position: relative; }
/* Wide screens have spare margin: let the tour use some of it so it balances the tall text column */
@media (min-width: 1400px) { .hm-hero-visual { margin-right: -3rem; } }
.hm-hero-visual .rb-shot { box-shadow: 0 40px 80px -30px rgba(15,42,120,.35); }
.hm-tour-media { position: relative; aspect-ratio: 1040 / 638; overflow: hidden; background: #f5f8ff; }
.hm-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity .9s ease; transform-origin: 20% 20%; }
.hm-slide.is-active { opacity: 1; }
/* Slides that are not showing keep the zoomed end state, so a fading-out slide does not jump back. */
.hm-tour.is-moving .hm-slide { transform: scale(1.06); }
.hm-tour.is-moving .hm-slide.is-active { animation: hm-drift 5.2s ease-out forwards; }
.hm-slide:nth-child(2) { transform-origin: 70% 40%; }
.hm-slide:nth-child(3) { transform-origin: 30% 60%; }
.hm-slide:nth-child(4) { transform-origin: 60% 30%; }
@keyframes hm-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hm-tour-label { position: absolute; left: .75rem; top: .75rem; padding: .3rem .65rem; border-radius: 99px; background: rgba(10,23,51,.78); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.hm-tour-controls { position: absolute; right: .6rem; bottom: .6rem; display: flex; align-items: center; gap: .35rem; padding: .3rem .4rem; border-radius: 99px; background: rgba(10,23,51,.72); line-height: 1; }
.hm-tour-controls[hidden] { display: none; }
.hm-tour-dot { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s, width .2s; }
.hm-tour-dot[aria-current="true"] { width: 1.1rem; background: #fff; }
.hm-tour-toggle { width: 1.6rem; height: 1.6rem; margin-left: .15rem; border: 0; border-radius: 99px; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.hm-tour-toggle:hover, .hm-tour-dot:hover { background: rgba(255,255,255,.25); }
.hm-tour-dot[aria-current="true"]:hover { background: #fff; }
.hm-tour-dot:focus-visible, .hm-tour-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hm-tour-toggle .hm-i-play { display: none; }
.hm-tour-toggle.is-paused .hm-i-play { display: block; }
.hm-tour-toggle.is-paused .hm-i-pause { display: none; }
.hm-float { position: absolute; display: flex; flex-direction: column; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: .7rem .95rem; box-shadow: 0 18px 40px -18px rgba(15,42,120,.35); }
.hm-float-num { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.hm-float-lbl { font-size: .72rem; color: var(--muted); max-width: 11rem; line-height: 1.35; }
.hm-float--a { left: -1.5rem; bottom: -1.4rem; }
.hm-float--b { right: -1.25rem; top: -1.4rem; }
.hm-float--a .hm-float-num { color: var(--brand-2); }

/* Proof strip */
.hm-proof { position: relative; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.hm-proof-item { display: flex; align-items: center; gap: .85rem; }
.hm-proof-icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.hm-proof-num { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-proof-lbl { font-size: .82rem; line-height: 1.4; color: var(--muted); }

/* ── Feature grid ── */
.hm-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-feat { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem 1.35rem 1.35rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.hm-feat:hover { border-color: #c9d8ff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hm-feat:focus-visible { outline: 3px solid rgba(31,107,255,.4); outline-offset: 2px; }
.hm-feat-icon { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); transition: background .18s, color .18s; }
.hm-feat--pro .hm-feat-icon { background: var(--brand-soft); border-color: #d6e2ff; color: var(--brand-2); }
.hm-feat:hover .hm-feat-icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.hm-feat-body { display: flex; flex-direction: column; gap: .35rem; padding-right: 1rem; }
.hm-feat-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.hm-feat-desc { font-size: .93rem; line-height: 1.6; color: var(--muted); }
.hm-feat-arrow { position: absolute; right: 1.1rem; top: 1.45rem; color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.hm-feat:hover .hm-feat-arrow { opacity: 1; transform: none; }

/* ── Speed chart ── */
.hm-chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.75rem; box-shadow: var(--shadow-md); }
.hm-chart-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.hm-bars { list-style: none; padding: 0; margin: 1.35rem 0 0; display: grid; gap: .95rem; }
.hm-bar { display: grid; grid-template-columns: 8.5rem 1fr 4.5rem; gap: .9rem; align-items: center; font-size: .9rem; }
.hm-bar-name { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-bar-track { height: .8rem; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.hm-bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #c3cee3; transform-origin: left center; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hm-bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-bar--own .hm-bar-name { color: var(--brand-2); }
.hm-bar--own .hm-bar-fill { background: linear-gradient(90deg, #0a4ee0, #3b82ff); }
.hm-bar--own .hm-bar-val { color: var(--brand-2); font-weight: 700; }
.hm-chart-note { margin-top: 1.25rem; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.hm-anim .hm-bar-fill { transform: scaleX(0); }
.hm-anim.is-in .hm-bar-fill { transform: scaleX(1); }

/* ── Pro tabs ── */
.hm-tabs { display: flex; justify-content: center; gap: .35rem; margin: 0 auto 2.5rem; padding: .35rem; width: max-content; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 99px; }
.hm-tab { flex: 0 0 auto; border: 0; background: transparent; padding: .6rem 1.15rem; border-radius: 99px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.hm-tab:hover { color: var(--ink); }
.hm-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.hm-tab:focus-visible { outline: 3px solid rgba(31,107,255,.4); outline-offset: 2px; }
.hm-panel[hidden] { display: none; }
.hm-panel { animation: hm-fade .35s ease; }
@keyframes hm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sample report card */
.hm-report { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(15,23,42,.25); }
.hm-report-head { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.35rem; background: #0f1b3d; color: #fff; }
.hm-report-logo { width: 2.4rem; height: 2.4rem; border-radius: .6rem; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, #1f6bff, #3b82ff); }
.hm-report-name { font-weight: 700; font-size: 1rem; }
.hm-report-sub { font-size: .75rem; opacity: .7; margin-top: .1rem; }
.hm-report-body { padding: 1.35rem; }
.hm-report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.hm-report-stats div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: .7rem; padding: .7rem .5rem; text-align: center; }
.hm-report-stats b { display: block; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-report-stats span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.hm-report-label { margin: 1.25rem 0 .6rem; font-size: .75rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .07em; }
.hm-report-row { display: grid; grid-template-columns: 8rem 1fr 2.5rem; gap: .7rem; align-items: center; font-size: .85rem; color: var(--ink-2); padding: .3rem 0; }
.hm-report-row b { text-align: right; font-variant-numeric: tabular-nums; }
.hm-report-track { height: .5rem; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.hm-report-track i { display: block; height: 100%; border-radius: inherit; background: #16a34a; }
.hm-report-note { padding: .65rem 1.35rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); text-align: right; }

/* ── Switch steps ── */
.hm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: none; }
.hm-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.6rem 1.5rem 1.5rem; }
.hm-step-num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; }
.hm-step-title { margin-top: 1rem; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.hm-step-text { margin-top: .45rem; font-size: .93rem; line-height: 1.6; color: var(--muted); }
.hm-step:not(:last-child)::after { content: ""; position: absolute; top: 2.75rem; right: -1.25rem; width: 1.25rem; border-top: 2px dashed #c9d8ff; }

/* ── Free and Pro teaser ── */
.hm-plans { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.hm-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.hm-plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.85rem; }
.hm-plan .hm-ticks { flex: 1 1 auto; margin-bottom: 1.6rem; }
.hm-plan--pro { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.hm-plan-name { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.hm-plan-price { margin-top: .5rem; font-weight: 800; font-size: 2.2rem; letter-spacing: -.02em; color: var(--ink); }
.hm-plan-price span { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.hm-plan-note { margin-top: .8rem; font-size: .8rem; color: var(--muted); text-align: center; }

/* ── Video (click to play) ── */
.hm-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0f1b3d; box-shadow: var(--shadow-lg); }
.hm-video-btn { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.hm-video-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .3s ease; }
.hm-video-btn:hover img { transform: scale(1.02); filter: brightness(.92); }
.hm-video-play { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 99px; display: grid; place-items: center; background: linear-gradient(135deg, #1f6bff, #0a4ee0); box-shadow: 0 16px 40px -10px rgba(31,107,255,.7), 0 0 0 8px rgba(255,255,255,.25); transition: transform .2s ease; }
.hm-video-play svg { margin-left: 3px; }
.hm-video-btn:hover .hm-video-play { transform: scale(1.08); }
.hm-video-btn:focus-visible { outline: 3px solid rgba(31,107,255,.6); outline-offset: -3px; }
.hm-video-len { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .7rem; border-radius: 99px; background: rgba(10,23,51,.75); font-size: .8rem; font-weight: 600; }
.hm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-video-note { margin-top: .75rem; text-align: center; font-size: .78rem; color: var(--muted); }

/* ── Reveal on scroll (only when JS is on and motion is allowed) ── */
.hm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.hm-reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hm-hero-grid, .hm-split { grid-template-columns: 1fr; gap: 3rem; }
  .hm-hero-visual { max-width: 40rem; }
  .hm-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hm-hero-grid { padding-top: 2rem; padding-bottom: 3.5rem; gap: 2.75rem; }
  .hm-hero-lead { font-size: 1.05rem; }
  .hm-hero-ctas .hm-btn { flex: 1 1 auto; }
  .hm-check-row { flex-direction: column; }
  .hm-check-btn { width: 100%; }
  .hm-float { padding: .55rem .75rem; }
  .hm-float-num { font-size: 1.05rem; }
  .hm-float--a { left: .5rem; bottom: -1.6rem; }
  .hm-float--b { right: .5rem; top: -1.6rem; }
  .hm-proof-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hm-feat-grid, .hm-steps, .hm-plan-grid { grid-template-columns: 1fr; }
  .hm-step:not(:last-child)::after { display: none; }
  .hm-bar { grid-template-columns: 6.5rem 1fr 3.9rem; gap: .6rem; font-size: .82rem; }
  .hm-chart, .hm-plan { padding: 1.35rem; }
  .hm-report-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-report-row { grid-template-columns: 6.5rem 1fr 2.3rem; }
  .hm-tabs { width: 100%; justify-content: space-between; gap: .15rem; }
  .hm-tab { padding: .55rem .7rem; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-feat, .hm-feat-icon, .hm-feat-arrow, .hm-bar-fill, .hm-reveal, .hm-panel, .hm-video-btn img, .hm-video-play, .hm-slide { transition: none !important; animation: none !important; }
  .hm-reveal, .hm-anim .hm-bar-fill { opacity: 1 !important; transform: none !important; }
}
