/* ==========================================================================
   Home 2026 — template-parts/home-*.php: hero, the 3 apps, how it works, video, merchant / courier.
   Neutral colours come from base.css (light and dark); the app cards keep their brand colours in both:
   Comptorys navy, Lekk Eat yellow, Lekk Delivery green.
   ========================================================================== */

:root {
    --h2-navy: #0E2F55;
    --h2-orange: #F08220;
    --h2-yellow: #FFCB2B;
    --h2-green: #1F8A4C;
    --h2-green-soft: #E9F6EE;
    --h2-device: #0B1220;
}

/* ---------- shared ---------- */
.h2-head { max-width: 720px; margin-bottom: 44px; }
.h2-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.h2-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h2-orange);
}
.h2-h2 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
}
.h2-sub { font-size: 18px; line-height: 1.55; color: var(--text-secondary); }
.h2-btn { border-radius: var(--radius-pill); }

/* ---------- hero ---------- */
.h2-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px) 0 24px;
    background:
        radial-gradient(1100px 520px at 88% 0%, rgba(34, 181, 242, 0.12), transparent 70%),
        radial-gradient(760px 420px at 0% 100%, rgba(240, 130, 32, 0.10), transparent 70%);
}
.h2-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 40px;
    align-items: center;
}
.h2-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--card);
    font-size: 13px;
    color: var(--text-secondary);
}
.h2-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h2-green); }
.h2-title {
    margin: 20px 0 18px;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--text);
}
.h2-accent { color: var(--h2-orange); }
.h2-lead { max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--text-secondary); }
.h2-lead strong { color: var(--text); }
.h2-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.h2-mini-apps { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.h2-mini-apps a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 7px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}
.h2-mini-apps a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.h2-mini-apps img { width: 30px; height: 30px; border-radius: 9px; }

/* the photo with the three screens over it */
.h2-stage { position: relative; height: 620px; }
.h2-photo {
    position: absolute;
    top: 30px;
    left: 0;
    right: 20px;
    height: 360px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.h2-photo img { width: 100%; height: 100%; object-fit: cover; animation: h2-zoom 18s ease-in-out infinite alternate; }
@keyframes h2-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.h2-phone {
    position: absolute;
    width: 205px;
    overflow: hidden;
    border: 7px solid var(--h2-device);
    border-radius: 30px;
    background: #FFFFFF;
    box-shadow: 0 30px 60px rgba(14, 47, 85, 0.28);
}
.h2-phone img { display: block; width: 100%; height: auto; }
.h2-phone-left { left: 4%; top: 210px; transform: rotate(-6deg); }
.h2-phone-mid { left: 34%; top: 175px; z-index: 2; }
.h2-phone-right { left: 64%; top: 210px; transform: rotate(6deg); }

.h2-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}
.h2-pay ul { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.h2-pay li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.h2-pay .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.h2-pay .dot.orange { background: #FF7900; }
.h2-pay .dot.wave { background: #1DC8F2; }
.h2-pay .dot.mtn { background: #FFCC00; }
.h2-pay .dot.moov { background: #0055A5; }

/* ---------- the 3 apps ---------- */
.h2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.h2-app {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 28px 26px 0;
    border-radius: 28px;
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.h2-app-head { display: flex; align-items: center; gap: 12px; }
.h2-app-head img { width: 52px; height: 52px; border-radius: 15px; }
.h2-app h3 { margin: 0; font-size: 28px; letter-spacing: -0.02em; color: inherit; }
.h2-app-who { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.h2-app p { margin: 16px 0 10px; font-size: 15.5px; line-height: 1.5; color: inherit; opacity: 0.92; }
.h2-app ul { padding: 0; margin: 0; list-style: none; font-size: 14.5px; line-height: 1.95; color: inherit; }
.h2-app li { color: inherit; }
.h2-app li i { width: 20px; font-size: 13px; }
.h2-app-link { margin-top: 14px; font-weight: 800; font-size: 15px; color: inherit; text-decoration: none; }
.h2-app-link:hover { text-decoration: underline; }
.h2-app-shot {
    flex: none;
    width: 220px;
    height: 230px;
    margin: 22px auto 0;
    overflow: hidden;
    border: 6px solid var(--h2-device);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: #FFFFFF;
}
.h2-app-shot img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.h2-app:hover .h2-app-shot img { transform: translateY(-14px); }

.h2-app-cmp { background: var(--h2-navy); color: #FFFFFF; }
.h2-app-eat { background: var(--h2-yellow); color: #1A1400; }
.h2-app-dlv { background: var(--h2-green-soft); color: #0F3D24; }

/* ---------- how it works ---------- */
.h2-flow { background: var(--bg-soft); }
.h2-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
.h2-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 17%;
    right: 17%;
    border-top: 2px dashed var(--border);
}
.h2-steps li { position: relative; padding: 0 16px; }
.h2-steps img { width: 64px; height: 64px; margin-bottom: 16px; border-radius: 20px; box-shadow: var(--shadow); }
.h2-steps h3 { margin: 0 0 8px; font-size: 21px; color: var(--text); }
.h2-steps p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }

/* ---------- video ---------- */
.h2-video {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: center;
    padding: clamp(28px, 5vw, 60px);
    border-radius: 36px;
    background: var(--h2-navy);
    color: #FFFFFF;
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.h2-video .h2-h2 { color: #FFFFFF; }
.h2-video .h2-sub { color: #C7D3E6; }
.h2-video-box { overflow: hidden; border-radius: 24px; background: #000000; aspect-ratio: 16 / 9; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.h2-video-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
#video { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- merchant / courier ---------- */
.h2-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.h2-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px; border-radius: 28px; }
.h2-choice img { width: 56px; height: 56px; border-radius: 16px; }
.h2-choice h3 { margin: 0; font-size: 28px; letter-spacing: -0.02em; color: inherit; }
.h2-choice p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: inherit; opacity: 0.92; }
.h2-btn-green { background: var(--h2-green); color: #FFFFFF !important; border-radius: var(--radius-pill); }
.h2-btn-green:hover { background: #18723E; }
.h2-choice .btn { border-radius: var(--radius-pill); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1024px) {
    .h2-hero-grid { grid-template-columns: 1fr; }
    .h2-stage { max-width: 620px; width: 100%; margin: 0 auto; }
    .h2-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .h2-video { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .h2-stage { height: 470px; }
    .h2-photo { right: 0; height: 240px; border-radius: 22px; }
    .h2-phone { width: 140px; border-width: 5px; border-radius: 22px; }
    .h2-phone-left { left: 0; top: 200px; }
    .h2-phone-mid { left: calc(50% - 70px); top: 170px; }
    .h2-phone-right { left: auto; right: 0; top: 200px; }
    .h2-ctas .btn { width: 100%; justify-content: center; }
    .h2-steps { grid-template-columns: 1fr; gap: 34px; }
    .h2-steps::before { display: none; }
    .h2-choices { grid-template-columns: 1fr; }
    .h2-choice { padding: 26px; }
    .h2-app-shot { width: 200px; }
}
