/* home-page.css - the landing page (index.html). Loaded after main.css and home.css, so everything is scoped under body.hm.
 * Shared card styles (.popular_item_card, .adspot_price ...) still come from css/home.css because the market uses them too. */

.hm { background: var(--ui-bg, #fafafa); overflow-x: hidden; }

/* ------------------------------------------------------------------ hero */
.hm #top_block {
    box-sizing: border-box;
    height: auto;
    min-height: clamp(420px, 62vh, 560px);
    margin-top: 60px;
    padding: 56px 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
}
.hm #adspot_logo {
    margin: 0;
    font-family: 'adspot', sans-serif;
    font-size: clamp(72px, 12vw, 160px);
    line-height: 1.2;
    letter-spacing: 0 !important;
    opacity: 1 !important;
    user-select: none;
    animation: hm-rise .8s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes hm-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.hm #top_block_heading { margin: 0; font-size: clamp(22px, 3vw, 35px); text-align: center; }
.hm .hm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.hm .top_block_buttons {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 150px; min-height: 48px; margin: 0; padding: 0 28px;
    border-radius: 999px !important; background: #2b2f2a; color: #fff;
    font-family: var(--ui-font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: .1px; text-transform: capitalize; text-decoration: none;
    box-shadow: 0 2px 6px rgba(24, 34, 24, .16);
    transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.hm .top_block_buttons:hover { background: #454b44; box-shadow: 0 4px 12px rgba(24, 34, 24, .22); }
.hm .hm-actions .top_block_buttons:nth-child(3) { background: rgba(255,255,255,.7); color: #2b2f2a; box-shadow: inset 0 0 0 1.5px #2b2f2a; }
.hm .hm-actions .top_block_buttons:nth-child(3):hover { background: #fff; }
.hm .top_block_buttons:active { transform: translateY(1px); }
.hm #top_block_search { box-sizing: border-box; width: min(800px, 100%); margin: 14px 0 0; padding: 0 8px; }
.hm #top_block_search input { padding: 22px 24px; border-radius: 999px; border: 1px solid transparent; font-size: 17px; transition: box-shadow .15s ease, background-color .15s ease; }
.hm #top_block_search input:focus { background: #fff; box-shadow: 0 0 0 3px var(--ui-sage-ring, rgba(106,138,102,.35)); outline: none; }

@media (prefers-reduced-motion: reduce) { .hm #adspot_logo { animation: none; } }

/* ------------------------------------------------------------------ landing sections (lp-*) */
.hm .lp-sec { padding: 64px 24px; background: var(--ui-card, #fff); }
.hm .lp-sec--tint { background: var(--ui-bg, #f5f6f4); }
.hm .lp-wrap { box-sizing: border-box; width: min(1200px, 100%); margin: 0 auto; }
.hm .lp-center { text-align: center; }
.hm .lp-eyebrow { margin: 0 0 8px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-sage-dark, #4f6b4b); }
.hm .lp-h { margin: 0 0 12px; text-align: center; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; color: var(--ui-ink, #2b2f2a); }
.hm .lp-sub { max-width: 640px; margin: 0 auto 32px; text-align: center; font-size: 17px; line-height: 1.5; color: var(--ui-muted, #5f665e); }
.hm .lp-chips { justify-content: center; margin-top: 24px; }
.hm .lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hm .lp-panel { padding: 28px; border: 1px solid var(--ui-line, #e8ebe6); border-radius: var(--ui-radius-lg, 16px); background: #fff; box-shadow: var(--ui-shadow, none); }
.hm .lp-panel h3 { margin: 0 0 18px; font-size: 22px; color: var(--ui-ink, #2b2f2a); }
.hm .lp-steps { display: grid; gap: 18px; margin: 0 0 24px; padding: 0; list-style: none; }
.hm .lp-step { position: relative; padding-left: 56px; min-height: 44px; }
.hm .lp-step__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ui-sage-soft, #e6ece4); color: var(--ui-sage-dark, #4f6b4b); font-weight: 700; font-size: 17px; }
.hm .lp-step .lp-ic { display: none; }
.hm .lp-step h4 { margin: 0 0 4px; font-size: 17px; color: var(--ui-ink, #2b2f2a); }
.hm .lp-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ui-muted, #5f665e); }
.hm .lp-btn { text-decoration: none; }

/* one row on desktop, horizontal scroll-snap when it does not fit; never wraps */
.hm .lp-row { display: flex; flex-wrap: nowrap; gap: 16px; margin: 0; padding: 4px 4px 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hm .lp-row > * { flex: 1 0 250px; min-width: 250px; scroll-snap-align: start; }
.hm .lp-row--benefits > * { flex-basis: 185px; min-width: 185px; }
.hm .lp-benefit, .hm .lp-card { box-sizing: border-box; border: 1px solid var(--ui-line, #e8ebe6); border-radius: var(--ui-radius-lg, 16px); background: #fff; box-shadow: var(--ui-shadow-sm, none); }
.hm .lp-benefit { padding: 22px; }
.hm .lp-benefit__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--ui-sage-soft, #e6ece4); color: var(--ui-sage-dark, #4f6b4b); }
.hm .lp-benefit h3 { margin: 0 0 6px; font-size: 17px; color: var(--ui-ink, #2b2f2a); }
.hm .lp-benefit p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ui-muted, #5f665e); }
.hm .lp-card { overflow: hidden; }
.hm .lp-card__art { position: relative; display: grid; place-items: center; height: 130px; color: #fff; }
.hm .lp-card__body { padding: 16px 18px 18px; }
.hm .lp-card__body h3 { margin: 8px 0 4px; font-size: 17px; color: var(--ui-ink, #2b2f2a); }
.hm .lp-card__art + .lp-card__body h3 { margin-top: 0; }
.hm .lp-meta { margin: 4px 0; font-size: 14px; color: var(--ui-muted, #5f665e); }
.hm .lp-price { margin: 10px 0 4px; font-size: 14px; color: var(--ui-muted, #5f665e); }
.hm .lp-price strong { font-size: 22px; color: var(--ui-ink, #2b2f2a); }
.hm .lp-tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ui-ink, #2b2f2a); font-size: 12px; font-weight: 700; }
.hm .lp-tag--soft { position: static; display: inline-block; background: var(--ui-warn-soft, #fbf0dc); color: #8a5a10; }
.hm .lp-prog { margin: 14px 0 8px; }
.hm .lp-row + .lp-center { margin: 16px 0 0; }
.hm .lp-final { background: var(--ui-ink, #2b2f2a); }
.hm .lp-final .lp-h { color: #fff; }
.hm .lp-final .lp-sub { color: #cdd4ca; margin-bottom: 24px; }
.hm .lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hm .lp-cta .ui-btn { text-decoration: none; }

@media (max-width: 800px) {
    .hm .lp-sec { padding: 44px 16px; }
    .hm .lp-two { grid-template-columns: 1fr; }
    .hm .lp-panel { padding: 22px 18px; }
    .hm .lp-row > * { flex: 0 0 78%; min-width: 0; }
}

/* benefit blocks: roomier 3 x 2 grid (the sample inventory/campaign rows above keep their single row) */
.hm .lp-row--benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; padding: 4px 0 8px; scroll-snap-type: none; }
.hm .lp-row--benefits > * { min-width: 0; flex-basis: auto; }
.hm .lp-row--benefits .lp-benefit { padding: 32px 30px; }
.hm .lp-row--benefits .lp-benefit h3 { font-size: 19px; margin-bottom: 8px; }
.hm .lp-row--benefits .lp-benefit p { font-size: 16px; line-height: 1.6; }
@media (max-width: 900px) { .hm .lp-row--benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm .lp-row--benefits { grid-template-columns: 1fr; } }

/* trust and safety: four reasons, four across (two on tablets) so there is no lonely last card */
.hm .lp-trust .lp-row--benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm .lp-trust .lp-row--benefits .lp-benefit { padding: 26px 24px; }
.hm .lp-trust .lp-row--benefits .lp-benefit h3 { font-size: 18px; }
.hm .lp-trust .lp-row--benefits .lp-benefit p { font-size: 15px; }
@media (max-width: 1000px) { .hm .lp-trust .lp-row--benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm .lp-trust .lp-row--benefits { grid-template-columns: 1fr; } }

/* roomier rhythm between a section heading and what follows, and between stacked cards */
.hm .lp-sub { margin-bottom: 36px; }
.hm .lp-h { margin-bottom: 14px; }
.hm .lp-row--benefits { gap: 24px; margin-top: 36px; }
.hm .lp-chips { margin-top: 28px; gap: 10px; }
.hm .lp-panel { padding: 32px; }
.hm .lp-steps { gap: 22px; }
.hm .lp-card__body { padding: 18px 20px 20px; }
.hm .lp-row { gap: 20px; padding: 4px 4px 20px; }
.hm .lp-row + .lp-center { margin-top: 24px; }
.hm .lp-sec { padding: 72px 24px; }
@media (max-width: 800px) {
    .hm .lp-sec { padding: 48px 16px; }
    .hm .lp-panel { padding: 24px 20px; }
    .hm .lp-row--benefits { margin-top: 28px; gap: 16px; }
    .hm .lp-row--benefits .lp-benefit { padding: 24px 22px; }
}
.hm a:focus-visible, .hm .lp-row:focus-visible { outline: 3px solid var(--ui-sage-ring, rgba(106,138,102,.5)); outline-offset: 2px; }

.hm .ps-footer { margin-top: 0; }
