/* ALEA interactive demo (/demo) */
.demo-body { background: var(--landing-paper); }
.demo-hero { background: var(--landing-ink); color: var(--landing-white); padding: 150px clamp(20px, 5vw, 78px) 64px; }
.demo-hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.demo-eyebrow { display: inline-block; padding: 7px 14px; border: 1px solid var(--landing-line-dark); border-radius: 999px; color: var(--landing-accent-light); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.demo-hero h1 { margin: 22px 0 14px; font-family: var(--landing-serif); font-weight: 400; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.03em; }
.demo-hero h1 em { color: var(--landing-accent-light); }
.demo-hero p { max-width: 620px; margin: 0 auto; color: rgba(255, 253, 249, .78); font-size: 17px; }
.demo-niches { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.demo-niches > span { width: 100%; color: rgba(255, 253, 249, .6); font-size: 13px; }
.demo-niches button { min-height: 44px; padding: 0 18px; border: 1px solid var(--landing-line-dark); border-radius: 999px; background: transparent; color: var(--landing-white); font-size: 14px; font-weight: 500; cursor: pointer; }
.demo-niches button:hover { border-color: var(--landing-accent-light); }
.demo-niches button.is-active { border-color: var(--landing-accent-light); background: var(--landing-accent-light); color: var(--landing-ink); }

.demo-stage { max-width: 1120px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 70px; scroll-margin-top: 80px; }
.demo-tabs { position: relative; display: flex; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs li { flex: 1 0 auto; }
.demo-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--landing-line); border-radius: 12px; background: var(--landing-white); color: var(--landing-muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.demo-tabs button span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--landing-paper-deep); font-size: 12px; }
.demo-tabs button.is-done { color: var(--landing-ink); }
.demo-tabs button.is-done span { background: var(--landing-accent-light); }
.demo-tabs button.is-active { border-color: var(--landing-ink); background: var(--landing-ink); color: var(--landing-white); }
.demo-tabs button.is-active span { background: var(--landing-accent-light); color: var(--landing-ink); }

.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "copy screen" "controls screen"; column-gap: clamp(28px, 5vw, 70px); row-gap: 0; align-items: center; }
.demo-copy { grid-area: copy; align-self: end; }
.demo-screen { grid-area: screen; }
.demo-controls { grid-area: controls; align-self: start; }
.demo-step { color: var(--landing-accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.demo-copy h2 { margin: 10px 0 14px; font-family: var(--landing-serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.02em; }
.demo-copy p { margin: 0; color: var(--landing-muted); font-size: 16px; }
.demo-copy .demo-try { margin-top: 16px; color: var(--landing-ink); font-weight: 600; }
.demo-nav { display: flex; gap: 10px; margin-top: 28px; }
.demo-nav .demo-next { flex: 0 1 auto; }
.demo-nav button { min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.demo-prev { border: 1px solid var(--landing-line); background: transparent; color: var(--landing-ink); }
.demo-prev:disabled { opacity: .35; cursor: default; }
.demo-next { border: 0; background: var(--landing-ink); color: var(--landing-white); }
.demo-sample { display: block; margin-top: 18px; color: var(--landing-muted); font-size: 12px; }

.demo-screen { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.demo-app { width: 100%; max-width: 480px; padding: 22px; border: 1px solid var(--landing-line); border-radius: 22px; background: var(--landing-white); box-shadow: 0 30px 80px rgba(25, 24, 22, .12); }
.demo-app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--landing-line); }
.demo-app-head small { display: block; color: var(--landing-muted); font-size: 12px; }
.demo-app-head strong { font-size: 17px; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; color: #2f7a4b; font-size: 12px; font-weight: 600; }
.demo-live i { width: 8px; height: 8px; border-radius: 50%; background: #3fa36b; box-shadow: 0 0 0 4px rgba(63, 163, 107, .18); }
.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.demo-kpis div { padding: 10px; border-radius: 12px; background: var(--landing-paper); }
.demo-kpis strong { display: block; font-size: 20px; line-height: 1.1; }
.demo-kpis span { color: var(--landing-muted); font-size: 12px; }
.demo-kpis .is-money strong { color: var(--landing-accent); }
.demo-agenda { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.demo-agenda li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--landing-line); border-radius: 12px; }
.demo-agenda time { font-weight: 600; font-size: 14px; }
.demo-agenda strong { display: block; font-size: 14px; line-height: 1.25; }
.demo-agenda span { color: var(--landing-muted); font-size: 12px; }
.demo-agenda em { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.demo-agenda .is-ok { background: #e7f4ec; color: #22643d; }
.demo-agenda .is-cancel { background: #fbe9e6; color: #9b3324; }
.demo-agenda li.is-cancelled { border-style: dashed; background: #fffaf8; }
.demo-agenda li.is-cancelled strong { text-decoration: line-through; color: var(--landing-muted); }
.demo-agenda li.is-new { border-color: #3fa36b; animation: demoPop .5s ease; }
.demo-callout { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--landing-ink); color: var(--landing-white); }
.demo-callout strong { display: block; font-size: 15px; }
.demo-callout p { margin: 10px 0 0; color: var(--landing-accent-light); font-size: 14px; }
.demo-action { margin-top: 12px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--landing-accent-light); color: var(--landing-ink); font-size: 15px; font-weight: 700; cursor: pointer; animation: demoGlow 1.8s ease-in-out infinite; }
.demo-action.is-wide { width: 100%; }
.demo-pulse { animation: demoBlink 1s ease-in-out infinite; }
.demo-toast { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--landing-line); background: var(--landing-white); box-shadow: 0 12px 30px rgba(25, 24, 22, .1); }
.demo-toast i { flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--landing-accent-light); color: var(--landing-ink); font-style: normal; font-weight: 700; }
.demo-toast.is-good i { background: #3fa36b; color: #fff; }
.demo-toast small { display: block; color: var(--landing-muted); font-size: 12px; }
.demo-toast strong { font-size: 14px; }
.demo-toast > div { flex: 1; min-width: 0; }
.demo-toast b { color: #22643d; font-size: 15px; white-space: nowrap; }
.demo-toast.is-new, .demo-toast.is-good { animation: demoPop .45s ease; }
.demo-toast.is-float { position: absolute; top: 18px; right: 0; max-width: 260px; animation: demoSlide .5s ease; }

.demo-phone-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.demo-phone { width: 300px; max-width: 100%; min-height: 500px; border: 10px solid var(--landing-ink); border-radius: 38px; background: var(--landing-white); overflow: hidden; box-shadow: 0 30px 80px rgba(25, 24, 22, .18); }
.demo-phone-top { padding: 16px 18px 12px; background: var(--landing-paper); border-bottom: 1px solid var(--landing-line); text-align: center; font-size: 13px; font-weight: 600; }
.demo-phone-body { padding: 18px; }
.demo-phone-body h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.25; }
.demo-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-bottom: 8px; padding: 13px 14px; border: 1px solid var(--landing-line); border-radius: 12px; background: var(--landing-white); text-align: left; cursor: pointer; }
.demo-choice:hover { border-color: var(--landing-accent); }
.demo-choice strong { font-size: 14px; }
.demo-choice span { color: var(--landing-muted); font-size: 12px; }
.demo-chosen { margin: -4px 0 12px; color: var(--landing-muted); font-size: 13px; }
.demo-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-times button { min-height: 48px; border: 1px solid var(--landing-line); border-radius: 12px; background: var(--landing-white); font-size: 15px; font-weight: 600; cursor: pointer; }
.demo-times button:hover { border-color: var(--landing-accent); background: var(--landing-paper); }
.demo-field { margin-bottom: 8px; padding: 9px 12px; border: 1px solid var(--landing-line); border-radius: 10px; }
.demo-field small { display: block; color: var(--landing-muted); font-size: 11px; }
.demo-field span { font-size: 14px; }
.demo-done { padding-top: 40px; text-align: center; animation: demoPop .45s ease; }
.demo-done i { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #3fa36b; color: #fff; font-style: normal; font-size: 26px; }
.demo-done p { margin: 4px 0 10px; font-weight: 600; }
.demo-done small { display: block; color: var(--landing-muted); font-size: 13px; }
.demo-link-btn { margin-top: 18px; border: 0; background: none; color: var(--landing-accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.demo-mail { margin-bottom: 10px; padding: 12px; border: 1px solid var(--landing-line); border-radius: 12px; }
.demo-mail-head { display: flex; justify-content: space-between; font-size: 12px; }
.demo-mail-head small { color: var(--landing-muted); }
.demo-mail strong { display: block; margin-top: 4px; font-size: 14px; }
.demo-mail p { margin: 6px 0 0; color: var(--landing-muted); font-size: 13px; line-height: 1.45; }
.demo-mail.is-new { border-color: var(--landing-accent); background: #fffaf3; animation: demoPop .45s ease; }
.demo-mail.is-empty { min-height: 80px; border-style: dashed; color: var(--landing-muted); }
.demo-mail.is-old { opacity: .45; }
.demo-mail-btn { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--landing-ink); color: var(--landing-white); font-size: 12px; font-weight: 600; }

.demo-counter { margin: 16px 0 6px; text-align: center; }
.demo-counter strong { font-family: var(--landing-serif); font-size: 64px; font-weight: 400; line-height: 1; }
.demo-voucher { margin: 10px auto 4px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #20382c, #2f5240); color: #fff; text-align: center; }
.demo-voucher small { display: block; opacity: .75; font-size: 12px; }
.demo-voucher strong { display: block; margin-top: 4px; font-family: var(--landing-serif); font-size: 26px; font-weight: 400; }
.demo-voucher span { color: var(--landing-accent-light); font-weight: 700; }
.demo-feed { min-height: 10px; }

.demo-hero-num { margin: 18px 0; padding: 18px; border-radius: 16px; background: var(--landing-ink); color: var(--landing-white); text-align: center; }
.demo-hero-num strong { display: block; font-family: var(--landing-serif); font-size: 54px; font-weight: 400; line-height: 1; color: var(--landing-accent-light); }
.demo-hero-num span { font-size: 14px; }
.demo-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-tiles div { padding: 12px; border-radius: 12px; background: var(--landing-paper); }
.demo-tiles strong { display: block; font-size: 22px; line-height: 1.1; }
.demo-tiles span { color: var(--landing-muted); font-size: 12px; }

.demo-final { padding: 70px clamp(20px, 5vw, 78px) 90px; background: var(--landing-ink); color: var(--landing-white); text-align: center; }
.demo-final h2 { max-width: 760px; margin: 0 auto 14px; font-family: var(--landing-serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; }
.demo-final p { max-width: 640px; margin: 0 auto; color: rgba(255, 253, 249, .75); }
.demo-final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 30px; }
.demo-link { color: var(--landing-white); font-weight: 600; text-decoration: none; }
.demo-link:hover { color: var(--landing-accent-light); }
.demo-final .demo-reassure { margin-top: 22px; font-size: 13px; color: rgba(255, 253, 249, .55); }

@keyframes demoPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes demoSlide { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes demoGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 181, 148, .55); } 50% { box-shadow: 0 0 0 8px rgba(213, 181, 148, 0); } }
@keyframes demoBlink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .demo-body * { animation: none !important; } }

@media (max-width: 860px) {
    .demo-hero { padding-top: 120px; padding-bottom: 44px; }
    .demo-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "screen" "controls"; row-gap: 22px; }
    .demo-screen { min-height: 0; }
    .demo-nav { margin-top: 0; }
    .demo-nav button { flex: 1; }
    .demo-tabs { margin-bottom: 24px; }
    .demo-tabs li { flex: 0 0 auto; }
    .demo-toast.is-float { position: static; max-width: none; margin: 14px auto 0; }
    .demo-phone-wrap { flex-direction: column; align-items: center; }
}
@media (max-width: 420px) {
    .demo-app { padding: 16px; border-radius: 18px; }
    .demo-agenda li { grid-template-columns: 42px minmax(0, 1fr); }
    .demo-agenda em { grid-column: 2; justify-self: start; }
    .demo-kpis strong { font-size: 17px; }
}
