/* ==========================================================================
   LifeBeacon — Download page
   Everything is scoped under .lb-dl so it cannot leak into other pages.
   ========================================================================== */

.lb-dl {
    --navy: #16232F;
    --navy-deep: #0E1922;
    --navy-mid: #1B2A3A;
    --gold: #C6A25C;
    --gold-lt: #D9BC82;
    --gold-dk: #A9843F;
    --ink: #16232F;
    --muted: #566573;
    --line: #DCE2E8;
    --surface: #FFFFFF;
    --surface-alt: #F4F6F8;

    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
}

.lb-dl * { box-sizing: border-box; }

.lb-dl-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------- HERO --------------------------------- */

.lb-dl-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 100% at 20% 0%, #1E2F41 0%, var(--navy) 45%, var(--navy-deep) 100%);
    padding: 96px 0 120px;
    isolation: isolate;
}

/* Slow drifting colour blobs behind everything. */
.lb-dl-aurora {
    position: absolute;
    inset: -20% -10%;
    z-index: -2;
    filter: blur(80px);
    opacity: .55;
}

.lb-dl-blob {
    position: absolute;
    display: block;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
}

.lb-dl-blob-a { background: #C6A25C; top: -8%; left: 4%;  animation: lb-drift-a 22s ease-in-out infinite; }
.lb-dl-blob-b { background: #2E6C8E; top: 18%; right: 2%; animation: lb-drift-b 26s ease-in-out infinite; }
.lb-dl-blob-c { background: #8E3B3B; bottom: -18%; left: 38%; animation: lb-drift-c 30s ease-in-out infinite; }

@keyframes lb-drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes lb-drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
    50%      { transform: translate3d(-7%, 6%, 0) scale(.92); }
}
@keyframes lb-drift-c {
    0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
    50%      { transform: translate3d(4%, -9%, 0) scale(1.1); }
}

/* Faint technical grid. */
.lb-dl-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 100%);
}

.lb-dl-fade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(244, 246, 248, 0), var(--surface-alt));
}

.lb-dl-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.lb-dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border: 1px solid rgba(198, 162, 92, .38);
    border-radius: 999px;
    background: rgba(198, 162, 92, .10);
    color: var(--gold-lt);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lb-dl-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(198, 162, 92, .75);
    animation: lb-blip 2.4s ease-out infinite;
}

@keyframes lb-blip {
    0%   { box-shadow: 0 0 0 0 rgba(198, 162, 92, .7); }
    70%  { box-shadow: 0 0 0 12px rgba(198, 162, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 162, 92, 0); }
}

.lb-dl-title {
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(38px, 5.6vw, 66px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.015em;
}

.lb-dl-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: lb-rise .8s cubic-bezier(.2, .7, .2, 1) forwards;
}
.lb-dl-line:nth-child(2) { animation-delay: .12s; }

@keyframes lb-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Gold text with a slow sweep of light across it. */
.lb-dl-shine {
    background: linear-gradient(100deg,
        var(--gold-dk) 0%, var(--gold) 32%, #FFF3D6 48%, var(--gold) 62%, var(--gold-dk) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: lb-rise .8s cubic-bezier(.2,.7,.2,1) .12s forwards,
               lb-sweep 7s linear 1.2s infinite;
}

@keyframes lb-sweep {
    0%   { background-position: 120% 0; }
    100% { background-position: -60% 0; }
}

.lb-dl-sub {
    margin: 22px 0 0;
    max-width: 46ch;
    color: #C4CFD9;
    font-size: 18px;
    line-height: 1.7;
}

.lb-dl-cta { margin-top: 34px; }

.lb-dl-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 16px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
    color: #14202B !important;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(198, 162, 92, .30), 0 2px 0 rgba(255, 255, 255, .35) inset;
    transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
}

.lb-dl-btn:hover,
.lb-dl-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(198, 162, 92, .42), 0 2px 0 rgba(255, 255, 255, .45) inset;
    color: #14202B !important;
}

.lb-dl-btn:active { transform: translateY(-1px); }

/* Light sweep across the button on hover. */
.lb-dl-btn::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}

.lb-dl-btn:hover::after { animation: lb-shine .85s ease-out; }

@keyframes lb-shine {
    0%   { left: -60%; opacity: 0; }
    12%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

.lb-dl-btn-icon { width: 21px; height: 21px; flex: 0 0 21px; }

.lb-dl-btn-lg { padding: 19px 36px; font-size: 18px; }

.lb-dl-meta {
    margin: 13px 0 0;
    color: #93A2AE;
    font-size: 14px;
    letter-spacing: .02em;
}

.lb-dl-meta-light { color: #A9B6C1; }

.lb-dl-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.lb-dl-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #B7C4CF;
    font-size: 14.5px;
}

.lb-dl-tick {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: rgba(198, 162, 92, .16);
    border: 1px solid rgba(198, 162, 92, .5);
}

.lb-dl-tick::after {
    content: "";
    position: absolute;
    left: 5px; top: 4px;
    width: 5px; height: 9px;
    border-right: 2px solid var(--gold-lt);
    border-bottom: 2px solid var(--gold-lt);
    transform: rotate(42deg);
}

/* ------------------------------- HERO ART -------------------------------- */

.lb-dl-hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.lb-dl-rings {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.lb-dl-rings span {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(198, 162, 92, .34);
    animation: lb-ring 4.6s ease-out infinite;
}

.lb-dl-rings span:nth-child(2) { animation-delay: 1.5s; }
.lb-dl-rings span:nth-child(3) { animation-delay: 3s; }

@keyframes lb-ring {
    0%   { transform: scale(.55); opacity: .85; }
    100% { transform: scale(2.1);  opacity: 0; }
}

.lb-dl-phone {
    position: relative;
    width: 278px;
    padding: 11px;
    border-radius: 40px;
    background: linear-gradient(160deg, #35434F, #131D26 60%);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.lb-dl-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.lb-dl-phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    z-index: 2;
}

.lb-dl-float { animation: lb-float 7s ease-in-out infinite; }
.lb-dl-float-slow { animation: lb-float 9s ease-in-out infinite reverse; }

@keyframes lb-float {
    0%, 100% { transform: translateY(-9px); }
    50%      { transform: translateY(9px); }
}

.lb-dl-appicon {
    position: absolute;
    right: 2%;
    bottom: 9%;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

/* ------------------------------- SECTIONS -------------------------------- */

.lb-dl-section { padding: 88px 0; background: var(--surface-alt); }

.lb-dl-features-section { background: var(--surface); }

.lb-dl-eyebrow {
    margin: 0 0 8px;
    color: var(--gold-dk);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lb-dl-eyebrow-light { color: var(--gold-lt); }

.lb-dl-h2 {
    margin: 0 0 40px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}

.lb-dl-h2-light { color: #fff; }

/* Scroll reveal. */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------- STEPS --------------------------------- */

.lb-dl-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lb;
}

.lb-dl-steps li {
    position: relative;
    margin: 0;
    padding: 30px 26px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.lb-dl-step-no {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
    color: var(--gold-lt);
    font-size: 17px;
    font-weight: 800;
}

.lb-dl-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.lb-dl-steps p  { margin: 0; color: var(--muted); font-size: 15px; }

.lb-dl-steps code {
    padding: 1px 6px;
    background: #EDF1F4;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: .9em;
    word-break: break-all;
}

.lb-dl-note {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--surface);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    color: var(--muted);
    font-size: 15px;
}

.lb-dl-note strong { color: var(--ink); }

/* ------------------------------- FEATURES -------------------------------- */

.lb-dl-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.lb-dl-card {
    padding: 28px 24px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.lb-dl-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 162, 92, .55);
    box-shadow: 0 18px 40px rgba(22, 35, 47, .10);
}

.lb-dl-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; }
.lb-dl-card p  { margin: 0; color: var(--muted); font-size: 14.8px; }

.lb-dl-card-icon {
    position: relative;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
}

.lb-dl-card-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--gold-lt);
}

/* Simple CSS glyphs, so the page needs no icon font or SVG sprite. */
.lb-dl-icon-sos::after {
    width: 18px; height: 18px;
    clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%);
}
.lb-dl-icon-heart::after {
    width: 19px; height: 17px;
    clip-path: path("M9.5 17S0 11.2 0 5.6A5.3 5.3 0 019.5 2.6 5.3 5.3 0 0119 5.6C19 11.2 9.5 17 9.5 17z");
}
.lb-dl-icon-book::after {
    width: 16px; height: 19px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 88%, 84% 88%, 84% 12%, 0 12%);
}
.lb-dl-icon-shield::after {
    width: 17px; height: 19px;
    clip-path: polygon(50% 0, 100% 18%, 100% 58%, 50% 100%, 0 58%, 0 18%);
}

/* ------------------------------ SCREENSHOTS ------------------------------ */

.lb-dl-shots-section {
    background: linear-gradient(180deg, var(--surface-alt), #E9EEF2);
}

.lb-dl-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    justify-items: center;
}

.lb-dl-shot { margin: 0; text-align: center; }

.lb-dl-shot-mid { transform: translateY(-24px); }

.lb-dl-phone-sm { width: 232px; padding: 9px; border-radius: 34px; }
.lb-dl-phone-sm img { border-radius: 26px; }
.lb-dl-phone-sm .lb-dl-phone-notch { top: 17px; width: 62px; height: 5px; }

.lb-dl-shot figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* -------------------------------- VERIFY --------------------------------- */

.lb-dl-verify-section { background: var(--surface-alt); padding-bottom: 104px; }

.lb-dl-verify {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    align-items: center;
    padding: 48px;
    border-radius: 26px;
    background: radial-gradient(120% 140% at 0% 0%, #23394C 0%, var(--navy) 50%, var(--navy-deep) 100%);
    box-shadow: 0 30px 70px rgba(22, 35, 47, .28);
}

.lb-dl-verify-text {
    margin: 0 0 20px;
    max-width: 52ch;
    color: #C4CFD9;
    font-size: 16px;
}

.lb-dl-hash {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(0, 0, 0, .25);
}

.lb-dl-hash code {
    flex: 1 1 340px;
    min-width: 0;
    color: var(--gold-lt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    background: none;
    border: 0;
    padding: 0;
}

.lb-dl-copy {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid rgba(198, 162, 92, .5);
    border-radius: 9px;
    background: rgba(198, 162, 92, .12);
    color: var(--gold-lt);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lb-dl-copy:hover { background: rgba(198, 162, 92, .24); transform: translateY(-1px); }
.lb-dl-copy.is-done { background: var(--gold); color: #14202B; border-color: var(--gold); }

.lb-dl-verify-small {
    margin: 18px 0 0;
    color: #93A2AE;
    font-size: 14px;
}

.lb-dl-verify-small a { color: var(--gold-lt); }

.lb-dl-verify-cta { text-align: center; }

/* ------------------------------ RESPONSIVE ------------------------------- */

@media (max-width: 1024px) {
    .lb-dl-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .lb-dl-hero-art { min-height: 440px; }
    .lb-dl-cards { grid-template-columns: repeat(2, 1fr); }
    .lb-dl-verify { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 782px) {
    .lb-dl-hero { padding: 66px 0 90px; }
    .lb-dl-section { padding: 64px 0; }
    .lb-dl-steps { grid-template-columns: 1fr; }
    .lb-dl-shots { grid-template-columns: 1fr; gap: 40px; }
    .lb-dl-shot-mid { transform: none; }
    .lb-dl-appicon { width: 72px; height: 72px; right: 6%; }
    .lb-dl-sub { font-size: 16.5px; }
    .lb-dl-verify { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .lb-dl-cards { grid-template-columns: 1fr; }
    .lb-dl-btn { width: 100%; justify-content: center; }
}

/* --------------------------- REDUCED MOTION ------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .lb-dl *,
    .lb-dl *::before,
    .lb-dl *::after {
        animation: none !important;
        transition: none !important;
    }
    .lb-dl [data-reveal] { opacity: 1; transform: none; }
    .lb-dl .lb-dl-line { opacity: 1; transform: none; }
    .lb-dl .lb-dl-shine { color: var(--gold); -webkit-background-clip: border-box; background-clip: border-box; background: none; }
}
