/**
 * Home — stylish shapes, no plan list, no plain boxes
 */
*, *::before, *::after {
    box-sizing: border-box;
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html, body { margin: 0; min-height: 100%; background: #f6e7fb; }

body.hm-body {
    font-family: Inter, Manrope, system-ui, sans-serif;
    color: #1a1230;
    background:
        radial-gradient(ellipse 70% 42% at 100% 0%, rgba(196, 140, 255, 0.28), transparent 58%),
        radial-gradient(ellipse 80% 40% at 0% 100%, rgba(255, 168, 130, 0.35), transparent 60%),
        linear-gradient(180deg, #f7e9ff 0%, #f8e6f4 28%, #fde4ea 62%, #ffd4c4 100%);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.hm-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 14px calc(22px + env(safe-area-inset-bottom));
    position: relative;
    overflow: hidden;
}

/* Soft ambient blobs (not boxes) */
.hm-shell::before,
.hm-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}

.hm-shell::before {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -60px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 70%);
    border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
}

.hm-shell::after {
    width: 140px;
    height: 140px;
    bottom: 80px;
    left: -50px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.28), transparent 70%);
    border-radius: 45% 55% 40% 60% / 55% 40% 60% 45%;
}

.hm-shell > * { position: relative; z-index: 1; }

/* Top */
.hm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top)) 2px 12px;
}

.hm-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.hm-brand__mark {
    width: auto;
    min-width: 46px;
    height: 32px;
    padding: 0 12px 0 14px;
    clip-path: polygon(16% 0%, 100% 0%, 84% 100%, 0% 100%);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #7c3aed 0%, #5b21b6 55%, #4c1d95 100%);
    box-shadow: 0 8px 16px rgba(91, 33, 182, 0.28);
    flex-shrink: 0;
}

.hm-brand__mark img { width: 100%; height: 100%; object-fit: cover; }

.hm-brand__fallback {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
}

.hm-brand__name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a1230;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
}

.hm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 8px 14px;
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    background: linear-gradient(160deg, #7c3aed 0%, #5b21b6 60%, #4c1d95 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(91, 33, 182, 0.24);
}

/* Hero panel — soft wave edge, not a plain card */
.hm-hero {
    position: relative;
    margin-bottom: 18px;
    padding: 12px 12px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fffafc 100%);
    border-radius: 28px;
    box-shadow:
        0 18px 40px rgba(120, 50, 140, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.95);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.hm-hero::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(196, 140, 255, 0.35), transparent 42%, rgba(251, 146, 60, 0.28) 92%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hm-banner {
    position: relative;
    height: 168px;
    overflow: hidden;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 280' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%235b21b6'/%3E%3Cstop offset='.5' stop-color='%237e22ce'/%3E%3Cstop offset='1' stop-color='%23a21caf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='640' height='280' fill='url(%23bg)'/%3E%3Cpath d='M0 0h640v78C500 28 390 128 250 72 140 28 70 108 0 62Z' fill='%236d28d9' opacity='.5'/%3E%3Cpath d='M0 280c100-90 170-30 270-100 110-76 150 20 270-48 40-22 70-8 100-28v176Z' fill='%234c1d95' opacity='.34'/%3E%3Cpath d='M340 280c80-110 150-40 230-130 28-32 52-18 70-36v166Z' fill='%23f472b6' opacity='.5'/%3E%3Cpath d='M430 280c70-120 130-50 210-150v150Z' fill='%23fb923c'/%3E%3Cpath d='M520 280c50-90 80-50 120-120v120Z' fill='%23f97316'/%3E%3C/svg%3E") center / cover no-repeat,
        linear-gradient(120deg, #4c1d95 0%, #7e22ce 46%, #e11d48 78%, #fb923c 100%);
    margin-bottom: 16px;
    border-radius: 22px;
}

.hm-banner.is-fallback::after {
    content: attr(data-brand);
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    padding: 12px;
    pointer-events: none;
}

.hm-banner__track { position: relative; width: 100%; height: 100%; }

.hm-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.hm-banner__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hm-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-banner__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
    padding: 12px;
    font-weight: 800;
    font-size: 1.05rem;
}

.hm-banner__fallback small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 700;
}

.hm-banner__dots {
    position: absolute;
    left: 0;
    right: 0;
    top: 58%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.hm-banner__dot {
    width: 8px;
    height: 8px;
    border: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
}

.hm-banner__dot.is-active {
    background: #fff;
    width: 14px;
    height: 14px;
}

.hm-copy {
    padding: 0 6px 12px;
    text-align: center;
}

.hm-copy h1 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1a1230;
    line-height: 1.18;
}

.hm-copy h1 em {
    font-style: normal;
    color: #1a1230;
}

.hm-copy p {
    margin: 6px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5b6f8c;
}

/* Auth CTAs — rounded arrow capsules */
.hm-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px 2px 4px;
    padding: 0;
}

.hm-auth a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0.85rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 42%, #f43f5e 100%);
    border-radius: 999px 14px 999px 14px;
    box-shadow: 0 12px 22px rgba(244, 63, 94, 0.28);
}

.hm-auth a.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 48%, #5b21b6 100%);
    border-radius: 14px 999px 14px 999px;
    padding: 0.85rem 0.7rem;
    box-shadow: 0 12px 24px rgba(91, 33, 182, 0.32);
}

.hm-auth a i { font-size: 0.88rem; }

/* Journey path — flowing steps, no boxes */
.hm-flow {
    margin: 6px 2px 8px;
}

.hm-flow__head {
    text-align: center;
    margin-bottom: 16px;
}

.hm-flow__head h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 900;
    color: #1a1230;
    letter-spacing: -0.02em;
}

.hm-flow__head h2 span {
    color: #1a1230;
}

.hm-flow__head p {
    margin: 4px 0 0;
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
}

.hm-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
}

.hm-path::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 3px;
    background: linear-gradient(180deg, #a78bfa, #c084fc 40%, #f472b6 70%, #fb923c);
    border-radius: 999px;
    opacity: 0.55;
}

.hm-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 10px 0;
}

.hm-step__node {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #f5f3ff, #ddd6fe);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 8px 18px rgba(91, 33, 182, 0.18);
    color: #6d28d9;
    font-size: 1.05rem;
}

.hm-step:nth-child(2) .hm-step__node {
    background: linear-gradient(145deg, #fce7f3, #f9a8d4);
    color: #be185d;
}

.hm-step:nth-child(3) .hm-step__node {
    background: linear-gradient(145deg, #ede9fe, #a78bfa);
    color: #5b21b6;
}

.hm-step:nth-child(4) .hm-step__node {
    background: linear-gradient(145deg, #fdba74, #f97316);
    color: #fff;
}

.hm-step__text {
    padding: 10px 14px 10px 16px;
    background: linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(255, 237, 230, 0.72) 100%);
    clip-path: polygon(0 12%, 96% 0, 100% 88%, 4% 100%);
    box-shadow: 0 8px 20px rgba(120, 50, 140, 0.08);
}

.hm-step__text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1230;
    margin-bottom: 2px;
}

.hm-step__text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5b6f8c;
    line-height: 1.35;
}

/* Soft ribbon CTA */
.hm-ribbon {
    margin: 18px 0 6px;
    padding: 18px 16px 20px;
    text-align: center;
    background: linear-gradient(135deg, #6d28d9 0%, #a21caf 48%, #f97316 100%);
    clip-path: polygon(0 18%, 6% 0, 100% 0, 100% 82%, 94% 100%, 0 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(109, 40, 217, 0.28);
}

.hm-ribbon h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hm-ribbon p {
    margin: 0 0 14px;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.92;
}

.hm-ribbon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.4rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: #5b21b6;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(15, 39, 68, 0.18);
}

.hm-foot {
    text-align: center;
    padding: 16px 8px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

@media (max-width: 380px) {
    .hm-banner { height: 128px; }
    .hm-auth a { font-size: 0.68rem; padding: 0.8rem 0.4rem; gap: 5px; }
    .hm-copy h1 { font-size: 1.18rem; }
    .hm-step__node { width: 48px; height: 48px; font-size: 0.95rem; }
    .hm-path::before { left: 24px; }
}
