/* Homepage additions (Nov 2026): Solid Waste Management showcase, live
   launches, product cards, colour tiles and animated icons.
   Builds on home-apple.css. All motion stops under prefers-reduced-motion. */

.ap { --green:#0e9f6e; --green-d:#047857; --green-wash:#ecfdf5; }

/* ---- Hero announcement pill -------------------------------------- */
.hp-announce {
    display:inline-flex; align-items:center; gap:10px; margin-bottom:18px;
    padding:6px 14px 6px 6px; border-radius:999px; font-size:13px; font-weight:500;
    color:#065f46; background:var(--green-wash, #ecfdf5); border:1px solid #a7f3d0;
    text-decoration:none; transition:transform .25s ease, box-shadow .25s ease;
}
.hp-announce:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(14,159,110,.18); color:#065f46; }
.hp-announce__tag {
    background:#0e9f6e; color:#fff; font-size:11px; font-weight:700; letter-spacing:.04em;
    text-transform:uppercase; padding:3px 9px; border-radius:999px;
    animation:hp-glow 2.4s ease-in-out infinite;
}
@keyframes hp-glow { 0%,100% { box-shadow:0 0 0 0 rgba(14,159,110,.45); } 50% { box-shadow:0 0 0 6px rgba(14,159,110,0); } }
@media (max-width:520px) { .hp-announce { font-size:12px; } }

/* ---- Colour tiles with animated icons ---------------------------- */
.hp-tile { position:relative; overflow:hidden; border:1px solid transparent; }
.hp-tile::before {
    content:''; position:absolute; inset:auto -40% -60% auto; width:220px; height:220px; border-radius:50%;
    background:radial-gradient(circle, var(--c-soft) 0%, transparent 70%); opacity:0; transition:opacity .4s ease;
    pointer-events:none;
}
.hp-tile:hover { border-color:var(--c-line); }
.hp-tile:hover::before { opacity:1; }
.hp-c1 { --c:#0071e3; --c-soft:rgba(0,113,227,.14); --c-line:rgba(0,113,227,.22); }
.hp-c2 { --c:#7c3aed; --c-soft:rgba(124,58,237,.14); --c-line:rgba(124,58,237,.22); }
.hp-c3 { --c:#0e9f6e; --c-soft:rgba(14,159,110,.14); --c-line:rgba(14,159,110,.22); }
.hp-c4 { --c:#f97316; --c-soft:rgba(249,115,22,.14); --c-line:rgba(249,115,22,.22); }
.hp-c5 { --c:#db2777; --c-soft:rgba(219,39,119,.14); --c-line:rgba(219,39,119,.22); }
.hp-c6 { --c:#0891b2; --c-soft:rgba(8,145,178,.14); --c-line:rgba(8,145,178,.22); }

.hp-icon {
    width:52px; height:52px; border-radius:15px; color:#fff;
    background:var(--c);
    background:linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 62%, #fff));
    box-shadow:0 8px 20px -6px var(--c-line);
    transition:transform .35s cubic-bezier(.34,1.56,.64,1);
}
.hp-icon svg { width:25px; height:25px; overflow:visible; }
.hp-tile:hover .hp-icon { transform:translateY(-3px) rotate(-6deg) scale(1.06); }

.hp-icon--float svg { animation:hp-float 3.2s ease-in-out infinite; }
.hp-icon--float .hp-draw { stroke-dasharray:60; stroke-dashoffset:60; animation:hp-draw 4s ease-in-out infinite; }
.hp-icon--stack .hp-l1 { animation:hp-lift 2.8s ease-in-out infinite; }
.hp-icon--stack .hp-l2 { animation:hp-lift 2.8s ease-in-out .15s infinite; }
.hp-icon--stack .hp-l3 { animation:hp-lift 2.8s ease-in-out .3s infinite; }
.hp-icon--blink .hp-led { animation:hp-blink 1.6s steps(2) infinite; }
.hp-icon--blink .hp-led2 { animation-delay:.8s; }
.hp-icon--cart svg { animation:hp-roll 3s ease-in-out infinite; }
.hp-icon--spin .hp-rays { transform-origin:12px 12px; animation:hp-spin 9s linear infinite; }
.hp-icon--ring .hp-wave { animation:hp-pulse 1.8s ease-in-out infinite; }

@keyframes hp-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
@keyframes hp-draw  { 0% { stroke-dashoffset:60; } 45%,75% { stroke-dashoffset:0; } 100% { stroke-dashoffset:-60; } }
@keyframes hp-lift  { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
@keyframes hp-blink { 0% { opacity:1; } 100% { opacity:.15; } }
@keyframes hp-roll  { 0%,100% { transform:translateX(0); } 40% { transform:translateX(2px); } 60% { transform:translateX(-1px); } }
@keyframes hp-spin  { to { transform:rotate(360deg); } }
@keyframes hp-pulse { 0%,100% { opacity:.25; } 50% { opacity:1; } }

/* ---- Solid Waste Management showcase ----------------------------- */
.hp-swm { background:
    radial-gradient(900px 420px at 100% 0%, rgba(14,159,110,.10), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(0,113,227,.07), transparent 60%), #fff; }
.hp-swm__grid { display:grid; grid-template-columns:1fr 1.05fr; gap:56px; align-items:center; }
@media (max-width:920px) { .hp-swm__grid { grid-template-columns:1fr; gap:36px; } }
.hp-swm .ap-h2 { font-size:clamp(30px, 3.8vw, 46px); }
.hp-eyebrow-green { color:var(--green); display:flex; align-items:center; gap:8px; }
.hp-dot { width:8px; height:8px; border-radius:50%; background:currentColor; display:inline-block; position:relative; }
.hp-dot::after { content:''; position:absolute; inset:0; border-radius:50%; background:currentColor; animation:hp-ping 1.8s ease-out infinite; }
@keyframes hp-ping { 0% { transform:scale(1); opacity:.7; } 100% { transform:scale(3); opacity:0; } }
.hp-swm__lead { font-size:17.5px; line-height:1.65; color:var(--ink2); margin:18px 0 26px; }
.hp-swm__lead a { color:var(--green-d); font-weight:600; }
.hp-swm__feats { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; }
@media (max-width:520px) { .hp-swm__feats { grid-template-columns:1fr; } }
.hp-swm__feats li { display:flex; align-items:center; gap:11px; font-size:15px; color:var(--ink); }
.hp-feat-ic { flex:none; width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--green-wash); color:var(--green); }
.hp-feat-ic svg { width:18px; height:18px; }

.hp-swm__art { position:relative; margin:0; }
.hp-swm__art img { width:100%; height:auto; display:block; border-radius:24px; box-shadow:0 30px 60px -20px rgba(15,61,94,.45); }
.hp-float {
    position:absolute; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    border-radius:14px; padding:10px 14px; font-size:13px; color:var(--ink2); box-shadow:0 12px 30px rgba(0,0,0,.14);
    animation:hp-bob 4s ease-in-out infinite;
}
.hp-float b { color:var(--green-d); font-size:16px; margin-right:4px; }
.hp-float--a { left:-14px; bottom:18%; }
.hp-float--b { right:-12px; top:12%; animation-delay:1.4s; }
@keyframes hp-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@media (max-width:520px) {
    .hp-float { padding:6px 10px; font-size:11px; border-radius:10px; }
    .hp-float b { font-size:13px; }
    .hp-float--a { left:8px; bottom:8px; } .hp-float--b { right:8px; top:8px; }
}

/* Pricing tiers */
.hp-tiers { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:64px; align-items:stretch; }
@media (max-width:920px) { .hp-tiers { grid-template-columns:1fr; max-width:460px; margin-left:auto; margin-right:auto; } }
.hp-tier {
    position:relative; background:#fff; border:1px solid var(--line-soft); border-radius:22px; padding:30px 26px;
    display:flex; flex-direction:column; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hp-tier:hover { transform:translateY(-4px); box-shadow:0 18px 40px rgba(0,0,0,.08); border-color:#a7f3d0; }
.hp-tier--pop { border:2px solid var(--green); box-shadow:0 20px 44px -14px rgba(14,159,110,.35); }
.hp-tier__badge {
    position:absolute; top:-12px; left:50%; transform:translateX(-50%); white-space:nowrap;
    background:var(--green); color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.04em;
    text-transform:uppercase; padding:5px 12px; border-radius:999px;
}
.hp-tier h3 { font-size:19px; font-weight:600; color:var(--ink); margin:0; letter-spacing:-.015em; min-height:2.5em; }
@media (max-width:920px) { .hp-tier h3 { min-height:0; } }
.hp-tier__for { font-size:14px; color:var(--ink2); margin:6px 0 16px; min-height:2.6em; }
.hp-tier__price { font-size:44px; font-weight:700; letter-spacing:-.03em; color:var(--ink); margin:0 0 18px; line-height:1; }
.hp-tier__price span { font-size:24px; vertical-align:top; margin-right:2px; }
.hp-tier__price small { font-size:16px; font-weight:500; color:var(--ink2); letter-spacing:0; }
.hp-tier ul { list-style:none; padding:0; margin:0 0 24px; display:grid; gap:9px; }
.hp-tier li { font-size:14.5px; color:var(--ink); display:flex; gap:9px; align-items:flex-start; }
.hp-tier li::before {
    content:''; flex:none; width:18px; height:18px; margin-top:1px; border-radius:50%; background:var(--green-wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hp-tier .ap-cta { margin-top:auto; }
.hp-tier--pop .ap-cta { background:var(--green); }
.hp-tier--pop .ap-cta:hover { background:var(--green-d); }
.hp-tier .ap-cta--ghost { color:var(--green-d); box-shadow:inset 0 0 0 1px var(--green); }
.hp-tier .ap-cta--ghost:hover { background:var(--green-wash); color:var(--green-d); }
.hp-tiers__note { text-align:center; font-size:14px; color:var(--ink3); margin:24px auto 0; max-width:720px; line-height:1.6; }
.hp-tiers__note a { color:var(--green-d); }

/* ---- Live launches ------------------------------------------------ */
.hp-live__media { aspect-ratio:2.05 / 1; position:relative; }
.hp-live__pill {
    position:absolute; top:14px; left:14px; display:inline-flex; align-items:center; gap:7px;
    background:rgba(0,0,0,.6); color:#fff; font-size:12px; font-weight:600; padding:5px 11px; border-radius:999px;
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.hp-live__pill .hp-dot { color:#34d399; }
.hp-live__chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.hp-live__chips span { font-size:12px; padding:4px 10px; border-radius:999px; background:var(--wash); color:var(--ink2); }
.hp-live__links { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:16px; }
.hp-live__links .ap-link { font-size:15px; }

/* ---- Metrics with icons ------------------------------------------ */
.hp-metric { display:flex; flex-direction:column; align-items:center; }
.hp-metric__ic {
    width:46px; height:46px; border-radius:14px; display:grid; place-items:center; margin-bottom:14px;
    background:rgba(0,113,227,.08); color:var(--accent); animation:hp-float 3.6s ease-in-out infinite;
}
.hp-metric:nth-child(2) .hp-metric__ic { animation-delay:.4s; color:var(--green); background:var(--green-wash); }
.hp-metric:nth-child(3) .hp-metric__ic { animation-delay:.8s; color:#7c3aed; background:rgba(124,58,237,.08); }
.hp-metric:nth-child(4) .hp-metric__ic { animation-delay:1.2s; color:#f59e0b; background:rgba(245,158,11,.1); }
.hp-metric__ic svg { width:22px; height:22px; }

/* ---- Store product cards ------------------------------------------ */
.hp-prod {
    display:flex; flex-direction:column; background:#fff; border-radius:20px; overflow:hidden;
    border:1px solid rgba(0,0,0,.07); color:inherit; text-decoration:none;
    transition:transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1);
}
.hp-prod:hover { transform:translateY(-5px); box-shadow:0 20px 40px rgba(0,0,0,.10); }
.hp-prod__media { position:relative; margin:0; aspect-ratio:16 / 10; background:#f5f5f7; overflow:hidden; }
.hp-prod__media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s cubic-bezier(.22,.61,.36,1); }
.hp-prod:hover .hp-prod__media img { transform:scale(1.06); }
.hp-prod__cat {
    position:absolute; left:10px; top:10px; font-size:11px; font-weight:600; padding:4px 9px; border-radius:999px;
    background:rgba(255,255,255,.92); color:var(--ink);
}
.hp-prod__body { padding:18px 18px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.hp-prod__body h3 { font-size:17px; font-weight:600; letter-spacing:-.015em; color:var(--ink); margin:0; line-height:1.3; }
.hp-prod__body p { font-size:14px; line-height:1.55; color:var(--ink2); margin:0; }
.hp-prod__foot { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:12px; }
.hp-prod__price { font-weight:700; font-size:16px; color:var(--ink); }
.hp-prod__price small { font-weight:500; font-size:12px; color:var(--ink3); margin-right:2px; }
.hp-prod__go {
    width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--wash); color:var(--accent);
    transition:background .25s ease, color .25s ease, transform .25s ease;
}
.hp-prod__go svg { width:16px; height:16px; }
.hp-prod:hover .hp-prod__go { background:var(--accent); color:#fff; transform:translateX(3px); }

/* ---- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .hp-announce__tag, .hp-icon svg, .hp-icon *, .hp-dot::after, .hp-float, .hp-metric__ic { animation:none !important; }
    .hp-icon--float .hp-draw { stroke-dashoffset:0; }
    .hp-tile:hover .hp-icon, .hp-prod:hover, .hp-tier:hover, .hp-prod:hover .hp-prod__media img { transform:none; }
}
