:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --panel: #ffffff;
    --live: #16a34a;
    --grad-a: #ede9fe;
    --grad-b: #fdf2f8;
    --grad-c: #fff7ed;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: #fff;
}

a { color: inherit; text-decoration: none; }

.shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

/* —— Left promo —— */
.promo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 4rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(167, 139, 250, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 0%, rgba(251, 191, 36, 0.28), transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 90%, rgba(244, 114, 182, 0.18), transparent 55%),
        linear-gradient(160deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-c) 100%);
}

.promo::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
}

.promo-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.slides { position: relative; }

.slide {
    display: none;
    animation: fadeIn 0.45s ease;
}

.slide.is-active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.promo::after {
    content: "";
    position: absolute;
    top: 6%;
    right: -8%;
    width: 340px;
    height: 340px;
    border: 2px dashed rgba(251, 146, 60, 0.28);
    border-radius: 50%;
    pointer-events: none;
}

.feature-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.25rem 1.3rem 1.1rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 40px rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.feature-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.icon-tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.icon-tile svg { width: 18px; height: 18px; }
.icon-tile.blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.icon-tile.layers { background: linear-gradient(145deg, #6366f1, #4f46e5); }
.icon-tile.green { background: linear-gradient(145deg, #22c55e, #16a34a); }

.feature-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.feature-sub {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge.live {
    background: #dcfce7;
    color: #15803d;
}

.badge.live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.badge.insights {
    background: #f1f5f9;
    color: #334155;
    letter-spacing: 0.04em;
}

.badge.quota {
    background: #ede9fe;
    color: #5b21b6;
}

.badge.verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Report slide */
.report-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3a8a;
}

.brand-dots {
    display: inline-flex;
    gap: 3px;
    margin: 0;
}

.brand-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
}

.brand-dots i:first-child { background: #93c5fd; }
.brand-dots i:last-child { background: #1d4ed8; }

.report-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.85rem;
    align-items: center;
}

.report-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: #0f172a;
}

.report-title .accent { color: #f97316; }

.report-desc {
    margin: 0.55rem 0 0.7rem;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
}

.edition {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: #fef9c3;
    border: 1px solid #fdba74;
    color: #c2410c;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.compass {
    width: 132px;
    height: 132px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    border: 1.5px dashed #cbd5e1;
    display: grid;
    place-items: center;
}

.compass-label {
    position: absolute;
    font-size: 0.52rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
    max-width: 4.2rem;
}

.compass-label.n { top: -0.15rem; left: 50%; transform: translate(-50%, -100%); }
.compass-label.e { right: -0.1rem; top: 50%; transform: translate(100%, -50%); }
.compass-label.s { bottom: -0.15rem; left: 50%; transform: translate(-50%, 100%); }
.compass-label.w { left: -0.1rem; top: 50%; transform: translate(-100%, -50%); }

.needle {
    width: 10px;
    height: 78px;
    position: relative;
    transform: rotate(-18deg);
}

.needle::before,
.needle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transform: translateX(-50%);
}

.needle::before {
    top: 0;
    border-bottom: 36px solid #2563eb;
}

.needle::after {
    bottom: 0;
    border-top: 36px solid #f97316;
}

.hub {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.05;
    z-index: 1;
}

.report-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.72rem;
    color: #64748b;
}

.report-foot strong {
    color: #0f172a;
    font-weight: 700;
}

.trophy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.trophy svg { width: 14px; height: 14px; color: #f97316; }

/* Speed steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.step {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #fafbfc;
}

.step.s1 { border-color: #dbeafe; background: #f8fbff; }
.step.s2 { border-color: #ede9fe; background: #fbfaff; }
.step.s3 { border-color: #dcfce7; background: #f7fdf9; }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.step-num.n1 { background: #3b82f6; }
.step-num.n2 { background: #8b5cf6; }
.step-num.n3 { background: #22c55e; }

.step-label {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-meta {
    margin: 0.12rem 0 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.step-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.step.s2 .step-time { color: #7c3aed; }
.step.s3 .step-time { color: #16a34a; }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.stat {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
    background: #f8fafc;
}

.stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat.blue strong { color: #2563eb; }
.stat.green strong { color: #16a34a; }

.stat span {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Pipeline */
.pipeline { display: grid; gap: 0.7rem; }

.pipe-row {
    display: grid;
    gap: 0.28rem;
}

.pipe-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.pipe-meta span { color: #334155; font-weight: 600; }
.pipe-meta strong { color: #0f172a; font-weight: 700; }

.bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bar > i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bar .b1 { width: 100%; background: #3b82f6; }
.bar .b2 { width: 55%; background: #8b5cf6; }
.bar .b3 { width: 25%; background: #c084fc; }
.bar .b4 { width: 15.2%; background: #22c55e; }

.pipe-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid #fff;
    margin-left: -6px;
}

.avatars span:first-child { margin-left: 0; }
.avatars .a1 { background: #3b82f6; }
.avatars .a2 { background: #8b5cf6; }
.avatars .a3 { background: #f97316; }
.avatars .more { background: #e2e8f0; color: #475569; }

.pipe-foot em {
    font-style: normal;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

/* Chat / omnichannel */
.chat {
    display: grid;
    gap: 0.7rem;
    margin: 0.2rem 0 0.9rem;
}

.msg {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.msg.bot { justify-content: flex-end; }

.avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #334155;
    font-size: 0.58rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.bubble {
    max-width: 86%;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.bubble.user {
    background: #f1f5f9;
    color: #334155;
    border-bottom-left-radius: 4px;
}

.bubble.ai {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bubble .who {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    opacity: 0.95;
}

.bubble .when {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    opacity: 0.7;
}

.channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 650;
    color: #475569;
}

.channel i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.channel i svg { width: 14px; height: 14px; }
.channel .wa { background: #dcfce7; color: #16a34a; }
.channel .call { background: #dbeafe; color: #2563eb; }
.channel .boti { background: #ede9fe; color: #7c3aed; }

.promo-copy {
    margin-top: 1.5rem;
    text-align: center;
}

.promo-copy h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.22;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: #0f172a;
}

.promo-copy p {
    margin: 0 auto 1.15rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 34rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.cta:hover { filter: brightness(0.95); transform: translateY(-1px); }
.cta.orange { background: #f97316; box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3); }
.cta.purple { background: #7c3aed; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28); }
.cta.green { background: #059669; box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28); }
.cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.75rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #bfdbfe;
    cursor: pointer;
    transition: width 0.2s ease, background 0.15s ease;
}

.dot.is-active {
    width: 22px;
    background: #1d4ed8;
}

/* —— Right auth —— */
.auth {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    padding: 1.5rem 2.5rem 1.5rem;
    min-height: 100vh;
}

.auth-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.nav-pill {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 650;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.auth-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.auth-body h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.auth-body .lede {
    margin: 0.45rem 0 1.75rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.alert {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.88rem;
    line-height: 1.4;
}

.field { margin-bottom: 1.15rem; }

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

label {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.field-row label { margin-bottom: 0; }

.forgot {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--blue);
}

.forgot:hover { text-decoration: underline; }

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-wrap { position: relative; }

.password-wrap input { padding-right: 2.75rem; }

.toggle-pass {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.toggle-pass:hover { color: #475569; background: #f8fafc; }

.options {
    display: flex;
    align-items: center;
    margin: 0.25rem 0 1.35rem;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.check input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    display: grid;
    place-items: center;
    margin: 0;
    background: #fff;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.check input:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.check input:checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 1.1rem;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.submit:hover {
    background: var(--blue-deep);
    transform: translateY(-1px);
}

.create {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.create a {
    color: var(--blue);
    font-weight: 700;
}

.create a:hover { text-decoration: underline; }

.manager-link {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

.manager-link a {
    color: #64748b;
    font-weight: 600;
}

.manager-link a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.auth-foot {
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
}

.auth-foot .legal {
    margin-bottom: 0.35rem;
}

.auth-foot .legal a {
    color: #64748b;
}

.auth-foot .legal a:hover { text-decoration: underline; }

.auth-foot .sep {
    margin: 0 0.4rem;
    color: #cbd5e1;
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    .promo {
        min-height: auto;
        padding: 2rem 1.5rem 2.5rem;
    }
    .auth {
        min-height: auto;
        padding: 1.25rem 1.35rem 2rem;
    }
    .auth-body { padding-top: 0.5rem; }
}

@media (max-width: 480px) {
    .feature-head { flex-wrap: wrap; }
    .badge { margin-left: 0; }
    .report-body { grid-template-columns: 1fr; }
    .compass { margin: 0.75rem auto 1.1rem; }
    .promo-copy h2 { font-size: 1.35rem; }
    .channels { gap: 0.2rem; }
}

/* Shared auth extras */
.nav-pill.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.nav-link.is-active {
    color: #1d4ed8;
}

.alert.ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-body.signup {
    max-width: 440px;
    justify-content: flex-start;
    padding-top: 0.25rem;
}

.auth.signup-page {
    overflow-y: auto;
}

.signup-page .field {
    margin-bottom: 0.85rem;
}

.signup-page .auth-body .lede {
    margin-bottom: 1.15rem;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.signup-page .submit {
    margin-top: 0.35rem;
}

@media (max-width: 560px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
}
