/* App launch celebration on the home page */
.launch {
    --l-gold: #f2c94c;
    --l-gold-deep: #d9a92a;
    --l-green: #34a853;
    --l-ink: #0b2a4f;
    position: relative;
    overflow: hidden;
    padding: 0 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(60% 50% at 85% 20%, rgba(242, 201, 76, 0.16), transparent 70%),
        radial-gradient(50% 45% at 10% 80%, rgba(52, 168, 83, 0.18), transparent 70%),
        linear-gradient(160deg, #0b2a4f 0%, #081f3b 55%, #0a3a5c 100%);
    isolation: isolate;
}
[data-theme="dark"] .launch {
    background:
        radial-gradient(60% 50% at 85% 20%, rgba(242, 201, 76, 0.12), transparent 70%),
        radial-gradient(50% 45% at 10% 80%, rgba(52, 168, 83, 0.14), transparent 70%),
        linear-gradient(160deg, #071a33 0%, #030b1a 60%, #06243b 100%);
}
.launch::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.launch-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* Gold ticker */
.launch-ticker {
    overflow: hidden;
    background: linear-gradient(90deg, var(--l-gold-deep), var(--l-gold), var(--l-gold-deep));
    color: var(--l-ink);
    font-weight: 800;
    direction: ltr;
}
.launch-ticker-track { display: flex; width: max-content; animation: launch-ticker 38s linear infinite; }
.launch-ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.7rem 1.25rem;
    white-space: nowrap;
    font-size: 0.98rem;
}
.launch-ticker-track i { font-size: 0.7rem; opacity: 0.55; }
@keyframes launch-ticker { to { transform: translateX(-50%); } }

/* Hero row */
.launch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding-top: 4.5rem;
}
.launch-copy { position: relative; z-index: 2; }
.launch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.15rem;
    border: 1px solid rgba(242, 201, 76, 0.45);
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.1);
    color: var(--l-gold);
    font-weight: 700;
}
.launch-pill .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--l-gold);
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.7);
    animation: launch-ping 1.8s ease-out infinite;
}
@keyframes launch-ping { 70% { box-shadow: 0 0 0 10px rgba(242, 201, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); } }
.launch-title {
    margin: 1.25rem 0 1.1rem;
    color: #fff;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.launch-title em {
    display: block;
    font-style: normal;
    background: linear-gradient(90deg, #ffe08a, var(--l-gold), #ffd25e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.launch-lead { max-width: 34rem; margin: 0 0 2rem; color: rgba(255, 255, 255, 0.85); font-size: 1.2rem; line-height: 1.9; }

.launch-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.launch .store-badge { min-width: 196px; padding: 0.7rem 1.2rem; border-radius: 0.9rem; }
.launch .store-icon { width: 30px; height: 30px; font-size: 30px; }
.launch .store-text b { font-size: 1.2rem; }
.launch a.store-badge { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.launch .store-badge-soon { position: relative; opacity: 0.8; }
.launch-soon-tag {
    position: absolute;
    top: -0.75rem;
    inset-inline-end: -0.5rem;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    background: var(--l-gold);
    color: var(--l-ink);
    font-size: 0.8rem;
    font-weight: 800;
}
.launch-party {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.launch-party:hover { border-color: var(--l-gold); background: rgba(242, 201, 76, 0.1); }
.launch-party i { color: var(--l-gold); }

/* Phone stage */
.launch-stage { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.launch-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}
.launch-tab {
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.launch-tab[aria-selected="true"] { background: #fff; color: var(--l-ink); }
.launch-tab:focus-visible, .launch-party:focus-visible { outline: 2px solid var(--l-gold); outline-offset: 2px; }

.launch-phone-wrap { position: relative; perspective: 1400px; }
.launch-phone {
    position: relative;
    width: 300px;
    height: 610px;
    padding: 12px;
    border-radius: 48px;
    background: linear-gradient(145deg, #2b3445, #0d1320);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(242, 201, 76, 0.15);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="ltr"] .launch-phone { transform: rotateY(8deg) rotateX(4deg); }
.launch-phone-wrap:hover .launch-phone { transform: rotateY(0) rotateX(0); }
.launch-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 5;
    width: 110px;
    height: 28px;
    border-radius: 0 0 18px 18px;
    background: #0d1320;
    transform: translateX(-50%);
}
.launch-screen-area {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}
.launch-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-24px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.launch-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ls-status { display: flex; justify-content: space-between; padding: 12px 24px 0; font-size: 12px; font-weight: 700; direction: ltr; }
.ls-head {
    padding: 14px 18px 46px;
    background: linear-gradient(150deg, #123a6b, #0b2a4f);
    color: #fff;
}
.ls-head .ls-status { padding: 0 6px 12px; color: #fff; }
.ls-user { display: flex; align-items: center; gap: 10px; }
.ls-user img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ls-user b { display: block; font-size: 15px; }
.ls-user small { color: rgba(255, 255, 255, 0.75); font-size: 11px; }
.ls-bell { position: relative; margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.ls-bell span { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #ea4335; font-size: 10px; font-weight: 800; }
.ls-body { flex: 1; display: grid; align-content: start; gap: 10px; margin-top: -32px; padding: 0 14px; }
.ls-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ls-card { padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07); }
.ls-stats .ls-card { padding: 9px 6px; text-align: center; }
.ls-stats b { display: block; color: #0b2a4f; font-size: 18px; font-weight: 800; }
.ls-stats small, .ls-muted { color: #64748b; font-size: 11px; }
.ls-row-title { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 800; }
.ls-row-title small { color: #0284c7; font-weight: 700; }
.ls-event { display: flex; align-items: center; gap: 10px; }
.ls-date { flex: none; width: 46px; padding: 5px 0; border-radius: 12px; background: #123a6b; color: #fff; text-align: center; line-height: 1.15; }
.ls-date b { display: block; font-size: 18px; }
.ls-date small { font-size: 10px; }
.ls-event b { display: block; }
.ls-task { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 600; }
.ls-task + .ls-task { border-top: 1px solid #eef2f7; }
.ls-check { flex: none; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #cbd5e1; border-radius: 5px; color: #fff; font-size: 9px; }
.ls-check.done { border-color: var(--l-green); background: var(--l-green); }
.ls-task .tag { margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 10px; }
.ls-nav { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: auto; padding: 8px 6px 18px; border-top: 1px solid #e2e8f0; background: #fff; text-align: center; font-size: 10px; color: #64748b; }
.ls-nav i { display: block; margin-bottom: 2px; font-size: 15px; }
.ls-nav .on { color: #0b2a4f; font-weight: 800; }

/* Card screen */
.ls-plain { padding: 0 16px; }
.ls-plain h4 { margin: 18px 0 4px; color: #0b2a4f; font-size: 17px; font-weight: 800; }
.ls-member {
    position: relative;
    margin: 12px 0;
    padding: 16px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(140deg, #1d5a9c, #0b2a4f 70%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(11, 42, 79, 0.35);
}
.ls-member::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
}
.launch-screen.is-active .ls-member::after { animation: launch-shine 2.6s 0.4s ease-in-out infinite; }
@keyframes launch-shine { 60%, 100% { transform: translateX(120%); } }
.ls-member-top { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.ls-member-top img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ls-member-top small { display: block; font-weight: 400; font-size: 10px; opacity: 0.8; }
.ls-member-mid { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.ls-avatar { flex: none; width: 54px; height: 62px; display: grid; place-items: end center; overflow: hidden; border-radius: 10px; background: #dbe4f0; color: #9fb0c6; font-size: 44px; }
.ls-member-mid b { display: block; font-size: 16px; }
.ls-member-mid small { opacity: 0.85; font-size: 10.5px; }
.ls-valid { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--l-green); font-size: 10px; font-weight: 800; }
.ls-member-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.ls-member-foot small { display: block; opacity: 0.75; font-size: 10px; }
.ls-member-foot b { direction: ltr; font-size: 14px; }
.ls-qr { width: 64px; height: 64px; padding: 5px; border-radius: 10px; background: #fff; }
.ls-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-wallet { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 12px; background: #0f172a; color: #fff; font-weight: 700; font-size: 11.5px; }
.ls-wallet:last-child { background: #fff; color: #0f172a; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07); }
.ls-wallet .g { color: #4285f4; font-weight: 800; }

/* Notifications screen */
.ls-notes { display: grid; gap: 10px; }
.ls-note { display: flex; gap: 10px; opacity: 0; transform: translateY(14px); }
.launch-screen.is-active .ls-note { animation: launch-note 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.launch-screen.is-active .ls-note:nth-child(2) { animation-delay: 0.35s; }
.launch-screen.is-active .ls-note:nth-child(3) { animation-delay: 0.7s; }
@keyframes launch-note { to { opacity: 1; transform: none; } }
.ls-note img { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #eef2f7; }
.ls-note b { display: flex; justify-content: space-between; gap: 6px; }
.ls-note b small { color: #94a3b8; font-weight: 400; font-size: 10px; }
.ls-note p { margin: 2px 0 0; color: #475569; font-size: 11.5px; }

/* Floating chips around the phone */
.launch-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 14px;
    background: #fff;
    color: var(--l-ink);
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    animation: launch-float 5s ease-in-out infinite;
    white-space: nowrap;
}
.launch-chip i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 0.85rem; }
.launch-chip-a { top: 18%; inset-inline-end: -4.5rem; }
.launch-chip-a i { background: var(--l-gold-deep); }
.launch-chip-b { bottom: 20%; inset-inline-start: -5rem; animation-delay: -2.5s; }
.launch-chip-b i { background: var(--l-green); }
@keyframes launch-float { 50% { transform: translateY(-12px); } }

/* Features */
.launch-features { margin-top: 5rem; }
.launch-head { margin-bottom: 2rem; text-align: center; }
.launch-head h3 { margin: 0 0 0.5rem; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.launch-head h3 em { font-style: normal; color: var(--l-gold); }
.launch-head p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; }
.launch-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.launch-feat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.launch-feat:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); transform: translateY(-4px); }
.launch-feat > i {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.launch-feat h4 { margin: 0.1rem 0 0.25rem; color: #fff; font-size: 1.15rem; font-weight: 800; }
.launch-feat p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; line-height: 1.7; }
.f-blue { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.f-navy { background: linear-gradient(145deg, #1e4f8a, #0b2a4f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important; }
.f-green { background: linear-gradient(145deg, #43c167, #23843f); }
.f-gold { background: linear-gradient(145deg, #f2c94c, #c99318); }
.f-red { background: linear-gradient(145deg, #f26157, #c5281c); }
.f-purple { background: linear-gradient(145deg, #8b5cf6, #5b32d6); }
.launch-more { margin: 1.25rem 0 0; color: rgba(255, 255, 255, 0.65); text-align: center; }

/* Steps + QR */
.launch-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    margin-top: 4.5rem;
    padding: 2rem;
    border: 1px solid rgba(242, 201, 76, 0.25);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.1), rgba(255, 255, 255, 0.03));
}
.launch-start h3 { margin: 0 0 1.25rem; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.launch-start h3 em { font-style: normal; color: var(--l-gold); }
.launch-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.launch-steps li { display: flex; gap: 0.8rem; counter-increment: step; }
.launch-steps li::before {
    content: counter(step);
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--l-gold);
    color: var(--l-ink);
    font-size: 1.2rem;
    font-weight: 800;
}
.launch-steps b { display: block; margin-bottom: 0.2rem; color: #fff; font-size: 1.2rem; font-weight: 800; }
.launch-steps span { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; line-height: 1.6; }
.launch-qr { display: grid; justify-items: center; gap: 0.5rem; padding: 1rem; border-radius: 1.25rem; background: #fff; color: var(--l-ink); font-weight: 800; text-decoration: none; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.launch-qr:hover { transform: scale(1.03); color: var(--l-ink); }
.launch-qr img { width: 150px; height: 150px; }

@media (max-width: 991px) {
    .launch-grid { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3.5rem; text-align: center; }
    .launch-lead { margin-inline: auto; }
    .launch-stores { justify-content: center; }
    .launch-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .launch-start { grid-template-columns: 1fr; text-align: center; }
    .launch-steps { grid-template-columns: 1fr; text-align: start; max-width: 26rem; margin-inline: auto; }
    .launch-qr { justify-self: center; }
}
@media (max-width: 600px) {
    .launch { padding-bottom: 4rem; }
    .launch-title { font-size: 2.35rem; }
    .launch-lead { font-size: 1.05rem; }
    .launch .store-badge { min-width: 0; flex: 1 1 150px; justify-content: center; }
    .launch-phone { width: 272px; height: 560px; }
    .launch-chip { font-size: 0.8rem; padding: 0.45rem 0.7rem; }
    .launch-chip-a { inset-inline-end: -0.75rem; top: 10%; }
    .launch-chip-b { inset-inline-start: -0.75rem; bottom: 12%; }
    .launch-feat-grid { grid-template-columns: 1fr; }
    .launch-features { margin-top: 3.5rem; }
    .launch-start { padding: 1.5rem 1.1rem; margin-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .launch-ticker-track, .launch-pill .dot, .launch-chip, .launch-screen.is-active .ls-member::after { animation: none; }
    .launch-screen, .launch-phone { transition: none; }
    .launch-screen.is-active .ls-note { animation: none; opacity: 1; transform: none; }
}

/* Adjustments after review */
.launch-title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.launch-screen-area .ls-plain + .ls-nav { margin-top: auto; }
.ls-log { margin-top: 10px; }
.ls-task .tag.ok { background: #dcfce7; color: #15803d; }
.ls-note > div { flex: 1; min-width: 0; }
.launch-screen.is-active .ls-note:nth-child(4) { animation-delay: 1.05s; }
.launch .store-text b { white-space: nowrap; }
@media (min-width: 992px) {
    .launch-chip-a { inset-inline-end: -7.5rem; }
    .launch-chip-b { inset-inline-start: -7rem; bottom: 7%; }
}
@media (max-width: 600px) {
    .launch-title { font-size: 2.15rem; }
    .launch .store-badge { flex: 1 1 160px; padding: 0.65rem 0.9rem; }
    .launch .store-text b { font-size: 1.05rem; }
    .launch-chip-a { top: -0.5rem; }
    .launch-chip-b { bottom: 3%; }
}
.launch-steps b span { font-size: inherit; color: inherit; }
.launch-more-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; margin-inline-start: 1rem; color: var(--l-gold); font-weight: 800; text-decoration: none; }
.launch-more-link:hover { color: #fff; }
