/* Landing home — matches user dashboard light mint + teal system */

.hp-page {
    --hp-page-bg: #F0F4F3;
    --hp-cream: #FAF9F5;
    --hp-white: #FFFFFF;
    --hp-text-dark: #1E293B;
    --hp-text-mid: #64748B;
    --hp-text-light: rgba(255, 255, 255, 0.82);

    --hp-grad-topbar: linear-gradient(90deg, #0E7490 0%, #22D3EE 52%, #00D084 100%);
    --hp-grad-hero: linear-gradient(145deg, #0E7490 0%, #06B6D4 42%, #00D084 100%);
    --hp-grad-cta: linear-gradient(160deg, #0B1120 0%, #134E4A 52%, #0F766E 100%);
    --hp-grad-brand: linear-gradient(90deg, #00D084 0%, #22D3EE 50%, #06B6D4 100%);

    --hp-reg: linear-gradient(145deg, #14B8A6 0%, #0D9488 100%);
    --hp-login: linear-gradient(145deg, #F472B6 0%, #DB2777 100%);
    --hp-plan: linear-gradient(145deg, #6366F1 0%, #4338CA 100%);
    --hp-cta-primary: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
    --hp-cta-secondary: linear-gradient(90deg, #14B8A6 0%, #22D3EE 100%);

    --hp-radius-xl: 32px;
    --hp-radius-lg: 26px;
    --hp-radius-md: 20px;
    --hp-radius-sm: 16px;
    --hp-shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.08);
    --hp-shadow-card: 0 8px 28px rgba(15, 23, 42, 0.1);

    max-width: 540px;
    margin: 0 auto;
    padding: max(12px, env(safe-area-inset-top)) 16px 32px;
    min-height: 100vh;
    background: var(--hp-page-bg);
    color: var(--hp-text-dark);
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hp-body {
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--hp-page-bg, #F0F4F3) !important;
    background-image: none !important;
    color: var(--hp-text-dark, #1E293B) !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

@keyframes hpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hp-topbar,
.hp-hero-card,
.hp-panel,
.hp-footer {
    animation: hpFade 0.45s ease both;
}
.hp-hero-card { animation-delay: 0.05s; }
.hp-panel:nth-of-type(1) { animation-delay: 0.1s; }
.hp-panel#features { animation-delay: 0.2s; }
.hp-plans-panel { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    .hp-topbar,
    .hp-hero-card,
    .hp-panel,
    .hp-footer { animation: none; }
}

/* ===== Pill Topbar ===== */
.hp-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--hp-grad-topbar);
    box-shadow: var(--hp-shadow-soft);
}
.hp-topbar-logo {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}
.hp-topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hp-topbar-user {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hp-topbar-welcome {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.hp-topbar-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-topbar-menu {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255, 248, 220, 0.92);
    color: #1E3A5F;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.hp-topbar-menu:hover { transform: scale(1.04); }

/* ===== Drawer ===== */
.hp-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 88vw);
    height: 100%;
    background: var(--hp-white);
    z-index: 1002;
    padding: 80px 20px 24px;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
}
.hp-nav-drawer.open { right: 0; }
.hp-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hp-text-dark);
    margin-bottom: 4px;
}
.hp-drawer-link i {
    width: 20px;
    color: #0E7490;
    text-align: center;
}
.hp-drawer-link:hover {
    background: rgba(14, 116, 144, 0.08);
    color: #0E7490;
}
.drawer-cta {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hp-drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    width: 100%;
    transition: transform 0.2s;
}
.hp-drawer-btn:hover { transform: translateY(-1px); }
.hp-drawer-btn--outline {
    color: #0E7490;
    border: 1.5px solid rgba(14, 116, 144, 0.22);
    background: #F8FAFB;
}
.hp-drawer-btn--fill {
    color: #0B1120;
    background: var(--hp-grad-brand);
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.22);
}
.hp-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hp-nav-overlay.open { opacity: 1; visibility: visible; }
.hp-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(14, 116, 144, 0.1);
    color: #0E7490;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

/* ===== Hero Card ===== */
.hp-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--hp-radius-xl);
    padding: 20px 18px 18px;
    margin-bottom: 16px;
    background: var(--hp-grad-hero);
    box-shadow: var(--hp-shadow-card);
    isolation: isolate;
}
.hp-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hp-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hp-hero-ring--1 { width: 180px; height: 180px; top: -40px; right: -30px; }
.hp-hero-ring--2 { width: 130px; height: 130px; top: 10px; right: 10px; }
.hp-hero-ring--3 { width: 80px; height: 80px; top: 50px; right: 50px; }
.hp-hero-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}
.hp-hero-dot--1 { top: 28px; right: 90px; }
.hp-hero-dot--2 { top: 60px; right: 130px; }
.hp-hero-dot--3 { top: 42px; right: 160px; }

.hp-hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.hp-hero-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hp-hero-badge i { font-size: 11px; }

.hp-hero-label {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-text-light);
    margin-bottom: 6px;
}
.hp-hero-title {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hp-hero-desc {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.hp-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hp-hero-stat {
    padding: 12px 14px;
    border-radius: var(--hp-radius-sm);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.hp-hero-stat--full { grid-column: 1 / -1; }
.hp-hero-stat-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}
.hp-hero-stat-val {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

/* ===== Panels ===== */
.hp-panel {
    border-radius: var(--hp-radius-xl);
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: var(--hp-shadow-soft);
}
.hp-panel--light { background: var(--hp-white); }
.hp-panel--cream { background: var(--hp-cream); }
.hp-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.hp-panel-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--hp-text-dark);
    letter-spacing: -0.01em;
}
.hp-panel-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-text-mid);
    white-space: nowrap;
}

/* ===== Quick Actions ===== */
.hp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hp-wa-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 108px;
    padding: 14px 8px 12px;
    border-radius: var(--hp-radius-md);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s;
}
.hp-wa-btn:hover { transform: translateY(-2px); }
.hp-wa-btn--reg { background: var(--hp-reg); }
.hp-wa-btn--login { background: var(--hp-login); }
.hp-wa-btn--plan { background: var(--hp-plan); }
.hp-wa-ico {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 18px 18px 0 -6px rgba(0, 0, 0, 0.12);
}
.hp-wa-lbl {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-align: center;
}

/* ===== Features Grid ===== */
.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.hp-feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 16px;
    border-radius: var(--hp-radius-md);
    background: var(--hp-white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}
.hp-feat-card:hover { transform: translateY(-2px); }
.hp-feat-tab {
    position: absolute;
    top: 0;
    left: 14px;
    width: 36px;
    height: 6px;
    border-radius: 0 0 8px 8px;
}
.hp-feat-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.hp-feat-lbl {
    font-size: 13px;
    font-weight: 800;
    color: var(--hp-text-dark);
    text-align: center;
}
.hp-feat-card--teal .hp-feat-tab { background: #14B8A6; }
.hp-feat-card--teal .hp-feat-ico { background: linear-gradient(145deg, #14B8A6, #0D9488); }
.hp-feat-card--coral .hp-feat-tab { background: #F472B6; }
.hp-feat-card--coral .hp-feat-ico { background: linear-gradient(145deg, #F472B6, #DB2777); }
.hp-feat-card--indigo .hp-feat-tab { background: #6366F1; }
.hp-feat-card--indigo .hp-feat-ico { background: linear-gradient(145deg, #6366F1, #4338CA); }
.hp-feat-card--gold .hp-feat-tab { background: #F59E0B; }
.hp-feat-card--gold .hp-feat-ico { background: linear-gradient(145deg, #FBBF24, #F59E0B); }

/* ===== Plans ===== */
.hp-plans-desc {
    margin: -8px 0 16px;
    font-size: 13px;
    color: var(--hp-text-mid);
    line-height: 1.5;
    font-weight: 500;
}
.hp-plans-panel .plan-wrap--home {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
    font-family: inherit;
    background: transparent;
}
.hp-plans-panel .plan-wrap--home .plan-grid {
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .hp-plans-panel .plan-wrap--home .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Footer ===== */
.hp-footer {
    border-radius: var(--hp-radius-xl);
    padding: 28px 20px;
    text-align: center;
    background: var(--hp-white);
    box-shadow: var(--hp-shadow-soft);
    margin-top: 8px;
}
.hp-footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.hp-footer-logo img {
    height: 44px;
    width: auto;
}
.hp-footer p {
    font-size: 13px;
    color: var(--hp-text-mid);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
    font-weight: 500;
}
.hp-footer-copy {
    margin-top: 16px;
    font-size: 12px;
    color: var(--hp-text-mid);
}
.hp-footer-copy a {
    color: #0E7490;
    font-weight: 800;
}
