:root {
    color-scheme: dark;
    --bg: #0b1224;
    --panel: #121d35;
    --text: #f5f7ff;
    --muted: #9aa8c4;
    --blue: #7ba7ff;
    --line: rgba(174, 195, 238, .14);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(ellipse at 12% 5%, rgba(57, 104, 203, .20), transparent 38%),
        radial-gradient(ellipse at 90% 44%, rgba(95, 65, 188, .13), transparent 35%),
        var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.start-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.start-header {
    min-height: 92px; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -.8px; }
.brand-symbol {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(145deg, #91b8ff, #4e78ef); color: #09152e;
    font-weight: 900; box-shadow: 0 6px 22px rgba(80, 125, 245, .25);
}
.brand-dot { color: #8eafff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.notification-button, .avatar-link {
    position: relative; width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035);
    transition: background .2s, transform .2s;
}
.notification-button:hover, .avatar-link:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.notification-button svg { width: 20px; fill: none; stroke: #d7e2ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #7ea6ff; box-shadow: 0 0 0 3px #121d35; }
.avatar-placeholder { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: #25365b; color: #b8ceff; font-size: 19px; }
.welcome { min-height: 320px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.welcome-copy { position: relative; z-index: 2; padding: 40px 0; max-width: 620px; }
.eyebrow, .card-kicker { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #91b2ff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #83aaff; box-shadow: 0 0 13px #83aaff; }
h1 { margin: 19px 0 13px; font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -2.8px; font-weight: 780; }
h1 span { color: #91b4ff; }
.welcome-copy p { max-width: 470px; color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.welcome-art { position: absolute; right: 36px; top: 22px; width: 270px; height: 270px; display: grid; place-items: center; opacity: .92; }
.art-orbit { position: absolute; border: 1px solid rgba(132, 167, 255, .22); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 220px; height: 220px; }
.orbit-two { width: 165px; height: 240px; transform: rotate(45deg); border-color: rgba(163, 128, 255, .22); }
.art-center { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 35px; font-size: 54px; color: #dce7ff; background: linear-gradient(145deg, rgba(104, 146, 255, .4), rgba(98, 83, 194, .22)); border: 1px solid rgba(189, 207, 255, .3); box-shadow: 0 0 70px rgba(84, 120, 255, .17); }
.art-note { position: absolute; display: grid; place-items: center; color: #9cbaff; background: #182749; border: 1px solid rgba(157, 184, 255, .2); border-radius: 15px; width: 42px; height: 42px; font-size: 23px; }
.note-one { top: 33px; right: 37px; transform: rotate(12deg); }
.note-two { bottom: 35px; left: 30px; transform: rotate(-12deg); }
.main-options { display: grid; grid-template-columns: 1.12fr 1fr; gap: 18px; }
.feature-card {
    min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden;
    min-height: 340px; padding: 25px 26px 22px; border-radius: 24px;
    border: 1px solid var(--line); background: linear-gradient(145deg, rgba(25, 41, 72, .94), rgba(16, 27, 49, .95));
    box-shadow: 0 14px 45px rgba(0,0,0,.12);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(137, 173, 255, .42); box-shadow: 0 20px 48px rgba(0,0,0,.2); }
.conect-card { background: radial-gradient(ellipse at 90% 0%, rgba(72, 118, 225, .20), transparent 55%), linear-gradient(145deg, #182746, #111b31); }
.tools-card { background: radial-gradient(ellipse at 85% 10%, rgba(142, 100, 217, .15), transparent 50%), linear-gradient(145deg, #1b213d, #121a30); }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; }
.card-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-icon { color: #a9c5ff; background: rgba(96, 140, 255, .13); border: 1px solid rgba(133, 170, 255, .17); }
.tools-icon { color: #d0b8ff; background: rgba(164, 124, 255, .13); border: 1px solid rgba(189, 159, 255, .17); }
.card-arrow { font-size: 22px; color: #91a8d7; transition: transform .2s; }
.feature-card:hover .card-arrow { transform: translate(2px, -2px); }
.people-row { display: flex; align-items: center; min-height: 49px; margin: 24px 0 19px; padding-left: 2px; }
.person-avatar { width: 39px; height: 39px; object-fit: cover; border-radius: 50%; border: 2px solid #172542; margin-left: -7px; background: #31446b; }
.person-avatar:first-child { margin-left: 0; }
.avatar-fallback { display: grid; place-items: center; color: #dce6ff; font-size: 17px; }
.people-caption { margin-left: 11px; color: #9eafce; font-size: 11px; }
.card-copy { margin-top: auto; }
.card-kicker { font-size: 9px; letter-spacing: 1.7px; color: #93a9d6; }
.card-copy h2 { font-size: 28px; letter-spacing: -.8px; margin: 9px 0 8px; }
.card-copy p { max-width: 390px; margin: 0; font-size: 13px; line-height: 1.7; color: #a4b1ca; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; margin-top: 16px; border-top: 1px solid rgba(179, 199, 239, .12); }
.card-cta { font-size: 12px; font-weight: 750; color: #dce7ff; }
.card-cta span { color: #90b2ff; margin-left: 7px; font-size: 16px; }
.online-mark { display: inline-flex; align-items: center; gap: 6px; color: #90a5c9; font-size: 10px; }
.online-mark i { display: block; width: 6px; height: 6px; background: #80cbb2; border-radius: 50%; }
.tools-illustration { height: 88px; display: flex; align-items: center; gap: 10px; padding-left: 4px; margin: 7px 0 0; }
.tool-tile { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 17px; font-size: 24px; border: 1px solid rgba(198, 177, 255, .2); }
.tile-music { color: #d5c2ff; background: rgba(157, 118, 255, .15); transform: rotate(-8deg); }
.tile-calendar { color: #a8c6ff; background: rgba(99, 145, 255, .14); transform: translateY(-7px) rotate(5deg); }
.tile-mic { color: #ffc4e1; background: rgba(239, 126, 190, .12); transform: rotate(8deg); }
.tools-label { font-size: 9px; letter-spacing: 1.1px; color: #a99ad2; }
.start-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7f90b0; font-size: 11px; }
.start-footer a { color: #c1d2ff; font-size: 11px; font-weight: 700; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; }
.start-footer a span { margin-left: 6px; color: #91b4ff; }
@media (max-width: 760px) {
    .start-shell { width: min(100% - 32px, 560px); }
    .start-header { min-height: 72px; }
    .welcome { min-height: 275px; }
    .welcome-copy { padding: 38px 0 34px; max-width: 100%; }
    h1 { font-size: clamp(36px, 9vw, 49px); letter-spacing: -1.8px; }
    .welcome-copy p { max-width: 340px; font-size: 13px; }
    .welcome-art { right: -125px; top: 35px; transform: scale(.78); opacity: .42; }
    .main-options { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { min-height: 320px; padding: 22px; border-radius: 21px; }
    .tools-card { min-height: 310px; }
    .start-footer { min-height: 85px; }
}
@media (max-width: 380px) {
    .start-shell { width: calc(100% - 24px); }
    .feature-card { padding: 19px; }
    .online-mark { display: none; }
    .start-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   TELA INICIAL COMPACTA — DESKTOP E MOBILE
   ========================================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.start-shell {
    width: min(940px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.start-header {
    min-height: 62px;
    flex-shrink: 0;
}

.brand {
    font-size: 19px;
    gap: 9px;
}

.brand-symbol {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.notification-button,
.avatar-link {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.welcome {
    min-height: 0;
    flex: 1;
    max-height: 260px;
}

.welcome-copy {
    padding: 22px 0;
}

h1 {
    margin: 12px 0 9px;
    font-size: clamp(31px, 4vw, 43px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.welcome-copy p {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.55;
}

.welcome-art {
    right: 12px;
    top: 0;
    transform: scale(.72);
    transform-origin: center right;
    opacity: .65;
}

.main-options {
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 12px;
}

.feature-card {
    min-height: 0;
    height: 260px;
    padding: 18px;
    border-radius: 19px;
}

.card-icon {
    width: 37px;
    height: 37px;
    border-radius: 12px;
}

.people-row {
    min-height: 34px;
    margin: 12px 0 10px;
}

.person-avatar {
    width: 31px;
    height: 31px;
}

.tools-illustration {
    height: 54px;
    gap: 8px;
    margin: 4px 0 0;
}

.tool-tile {
    width: 39px;
    height: 39px;
    border-radius: 13px;
    font-size: 19px;
}

.card-copy h2 {
    font-size: 23px;
    margin: 6px 0;
}

.card-copy p {
    font-size: 11px;
    line-height: 1.45;
}

.card-bottom {
    padding-top: 12px;
    margin-top: 10px;
    gap: 8px;
}

.card-cta {
    font-size: 11px;
}

.online-mark,
.tools-label {
    font-size: 9px;
}

.start-footer {
    min-height: 45px;
    flex-shrink: 0;
    font-size: 10px;
}

.start-footer a {
    padding: 7px 10px;
    font-size: 10px;
}

/* Telas de notebooks com pouca altura */
@media (min-width: 761px) and (max-height: 800px) {
    .start-header {
        min-height: 54px;
    }

    .welcome {
        max-height: 210px;
    }

    .welcome-copy {
        padding: 14px 0;
    }

    h1 {
        font-size: 37px;
        margin: 9px 0 7px;
    }

    .welcome-art {
        transform: scale(.59);
    }

    .feature-card {
        height: 235px;
        padding: 15px;
    }

    .people-row {
        margin: 8px 0;
    }

    .tools-illustration {
        height: 45px;
    }

    .start-footer {
        min-height: 38px;
    }
}

/* Celulares: tudo compacto e em uma tela */
@media (max-width: 760px) {
    .start-shell {
        width: calc(100% - 28px);
        min-height: 100vh;
        min-height: 100dvh;
    }

    .start-header {
        min-height: 54px;
    }

    .brand {
        font-size: 17px;
    }

    .welcome {
        flex: 0 0 auto;
        min-height: 0;
        height: auto;
        max-height: none;
        padding: 19px 0 16px;
    }

    .welcome-copy {
        padding: 0;
        max-width: 100%;
    }

    .eyebrow {
        font-size: 9px;
    }

    h1 {
        font-size: clamp(29px, 8vw, 38px);
        letter-spacing: -1.4px;
        margin: 10px 0 7px;
    }

    .welcome-copy p {
        max-width: 290px;
        font-size: 12px;
        line-height: 1.5;
    }

    .welcome-art {
        right: -115px;
        top: -15px;
        transform: scale(.52);
        opacity: .22;
    }

    .main-options {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 8px;
    }

    .feature-card,
    .tools-card {
        height: auto;
        min-height: 0;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .card-topline {
        margin-bottom: 8px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .card-icon svg {
        width: 19px;
        height: 19px;
    }

    .people-row {
        min-height: 28px;
        margin: 0 0 8px;
    }

    .person-avatar {
        width: 27px;
        height: 27px;
    }

    .people-caption {
        font-size: 10px;
    }

    .tools-illustration {
        height: 35px;
        margin: 0 0 6px;
    }

    .tool-tile {
        width: 31px;
        height: 31px;
        border-radius: 10px;
        font-size: 16px;
    }

    .card-kicker {
        font-size: 8px;
    }

    .card-copy h2 {
        font-size: 20px;
        margin: 4px 0;
    }

    .card-copy p {
        font-size: 11px;
        line-height: 1.4;
    }

    .card-bottom {
        padding-top: 9px;
        margin-top: 9px;
    }

    .online-mark,
    .tools-label {
        display: none;
    }

    .start-footer {
        min-height: 40px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 3px 0;
    }

    .start-footer a {
        white-space: nowrap;
    }
}

/* Celulares baixos, como telas com barras do navegador abertas */
@media (max-width: 760px) and (max-height: 700px) {
    .start-header {
        min-height: 46px;
    }

    .welcome {
        padding: 12px 0;
    }

    h1 {
        font-size: 29px;
        margin: 7px 0 5px;
    }

    .welcome-copy p {
        font-size: 11px;
    }

    .feature-card,
    .tools-card {
        padding: 11px 14px;
    }

    .card-topline {
        margin-bottom: 5px;
    }

    .people-row {
        margin-bottom: 5px;
    }

    .tools-illustration {
        height: 29px;
    }

    .card-copy h2 {
        font-size: 18px;
    }

    .card-bottom {
        padding-top: 7px;
        margin-top: 7px;
    }
}

/* Conect: perfis sempre em uma única linha */
.header-actions {
    flex-shrink: 0;
}

.notification-button {
    display: grid !important;
    flex-shrink: 0;
}

.people-row {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
}

.people-row .person-avatar {
    flex: 0 0 auto;
    margin-left: -7px;
}

.people-row .person-avatar:first-child {
    margin-left: 0;
}

.people-caption {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mais espaço = mais perfis; telas estreitas escondem os excedentes. */
@media (max-width: 430px) {
    .people-row .person-avatar:nth-of-type(n+4) {
        display: none;
    }
}

@media (min-width: 431px) and (max-width: 600px) {
    .people-row .person-avatar:nth-of-type(n+5) {
        display: none;
    }
}

@media (min-width: 601px) and (max-width: 760px) {
    .people-row .person-avatar:nth-of-type(n+6) {
        display: none;
    }
}

@media (min-width: 761px) {
    .people-row .person-avatar:nth-of-type(n+8) {
        display: none;
    }
}

/* Notificação dentro do cartão Conect */
.conect-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.card-notification {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(145, 178, 255, .22);
    background: rgba(112, 151, 255, .10);
    color: #c9d9ff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-notification svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-notification i {
    position: absolute;
    width: 6px;
    height: 6px;
    right: 5px;
    top: 5px;
    border-radius: 50%;
    background: #8cb0ff;
    box-shadow: 0 0 0 2px #192b4b;
}

.conect-card .people-row {
    min-height: 40px;
    gap: 0;
}

.conect-card .person-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.conect-card .people-caption {
    margin-left: 10px;
}

@media (max-width: 430px) {
    .conect-card .person-avatar:nth-of-type(n+4) {
        display: none;
    }
}


/* Ações no cartão Conect */
.conect-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.conect-notification {
    width: 29px;
    height: 29px;
    border: 1px solid rgba(145,178,255,.25);
    background: rgba(112,151,255,.12);
    color: #c9d9ff;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.conect-notification svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.conect-notification i {
    position: absolute;
    width: 6px;
    height: 6px;
    top: 4px;
    right: 4px;
    border-radius: 50%;
    background: #ff8094;
    box-shadow: 0 0 0 2px #1a2a49;
}

.conect-card .people-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.conect-card .person-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -7px;
    border: 2px solid #1b2b4a;
}

.conect-card .person-avatar:first-child {
    margin-left: 0;
}

.conect-card .people-caption {
    margin-left: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 430px) {
    .conect-card .person-avatar:nth-of-type(n+4) {
        display: none;
    }
}



/* Contador real de notificações no cartão Conect */
.conect-notification {
    overflow: visible;
}

.start-notification-count:not([hidden]) {
    position: absolute;
    top: -9px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f04459;
    color: #fff;
    border: 2px solid #172542;
    font: 800 10px/1 Arial, sans-serif;
    box-sizing: border-box;
}

.conect-card .people-row .person-avatar {
    display: block;
    visibility: visible;
    opacity: 1;
}



/* Conect: fila horizontal de perfis e contador numérico real */
.conect-card .people-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.conect-card .person-avatar {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: -7px;
    border: 2px solid #1b2b4a;
}

.conect-card .person-avatar:first-child {
    margin-left: 0;
}

.conect-card .people-caption {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conect-notification {
    position: relative;
    overflow: visible;
}

.start-notification-count:not([hidden]) {
    position: absolute;
    top: -8px;
    right: -9px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #192b4b;
    border-radius: 999px;
    background: #f04459;
    color: #fff;
    font: 800 10px/1 Arial, sans-serif;
    box-sizing: border-box;
}

@media (max-width: 430px) {
    .conect-card .person-avatar:nth-of-type(n+4) {
        display: none;
    }
}

/* Mobile: centralizar o conjunto mantendo as distâncias originais */
@media (max-width: 760px) {
    .start-shell {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        padding-top: 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .start-header {
        flex: 0 0 auto;
    }

    .welcome {
        flex: 0 0 auto;
        min-height: 275px;
    }

    .welcome-copy {
        padding: 38px 0 34px;
    }

    .main-options {
        flex: 0 0 auto;
        margin-top: 0;
        margin-bottom: 0;
        gap: 14px;
    }
}

/* Em celulares baixos, preservar a proporção sem comprimir o conteúdo */
@media (max-width: 760px) and (max-height: 700px) {
    .start-shell {
        min-height: 100vh;
        min-height: 100svh;
        justify-content: flex-start;
        padding-top: 12px;
    }
}
