/* =============================================================================
   Landing page only — hero 3D dashboard, bento visuals, tabs, store cards.
   Builds on app.css tokens.
   ========================================================================== */

/* ---------- Hero layout ---------- */
.hero { min-height: min(100svh, 920px); display: flex; align-items: center; }
.hero > .container { width: 100%; }
.hero-inner { position: relative; z-index: 1; }
.hero-visual { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.hero-canvas { opacity: .55; }
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; justify-items: stretch; }
    .hero-visual { max-width: none; margin-inline: 0; }
    .hero-canvas { opacity: .9; }
}
@media (max-width: 639.98px) {
    .hero { min-height: auto; }
    .hero-canvas { opacity: .35; }
}

/* ---------- Dashboard mock (CSS-only 3D) ---------- */
.dash-mock {
    border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    transform-style: preserve-3d;
}
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dash-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.dash-bar span:nth-child(1) { background: #f87171; }
.dash-bar span:nth-child(2) { background: #fbbf24; }
.dash-bar span:nth-child(3) { background: #34d399; }
.dash-bar em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--text-3); font-family: ui-monospace, Menlo, monospace; }
.dash-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.dash-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border-right: 1px solid var(--border); }
.dash-side span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); font-size: .9rem; }
.dash-side span.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(124, 58, 237, .35); }
.dash-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.dash-hello { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpis > div { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.dash-kpis small { display: block; font-size: .68rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpis strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.dash-kpis em { font-style: normal; font-size: .72rem; font-weight: 700; }
.dash-kpis em.up { color: var(--success); }
.dash-kpis em.down { color: var(--danger); }
.dash-chart { height: 150px; display: flex; align-items: flex-end; gap: 10px; padding: 14px 6px 0; border-radius: 14px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 6%, transparent)); border: 1px solid var(--border); }
.dash-chart span {
    flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--grad); opacity: .85;
    transform-origin: bottom; animation: grow 1.2s var(--ease) both;
}
.dash-chart span:nth-child(2) { animation-delay: .08s; } .dash-chart span:nth-child(3) { animation-delay: .16s; }
.dash-chart span:nth-child(4) { animation-delay: .24s; } .dash-chart span:nth-child(5) { animation-delay: .32s; }
.dash-chart span:nth-child(6) { animation-delay: .4s; } .dash-chart span:nth-child(7) { animation-delay: .48s; }
@keyframes grow { from { transform: scaleY(.1); opacity: .2; } to { transform: scaleY(1); opacity: .85; } }

.float-card {
    position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-weight: 600; font-size: .85rem; color: var(--text);
    white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.float-card i { color: var(--success); font-size: 1.05rem; }
.float-card-a { top: -18px; right: -10px; animation-delay: -1s; }
.float-card-b { bottom: 46px; left: -18px; animation-delay: -3s; }
.float-card-b i { color: var(--brand); }
.mock-caption { text-align: center; margin: 14px 0 0; font-size: .78rem; color: var(--text-3); }
@media (max-width: 639.98px) {
    .float-card-b { left: 8px; bottom: 36px; }
    .float-card-a { right: 8px; top: -14px; }
    .dash-body { grid-template-columns: 44px 1fr; min-height: 300px; }
    .dash-chart { height: 110px; }
}

/* ---------- Bento visuals ---------- */
.landing-feature { display: flex; flex-direction: column; }
.landing-feature .mini-bars { margin-top: auto; padding-top: 22px; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mini-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #7c3aed, #4f46e5); opacity: .8; }
.mini-bars span:nth-child(odd) { opacity: .55; }
.donut {
    --p: 62%;
    width: 130px; height: 130px; border-radius: 50%; margin: 18px auto 0; display: grid; place-items: center;
    background: conic-gradient(var(--brand) 0 var(--p), #ec4899 var(--p) 86%, var(--border-2) 86% 100%);
    position: relative;
}
.donut::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--surface); }
.donut span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.chat { display: grid; gap: 10px; margin-top: 16px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); color: var(--text); font-size: .9rem; border: 1px solid var(--border); }
.bubble.me { justify-self: end; background: var(--grad); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; }
.flow { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.flow > span {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--border); font-weight: 600; font-size: .9rem; color: var(--text);
}
.flow > span i { color: var(--brand); }
.flow-arrow { align-self: center; color: var(--text-3); font-size: .8rem; }
.flow-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.flow-row > span { flex: 1 1 auto; }
.flow-row .flow-arrow { transform: rotate(-90deg); }
@media (min-width: 640px) { .flow-row .flow-arrow { transform: none; } }
.forecast { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.forecast svg { width: 100%; height: 150px; display: block; }
.pill.success + .pill { margin-left: 0; }

.integrations { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.integrations-text { display: flex; align-items: center; gap: 18px; min-width: 0; }
.integrations-text p { margin: 4px 0 0; }
.integrations-text .icon-badge { margin: 0; flex: none; }

.plain-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.plain-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.plain-list small { display: block; color: var(--text-3); font-size: .8rem; }

/* ---------- Tabs ---------- */
.tabs-layout .tab { cursor: pointer; font: inherit; color: inherit; }
.tab .tab-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tab .tab-title i { color: var(--text-3); }
.tab[aria-selected="true"] .tab-title i { color: var(--brand); }
.tab .tab-desc { display: block; font-size: .92rem; color: var(--text-2); }
.tab-panel h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- Highlights / banners ---------- */
.banner-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: inherit; }
.banner-card:hover { color: inherit; text-decoration: none; }
.banner-card h3 { padding: 4px 6px 0; font-size: 1.05rem; margin: 0; }
.banner-card p { padding: 0 6px 6px; margin: 0; color: var(--text-2); font-size: .92rem; }
.banner-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--surface-2); }

/* ---------- Store badges ---------- */
.store-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--text); flex-wrap: wrap; }
.store-card:hover { color: var(--text); text-decoration: none; }
.store-card.is-disabled { opacity: .7; cursor: default; }
.store-card.is-disabled:hover { transform: none; }
.store-icon { font-size: 2rem; color: var(--text); flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.store-text small { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.store-text strong { font-family: var(--font-display); font-size: 1.1rem; }
.store-card .pill { margin-left: auto; }

/* ---------- Promise checklist ---------- */
.split .check-list { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); align-self: center; }
.split .check-list li { font-size: 1.02rem; color: var(--text); }
.split .check-list li i { font-size: 1.1rem; }

/* ---------- Mobile polish ---------- */
@media (max-width: 639.98px) {
    .hero .eyebrow { font-size: .75rem; }
    .hero-actions .btn { width: 100%; }
    .dash-kpis strong { font-size: .92rem; }
    .integrations .btn { width: 100%; }
    .plain-list li { flex-direction: column; align-items: flex-start; }
    .cta-band .btn-group .btn { width: 100%; }
}

/* Trust line: inline icon + text, centred on phones, left on desktop */
.hero-trust { display: block; margin: 0; }
.hero-trust i { margin-right: 6px; }
