@import url('../../styles/brand.css');

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ido-font, Montserrat, system-ui, sans-serif);
    background: var(--ido-bg);
    color: var(--ido-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.landing-page,
body.auth-page {
    /* Брендбук IDO — только лендинг и формы входа/регистрации */
    --ido-blue: #FE6902;
    --ido-blue-hover: #e55e00;
    --ido-blue-soft: #fff3eb;
    --ido-orange: #FE6902;
    --ido-dark: #212121;
    --ido-bg: #f5f5f5;
    --ido-white: #ffffff;
    --ido-gray: #6b6b6b;
    --ido-gray-light: #ececec;
    --ido-gradient: linear-gradient(135deg, #FE6902 0%, #ff8534 100%);
    --ido-font: 'Montserrat', system-ui, sans-serif;
    font-family: var(--ido-font);
    color: var(--ido-dark);
    overflow-x: hidden;
}

body.landing-page {
    background: #f5f5f5;
}

/* Светлая тема формы входа (MAYA-553); тёмная — ниже через body.dark */
body.auth-page {
    background: #f5f5f5;
}

body.auth-page.dark {
    background: linear-gradient(160deg, #212121 0%, #2a2a2a 40%, #3a2416 100%);
}

/* ===== Shared buttons / header bits (auth + landing) ===== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--ido-white);
    border-bottom: 1px solid var(--ido-gray-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: inherit;
    text-transform: lowercase;
}

.logo-word { line-height: 1; }

.logo-ido-mark {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(254, 105, 2, 0.35));
}

.landing-page .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(254, 105, 2, 0.35);
}

/* remove duplicate if any */

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--ido-radius-btn);
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(254, 105, 2, 0.22);
}

.logo-icon:not(img) {
    background: var(--ido-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--ido-radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-primary { background: var(--ido-blue); color: #fff; }
.btn-primary:hover {
    background: var(--ido-blue-hover);
    box-shadow: 0 8px 24px rgba(254, 105, 2, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--ido-blue);
    border: 1px solid var(--ido-blue);
}
.btn-outline:hover { background: var(--ido-blue-soft); }
.btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-full { width: 100%; }
.auth-sso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    box-sizing: border-box;
    text-decoration: none;
}
.auth-sso-btn[hidden] { display: none !important; }
html.auth-sso-pending .auth-tabs,
html.auth-sso-pending .auth-form,
html.auth-sso-pending .back-link,
html.auth-sso-pending .verify-email-banner {
    display: none !important;
}
html.auth-sso-pending .auth-card h1 {
    font-size: 0;
    line-height: 0;
}
html.auth-sso-pending .auth-card h1::after {
    content: "Вход через ССПБ ID…";
    display: block;
    font-size: 22px;
    line-height: 1.3;
}

/* ===== Landing header ===== */
.site-header--landing {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    padding: 18px clamp(20px, 4vw, 48px);
    padding-top: max(18px, env(safe-area-inset-top, 0px));
    background: transparent;
    border-bottom: 1px solid transparent;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header--landing .logo,
.site-header--landing .nav-toggle {
    position: relative;
    z-index: 3;
}

.site-header--landing .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.site-header--landing .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-header--landing.is-scrolled {
    background: rgba(33, 33, 33, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nav-toggle-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.site-header--landing.is-nav-open .nav-toggle-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.site-header--landing.is-nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header--landing.is-nav-open .nav-toggle-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.nav-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 10px;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

body.landing-nav-lock {
    overflow: hidden;
}

/* ===== Hero (first viewport) ===== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 96px clamp(20px, 5vw, 72px) clamp(40px, 6vh, 72px);
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(145deg, #0a0a0a 0%, #212121 42%, #FE6902 100%);
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto auto;
    width: min(70vw, 720px);
    height: min(70vw, 720px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 105, 2, 0.55) 0%, transparent 68%);
    filter: blur(8px);
    animation: hero-glow-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1.45fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.hero-inner {
    max-width: 560px;
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
    font-size: clamp(3.4rem, 10vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-transform: lowercase;
    margin-bottom: 18px;
}

.hero-headline {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    max-width: 24ch;
    margin-bottom: 14px;
}

.hero-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 40ch;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn-primary:hover { transform: translateY(-1px); }

/* ===== Hero demo: live-like board (MAYA-790) ===== */
.hero-demo {
    display: flex;
    justify-content: center;
    animation: hero-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.demo-device {
    width: min(100%, 920px);
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
}
.demo-device--app,
.demo-device.is-wide {
    width: min(100%, 960px);
}

.demo-bezel {
    background: #141414;
    border-radius: 22px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-screen,
.demo-screen--app {
    position: relative;
    height: 620px;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
}

.demo-app,
.demo-app--live {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    background: #111;
}

.demo-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 6px;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.demo-nav-user {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 4px 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #FE6902, #ff8534);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    flex-shrink: 0;
}
.demo-nav-user strong {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1.15;
}
.demo-nav-user small {
    display: block;
    margin-top: 1px;
    font-size: 0.42rem;
    color: #86efac;
}
.demo-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.48rem;
    font-weight: 600;
    white-space: nowrap;
}
.demo-nav-item i {
    width: 11px;
    text-align: center;
    font-size: 0.52rem;
    opacity: 0.85;
}
.demo-nav-item.is-active {
    background: rgba(254, 105, 2, 0.2);
    color: #fff;
}
.demo-nav-item.is-active i { color: #FE6902; }

.demo-nav-projects {
    margin: 6px 2px 0;
    padding: 7px 6px 6px;
    border: 1px solid rgba(254, 105, 2, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 1 auto;
    max-height: 58%;
    min-height: 0;
    overflow: hidden;
}
.demo-nav-projects-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    grid-template-rows: 18px 22px;
    column-gap: 5px;
    row-gap: 4px;
    align-items: center;
}
.demo-nav-projects-label {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1;
}
.demo-nav-icon-btn {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(254, 105, 2, 0.65);
    background: rgba(30, 22, 16, 0.95);
    color: #FE6902;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 0.42rem;
    line-height: 1;
    flex-shrink: 0;
    cursor: default;
}
.demo-nav-icon-btn--add {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}
.demo-nav-icon-btn--sort {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
}
.demo-nav-search {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.4rem;
}
.demo-nav-search i { color: #FE6902; font-size: 0.4rem; }
.demo-nav-pinned {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-nav-pinned-label {
    font-size: 0.38rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 4px;
}
.demo-nav-pin {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    font-size: 0.45rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.72);
}
.demo-nav-pin i { color: #f472b6; font-size: 0.4rem; }
.demo-nav-project-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 0;
    overflow: hidden;
    flex: 1;
    padding-right: 7px;
}
.demo-nav-project-list::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 1px;
    bottom: 18%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #FE6902 0%, #FE6902 42%, rgba(254, 105, 2, 0.25) 42%, rgba(254, 105, 2, 0.25) 100%);
    pointer-events: none;
}
.demo-nav-folder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 0.45rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
}
.demo-nav-folder > i {
    color: var(--f, #3b82f6);
    font-size: 0.48rem;
    width: 11px;
    text-align: center;
}
.demo-nav-folder span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.demo-nav-folder em,
.demo-nav-folder b {
    font-style: normal;
    font-weight: 400;
    font-size: 0.38rem;
    color: rgba(255, 255, 255, 0.35);
}
.demo-nav-folder.is-active {
    background: rgba(120, 60, 20, 0.55);
    color: #FE6902;
}
.demo-nav-folder.is-active > i,
.demo-nav-folder.is-active b { color: #FE6902; }
.demo-nav-all {
    margin-top: auto;
    flex-shrink: 0;
    padding: 5px 6px;
    border-radius: 7px;
    border: 1px dashed rgba(254, 105, 2, 0.45);
    background: rgba(254, 105, 2, 0.1);
    color: #FE6902;
    font: inherit;
    font-size: 0.42rem;
    font-weight: 700;
    text-align: center;
    cursor: default;
}
.demo-nav-logout {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.48rem;
    font-weight: 650;
    flex-shrink: 0;
}

.demo-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(420px 160px at 12% -10%, rgba(254, 105, 2, 0.12), transparent 55%),
        #121212;
}

.demo-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-context {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.demo-context-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0 10px 0 0;
}
.demo-context-block + .demo-context-block {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-context-label {
    font-size: 0.38rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}
.demo-context-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.demo-context-row strong {
    font-size: 0.52rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92px;
}
.demo-context-row strong i {
    margin-left: 3px;
    font-size: 0.36rem;
    color: rgba(255, 255, 255, 0.45);
}
.demo-context-people {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.demo-ctx-av {
    width: 16px;
    height: 16px;
    margin-left: -4px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #1a1a1a;
    background: var(--a, #FE6902);
    color: #fff;
    font-size: 0.34rem;
    font-weight: 800;
}
.demo-ctx-av:first-child { margin-left: 0; }
.demo-ctx-add {
    width: 16px;
    height: 16px;
    margin-left: 3px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(254, 105, 2, 0.65);
    background: rgba(40, 28, 18, 0.85);
    color: #FE6902;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
}
.demo-topbar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: min(150px, 22%);
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.42rem;
}
.demo-topbar-bell {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: default;
}
.demo-topbar-bell i {
    font-size: 11px;
    line-height: 1;
}
.demo-topbar-bell-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    border: 1px solid #121212;
    font-style: normal;
}

.demo-board-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 2px;
}
.demo-board-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 7px;
    border: 1px solid rgba(254, 105, 2, 0.7);
    color: #FE6902;
    font-size: 0.48rem;
    font-weight: 750;
    background: rgba(254, 105, 2, 0.08);
}
.demo-board-tab i { font-size: 0.4rem; opacity: 0.85; }
.demo-board-add {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.demo-board-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px 4px;
}
.demo-tabs {
    display: flex;
    gap: 10px;
}
.demo-tabs span {
    position: relative;
    font-size: 0.52rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
    padding-bottom: 4px;
}
.demo-tabs span.is-on {
    color: #fff;
}
.demo-tabs span.is-on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #FE6902;
}
.demo-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.demo-filter-settings {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: default;
    flex-shrink: 0;
    box-sizing: border-box;
}
.demo-filter-settings i {
    font-size: 10px;
    line-height: 1;
    color: inherit;
}
.demo-filter-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
    display: inline-block;
    border: 0;
    padding: 0;
}
.demo-filter-chip {
    font-style: normal;
    font-size: 0.4rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.demo-filter-chip > i:first-child {
    font-size: 0.38rem;
    opacity: 0.75;
}
.demo-filter-chip > i:last-child {
    font-size: 0.32rem;
    opacity: 0.55;
}
.demo-filter-add {
    width: 18px;
    height: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
}
.demo-filter-add i {
    font-size: 8px;
    line-height: 1;
}

.demo-kanban {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 7px;
    padding: 6px 8px 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.demo-kanban::-webkit-scrollbar { display: none; }

.demo-col {
    --col: #3b82f6;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 148px;
    min-width: 148px;
    max-height: 100%;
    background: color-mix(in srgb, var(--col) 12%, #1c1c1c);
    border: 1px solid color-mix(in srgb, var(--col) 28%, transparent);
    border-radius: 10px;
    overflow: hidden;
}
.demo-col::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--col);
}
.demo-col-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 7px 4px;
}
.demo-col-head > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.demo-col-head strong {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--col);
}
.demo-col-head em {
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-size: 0.42rem;
    font-weight: 700;
}
.demo-col-head button {
    align-self: flex-start;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.45);
    font: inherit;
    font-size: 0.4rem;
    font-weight: 650;
    padding: 0;
    cursor: default;
}

.demo-col-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 2px 6px 6px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.demo-col-arch {
    margin-top: auto;
    padding: 5px 8px 7px;
    font-size: 0.38rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.35);
}

.demo-add-col {
    flex-shrink: 0;
    align-self: flex-start;
    width: 112px;
    margin-top: 2px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.45);
    font: inherit;
    font-size: 0.45rem;
    font-weight: 700;
    padding: 10px 8px;
    cursor: default;
}

.demo-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 7px;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s ease, opacity 0.35s ease;
}
.demo-card.is-move,
.demo-app--live[data-demo-step="1"] [data-demo-card="brief"],
.demo-app--live[data-demo-step="2"] [data-demo-card="landing"] {
    border-color: rgba(254, 105, 2, 0.8);
    box-shadow: 0 0 0 1px rgba(254, 105, 2, 0.35), 0 8px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}
.demo-card.is-fly {
    opacity: 0;
    transform: translateX(18px) scale(0.96);
}
.demo-card.is-land {
    animation: demo-card-land 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.demo-card-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}
.demo-card-row strong {
    flex: 1;
    min-width: 0;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.demo-card-row > i {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.4rem;
    margin-top: 2px;
}
.demo-card-check {
    width: 11px;
    height: 11px;
    margin-top: 1px;
    border-radius: 3px;
    border: 1.4px solid rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #0a0a0a;
    font-size: 0.38rem;
}
.demo-card-check.is-on {
    background: #86efac;
    border-color: #86efac;
}
.demo-card.is-done .demo-card-row strong {
    color: rgba(255, 255, 255, 0.48);
    text-decoration: line-through;
}
.demo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.demo-card-tags em {
    font-style: normal;
    font-size: 0.36rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 5px;
    color: #fff;
}
.tag-blue { background: #2563eb; }
.tag-orange { background: #ea580c; }
.tag-teal { background: #0d9488; }
.tag-green { background: #16a34a; }
.tag-violet { background: #7c3aed; }

.demo-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.38rem;
    font-weight: 650;
}
.demo-comments { display: inline-flex; align-items: center; gap: 3px; }
.demo-avs {
    display: flex;
    margin-left: auto;
}
.demo-avs i {
    width: 12px;
    height: 12px;
    margin-left: -3px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #161616;
    background: linear-gradient(145deg, #FE6902, #ff9a4a);
    color: #fff;
    font-style: normal;
    font-size: 0.36rem;
    font-weight: 800;
}
.demo-avs i:first-child { margin-left: 0; }
.demo-avs .av-m { background: linear-gradient(145deg, #f59e0b, #e87502); }
.demo-avs .av-k { background: linear-gradient(145deg, #ff8534, #FE6902); }
.demo-avs .av-i { background: linear-gradient(145deg, #6b7280, #4b5563); }

.demo-toast {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.96);
    border: 1px solid rgba(254, 105, 2, 0.45);
    color: #fff;
    font-size: 0.48rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-toast.is-on {
    opacity: 1;
    transform: none;
}

.demo-board-caption {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 4;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(254, 105, 2, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.55rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

@keyframes demo-card-land {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}


/* Keep chat styles for audience section */
.demo-chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FE6902;
    box-shadow: 0 0 0 4px rgba(254, 105, 2, 0.2);
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-glow-drift {
    from { transform: translate(0, 0) scale(1); opacity: 0.85; }
    to { transform: translate(-6%, 8%) scale(1.08); opacity: 1; }
}

/* ===== Content bands ===== */
.band {
    padding: clamp(64px, 10vh, 112px) clamp(20px, 5vw, 72px);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.band.is-in {
    opacity: 1;
    transform: none;
}
/* Без JS (CSP на бою режет inline) секции не должны быть прозрачными */
html:not(.js) .band,
html:not(.js) .compare {
    opacity: 1;
    transform: none;
}

.band-inner {
    max-width: 960px;
    margin: 0 auto;
}
.band-inner--narrow { max-width: 640px; text-align: center; }

.band-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ido-orange);
    margin-bottom: 14px;
}

.band-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.band-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #555;
    max-width: 58ch;
}

.band--light {
    background: #fff;
    color: var(--ido-dark);
}

.band--soft {
    background: #f7f7f7;
    color: var(--ido-dark);
}

.band--dark {
    background: #212121;
    color: #fff;
}
.band--dark .band-eyebrow { color: #ff8534; }
.band--dark .band-text { color: rgba(255, 255, 255, 0.72); }
.band-text--narrow { max-width: 52ch; }

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.compare {
    padding: 24px 22px;
    border-radius: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.compare.is-in {
    opacity: 1;
    transform: none;
}
.compare:nth-child(2) { transition-delay: 0.1s; }
.compare-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.compare ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.compare li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}
.compare li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.compare--bad {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.compare--bad .compare-label { color: rgba(255, 255, 255, 0.55); }
.compare--bad li::before { background: #6b6b6b; }
.compare--good {
    background: linear-gradient(160deg, rgba(254, 105, 2, 0.18), rgba(254, 105, 2, 0.05));
    border: 1px solid rgba(254, 105, 2, 0.35);
    box-shadow: 0 18px 40px rgba(254, 105, 2, 0.12);
}
.compare--good .compare-label { color: #ffb27a; }
.compare--good li::before { background: #FE6902; }

/* Live messenger demo — как в продукте */
.band-inner--messenger {
    max-width: 1120px;
}
.band--dark .band-inner--messenger > .band-text {
    margin-bottom: 28px;
}

.lmess {
    position: relative;
    margin-top: 8px;
}

.lmess-shell {
    display: grid;
    grid-template-columns: 56px 236px minmax(0, 1fr);
    height: 620px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.lmess-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0 12px;
    background: #0c0c0c;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.lmess-rail-avatar {
    width: 32px;
    height: 32px;
    margin: 4px 0 6px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.lmess-rail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lmess-rail-btn {
    position: relative;
    width: 40px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
}
.lmess-rail-btn--expand {
    color: #FE6902;
    border: 1px solid rgba(254, 105, 2, 0.55);
    background: transparent;
    margin-bottom: 2px;
}
.lmess-rail-btn--folder {
    border: 1px solid rgba(254, 105, 2, 0.45);
    color: rgba(255, 255, 255, 0.55);
}
.lmess-rail-btn.is-on {
    color: #FE6902;
    background: rgba(254, 105, 2, 0.12);
}
.lmess-rail-btn.is-on::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #FE6902;
}
.lmess-rail-spacer { flex: 1; min-height: 8px; }

.lmess-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #151515;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.lmess-list-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lmess-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.lmess-list-title strong {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.lmess-list-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: default;
}
.lmess-list-filter i { font-size: 0.58rem; opacity: 0.65; }
.lmess-list-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #222;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
}
.lmess-list-scroll {
    overflow: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.lmess-list-scroll::-webkit-scrollbar { display: none; }
.lmess-sec {
    margin: 12px 14px 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.36);
}
.lmess-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 2px;
    padding: 7px 10px;
    border-radius: 12px;
    min-width: 0;
}
.lmess-item-text {
    min-width: 0;
    flex: 1;
}
.lmess-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lmess-item small {
    display: block;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.4);
}
.lmess-item.is-active {
    background: rgba(254, 105, 2, 0.14);
    box-shadow: inset 0 0 0 1px rgba(254, 105, 2, 0.32);
}
.lmess-item.is-active .lmess-st--away { color: #ffb27a; }

.lmess-av-wrap {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.lmess-av-wrap--head {
    width: 34px;
    height: 34px;
}
.lmess-av-wrap--msg {
    width: 30px;
    height: 30px;
}
.lmess-av-wrap--xs {
    width: 24px;
    height: 24px;
}

.lmess-av {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--a, #FE6902) 82%, #fff), var(--a, #FE6902));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.28);
    letter-spacing: -0.02em;
}
.lmess-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lmess-av--sm { font-size: 0.62rem; }
.lmess-av--xs { font-size: 0.5rem; }
.lmess-av--group {
    border-radius: 10px;
    font-size: 0.72rem;
}
.lmess-av--group i { font-size: 0.72rem; }

.lmess-pres {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #151515;
    background: #94a3b8;
    display: grid;
    place-items: center;
    z-index: 2;
    font-style: normal;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.lmess-pres i {
    font-size: 6px;
    color: #fff;
    line-height: 1;
}
.lmess-pres.is-online {
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.lmess-pres.is-away {
    width: 15px;
    height: 15px;
    background: #f43f5e;
}
.lmess-pres.is-away i { font-size: 7px; }
.lmess-pres.is-work {
    width: 15px;
    height: 15px;
    background: #FE6902;
}
.lmess-pres.is-work i { font-size: 7px; }
.lmess-pres.is-offline { background: #64748b; }
.lmess-pres.is-vacation {
    width: 15px;
    height: 15px;
    background: #38bdf8;
}
.lmess-pres.is-vacation i { font-size: 6px; }
.lmess-av-wrap--head .lmess-pres,
.lmess-av-wrap--msg .lmess-pres { border-color: #1a1a1a; }
.lmess-av-wrap--xs .lmess-pres {
    width: 10px;
    height: 10px;
    right: -1px;
    bottom: -1px;
}
.lmess-av-wrap--xs .lmess-pres.is-away,
.lmess-av-wrap--xs .lmess-pres.is-work,
.lmess-av-wrap--xs .lmess-pres.is-vacation {
    width: 11px;
    height: 11px;
}
.lmess-av-wrap--xs .lmess-pres i { font-size: 5px; }

.lmess-st {
    font-style: normal;
    font-weight: 650;
}
.lmess-item small.lmess-st--online,
.lmess-st--online { color: #4ade80; }
.lmess-item small.lmess-st--away,
.lmess-st--away,
.lmess-chat-meta em.lmess-st--away { color: #fb7185; }
.lmess-item small.lmess-st--work,
.lmess-st--work { color: #ffb27a; }
.lmess-item small.lmess-st--offline,
.lmess-st--offline { color: rgba(255, 255, 255, 0.42); }
.lmess-item small.lmess-st--vacation,
.lmess-st--vacation { color: #7dd3fc; }
.lmess-from .lmess-st { font-size: inherit; }

.lmess-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #1a1a1a;
}
.lmess-chat-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    min-height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #171717;
}
.lmess-chat-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.lmess-av--head-group {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #2a2a2a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: block;
}
.lmess-av--head-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lmess-chat-meta {
    min-width: 0;
    flex-shrink: 0;
}
.lmess-chat-meta strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}
.lmess-chat-meta small {
    display: block;
    margin-top: 2px;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}
.lmess-members {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    min-width: 0;
}
.lmess-members-faces {
    display: flex;
    align-items: center;
}
.lmess-face {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: -7px;
    overflow: hidden;
    box-shadow: 0 0 0 1.5px #171717;
    background: #333;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lmess-face:first-child { margin-left: 0; }
.lmess-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lmess-face--more {
    font-size: 0.58rem;
    font-weight: 700;
    color: #ffb078;
    background: rgba(254, 105, 2, 0.2);
}
.lmess-members-count {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}
.lmess-chat-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.86rem;
    flex-shrink: 0;
}
.lmess-chat-actions span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.lmess-msgs {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 12px;
    background: #1a1a1a;
    scrollbar-width: none;
}
.lmess-msgs::-webkit-scrollbar { display: none; }

.lmess-day {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 4px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.68rem;
    font-weight: 600;
}
.lmess-day::before,
.lmess-day::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.lmess-day span { white-space: nowrap; }

.lmess-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 650;
    align-self: center;
}
.lmess-pair strong { font-weight: 700; color: #fff; }
.lmess-pair i {
    font-size: 0.55rem;
    color: #FE6902;
    opacity: 0.9;
}

.lmess-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 86%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.lmess-row.is-shown {
    opacity: 1;
    transform: none;
}
.lmess-row[data-lmess="msg1"] {
    scroll-margin-top: 8px;
}
.lmess-row--in { align-self: flex-start; }
.lmess-row--out { align-self: flex-end; flex-direction: row; }
.lmess-msg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.lmess-from {
    font-size: 0.64rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 2px;
}
.lmess-row--out .lmess-from {
    text-align: right;
    color: #ffb27a;
}
.lmess-row--in .lmess-from {
    color: #7dd3fc;
}

.lmess-bubble {
    padding: 8px 10px 6px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}
.lmess-bubble p { margin: 0; }
.lmess-bubble--in {
    background: #2a2a2a;
    border-radius: 12px 12px 12px 4px;
}
.lmess-bubble--in .lmess-meta { justify-content: flex-start; }
.lmess-bubble--out {
    background: #242424;
    border: 1px solid rgba(254, 105, 2, 0.7);
    border-radius: 12px 12px 4px 12px;
    box-shadow: 0 0 0 1px rgba(254, 105, 2, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
}
.lmess-bubble--card {
    padding: 8px;
    min-width: min(320px, 70vw);
    background: #1f1f1f;
}
.lmess-msg--photo {
    width: min(340px, 78%);
    max-width: 100%;
}
.lmess-row:has(.lmess-msg--photo) {
    max-width: 92%;
    align-self: flex-start;
}
.lmess-bubble--photo {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
}
.lmess-bubble--photo > p {
    margin: 8px 2px 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}
.lmess-photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.lmess-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.lmess-reacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 0;
}
.lmess-react {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    opacity: 0;
    transform: translateY(6px) scale(0.85);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lmess-react.is-shown {
    opacity: 1;
    transform: none;
}
.lmess-react b {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}
.lmess-mention {
    color: #7dd3fc;
    font-weight: 700;
    background: rgba(125, 211, 252, 0.12);
    border-radius: 4px;
    padding: 0 3px;
}
.lmess-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
}
.lmess-meta i { color: #53bdeb; font-size: 0.68rem; }

.lmess-task {
    background: #f4f4f5;
    color: #212121;
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 6px;
}
.lmess-task-row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
}
.lmess-task-title {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lmess-task-assignee {
    font-size: 0.66rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #f3f3f3;
    border: 1px solid #e8e8e8;
}
.lmess-task-assignee i { font-size: 0.55rem; opacity: 0.7; }
.lmess-task-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cfcfcf;
    background: #fff;
}

.lmess-typing {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.lmess-typing.is-shown {
    opacity: 1;
    transform: none;
}
.lmess-typing .lmess-from { color: #7dd3fc; }
.lmess-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 12px 12px 12px 4px;
    width: fit-content;
}
.lmess-typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: lmess-dot 1s ease-in-out infinite;
}
.lmess-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.lmess-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lmess-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.lmess-compose {
    flex-shrink: 0;
    padding: 8px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #141414;
}
.lmess-quick {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 8px;
    scrollbar-width: none;
}
.lmess-quick::-webkit-scrollbar { display: none; }
.lmess-chip {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #242424;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 650;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lmess-chip span { font-size: 0.78rem; line-height: 1; }
.lmess-chip.is-press {
    transform: translateY(-2px) scale(1.04);
    background: rgba(254, 105, 2, 0.22);
    border-color: rgba(254, 105, 2, 0.7);
    box-shadow: 0 6px 16px rgba(254, 105, 2, 0.25);
}

.lmess-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.lmess-box {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lmess-fmt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    color: #555;
    font-size: 0.78rem;
    background: #dcdcdc;
    flex-shrink: 0;
}
.lmess-fmt-sep {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.18);
}
.lmess-editor {
    min-height: 48px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
}
.lmess-placeholder,
.lmess-typed {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
}
.lmess-typed {
    color: rgba(255, 255, 255, 0.92);
}
.lmess-typed.is-caret::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.9em;
    margin-left: 2px;
    background: #FE6902;
    vertical-align: -0.1em;
    animation: lmess-caret 0.9s step-end infinite;
}
@keyframes lmess-caret {
    50% { opacity: 0; }
}
.lmess-input-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 4px 10px 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.lmess-send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #FE6902 0%, #ff8534 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(254, 105, 2, 0.28);
    transform: scale(0.98);
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.lmess-send.is-flash {
    transform: scale(1.06);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(254, 105, 2, 0.45);
}
.lmess-mic {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #222;
    color: #FE6902;
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: default;
    margin-bottom: 8px;
}

@media (max-width: 960px) {
    .lmess-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        height: 580px;
        min-height: 0;
        max-height: 580px;
    }
    .lmess-rail { display: none; }
}
@media (max-width: 720px) {
    .lmess-shell {
        grid-template-columns: 1fr;
        height: min(560px, 72dvh);
        min-height: 0;
        max-height: min(560px, 72dvh);
    }
    .lmess-list { display: none; }
    .lmess-chat-meta small { max-width: 28ch; }
}

.band--cta {
    background:
        linear-gradient(135deg, #212121 0%, #2a2a2a 45%, #FE6902 160%);
    color: #fff;
}
.band--cta .band-text { color: rgba(255, 255, 255, 0.78); margin: 0 auto 28px; }
.band--cta .hero-cta { justify-content: center; }
.band--cta .btn-ghost { color: #fff; }

/* Steps */
.steps {
    list-style: none;
    display: grid;
    gap: 0;
    margin-top: 40px;
    counter-reset: none;
}
.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid #ececec;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.step:last-child { border-bottom: 1px solid #ececec; }
.step.is-in {
    opacity: 1;
    transform: none;
}
.step:nth-child(2) { transition-delay: 0.06s; }
.step:nth-child(3) { transition-delay: 0.12s; }
.step:nth-child(4) { transition-delay: 0.18s; }

.step-num {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #FE6902;
    line-height: 1.2;
}
.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.step p {
    color: #666;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 48ch;
}

/* Capabilities — plain columns, not card chrome */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    margin-top: 40px;
}
.cap {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cap.is-in {
    opacity: 1;
    transform: none;
}
.cap:nth-child(2) { transition-delay: 0.06s; }
.cap:nth-child(3) { transition-delay: 0.12s; }
.cap:nth-child(4) { transition-delay: 0.18s; }
.cap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.cap h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: #FE6902;
    vertical-align: middle;
}
.cap p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
    padding-left: 20px;
}

/* Footer */
.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
    row-gap: 12px;
    padding: 22px clamp(20px, 5vw, 72px) 20px;
    background: #161616;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}
.footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 24px;
    min-width: 0;
}
.footer-brand {
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-transform: lowercase;
    font-size: 1.1rem;
}
.footer-bottom {
    grid-column: 2;
    justify-self: center;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
}
.footer-support {
    color: #fff;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1.2;
    padding-bottom: 2px;
}

/* Mark to the right of support text, bottom-aligned */
.ido-buddy {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-self: flex-end;
    filter: drop-shadow(0 4px 10px rgba(254, 105, 2, 0.35));
    pointer-events: none;
    user-select: none;
    animation: ido-buddy-idle 2.4s ease-in-out infinite;
}
.ido-buddy-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

@keyframes ido-buddy-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .ido-buddy {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
    .footer-bottom {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
        justify-content: flex-start;
        align-items: flex-end;
        padding-top: 2px;
        gap: 10px;
    }
}

/* ===== Auth page — брендбук IDO ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Светлая: шапка как на лендинге */
.auth-page .site-header {
    background: transparent;
    border-bottom: 1px solid rgba(33, 33, 33, 0.08);
    color: #212121;
}

.auth-page .logo-word { color: #212121; }

.auth-page .logo-ido-mark {
    filter: drop-shadow(0 4px 14px rgba(254, 105, 2, 0.45));
}

/* Тёмная: прежний тёмный хром */
.auth-page.dark .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.auth-page.dark .logo-word { color: #fff; }

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--ido-white);
    border-radius: 12px;
    border: 1px solid rgba(33, 33, 33, 0.06);
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.auth-page.dark .auth-card {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #f3f3f3;
}

.auth-card h1 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #212121;
}

.auth-page.dark .auth-card h1 { color: #f5f5f5; }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f3f3f3;
    padding: 4px;
    border-radius: 10px;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
}

.auth-page.dark .auth-tabs { background: #1f1f1f; }

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: var(--ido-radius-btn);
    font-weight: 600;
    font-size: var(--ido-font-small);
    cursor: pointer;
    color: var(--ido-gray);
    font-family: inherit;
    text-align: center;
    user-select: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.auth-tab.is-active {
    background: var(--ido-white);
    color: #212121;
    box-shadow: 0 1px 3px rgba(33, 33, 33, 0.1);
}

.auth-page.dark .auth-tab.is-active {
    background: #3a3a3a;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.auth-page .back-link { color: rgba(33, 33, 33, 0.55); }
.auth-page .back-link:hover { color: #FE6902; }
.auth-page.dark .back-link { color: rgba(255, 255, 255, 0.55); }
.auth-page.dark .back-link:hover { color: #FE6902; }

.auth-card .back-link {
    color: var(--ido-gray);
}
.auth-card .back-link:hover { color: #FE6902; }

.auth-card .forgot-password-link {
    display: inline-block;
    margin: 0 0 14px;
}

.auth-card .forgot-back-link {
    display: inline-block;
    margin: 0 0 14px;
}

.auth-card .forgot-hint {
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.45;
}

.auth-tab-input { display: none; }

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-size: var(--ido-font-caption);
    font-weight: 600;
    color: var(--ido-gray);
    margin-bottom: 5px;
}

.auth-page.dark .field label { color: rgba(255, 255, 255, 0.55); }

.field label .req { color: var(--ido-error); }

.field input,
.field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--ido-radius-btn);
    font-size: var(--ido-font-small);
    font-family: inherit;
    background: var(--ido-white);
    color: var(--ido-dark);
}

.auth-page.dark .field input,
.auth-page.dark .field select {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5f5;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input { padding-right: 42px; }

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.password-toggle:hover {
    color: var(--ido-blue);
    background: var(--ido-gray-light);
}

.auth-page.dark .password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--ido-blue);
    box-shadow: 0 0 0 3px rgba(254, 105, 2, 0.18);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hint {
    font-size: var(--ido-font-caption);
    color: var(--ido-gray);
    margin-top: 4px;
}

.auth-page.dark .hint,
.auth-page.dark .auth-card .forgot-hint {
    color: rgba(255, 255, 255, 0.55);
}

.field .field-hint {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.4;
}

.msg-error {
    color: var(--ido-error);
    font-size: var(--ido-font-small);
    margin: 0 0 12px;
}

.msg-success {
    color: var(--ido-success);
    font-size: var(--ido-font-small);
    margin: 0 0 12px;
}

.msg-error:empty,
.msg-success:empty {
    display: none;
}

.verify-email-banner {
    margin: 0 0 16px;
    padding: 14px 14px 12px;
    border-radius: 10px;
    background: rgba(254, 105, 2, 0.12);
    border: 1px solid rgba(254, 105, 2, 0.35);
}

.verify-email-banner[hidden] {
    display: none !important;
}

.verify-email-banner p {
    margin: 0 0 12px;
    color: #7c2d12;
    font-size: var(--ido-font-small);
    line-height: 1.45;
}

.auth-page.dark .verify-email-banner p {
    color: #ffd7bf;
}

.verify-email-banner .btn {
    margin: 0;
}

.verify-email-banner .btn:disabled {
    opacity: 1;
    color: #5c5346;
    cursor: not-allowed;
}

.auth-page.dark .verify-email-banner .btn:disabled {
    color: #c9b8a8;
}

.auth-form { display: none; }
.auth-form.is-active { display: block; }
.auth-form[hidden] { display: none !important; }

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-size: var(--ido-font-small);
    color: var(--ido-gray);
    text-decoration: none;
}
.back-link:hover { color: var(--ido-blue); }

/* Legacy hero classes (unused on new landing, keep harmless) */
.hero-empty {
    max-width: 640px;
    margin: 120px auto;
    text-align: center;
    padding: 0 24px;
}
.hero-tag {
    font-size: var(--ido-font-caption);
    color: var(--ido-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.hero-empty h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: var(--ido-dark);
    text-transform: lowercase;
}
.hero-sub {
    color: var(--ido-gray);
    font-size: var(--ido-font-body);
    line-height: 1.6;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}
.hero-pill {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: var(--ido-font-small);
    font-weight: 500;
    background: var(--ido-blue-soft);
    color: var(--ido-blue);
}

/* ===== Tablet: stack hero before demo min-width overflows ===== */
@media (max-width: 1100px) {
    .hero {
        align-items: flex-start;
        min-height: auto;
        padding: 104px clamp(20px, 4vw, 40px) 48px;
    }
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-inner {
        max-width: 640px;
    }
    .hero-headline { max-width: 28ch; }
    .demo-screen,
    .demo-screen--app { height: 540px; }
    .demo-device,
    .demo-device--app,
    .demo-device.is-wide { width: 100%; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: 0;
        top: 0;
        padding: calc(72px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #121212;
        border-bottom: none;
        transform: translateY(-104%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.22s;
        z-index: 1;
        height: 100dvh;
        max-height: 100dvh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header--landing.is-nav-open .site-nav {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header--landing.is-nav-open {
        background: #121212;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .site-nav .nav-link {
        display: block;
        padding: 14px 4px;
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav .btn {
        width: 100%;
        margin-top: 4px;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    .site-nav .btn-outline { margin-top: 12px; }

    .cap-grid { grid-template-columns: 1fr; gap: 28px; }
    .compare-grid { grid-template-columns: 1fr; }
    .step { grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; }

    .hero {
        padding: calc(88px + env(safe-area-inset-top, 0px)) 16px 36px;
    }
    .hero-layout { gap: 28px; }
    .hero-brand {
        font-size: clamp(2.8rem, 18vw, 4.2rem);
        margin-bottom: 14px;
    }
    .hero-headline {
        font-size: clamp(1.15rem, 5.2vw, 1.45rem);
        max-width: none;
        margin-bottom: 12px;
    }
    .hero-lead {
        font-size: 0.98rem;
        max-width: none;
        margin-bottom: 22px;
    }
    .hero-cta { gap: 10px; }
    .hero .btn-lg {
        padding: 13px 20px;
        font-size: 0.92rem;
        min-height: 48px;
    }

    /* Brand + CTA first; product demo follows */
    .hero-demo {
        order: 0;
        width: 100%;
        margin: 0 -4px;
        justify-content: flex-start;
    }
    .demo-device,
    .demo-device--app,
    .demo-device.is-wide {
        width: 100%;
        filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.4));
    }
    .demo-bezel {
        border-radius: 16px;
        padding: 6px;
    }
    .demo-screen,
    .demo-screen--app {
        height: min(420px, 58vh);
        border-radius: 12px;
    }
    .demo-app,
    .demo-app--live { grid-template-columns: minmax(0, 1fr); }
    .demo-nav { display: none; }
    .demo-topbar {
        gap: 6px;
        padding: 6px 8px;
    }
    .demo-topbar-search { display: none; }
    .demo-context-block:first-child { display: none; }
    .demo-context-row strong { max-width: 140px; }
    .demo-board-bar { flex-wrap: wrap; gap: 6px; }
    .demo-filters { display: none; }
    .demo-col { width: 128px; min-width: 128px; }
    .demo-card-tags { display: none; }
    .demo-board-caption {
        font-size: 0.5rem;
        padding: 5px 10px;
        white-space: normal;
        text-align: center;
        max-width: calc(100% - 16px);
    }
    .demo-kanban { padding-bottom: 48px; }

    .band {
        padding: 48px 16px;
    }
    .band-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }
    .band-text {
        font-size: 0.98rem;
        max-width: none;
    }
    .band-inner--messenger > .band-text { margin-bottom: 20px; }

    .lmess-shell {
        border-radius: 14px;
        height: min(560px, 72dvh);
        min-height: 0;
        max-height: min(560px, 72dvh);
    }
    .lmess-members { display: none; }
    .lmess-fmt { display: none; }
    .lmess-editor { min-height: 40px; padding: 8px 10px; }
    .lmess-msgs { padding: 12px 12px 10px; gap: 6px; }
    .lmess-row { max-width: 94%; }
    .lmess-bubble { font-size: 0.8rem; }
    .lmess-msg--photo { width: min(280px, 92%); }
    .lmess-compose { padding: 8px 10px 12px; }
    .lmess-mic { margin-bottom: 0; width: 40px; height: 40px; }
    .lmess-send { width: 40px; height: 40px; }

    .steps { margin-top: 28px; }
    .cap-grid { margin-top: 28px; }

    .site-footer {
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .site-header--landing { padding: 12px 14px; }
    .logo-ido-mark { width: 32px; height: 32px; }
    .logo { font-size: 1.1rem; gap: 8px; }
    .nav-toggle { width: 40px; height: 40px; }
    .nav-toggle-bar:nth-child(1) { top: 13px; }
    .nav-toggle-bar:nth-child(2) { top: 19px; }
    .nav-toggle-bar:nth-child(3) { top: 25px; }
    .site-header--landing.is-nav-open .nav-toggle-bar:nth-child(1),
    .site-header--landing.is-nav-open .nav-toggle-bar:nth-child(3) { top: 19px; }

    .hero {
        padding: calc(80px + env(safe-area-inset-top, 0px)) 14px 28px;
    }
    .demo-screen,
    .demo-screen--app {
        height: min(360px, 52vh);
    }
    .demo-context-people .demo-ctx-av:nth-child(n + 3),
    .demo-context-people .demo-ctx-add { display: none; }
    .demo-board-tabs { padding: 4px 8px 0; }
    .demo-col { width: 118px; min-width: 118px; }
    .demo-add-col { display: none; }
    .demo-col--wait,
    .demo-col--ship { display: none; }

    .band--cta .hero-cta { align-items: stretch; }
    .band--cta .btn-lg { width: 100%; min-height: 48px; }

    .step-num { font-size: 1.15rem; }
    .step h3 { font-size: 1.05rem; }
    .step p { font-size: 0.92rem; }

    .lmess-quick { margin-bottom: 6px; }
    .lmess-chip { padding: 4px 8px; font-size: 0.64rem; }
    .lmess-input-actions i:not(.fa-paper-plane) { display: none; }
    .lmess-input-actions { gap: 0; justify-content: flex-end; }
}
