/* ==========================================================================
   SendorX — home.css  (body class: .page-home)
   Homepage only. Every selector is scoped under .page-home so nothing here
   can affect another page.
   ========================================================================== */

/* ===== HERO ===== */
.page-home .hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 90px 0 40px;
    position: relative;
    overflow: visible;
}
.page-home .hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,.18), transparent 70%);
    pointer-events: none;
}
.page-home .hero-inner {
    display: grid;
    grid-template-columns: minmax(520px, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.page-home .hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0px 0px 0px 0 !important;
    max-width: 620px;
}
.page-home .hero h1 .accent { color: var(--orange); }
.page-home .hero p.lead {
    font-size: 18px;
    color: rgba(255,255,255,.78);
    margin-top: -70px;
    margin-bottom: 20px;
    max-width: 540px;
    line-height: 1.6;
}
.page-home .hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: -90px;
    margin-bottom: 80px;
}

.page-home .hero-left-3 { display: flex; align-items: center; gap: 12px; }
.page-home .hero-text { flex: 0 0 75%; }
.page-home .hero-icon {
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}
.page-home .hero-icon img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(2);
    transform-origin: center center;
}

.page-home .hero-visual { position: relative; z-index: 3; }
.page-home .hero-visual img.shot {
    width: 100%;
    max-width: 760px;
    height: auto;
    margin-bottom: -270px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.35));
}
/* Push the next section down so the bleed sits inside it. */
.page-home .hero + .section { padding-top: 180px; }

/* ===== SECTIONS ===== */
.page-home .section { padding: 90px 0; }
.page-home .section--bg { background: var(--bg); }
.page-home .section-head { text-align: left; max-width: 720px; margin: 0px 50px 50px 50px; }
.page-home .section-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.page-home .section-head p { color: var(--muted); font-size: 17px; margin: 0; text-align: justify; }

/* ===== FEATURE GRID (2-up) ===== */
.page-home .feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}
.page-home .feature-card {
    background: #fff;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 2px 8px rgba(15,23,42,.04), 0 14px 36px rgba(15,23,42,.08);
    transition: all .3s ease;
}
.page-home .feature-card:hover {
    cursor: pointer;
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(15,23,42,.10), 0 30px 60px rgba(15,23,42,.12);
}
.page-home .icon-wrap { display: flex; justify-content: center; align-items: center; margin: 6px 0px 0px 0px; }
.page-home .icon-wrap img { width: 130px; display: block; object-fit: contain; margin-bottom: 16px; transform: none; }
.page-home .feature-card h3 { font-size: 16px; margin: 0px 0px; font-weight: 600; text-transform: capitalize; text-align: center; }
.page-home .feature-card p { color: var(--muted); font-size: 13px; margin-bottom: 14px; line-height: 1.5; text-align: center; }
/* Card 1 icon: rendered 2x bigger, layout box (width/height) untouched. */
.page-home .icon-wrap img[src*="scale-without-infrastructure"] { transform: scale(2); transform-origin: center; }

/* ===== HOW IT WORKS ===== */
/* Two full-width bands: the header on navy, the "Upload contacts" step on --bg. */
.page-home .how-head-section    { background: var(--navy); padding: 72px 0; }
.page-home .how-content-section { background: var(--bg);    padding: 130px 0; }

.page-home .how-head {
    display: grid;
    grid-template-columns: 32% 68%;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto;
}
.page-home .how-head-left h2 { font-size: 52px; font-weight: 700; line-height: 1.1; margin: 0 0 18px; color: #fff; }
.page-home .how-head-left p { font-size: 22px; color: rgba(255,255,255,.7); margin: 0; }
.page-home .how-head-right { display: flex; justify-content: flex-end; }
.page-home .how-head h2 { font-size: 40px; text-align: end; }
.page-home .how-head p { font-size: 22px; margin-top: 18px; text-align: center; color: rgba(255,255,255,.7); }

.page-home .how-steps {
    display: flex;
    justify-content: center;
    gap: 47px;
    margin-top: 60px;
    align-items: center;
}
.page-home .how-step {
    position: relative;
    width: 200px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd3c0;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 22% 50%);
    filter: drop-shadow(0 10px 12px rgba(15, 23, 42, .14));
}
.page-home .how-step.active { background: var(--orange); color: #fff; }

.page-home .how-steps-icon { display: flex; gap: 34px; margin-top: 60px; }
.page-home .how-step-icon {
    position: relative;
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd3c0;
    color: #111827;
    font-size: 17px;
    font-weight: 600;
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 22% 50%);
    filter: drop-shadow(0 10px 12px rgba(15, 23, 42, .14));
}
.page-home .how-step-icon-left {
    position: relative;
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd3c0;
    color: #111827;
    font-size: 17px;
    font-weight: 600;
    /* LEFT pointing arrow */
    clip-path: polygon(22% 0, 100% 0, 78% 50%, 100% 100%, 22% 100%, 0 50%);
    filter: drop-shadow(0 10px 12px rgba(15, 23, 42, .14));
}

.page-home .divider-1 { display: block; width: 72px;  height: 4px; margin: 20px 0 20px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) 0%, #ffb27a 100%); }
.page-home .divider-2 { display: block; width: 167px; height: 4px; margin: 20px 0 20px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) 0%, #ffb27a 100%); }
.page-home .divider-3 { display: block; width: 137px; height: 4px; margin: 20px 0 20px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) 0%, #ffb27a 100%); }

.page-home .how-content {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.page-home .how-copy h3 { font-size: 34px; margin-bottom: 38px; }
.page-home .how-copy h4 { font-size: 30px; font-weight: 700; line-height: 1.2; color: #08122B; margin: 34px 0 0; }
.page-home .how-copy p  { font-size: 20px; font-weight: 400; line-height: 1.6; color: #64748B; margin: 0; }

.page-home .how-image { margin-left: 0; overflow: visible; }
.page-home .how-image img {
    width: 100%;
    max-width: 850px;
    height: auto;
    display: block;
    transform: scale(1.1);
    transition: transform .90s ease, filter .90s ease;
    filter: drop-shadow(0 18px 36px rgba(15,23,42,.18));
}
.page-home .how-image:hover img {
    transform: scale(1.2) translateX(10px);
    filter: drop-shadow(0 32px 60px rgba(15,23,42,.25));
    cursor: pointer;
}

/* ===== SMTP & API block ===== */
.page-home .smtp-wrapper {
    display: grid;
    grid-template-columns: 75% 25%;
    align-items: center;
    gap: 40px;
}
.page-home .smtp-block {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: center;
}
.page-home .smtp-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 50px;
}
.page-home .smtp-copy .how-steps-icon { margin: 0 0 26px; }
.page-home .smtp-copy h4 { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 0; color: var(--ink); }
.page-home .smtp-copy .divider-1 { margin: 18px 0 22px; }
.page-home .smtp-copy p { margin: 0; font-size: 20px; line-height: 1.6; font-weight: 400; color: var(--muted); }

.page-home .smtp-block h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.5px; }
.page-home .smtp-block p { color: rgba(255,255,255,.75); margin: 0 0 28px; }
.page-home .smtp-cards { display: flex; flex-direction: column; gap: 16px; }
.page-home .smtp-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    padding: 22px;
    border-radius: var(--radius);
}
.page-home .smtp-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.page-home .smtp-card h4 { margin: 0 0 6px; font-size: 16px; }
.page-home .smtp-card p { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; }

/* ===== TEAMS ROW ===== */
.page-home .teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 90px;
}
.page-home .team-card { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.page-home .team-card .icon-wrap { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--orange-soft); color: var(--orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.page-home .team-card h3 { margin: 0 0 8px; font-size: 17px; }
.page-home .team-card p { color: var(--muted); font-size: 14px; margin: 0; }

.page-home .teams-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 70px;
    align-items: center;
}

/* ===== RESPONSIVE — how section (<=900px) ===== */
@media (max-width: 900px) {
    .page-home .how-head-section { padding: 48px 0; }
    .page-home .how-head {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        margin: 0;
    }
    .page-home .how-head h2 { text-align: center; }
    .page-home .how-head p  { text-align: center; }
    .page-home .how-head-left,
    .page-home .how-head-right { width: 100%; max-width: 100%; flex: none; }
    .page-home .how-head-left { padding: 0; text-align: center; }
    .page-home .how-head-left .divider-2 { margin: 20px auto; }
    .page-home .how-head-right { display: flex; justify-content: center; padding: 0; }
    .page-home .how-steps { justify-content: center; flex-wrap: wrap; gap: 0px; margin-top: 0; }
    .page-home .how-step { width: 140px; height: 50px; font-size: 18px; }
    .page-home .how-content { grid-template-columns: 1fr; gap: 36px; }
    .page-home .how-copy { padding-left: 20px; }
    .page-home .how-copy h3 { margin-bottom: 20px; }
}

/* ===== RESPONSIVE — layout (<=960px) ===== */
@media (max-width: 960px) {
    .page-home .section-head { margin: 0px 20px 50px 20px; }
    .page-home .hero + .section { padding-top: 70px; }
    /* Undo the desktop hero's negative margins for the single-column stack and
       keep the rocket icon a sensible fixed size (desktop scales it 2x). */
    /* Buttons stack with "See features" on top; half the previous top gap. */
    .page-home .hero-cta { flex-direction: column-reverse; align-items: flex-start; margin-top: 11px; margin-bottom: 40px; }
    .page-home .hero-left-3 { align-items: center; gap: 16px; }
    .page-home .hero-text { flex: 1 1 auto; }
    /* Rocket ~4x bigger, scaled in place (keeps the text box) and nudged left off the corner. */
    .page-home .hero-icon { flex: 0 0 72px; }
    .page-home .hero-icon img { width: 72px; margin-left: 0; transform: scale(4) translateX(-14px); transform-origin: center; }

    .page-home .how-content { display: flex; flex-direction: column-reverse; }
    .page-home .how-image { order: 1; width: 100%; }
    .page-home .how-copy { order: 2; width: 100%; margin-top: 0; padding-left: 0; }
    .page-home .how-image img { transform: none !important; padding: 0; margin-left: 0; max-width: 100%; }

    .page-home .smtp-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 50px;
        padding: 0px 10px 10px 10px;
    }
    .page-home .smtp-block { width: 100%; grid-template-columns: 1fr; gap: 36px; padding: 40px 28px; }
    .page-home .smtp-copy { width: 100%; margin-left: 20px; }
    .page-home .smtp-copy .how-steps-icon { justify-content: center; margin: 0 0 22px; }
    .page-home .smtp-cards { gap: 20px; }

    .page-home .teams-layout {
        display: flex;
        flex-direction: column-reverse;
        margin: 10px 0px 0px 0px;
    }
    .page-home .teams-layout .teams-grid { order: 1; width: 100%; margin: 50px 0px; }
    .page-home .teams-layout > .how-copy { order: 2; width: 100%; }

    .page-home .hero p.lead { margin-top: 12px; }
    .page-home .hero { padding: 40px 0px 10px 0px; }
    .page-home .hero-inner { grid-template-columns: 1fr; gap: 0px; }
    .page-home .hero-visual { max-width: 640px; margin: 0 auto; }
    .page-home .hero-visual img.shot { width: 100%; margin-bottom: -40px; }

    .page-home .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .page-home .teams-grid { grid-template-columns: 1fr; padding: 0px 20px; }
}

/* ===== RESPONSIVE — mobile (<=720px) ===== */
@media (max-width: 720px) {
    .page-home .feature-grid { grid-template-columns: 1fr; }
    .page-home .section,
    .page-home .how-content-section { padding: 60px 0; }
}

/* ===== RESPONSIVE — phones: keep the 3 "How it Works" step chevrons on one row.
   At 140px each they wrapped (Step 3 dropped to a 2nd line); flex-share them so
   three always fit, capped so they don't balloon on wider phones. ===== */
@media (max-width: 480px) {
    .page-home .how-steps { width: 100%; flex-wrap: nowrap; gap: 4px; }
    .page-home .how-step { width: auto; flex: 1 1 0; min-width: 0; height: 44px; font-size: 13px; }
}
