* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand: #ef6f21;          /* --crm-orange */
    --brand-soft: #fdeee4;     /* --crm-orange-subtle */
    --blue: #759bd3;           /* --crm-blue (portal buttons) */
    --blue-hover: #5f86c1;     /* --crm-blue-hover */
    --blue-active: #4f74ad;    /* --crm-blue-active */
    --blue-soft: #eaf0f8;      /* --crm-blue-subtle */
    --ink: #111114;
    --muted: #6e6e76;
    --line: #ececef;
    --bg: #fbfaf8;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Background: dot grid + soft brand glows ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(17, 17, 20, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.glow-1 {
    width: 520px; height: 520px;
    background: #ffc29c;
    top: -180px; right: -140px;
    animation: float 14s ease-in-out infinite;
}
.glow-2 {
    width: 420px; height: 420px;
    background: #b9cdea;
    bottom: -180px; left: -120px;
    animation: float 18s ease-in-out infinite reverse;
}

/* ---------- Layout ---------- */
.top, .content, .foot { position: relative; z-index: 1; }

.top {
    padding: 32px 40px;
}
.logo { height: 44px; width: auto; display: block; }

.content {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: rise 0.7s var(--ease) both;
}

/* ---------- Status pill ---------- */
.pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-active);
    background: var(--blue-soft);
    border: 1px solid rgba(117, 155, 211, 0.3);
    border-radius: 999px;
    margin-bottom: 28px;
}
.dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
}
.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--blue);
    animation: ping 1.6s var(--ease) infinite;
}

/* ---------- Type ---------- */
h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.accent {
    background: linear-gradient(90deg, #ef6f21, #f59a3c);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 36px;
}

/* ---------- Progress panel ---------- */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px 24px;
    box-shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 12px 32px -12px rgba(17, 17, 20, 0.12);
    margin-bottom: 24px;
}

.steps {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #a3a3aa;
    transition: color 0.4s var(--ease);
}
.step.active, .step.done { color: var(--ink); }
.step.active { font-weight: 600; }

.icon {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #dcdce0;
    position: relative;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step.active .icon {
    border-color: var(--blue-soft);
    border-top-color: var(--blue);
    animation: spin 0.8s linear infinite;
}
.step.done .icon {
    background: var(--blue);
    border-color: var(--blue);
}
.step.done .icon::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bar {
    height: 6px;
    background: #f2f2f4;
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill {
    position: relative;
    height: 100%;
    width: 10%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-active), var(--blue));
    transition: width 1.2s var(--ease);
    overflow: hidden;
}
.bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.8s ease-in-out infinite;
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.note {
    font-size: 14px;
    color: var(--muted);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover  { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn:active { background: var(--blue-active); border-color: var(--blue-active); transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(117, 155, 211, 0.35); }
.btn svg { width: 16px; height: 16px; }

.foot {
    padding: 24px 40px 32px;
    font-size: 13px;
    color: #9a9aa2;
}

/* ---------- Motion ---------- */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes ping    { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float   { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    .top { padding: 24px; }
    .logo { height: 36px; }
    .lead { font-size: 16px; }
    .panel { padding: 18px; }
    .foot { padding: 20px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
