/* ─────────────────────────────────────────────────────────────
   2026-11-13 — minimal homepage (resources/views/home/minimal.blade.php).

   Loaded ONLY by layouts/home-minimal.blade.php, so nothing here can
   reach /pricing, /offer, shop pages, the seller dashboard or admin.
   Every selector is namespaced `hm-`.

   Colours come from the existing brand tokens in
   /assets/css/brand.css (blue #2563eb, ink #0f172a) — no new palette.

   Responsive plan (mobile-first, fluid in between):
     320–559   one column, video under the button, rows swipe
     560–719   shops go 3-up
     720+      hero in two columns (also phones held sideways),
               video rows wrap instead of swiping
     900+      shops 6-up, roomier spacing
   Sizes use clamp() so nothing jumps at a breakpoint, and the hero
   video is also capped by the viewport HEIGHT so it never outgrows a
   short screen.
   ───────────────────────────────────────────────────────────── */

.hm-body {
    --hm-gutter: clamp(16px, 5vw, 32px);
    --hm-section: clamp(36px, 7vw, 72px);
    margin: 0;
    background: #fff;
    color: var(--brand-ink, #0f172a);
    font-family: 'Noto Sans Armenian', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

.hm-body *,
.hm-body *::before,
.hm-body *::after { box-sizing: border-box; }

.hm-body img,
.hm-body video { max-width: 100%; }

.hm-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    /* Notched phones held sideways: never tuck content under the notch. */
    padding-left:  max(var(--hm-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--hm-gutter), env(safe-area-inset-right, 0px));
}

/* ── Top bar (no marketing nav on this page) ───────────────── */
.hm-top { padding: clamp(10px, 2.5vw, 24px) 0 0; }
.hm-top__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
/* logo3.png is 1536x1024 but the wordmark only occupies 764x252 at
   (374,330) — the rest is transparent padding, so sizing the <img>
   by height alone renders a tiny mark. Crop to the ink box with a
   clipping wrapper instead of adding another image file. */
.hm-logo {
    --hm-logo-h: clamp(22px, 5.6vw, 30px);
    position: relative;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    width: calc(var(--hm-logo-h) * 764 / 252);
    height: var(--hm-logo-h);
}
.hm-logo img {
    position: absolute;
    display: block;
    max-width: none;
    width:  calc(var(--hm-logo-h) * 1536 / 252);
    height: calc(var(--hm-logo-h) * 1024 / 252);
    left:   calc(var(--hm-logo-h) * -374 / 252);
    top:    calc(var(--hm-logo-h) * -330 / 252);
}
.hm-top__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 2.5vw, 18px);
    min-width: 0;
}
.hm-top__login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;                 /* comfortable tap target */
    line-height: 1.25;
    color: var(--brand-muted, #64748b);
    font-size: clamp(.82rem, 3.6vw, .92rem);
    font-weight: 500;
    text-align: right;
    text-decoration: none;
}
.hm-top__login:hover { color: var(--brand-ink, #0f172a); }
/* 2026-11-15 — "Work" link (manager programme) in the top bar. */
.hm-top__nav {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-primary, #2563eb);
    font-size: clamp(.82rem, 3.6vw, .92rem);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.hm-top__nav:hover { text-decoration: underline; }
/* Phones: no room next to the logo, so the link gets its own line. */
.hm-top__nav { display: none; }
.hm-top__workline { margin-top: 2px; }
.hm-top__worklink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--brand-primary, #2563eb);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
@media (min-width: 560px) {
    .hm-top__nav { display: inline-flex; }
    .hm-top__workline { display: none; }
}
.hm-top__nav:focus-visible {
    outline: 2px solid var(--brand-primary, #2563eb);
    outline-offset: 3px;
    border-radius: 4px;
}
.hm-top__login:focus-visible,
.hm-link:focus-visible,
.hm-footer__links a:focus-visible {
    outline: 2px solid var(--brand-primary, #2563eb);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hm-hero { padding: clamp(10px, 3vw, 20px) 0 8px; }
.hm-hero__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "video";
}
.hm-hero__copy  { grid-area: copy; min-width: 0; }
.hm-hero__video { grid-area: video; margin: 0; min-width: 0; }
/* No hero video available → just copy + chips, nothing reserved. */
.hm-hero__grid--solo { grid-template-areas: "copy"; }

.hm-eyebrow {
    margin: 0 0 12px;
    color: var(--brand-primary, #2563eb);
    font-size: clamp(.76rem, 3.2vw, .84rem);
    font-weight: 700;
    letter-spacing: .01em;
}

.hm-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 8.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.hm-sub {
    margin: 0 0 20px;
    max-width: 36ch;
    color: var(--brand-muted, #64748b);
    font-size: clamp(.95rem, 3.9vw, 1.08rem);
}

/* Three scannable benefits above the button (replaces the paragraph). */
.hm-points {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--brand-ink-soft, #1e293b);
    font-size: clamp(.92rem, 3.9vw, 1.02rem);
    font-weight: 500;
    line-height: 1.4;
}
.hm-points li {
    position: relative;
    padding-left: 30px;
}
.hm-points li::before {           /* green tick, drawn in CSS */
    content: '';
    position: absolute;
    left: 0;
    top: .1em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.hm-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.hm-cta__note {
    margin: 0;
    color: var(--brand-muted, #64748b);
    font-size: .84rem;
    font-weight: 500;
    text-align: center;
}

/* Proof row: real shop logos + "see a real shop". */
.hm-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 7px 16px 7px 9px;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-ink, #0f172a);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hm-proof:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
    color: var(--brand-ink, #0f172a);
}
.hm-proof:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}
.hm-proof svg { flex: 0 0 auto; color: var(--brand-primary, #2563eb); }
.hm-proof__logos { display: inline-flex; flex: 0 0 auto; }
.hm-proof__logos img {
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--brand-border, #e2e8f0);
}
.hm-proof__logos img + img { margin-left: -9px; }
.hm-proof__text { min-width: 0; }

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: clamp(.95rem, 4vw, 1rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.hm-btn svg { flex: 0 0 auto; }
.hm-btn--primary {
    background: var(--brand-primary, #2563eb);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .26);
}
.hm-btn--primary:hover {
    background: var(--brand-primary-dark, #1d4ed8);
    transform: translateY(-1px);
    color: #fff;
}
.hm-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 3px;
}
.hm-btn--lg { min-height: 56px; padding: 16px 28px; font-size: clamp(1rem, 4.2vw, 1.05rem); }

.hm-link {
    color: var(--brand-muted, #64748b);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hm-link:hover { color: var(--brand-primary, #2563eb); }
.hm-link--light { color: rgba(255, 255, 255, .82); }
.hm-link--light:hover { color: #fff; }

.hm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hm-chips li {
    padding: 7px 13px;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--brand-ink-soft, #1e293b);
    font-size: clamp(.76rem, 3.3vw, .84rem);
    font-weight: 600;
}

/* ── 9:16 player ───────────────────────────────────────────── */
.hm-player {
    --hm-player-w: 290px;
    position: relative;
    width: min(100%, var(--hm-player-w));
    margin: 0 auto;
    aspect-ratio: 9 / 16;          /* space reserved → no layout shift */
    border-radius: clamp(16px, 5vw, 22px);
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}
/* Hero: as wide as allowed, but never taller than ~80% of the screen
   (vh first for old browsers, svh where the browser bar is counted). */
.hm-player--hero { --hm-player-w: min(320px, calc(80vh * 9 / 16)); }
@supports (height: 1svh) {
    .hm-player--hero { --hm-player-w: min(320px, calc(80svh * 9 / 16)); }
}

.hm-player__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.hm-player__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    max-width: calc(100% - 20px);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* A tag tied to one scene (data-hm-tag-from/to): hidden until home.js
   says that scene is playing. */
.hm-player[data-hm-tag-from] .hm-player__tag {
    opacity: 0;
    transition: opacity .25s ease;
}
.hm-player[data-hm-tag-from].is-tag-on .hm-player__tag { opacity: 1; }

.hm-player__play,
.hm-player__sound {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color .15s ease, transform .15s ease, opacity .2s ease;
}
.hm-player__play:hover,
.hm-player__sound:hover { background: rgba(15, 23, 42, .85); }
.hm-player__play:focus-visible,
.hm-player__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hm-player__play {
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
}
/* The play overlay is only for players that are not running. */
.hm-player.is-playing .hm-player__play { display: none; }

.hm-player__sound {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
}
.hm-player__sound::after {        /* bigger tap target, same circle */
    content: '';
    position: absolute;
    inset: -7px;
}
.hm-player__sound .hm-ico-sound { display: none; }
.hm-player.is-unmuted .hm-player__sound .hm-ico-sound { display: block; }
.hm-player.is-unmuted .hm-player__sound .hm-ico-muted { display: none; }

/* Fallback text, shown only if the video element errors out. */
.hm-player__fallback {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    margin: 0;
    padding: 12px;
    background: rgba(15, 23, 42, .85);
    color: #fff;
    font-size: .8rem;
    text-align: center;
    display: none;
}
.hm-player.has-error .hm-player__fallback { display: block; }
.hm-player.has-error .hm-player__play,
.hm-player.has-error .hm-player__sound { display: none; }

.hm-cap {
    margin: 12px auto 0;
    max-width: 320px;
    color: var(--brand-muted, #64748b);
    font-size: .88rem;
    font-weight: 500;
    text-align: center;
}

/* ── Shared section bits ───────────────────────────────────── */
.hm-h2 {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 5.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.hm-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}
.hm-section-sub {
    margin: 0 0 22px;
    max-width: 52ch;
    color: var(--brand-muted, #64748b);
    font-size: clamp(.88rem, 3.7vw, .96rem);
}

/* ── Real shops ────────────────────────────────────────────── */
.hm-shops { padding: var(--hm-section) 0 0; }
.hm-shops__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hm-shops__grid li { min-width: 0; }
.hm-shop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 16px 12px 14px;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 18px;
    background: #fff;
    color: var(--brand-ink, #0f172a);
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hm-shop:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    color: var(--brand-ink, #0f172a);
}
.hm-shop:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}
.hm-shop__logo {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    color: #94a3b8;
}
/* The real logo sits on top of the glyph; if it fails to load it is
   removed and the glyph shows — never invented initials. */
.hm-shop__logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.hm-shop__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.hm-shop__open {
    margin-top: auto;
    color: var(--brand-primary, #2563eb);
    font-size: .78rem;
    font-weight: 600;
}

/* ── How it works: three steps ─────────────────────────────── */
.hm-how { padding: var(--hm-section) 0 0; }
.hm-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.hm-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 18px;
    background: #f8fafc;
}
.hm-step__n {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary, #2563eb);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}
.hm-step__title {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.hm-step__text {
    margin: 0;
    color: var(--brand-muted, #64748b);
    font-size: .9rem;
    line-height: 1.45;
}
.hm-rail--now { margin-top: 22px; }
.hm-how__cta { margin-top: 20px; }

/* ── Video rows ("how it works", "coming soon") ────────────── */
.hm-rail-sec { padding: var(--hm-section) 0 0; }

/* Horizontal swipe on phones; any number of videos fits. */
.hm-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--hm-gutter) * -1);
    padding: 0 var(--hm-gutter) 6px;
    scroll-padding: 0 var(--hm-gutter);
}
.hm-rail::-webkit-scrollbar { display: none; }
.hm-h2 + .hm-rail { margin-top: 18px; }   /* row without a subtitle */
.hm-rail[data-hm-count="1"] { justify-content: center; }
.hm-rail__item {
    flex: 0 0 auto;
    width: clamp(190px, 60vw, 250px);
    margin: 0;
    scroll-snap-align: center;
}
.hm-rail__item .hm-player { --hm-player-w: 100%; }
.hm-rail__item .hm-cap { max-width: 100%; font-size: .82rem; }

/* ── Final CTA ─────────────────────────────────────────────── */
.hm-final { padding: var(--hm-section) 0 clamp(32px, 6vw, 56px); }
.hm-final__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: clamp(28px, 6vw, 52px) clamp(18px, 5vw, 36px);
    border-radius: clamp(20px, 5vw, 28px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    text-align: center;
}
.hm-final__title { color: #fff; margin: 0; }
.hm-final .hm-btn--primary {
    width: auto;
    max-width: 100%;
    background: #fff;
    color: var(--brand-primary-dark, #1d4ed8);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
}
.hm-final .hm-btn--primary:hover { background: #f8fafc; color: var(--brand-primary-dark, #1d4ed8); }

/* ── Footer ────────────────────────────────────────────────── */
.hm-footer {
    padding: 26px 0 max(34px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--brand-border, #e2e8f0);
    text-align: center;
}
.hm-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin-bottom: 12px;
}
.hm-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--brand-muted, #64748b);
    font-size: .85rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.hm-footer__links a:hover { color: var(--brand-primary, #2563eb); }
.hm-footer__copy {
    margin: 0;
    /* --brand-muted-soft (#94a3b8) fails WCAG AA at this size (2.56:1). */
    color: var(--brand-muted, #64748b);
    font-size: .8rem;
}
/* The shared operator partial centres cleanly here. */
.hm-footer .footer-operator { justify-content: center; overflow-wrap: anywhere; }

/* ── 560+ : shops three across ─────────────────────────────── */
@media (min-width: 560px) {
    .hm-shops__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ── 720+ (and phones held sideways): hero in two columns ──── */
@media (min-width: 720px), (min-width: 540px) and (max-height: 520px) and (orientation: landscape) {
    .hm-hero { padding: clamp(20px, 4vw, 48px) 0 16px; }
    .hm-hero__grid {
        grid-template-columns: minmax(0, 1fr) clamp(200px, 32vw, 360px);
        grid-template-areas: "copy video";
        align-items: center;
        column-gap: clamp(24px, 5vw, 64px);
        row-gap: 18px;
    }
    .hm-hero__grid--solo {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy";
    }
    .hm-hero__copy { align-self: center; }
    .hm-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
    .hm-points { margin-bottom: 26px; }
    .hm-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
    .hm-btn { width: auto; }
    .hm-player--hero { --hm-player-w: min(360px, calc(78vh * 9 / 16)); }
}
@supports (height: 1svh) {
    @media (min-width: 720px), (min-width: 540px) and (max-height: 520px) and (orientation: landscape) {
        .hm-player--hero { --hm-player-w: min(360px, calc(78svh * 9 / 16)); }
    }
}

/* ── 720+ : video rows wrap instead of swiping ─────────────── */
@media (min-width: 720px) {
    .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .hm-step { flex-direction: column; gap: 12px; padding: 20px; }
    .hm-cta__note { text-align: left; }
    .hm-rail {
        flex-wrap: wrap;
        gap: 28px 24px;
        overflow: visible;
        margin: 0;
        padding: 0;
        scroll-snap-type: none;
    }
    .hm-rail[data-hm-count="1"] { justify-content: flex-start; }
    .hm-rail__item { width: clamp(190px, 22vw, 250px); }
}

/* ── 900+ : shops in one row, sharing the full width ───────── */
@media (min-width: 900px) {
    .hm-shops__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .hm-shop { padding: 20px 12px 16px; }
}

/* ── Accessibility / data saving ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hm-btn,
    .hm-shop,
    .hm-proof,
    .hm-player__tag,
    .hm-player__play,
    .hm-player__sound { transition: none; }
    .hm-btn--primary:hover,
    .hm-shop:hover { transform: none; }
}
