/* Public home (8 sections) and /download/ — workstream A.
 * No entrance animation, no auto-rotation: the hero paints with the HTML (SP1).
 * Colours come from the site tokens (site.css); --hm-ink is the readable accent for text. */
.hm {
  --hm-ink: #7de3ff;
  --hm-line: var(--mh-card-border);
  --hm-card: var(--mh-surface);
  --hm-radius: 1.25rem;
  outline: none;
}
:root[data-theme="light"] .hm { --hm-ink: #0b6e85; --hm-card: #ffffff; }

.hm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm .mh-eyebrow { color: var(--hm-ink); letter-spacing: .08em; }
:lang(ar) .hm .mh-eyebrow, :lang(fa) .hm .mh-eyebrow, :lang(ur) .hm .mh-eyebrow, :lang(he) .hm .mh-eyebrow, :lang(ja) .hm .mh-eyebrow, :lang(ko) .hm .mh-eyebrow, :lang(zh-hant) .hm .mh-eyebrow { letter-spacing: 0; text-transform: none; } /* AR2 */
.hm-h2 { margin-top: .5rem; font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; color: var(--mh-text); }
.hm-lead { margin-top: .9rem; max-width: 40rem; color: var(--mh-muted-strong); font-size: 1.05rem; line-height: 1.7; }
.hm-fine { margin-top: 1rem; color: var(--mh-muted); font-size: .88rem; }
.hm-center { text-align: center; margin-top: 1.5rem; }
.hm-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--hm-ink); text-decoration: none; }
.hm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-arrow { display: inline-block; }
[dir="rtl"] .hm-arrow { transform: scaleX(-1); } /* AR2: arrows point forward in RTL */
.hm a:focus-visible, .hm button:focus-visible, .hm summary:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 3px; border-radius: .5rem; }

/* 1. Hero */
.hm-hero { display: grid; gap: 1.75rem; align-items: center; padding-block: 1.5rem 2rem; }
@media (min-width: 960px) { .hm-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; padding-block: 3.5rem 3rem; } }
.hm-hero__title { font-size: clamp(2rem, 6.2vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--mh-text); text-wrap: balance; }
:lang(ar) .hm-hero__title, :lang(fa) .hm-hero__title, :lang(ur) .hm-hero__title { line-height: 1.3; letter-spacing: 0; }
.hm-hero__sub { margin-top: 1rem; max-width: 36rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--mh-muted-strong); }
.hm-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.hm-cta { min-height: 3rem; padding-inline: 1.6rem; font-size: 1rem; }
.hm-hero__trial { margin-top: .85rem; color: var(--mh-muted); font-size: .92rem; font-weight: 600; }
.hm-hero__media { margin: 0; justify-self: center; width: min(100%, 400px); }
.hm-hero__media img { display: block; width: 100%; height: auto; border-radius: 1.5rem; border: 1px solid var(--hm-line); box-shadow: var(--mh-shadow); background: var(--mh-surface-strong); }
@media (max-width: 767px) {
  .hm-only-desktop { display: none !important; }
  .hm-hero__media { width: min(100%, 300px); }
  .hm-hero__media img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; }
}
@media (min-width: 768px) { .hm-only-phone { display: none !important; } }

/* 2. Proof row */
.hm-proof { border-block: 1px solid var(--hm-line); background: var(--mh-surface-soft); }
.hm-proof__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; padding-block: 1rem; list-style: none; margin-block: 0; }
.hm-proof__item { display: inline-flex; align-items: baseline; gap: .35rem; color: var(--mh-muted-strong); font-size: .95rem; }
.hm-proof__value { color: var(--mh-text); font-size: 1.1rem; font-weight: 800; }

/* Sections */
.hm-section { padding-block: clamp(3rem, 7vw, 5rem); }
.hm-band { background: var(--mh-surface-soft); border-block: 1px solid var(--hm-line); }
.hm-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 3.5rem; } .hm-split--exam { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.hm-split__img { display: block; width: min(100%, 380px); height: auto; justify-self: center; border-radius: 1.5rem; border: 1px solid var(--hm-line); box-shadow: var(--mh-soft-shadow); background: var(--mh-surface-strong); }
.hm-split__img--wide { width: 100%; max-width: 520px; border-radius: 1rem; }

/* 3. Jobs */
.hm-jobs { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .hm-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hm-jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-job { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1rem 1.25rem; border-radius: var(--hm-radius); border: 1px solid var(--hm-line); background: var(--hm-card); }
.hm-job__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: .9rem; background: var(--mh-surface-strong); }
.hm-job__title { margin-top: .4rem; font-size: 1.2rem; font-weight: 800; color: var(--mh-text); }
.hm-job__body { flex: 1; color: var(--mh-muted-strong); line-height: 1.6; }

/* Lists */
.hm-checks { display: grid; gap: .55rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.hm-checks li { position: relative; padding-inline-start: 1.6rem; color: var(--mh-muted-strong); line-height: 1.5; }
.hm-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3rem; width: 1rem; height: .55rem; border-left: 2.5px solid var(--hm-ink); border-bottom: 2.5px solid var(--hm-ink); transform: rotate(-45deg); }
.hm-checks--small { margin-top: .75rem; font-size: .92rem; }

/* 5. Exam */
.hm-exam__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hm-chip { display: inline-flex; padding: .3rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 800; background: color-mix(in srgb, var(--hm-ink) 16%, transparent); color: var(--hm-ink); }
.hm-chip--plain { background: transparent; border: 1px solid var(--hm-line); color: var(--mh-muted-strong); }
.hm-tracks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.hm-tracks a { display: inline-flex; gap: .4rem; padding: .5rem .85rem; border-radius: .8rem; border: 1px solid var(--hm-line); background: var(--hm-card); color: var(--mh-text); text-decoration: none; font-size: .92rem; }
.hm-tracks a span { color: var(--mh-muted); }
.hm-tracks a:hover { border-color: var(--hm-ink); }

/* 6. Reviews */
.hm-reviews { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .hm-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .hm-reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-review { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; margin: 0; padding: 1.15rem; border-radius: var(--hm-radius); border: 1px solid var(--hm-line); background: var(--hm-card); }
.hm-review blockquote { margin: 0; color: var(--mh-text); line-height: 1.6; font-size: .95rem; }
.hm-review figcaption { display: flex; align-items: center; gap: .65rem; color: var(--mh-muted); font-size: .82rem; line-height: 1.4; }
.hm-review figcaption strong { color: var(--mh-text); }
.hm-review__initials { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font-weight: 800; color: #fff; background: #0b6e85; }
.hm-stars { color: #f5a524; }

/* 7. Plans */
.hm-toggle { display: inline-flex; gap: .25rem; margin-top: 1.5rem; padding: .3rem; border-radius: 999px; border: 1px solid var(--hm-line); background: var(--hm-card); }
.hm-toggle__btn { padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; color: var(--mh-muted-strong); background: transparent; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.hm-toggle__btn[aria-pressed="true"] { background: var(--hm-ink); color: var(--mh-bg); }
.hm-toggle__btn[aria-pressed="true"] .hm-save { background: rgba(255, 255, 255, .25); color: inherit; }
.hm-save { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: color-mix(in srgb, #16a36b 18%, transparent); color: #12895a; }
:root:not([data-theme="light"]) .hm-save { color: #4ade9b; }
.hm-save--block { margin-top: .35rem; }
.hm-plans { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 760px) { .hm-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-plan { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.35rem; border-radius: var(--hm-radius); border: 1px solid var(--hm-line); background: var(--hm-card); }
.hm-plan--featured { border: 2px solid var(--hm-ink); box-shadow: var(--mh-soft-shadow); }
.hm-plan__badge { position: absolute; top: -.8rem; inset-inline-start: 1.25rem; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--hm-ink); color: var(--mh-bg); }
.hm-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 800; color: var(--mh-text); }
.hm-plan__tag { padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid var(--hm-line); color: var(--mh-muted-strong); }
.hm-plan__price { margin-top: .5rem; font-size: 1.9rem; font-weight: 800; color: var(--mh-text); }
.hm-plan__period { margin-inline-start: .25rem; font-size: .95rem; font-weight: 600; color: var(--mh-muted); }
.hm-plan__note { color: var(--mh-muted); font-size: .9rem; }
.hm-plan__lead { margin-top: .5rem; font-weight: 700; color: var(--mh-text); font-size: .92rem; }
.hm-plan .hm-checks { flex: 1; }
.hm-plan__cta { margin-top: 1.25rem; width: 100%; justify-content: center; text-align: center; }
.hm-plans__more { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; }

/* 8. FAQ + closing CTA */
.hm-faq__list { display: grid; gap: .6rem; margin-top: 1.5rem; max-width: 46rem; }
.hm-faq__item { border-radius: 1rem; border: 1px solid var(--hm-line); background: var(--hm-card); }
.hm-faq__item summary { cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; color: var(--mh-text); list-style-position: inside; }
.hm-faq__item p { padding: 0 1.15rem 1.1rem; color: var(--mh-muted-strong); line-height: 1.65; }
.hm-final { text-align: center; background: var(--mh-surface-soft); border-top: 1px solid var(--hm-line); }
.hm-final__inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hm-final .hm-lead { margin-inline: auto; }
.hm-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block: 1.25rem .5rem; }
.hm-store__text { display: flex; flex-direction: column; text-align: start; line-height: 1.15; }
.hm-store__small { font-size: .62rem; opacity: .7; font-weight: 500; }
.hm-store__big { font-size: .95rem; font-weight: 800; }
.hm-dl__logo { margin-bottom: .5rem; border-radius: 1.2rem; }

/* Phones: keep the page short (L-review: the old home was 14 phone screens). */
@media (max-width: 639px) {
  .hm-job { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem; align-items: start; padding: .85rem; }
  .hm-job__img { grid-row: 1 / span 3; aspect-ratio: 3 / 4; border-radius: .7rem; }
  .hm-job__title { margin-top: 0; font-size: 1.05rem; }
  .hm-job__body { font-size: .92rem; line-height: 1.5; }
  .hm-split__img { width: min(100%, 260px); }
  .hm-split__img--wide { width: 100%; }
  .hm-reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .5rem; overscroll-behavior-x: contain; }
  .hm-review { flex: 0 0 85%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before { transition: none !important; animation: none !important; }
}
