/* Free Demo Site page — scoped to .demo-page; builds on site.css tokens. */

.demo-page { --demo-sky: #60A5FA; --demo-violet: #818CF8; --demo-glow: rgba(37,99,235,.35); overflow-x: clip; }
.demo-page .section-title { margin-bottom: 14px; }
.demo-accent { color: var(--blue); }

/* ---------- Hero ---------- */
.demo-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 110px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink-3) 100%);
    color: #fff;
}
.demo-hero__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%);
    animation: demo-grid-drift 18s linear infinite;
}
.demo-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.demo-hero__glow--blue { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(37,99,235,.32) 0%, transparent 70%); animation: demo-float 9s ease-in-out infinite; }
.demo-hero__glow--amber { width: 340px; height: 340px; bottom: -120px; left: 4%; background: radial-gradient(circle, rgba(217,119,6,.16) 0%, transparent 70%); animation: demo-float 11s ease-in-out infinite reverse; }

.demo-hero__layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.demo-badge {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(37,99,235,.15); border: 1px solid rgba(96,165,250,.35);
    color: #BFDBFE; font: 600 .76rem/1.4 'JetBrains Mono', monospace; letter-spacing: .08em;
}
.demo-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse-dot 2s infinite; }
.demo-hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 22px; color: #fff; }
.demo-gradient-text {
    background: linear-gradient(90deg, var(--demo-sky), var(--demo-violet), #FBBF24, var(--demo-sky));
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: demo-shimmer 8s ease-in-out infinite;
}
.demo-hero__lead { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,.74); max-width: 560px; margin: 0 0 34px; font-weight: 400; }
.demo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-hero__actions .btn-primary-custom { animation: demo-cta-glow 3s ease-in-out infinite; }

.demo-stats { display: flex; gap: 14px; margin: 42px 0 0; flex-wrap: wrap; }
.demo-stats div { min-width: 104px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.demo-stats dt { font: 500 .7rem/1 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .1em; color: #93C5FD; margin-bottom: 8px; }
.demo-stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1; color: #fff; }
.demo-stats small { font-size: .95rem; font-weight: 700; margin-left: 2px; color: rgba(255,255,255,.7); }

/* Browser mockup */
.demo-hero__visual { position: relative; padding: 24px 12px; }
.demo-browser {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), 0 0 70px var(--demo-glow);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    animation: demo-hover 7s ease-in-out infinite;
}
.demo-browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #F1F5F9; border-bottom: 1px solid var(--border); }
.demo-browser__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.demo-browser__bar > span:nth-child(2) { background: #FBBF24; }
.demo-browser__bar > span:nth-child(3) { background: #34D399; }
.demo-browser__url { flex: 1; margin-left: 10px; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--muted); font: 500 .74rem/1 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; }
.demo-browser__url .bi { color: #16A34A; margin-right: 4px; }
.demo-browser__path::after { content: "/"; animation: demo-path 9s steps(1) infinite; }
.demo-browser__tabs { display: flex; gap: 6px; padding: 10px 14px 0; background: #fff; }
.demo-browser__tabs b { font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 8px 8px 0 0; color: var(--muted-2); position: relative; }
.demo-browser__tabs b::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); opacity: 0; }
.demo-browser__tabs b:nth-child(1) { animation: demo-tab 9s infinite; }
.demo-browser__tabs b:nth-child(2) { animation: demo-tab 9s infinite 3s; }
.demo-browser__tabs b:nth-child(3) { animation: demo-tab 9s infinite 6s; }
.demo-browser__tabs b:nth-child(1)::after { animation: demo-tab-line 9s infinite; }
.demo-browser__tabs b:nth-child(2)::after { animation: demo-tab-line 9s infinite 3s; }
.demo-browser__tabs b:nth-child(3)::after { animation: demo-tab-line 9s infinite 6s; }

.demo-browser__screens { position: relative; height: 300px; border-top: 1px solid var(--border); }
.demo-screen { position: absolute; inset: 0; padding: 16px; opacity: 0; transform: translateY(10px); animation: demo-screen 9s infinite; }
.demo-screen--services { animation-delay: 3s; }
.demo-screen--contact { animation-delay: 6s; }

.demo-sk { border-radius: 8px; background: linear-gradient(90deg, #EEF2F7 0%, #F8FAFC 50%, #EEF2F7 100%); background-size: 200% 100%; animation: demo-skeleton 2.4s linear infinite; }
.demo-sk--nav { height: 14px; width: 100%; margin-bottom: 14px; background: linear-gradient(90deg, #DBEAFE, #EFF6FF); }
.demo-sk-hero { padding: 22px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--ink-2), #1E3A8A); margin-bottom: 14px; }
.demo-sk-hero .demo-sk { background: rgba(255,255,255,.22); animation: none; }
.demo-sk--h1 { height: 14px; width: 78%; margin-bottom: 9px; }
.demo-sk--h1.short { width: 52%; }
.demo-sk--btn { height: 22px; width: 96px; margin-top: 14px; background: var(--blue) !important; box-shadow: 0 6px 16px rgba(37,99,235,.45); }
.demo-sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-sk--card { height: 74px; border: 1px solid var(--border); }
.demo-sk--title { height: 18px; width: 55%; margin-bottom: 14px; background: linear-gradient(90deg, #C7D2FE, #E0E7FF); }
.demo-sk-list { display: grid; gap: 9px; margin-bottom: 14px; }
.demo-sk--line { height: 12px; }
.demo-sk--line:nth-child(2) { width: 88%; }
.demo-sk--line:nth-child(3) { width: 94%; }
.demo-sk--line:nth-child(4) { width: 70%; }
.demo-sk--photo { height: 110px; border-radius: 12px; background: linear-gradient(135deg, #BFDBFE, #FDE68A); }
.demo-sk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-sk--map { height: 170px; border-radius: 12px; background: radial-gradient(circle at 55% 45%, #F59E0B 0 6px, transparent 7px), repeating-linear-gradient(45deg, #E0F2FE 0 10px, #F0F9FF 10px 20px); }
.demo-sk-form { display: grid; gap: 9px; align-content: start; padding-top: 32px; }
.demo-sk--input { height: 24px; border: 1px solid var(--border); background: #fff; animation: none; }
.demo-sk--input.tall { height: 58px; }

/* Floating chips */
.demo-chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px; font-size: .8rem; font-weight: 700;
    background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 16px 36px -10px rgba(0,0,0,.45);
}
.demo-chip .bi { color: var(--blue); font-size: 1rem; }
.demo-chip--mobile { top: 4px; left: -14px; animation: demo-bob 5s ease-in-out infinite; }
.demo-chip--speed { top: 46%; right: -18px; animation: demo-bob 6s ease-in-out infinite .8s; }
.demo-chip--speed .bi { color: var(--amber); }
.demo-chip--clock { bottom: 0; left: 8%; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--ink); color: #fff; border: 1px solid rgba(96,165,250,.4); box-shadow: 0 16px 40px -10px rgba(37,99,235,.55); animation: demo-bob 5.5s ease-in-out infinite 1.6s; }
.demo-chip__label { font: 500 .66rem/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #93C5FD; }
.demo-chip__time { font: 600 1.25rem/1.2 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.demo-section { padding: 96px 0; position: relative; }
.demo-section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-section--dark { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%); color: rgba(255,255,255,.75); overflow: hidden; }
.demo-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.demo-head .section-desc { margin-left: auto; margin-right: auto; }
.demo-head--light .section-title { color: #fff; }
.demo-head--light .section-label { color: var(--demo-sky); }

/* Paths */
.demo-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1020px; margin: 0 auto; }
.demo-path {
    position: relative; padding: 36px 34px 32px; border-radius: 20px; background: #fff;
    border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.demo-path:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(37,99,235,.4); border-color: #BFDBFE; }
.demo-path--featured { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--blue), var(--demo-violet), var(--amber)) border-box; border: 2px solid transparent; }
.demo-path__tag { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--amber-light); color: #92400E; font: 700 .68rem/1.3 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.demo-path__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 20px; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--demo-violet)); box-shadow: 0 10px 24px -8px rgba(37,99,235,.6); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.demo-path:hover .demo-path__icon { transform: rotate(-8deg) scale(1.08); }
.demo-path h3 { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.4px; margin-bottom: 10px; }
.demo-path p { color: var(--muted); margin-bottom: 18px; }
.demo-path ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.demo-path li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray-700); font-weight: 500; font-size: .95rem; }
.demo-path li .bi { color: var(--blue); font-size: 1.05rem; line-height: 1.5; }
.demo-path__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; }
.demo-path__cta .bi { transition: transform .2s ease; }
.demo-path__cta:hover .bi { transform: translateX(4px); }

/* Page cards */
.demo-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.demo-pagecard { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease; }
.demo-pagecard::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--demo-violet), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.demo-pagecard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(15,23,42,.35); }
.demo-pagecard:hover::before { transform: scaleX(1); }
.demo-pagecard__num { position: absolute; top: 18px; right: 22px; font: 700 2.4rem/1 'JetBrains Mono', monospace; color: #EEF2FF; }
.demo-pagecard__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); font-size: 1.3rem; margin-bottom: 18px; }
.demo-pagecard h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.demo-pagecard p { color: var(--muted); margin: 0; font-size: .95rem; }
.demo-extras { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.demo-extras li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.demo-extras .bi { color: var(--blue); }

/* Before / after */
.demo-compare-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.demo-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.demo-checks li { display: flex; gap: 10px; font-weight: 600; color: var(--ink-2); }
.demo-checks .bi { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: .85rem; flex: none; }
.demo-compare { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(15,23,42,.45); user-select: none; }
.demo-compare__pane { position: absolute; inset: 0; }
.demo-compare__after { clip-path: inset(0 0 0 var(--pos)); }
.demo-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.1), 0 0 18px rgba(37,99,235,.6); pointer-events: none; }
.demo-compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 2px; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; box-shadow: 0 8px 22px rgba(37,99,235,.55); }
.demo-compare__label { position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 6px; font: 700 .68rem/1.3 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.demo-compare__label--before { left: 14px; background: rgba(0,0,0,.6); color: #fff; }
.demo-compare__label--after { right: 14px; background: var(--blue); color: #fff; }
.demo-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.demo-compare__range:focus-visible ~ .demo-compare__handle span,
.demo-compare:has(.demo-compare__range:focus-visible) .demo-compare__handle span { outline: 3px solid #FBBF24; outline-offset: 3px; }

.old-site { height: 100%; background: #F5F0E1; font-family: 'Times New Roman', serif; color: #333; }
.old-site__banner { padding: 18px 12px 12px; text-align: center; background: linear-gradient(#0000AA, #000066); color: #FFFF00; font-size: clamp(.9rem, 2vw, 1.25rem); font-weight: 700; letter-spacing: 1px; }
.old-site__nav { padding: 6px 10px; background: #C0C0C0; border-bottom: 2px outset #eee; font-size: .78rem; color: #00E; text-decoration: underline; }
.old-site__body { padding: 16px; font-size: .85rem; line-height: 1.4; }
.old-site__img { float: left; width: 34%; aspect-ratio: 4 / 3; margin: 0 12px 6px 0; border: 3px ridge #999; background: repeating-linear-gradient(45deg, #ddd 0 6px, #ccc 6px 12px); }
.old-site__counter { clear: both; display: inline-block; margin-top: 10px; padding: 2px 6px; background: #000; color: #0F0; font-family: monospace; font-size: .75rem; }

.new-site { height: 100%; background: #fff; display: flex; flex-direction: column; }
.new-site__nav { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--ink); }
.new-site__nav b { margin-right: auto; font-weight: 800; letter-spacing: -.3px; }
.new-site__nav span { width: 42px; height: 8px; border-radius: 4px; background: #E2E8F0; }
.new-site__nav i { font-style: normal; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--blue); color: #fff; }
.new-site__hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 0 22px 0 max(22px, 8%); background: radial-gradient(ellipse at 85% 20%, rgba(96,165,250,.35), transparent 55%), linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: #fff; }
.new-site__hero small { font: 600 .62rem/1 'JetBrains Mono', monospace; letter-spacing: .12em; color: #93C5FD; }
.new-site__hero strong { font-size: clamp(1rem, 2.6vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; max-width: 16ch; }
.new-site__hero em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 8px 14px; border-radius: 8px; background: var(--amber); color: #fff; }
.new-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 20px 18px; }
.new-site__cards span { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(#fff, var(--surface)); }

/* Timeline */
.demo-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.demo-timeline::before, .demo-timeline::after { content: ""; position: absolute; top: 54px; left: 12%; right: 12%; height: 2px; border-radius: 2px; }
.demo-timeline::before { background: rgba(255,255,255,.1); }
.demo-timeline::after { background: linear-gradient(90deg, var(--blue), var(--demo-violet), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.65,0,.35,1) .2s; box-shadow: 0 0 14px rgba(96,165,250,.6); }
.demo-timeline.is-active::after { transform: scaleX(1); }
.demo-timeline li { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.demo-timeline__time { display: inline-block; font: 600 .7rem/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #93C5FD; margin-bottom: 14px; }
.demo-timeline li > .bi { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; font-size: 1.35rem; color: #fff; background: var(--ink-2); border: 2px solid rgba(96,165,250,.35); transition: background .4s ease, box-shadow .4s ease, transform .4s ease; }
.demo-timeline.is-active li > .bi { background: var(--blue); box-shadow: 0 0 0 6px rgba(37,99,235,.18), 0 0 26px rgba(37,99,235,.55); }
.demo-timeline.is-active li:nth-child(1) > .bi { transition-delay: .2s; }
.demo-timeline.is-active li:nth-child(2) > .bi { transition-delay: .7s; }
.demo-timeline.is-active li:nth-child(3) > .bi { transition-delay: 1.2s; }
.demo-timeline.is-active li:nth-child(4) > .bi { transition-delay: 1.7s; background: var(--amber); box-shadow: 0 0 0 6px rgba(217,119,6,.2), 0 0 26px rgba(217,119,6,.55); }
.demo-timeline h3 { font-size: 1.08rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.demo-timeline p { font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.66); margin: 0; }

/* Request form */
.demo-request { background: radial-gradient(ellipse at 0% 0%, rgba(37,99,235,.08), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(217,119,6,.07), transparent 50%); }
.demo-request__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.demo-promise { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.demo-promise li { display: flex; gap: 14px; align-items: flex-start; }
.demo-promise .bi { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-light); color: var(--blue); font-size: 1.15rem; }
.demo-promise strong { display: block; color: var(--ink); font-weight: 700; }
.demo-promise span { color: var(--muted); font-size: .92rem; }
.demo-request__call { color: var(--muted); font-weight: 500; }
.demo-request__call a { font-weight: 700; }

.demo-form-card {
    position: relative; padding: 34px; border-radius: 22px; border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #93C5FD, #C7D2FE, #FCD34D) border-box;
    box-shadow: 0 40px 80px -40px rgba(15,23,42,.35), -18px -10px 60px -24px rgba(37,99,235,.45), 18px 18px 60px -24px rgba(217,119,6,.35);
}
.demo-form .form-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.demo-form .form-control { border-radius: 10px; padding: 11px 14px; border-color: #CBD5E1; transition: border-color .2s, box-shadow .2s; }
.demo-form .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.demo-optional { font-weight: 500; color: var(--muted-2); }
.demo-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
.demo-toggle legend { grid-column: 1 / -1; float: none; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.demo-toggle__option { position: relative; cursor: pointer; }
.demo-toggle__option input { position: absolute; opacity: 0; inset: 0; }
.demo-toggle__option span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border-radius: 12px; border: 1.5px solid #CBD5E1; font-weight: 700; font-size: .9rem; color: var(--ink-2); text-align: center; transition: all .2s ease; }
.demo-toggle__option:hover span { border-color: #93C5FD; }
.demo-toggle__option input:checked + span { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); box-shadow: 0 8px 20px -10px rgba(37,99,235,.6); }
.demo-toggle__option input:focus-visible + span { outline: 3px solid #FBBF24; outline-offset: 2px; }
[data-current-site] { transition: opacity .25s ease; }
.demo-form:has(input[value="Build from scratch"]:checked) [data-current-site]:not(.is-emphasized) { opacity: .6; }
.demo-form__submit { width: 100%; justify-content: center; padding: 15px 28px; font-size: 1rem; }
.demo-form__fine { margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.demo-form__errors:empty, .demo-form__errors.validation-summary-valid { display: none; }
.demo-form__errors { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: .9rem; }
.demo-form__errors ul { margin: 0; padding-left: 18px; }
.demo-form__field-error { display: block; margin-top: 4px; font-size: .8rem; color: #B91C1C; }
.demo-toggle .demo-form__field-error { grid-column: 1 / -1; }

.demo-success { text-align: center; padding: 30px 10px; }
.demo-success__icon { width: 74px; height: 74px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: 2.2rem; animation: demo-pop .6s cubic-bezier(.34,1.56,.64,1); }
.demo-success h3 { font-weight: 800; color: var(--ink); }
.demo-success p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; }

/* FAQ */
.demo-faq { max-width: 820px; }
.demo-faq .section-title { margin-bottom: 36px; }
.demo-faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .2s ease, border-color .2s ease; }
.demo-faq details[open] { border-color: #BFDBFE; box-shadow: 0 14px 30px -20px rgba(37,99,235,.45); }
.demo-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.demo-faq summary::-webkit-details-marker { display: none; }
.demo-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: 1.2rem; font-weight: 600; transition: transform .25s ease; }
.demo-faq details[open] summary::after { transform: rotate(45deg); }
.demo-faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Keyframes ---------- */
@keyframes demo-grid-drift { to { background-position: 48px 48px; } }
@keyframes demo-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 18px); } }
@keyframes demo-shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes demo-cta-glow { 0%,100% { box-shadow: 0 4px 20px rgba(37,99,235,.4); } 50% { box-shadow: 0 6px 34px rgba(96,165,250,.75); } }
@keyframes demo-hover { 0%,100% { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) translateY(-10px); } }
@keyframes demo-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes demo-screen { 0% { opacity: 0; transform: translateY(10px); } 4%, 30% { opacity: 1; transform: translateY(0); } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes demo-tab { 0%, 33% { color: var(--blue); background: var(--blue-light); } 34%, 100% { color: var(--muted-2); background: transparent; } }
@keyframes demo-tab-line { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes demo-path { 0% { content: "/"; } 33.33% { content: "/services"; } 66.66% { content: "/contact"; } }
@keyframes demo-skeleton { to { background-position: -200% 0; } }
@keyframes demo-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Why us */
.demo-why .demo-hero__glow--blue { top: -160px; right: auto; left: -120px; }
.demo-why .section-desc { color: rgba(255,255,255,.72); }
.demo-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; max-width: 980px; margin: 0 auto 56px; }
.demo-vs__col { padding: 28px 28px 24px; border-radius: 20px; }
.demo-vs__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.demo-vs__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.demo-vs__col li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.demo-vs__col li .bi { flex: none; line-height: 1.5; }
.demo-vs__col--them { background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.5); }
.demo-vs__col--them h3 { color: rgba(255,255,255,.6); }
.demo-vs__col--them li { text-decoration: line-through; text-decoration-color: rgba(248,113,113,.55); }
.demo-vs__col--them li .bi { color: #F87171; }
.demo-vs__col--us { background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, linear-gradient(135deg, var(--demo-sky), var(--demo-violet), #FBBF24) border-box; border: 2px solid transparent; color: rgba(255,255,255,.88); box-shadow: 0 30px 60px -30px rgba(37,99,235,.8); }
.demo-vs__col--us h3 { color: #fff; }
.demo-vs__col--us li .bi { color: #34D399; }
.demo-vs__badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: #fff; font: 700 .85rem/1 'JetBrains Mono', monospace; letter-spacing: .06em; box-shadow: 0 0 0 8px rgba(217,119,6,.15), 0 10px 26px -6px rgba(217,119,6,.8); }
.demo-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-why__card { padding: 26px 24px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .3s ease, background .3s ease, border-color .3s ease; }
.demo-why__card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: rgba(96,165,250,.45); }
.demo-why__card > .bi { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--demo-violet)); box-shadow: 0 10px 22px -8px rgba(37,99,235,.7); }
.demo-why__card h3 { color: #fff; font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.demo-why__card p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.66); }
@media (max-width: 991.98px) {
    .demo-vs { grid-template-columns: 1fr; }
    .demo-vs__badge { margin: -6px auto; }
    .demo-why__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .demo-why__grid { grid-template-columns: 1fr; }
    .demo-vs__col { padding: 22px 20px; }
}

/* Color picker */
.demo-colors { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 170px; column-gap: 16px; }
.demo-colors > legend, .demo-colors__hint, .demo-colors__presets { grid-column: 1 / -1; }
.demo-colors > legend { float: none; width: auto; font-size: inherit; margin-bottom: 4px; }
.demo-colors__hint { margin: 0 0 12px; font-size: .86rem; color: var(--muted); }
.demo-colors__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-size: .8rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.demo-preset:hover { transform: translateY(-2px); border-color: #BFDBFE; }
.demo-preset.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.demo-preset__dots { display: inline-flex; }
.demo-preset__dots > span { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgba(15,23,42,.12); }
.demo-preset__dots > span:first-child { margin-left: 0; }
.demo-preset__dots--auto { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; background: conic-gradient(#F87171, #FBBF24, #34D399, #60A5FA, #A78BFA, #F87171); }
.demo-colors__list { display: grid; gap: 8px; }
.demo-swatch { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); animation: demo-pop .25s ease; }
.demo-swatch__chip { position: relative; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; background: var(--c, #2563EB); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 0 0 1px rgba(15,23,42,.15), 0 6px 14px -6px var(--c, #2563EB); transition: transform .2s; }
.demo-swatch__chip:hover { transform: scale(1.08); }
.demo-swatch__chip:focus-within { outline: 3px solid rgba(37,99,235,.45); outline-offset: 3px; }
.demo-swatch__chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.demo-swatch__hex { font: 600 .78rem/1 'JetBrains Mono', monospace; color: var(--ink); min-width: 62px; }
.demo-swatch .form-select { min-width: 0; font-size: .85rem; }
.demo-swatch__remove { width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--muted); }
.demo-swatch__remove:hover { background: #FEE2E2; color: #B91C1C; }
.demo-colors__add { margin-top: 8px; width: 100%; padding: 10px; border-radius: 14px; border: 1.5px dashed #93C5FD; background: rgba(37,99,235,.04); color: var(--blue); font-weight: 700; font-size: .88rem; transition: background .2s; }
.demo-colors__add:hover { background: rgba(37,99,235,.09); }
.demo-colors__status { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.demo-colors__preview {
    --cp-bg: #fff; --cp-text: #334155; --cp-heading: #0F172A; --cp-nav: #0F172A; --cp-btn: #2563EB; --cp-accent: #93C5FD; --cp-card: rgba(148,163,184,.18); --cp-foot: #1E293B;
    position: relative; align-self: start; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--cp-bg);
    border: 1px solid var(--border); box-shadow: 0 18px 36px -20px rgba(15,23,42,.45); min-height: 230px; transition: background .3s;
}
.demo-colors__preview * { transition: background .3s, color .3s; }
.cp-nav { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: var(--cp-nav); }
.cp-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--cp-accent); margin-right: auto; }
.cp-link { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.6); }
.cp-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; }
.cp-tag { align-self: flex-start; padding: 2px 7px; border-radius: 999px; background: var(--cp-accent); color: var(--cp-heading); font: 700 .58rem/1.4 'JetBrains Mono', monospace; text-transform: uppercase; }
.cp-heading { color: var(--cp-heading); font-size: .95rem; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.cp-text { height: 5px; border-radius: 3px; background: var(--cp-text); opacity: .7; }
.cp-text--short { width: 65%; }
.cp-btn { align-self: flex-start; margin-top: 4px; padding: 5px 10px; border-radius: 7px; background: var(--cp-btn); color: #fff; font-size: .66rem; font-weight: 800; }
.cp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.cp-cards span { height: 26px; border-radius: 6px; background: var(--cp-card); border-top: 3px solid var(--cp-accent); }
.cp-foot { height: 22px; background: var(--cp-foot); }
.cp-label { position: absolute; right: 8px; bottom: 30px; padding: 2px 7px; border-radius: 6px; background: rgba(15,23,42,.75); color: #fff; font: 600 .56rem/1.4 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.demo-colors__preview.is-auto::after { content: "We’ll pick"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.55); backdrop-filter: blur(2px); color: var(--ink); font-weight: 800; font-size: .85rem; }
@media (max-width: 575.98px) {
    .demo-colors { grid-template-columns: 1fr; }
    .demo-colors__preview { margin-top: 14px; }
    .demo-swatch { grid-template-columns: auto minmax(0, 1fr) auto; }
    .demo-swatch__hex { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .demo-hero { padding: 72px 0 84px; }
    .demo-hero__layout, .demo-compare-layout, .demo-request__layout { grid-template-columns: 1fr; gap: 44px; }
    .demo-hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .demo-pages { grid-template-columns: 1fr; }
    .demo-timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .demo-timeline::before, .demo-timeline::after { display: none; }
}
@media (max-width: 767.98px) {
    .demo-section { padding: 72px 0; }
    .demo-paths { grid-template-columns: 1fr; }
    .demo-path { padding: 30px 24px 26px; }
    .demo-form-card { padding: 24px 18px; }
    .demo-browser { transform: none; animation: none; }
    .demo-chip--mobile { left: 0; }
    .demo-chip--speed { right: 0; }
}
@media (max-width: 479.98px) {
    .demo-hero__actions .btn { width: 100%; justify-content: center; }
    .demo-stats div { flex: 1; min-width: 0; padding: 12px; }
    .demo-browser__screens { height: 250px; }
    .demo-timeline { grid-template-columns: 1fr; }
    .demo-toggle { grid-template-columns: 1fr; }
    .demo-chip--speed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-page *, .demo-page *::before, .demo-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .demo-screen--home { opacity: 1; transform: none; }
}

/* =========================================================
   Demo Request planner (/free-demo-site/request)
   ========================================================= */
.demo-hero--compact { padding: 64px 0 72px; }
.demo-hero--compact .demo-hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.demo-hero--compact .demo-hero__lead { margin-bottom: 26px; }
.demo-hero__actions .btn .bi { margin-right: 4px; }
.demo-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .82rem; color: rgba(255,255,255,.55); }
.demo-crumbs a { color: #93C5FD; text-decoration: none; }
.demo-crumbs a:hover { text-decoration: underline; }
.demo-crumbs .bi { font-size: .7rem; }

.demo-planner-section { padding-top: 48px; background: var(--surface); }
.demo-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 32px; border-radius: 14px; background: var(--amber-light); border: 1px solid #FCD34D; color: #78350F; font-size: .93rem; }
.demo-notice > .bi { font-size: 1.3rem; color: var(--amber); line-height: 1.2; }
.demo-notice a { color: #92400E; font-weight: 700; }

.demo-planner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.demo-step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px 26px 28px; margin: 0 0 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.demo-step legend { float: none; width: auto; display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; padding: 0; }
.demo-step__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--demo-violet)); color: #fff; font-size: .9rem; box-shadow: 0 6px 16px -6px rgba(37,99,235,.7); }
.demo-step__hint { color: var(--muted); margin: -6px 0 18px; font-size: .93rem; }
.demo-step .form-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.demo-step .form-control, .demo-step .form-select { border-radius: 10px; padding: 10px 14px; border-color: #CBD5E1; }
.demo-step .form-control:focus, .demo-step .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.demo-planner__form.was-validated :invalid { border-color: #DC2626; }
.demo-upgrade-only { display: none; }
.demo-planner__form.is-upgrade .demo-upgrade-only { display: block; animation: demo-pop .35s ease; }
.demo-counter { text-align: right; font: 500 .74rem/1 'JetBrains Mono', monospace; color: var(--muted-2); margin-top: 6px; }

.demo-vibes { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-vibe { position: relative; cursor: pointer; }
.demo-vibe input { position: absolute; opacity: 0; inset: 0; }
.demo-vibe span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid #CBD5E1; font-size: .85rem; font-weight: 700; color: var(--ink-2); transition: all .2s ease; }
.demo-vibe i { width: 22px; height: 22px; border-radius: 50%; }
.demo-vibe input:checked + span { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 6px 16px -8px rgba(37,99,235,.7); }
.demo-vibe input:focus-visible + span { outline: 3px solid #FBBF24; outline-offset: 2px; }

.demo-pageplans { display: grid; gap: 14px; }
.demo-pageplan { position: relative; padding: 18px 18px 20px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.demo-pageplan.is-focused { border-color: #93C5FD; background: #fff; box-shadow: 0 16px 34px -22px rgba(37,99,235,.55); }
.demo-pageplan__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo-pageplan__badge { font: 700 .7rem/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 6px 10px; border-radius: 6px; }
.demo-pageplan__head .bi { color: var(--muted-2); font-size: 1.1rem; }
.demo-planner__submit { padding: 6px 0 0; }
.demo-planner__submit .demo-form__fine .bi { margin-right: 4px; }
.demo-how-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; }

.demo-planner__preview { position: relative; }
.demo-planner__sticky { position: sticky; top: 96px; }
.demo-preview__label { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.demo-browser--flat { transform: none; animation: none; box-shadow: 0 30px 60px -30px rgba(15,23,42,.45), 0 0 0 1px var(--border); }
.demo-mini-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fff; }
.demo-mini-nav b { font-weight: 800; color: var(--ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.demo-mini-nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.demo-mini-nav button { border: 0; background: none; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 5px 9px; border-radius: 6px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-mini-nav button.is-active { color: var(--blue); background: var(--blue-light); }
.demo-mini-page { padding: 26px 22px 24px; min-height: 260px; background: radial-gradient(ellipse at 90% 0%, rgba(96,165,250,.18), transparent 60%), #fff; }
.demo-mini-page__type { display: inline-block; font: 600 .66rem/1 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: var(--amber-light); padding: 5px 8px; border-radius: 5px; margin-bottom: 12px; }
.demo-mini-page h3 { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin-bottom: 8px; word-break: break-word; }
.demo-mini-page p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; word-break: break-word; }
.demo-mini-page__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-mini-page__blocks span { height: 54px; border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(90deg, #EEF2F7 0%, #F8FAFC 50%, #EEF2F7 100%); background-size: 200% 100%; animation: demo-skeleton 2.4s linear infinite; }
.demo-preview__checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.demo-preview__checklist li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .2s ease; }
.demo-preview__checklist li.is-done { color: #15803D; }
.demo-preview__checklist li.is-done .bi { animation: demo-pop .4s cubic-bezier(.34,1.56,.64,1); }

/* Dialogs */
.demo-dialog { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 40px 100px -20px rgba(2,6,23,.6); }
.demo-dialog::backdrop { background: rgba(12,14,20,.6); backdrop-filter: blur(4px); }
.demo-dialog[open] { animation: demo-dialog-in .35s cubic-bezier(.34,1.3,.64,1); }
.demo-dialog__inner { position: relative; padding: 34px 30px 28px; }
.demo-dialog h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin-bottom: 18px; }
.demo-dialog__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.demo-dialog__close:hover { background: var(--border); }
.demo-dialog__fine { font-size: .82rem; color: var(--muted); margin: 14px 0 18px; }
.demo-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: how; }
.demo-how li { position: relative; display: flex; gap: 14px; padding: 12px 0 12px; }
.demo-how li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 56px; bottom: -6px; width: 2px; background: linear-gradient(var(--blue), var(--demo-violet)); opacity: .3; }
.demo-how .bi { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue); font-size: 1.15rem; }
.demo-how li:last-child .bi { background: var(--amber-light); color: var(--amber); }
.demo-how strong { display: block; color: var(--ink); }
.demo-how span { color: var(--muted); font-size: .9rem; }
.demo-confirm-pages { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; text-align: left; }
.demo-confirm-pages li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.demo-confirm-pages b { color: var(--ink); }
.demo-confirm-pages span { font: 600 .72rem/1.6 'JetBrains Mono', monospace; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.demo-code-card { padding: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: #fff; display: grid; gap: 6px; }
.demo-code-card span { font-size: .78rem; color: #93C5FD; }
.demo-code-card strong { font: 600 1.6rem/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; }
.demo-code-card small { color: rgba(255,255,255,.6); font-size: .78rem; }

/* =========================================================
   Demo Delivery (/demo-delivery)
   ========================================================= */
.demo-delivery { min-height: calc(100vh - 68px); display: flex; align-items: center; }
.demo-delivery__card { max-width: 720px; margin: 0 auto; text-align: center; }
.demo-delivery__card .demo-hero__lead { margin-left: auto; margin-right: auto; }
.demo-delivery__icon { width: 76px; height: 76px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 22px; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--demo-violet)); box-shadow: 0 18px 40px -12px rgba(37,99,235,.8); animation: demo-bob 4s ease-in-out infinite; }
.demo-code-form { max-width: 560px; margin: 0 auto; }
.demo-code-input { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(147,197,253,.35); backdrop-filter: blur(8px); transition: border-color .2s, box-shadow .2s; }
.demo-code-input:focus-within { border-color: var(--demo-sky); box-shadow: 0 0 0 5px rgba(96,165,250,.18), 0 0 40px rgba(37,99,235,.35); }
.demo-code-input.has-error { border-color: #F87171; animation: demo-shake .4s ease; }
.demo-code-input > .bi { color: #93C5FD; font-size: 1.2rem; }
.demo-code-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 600 1.15rem/1.4 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; }
.demo-code-input input::placeholder { color: rgba(255,255,255,.3); }
.demo-code-input .btn { flex: none; }
.demo-code-error { margin: 12px 0 0; color: #FCA5A5; font-weight: 600; font-size: .9rem; }
.demo-code-help { margin: 14px 0 0; color: rgba(255,255,255,.6); font-size: .9rem; }
.demo-code-help a { color: #93C5FD; text-decoration: none; }
.demo-code-help code { color: #FDE68A; background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 6px; font-size: .85rem; }
.demo-delivery__steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-delivery__steps li { padding: 16px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: rgba(255,255,255,.78); display: grid; gap: 8px; justify-items: center; }
.demo-delivery__steps .bi { font-size: 1.3rem; color: var(--demo-sky); }
.demo-delivery__alt { margin: 28px 0 0; color: rgba(255,255,255,.6); }
.demo-delivery__alt a { color: #93C5FD; font-weight: 700; }

@keyframes demo-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes demo-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

@media (max-width: 991.98px) {
    .demo-planner { grid-template-columns: 1fr; }
    .demo-planner__sticky { position: static; }
    .demo-mini-page { min-height: 0; }
}
@media (max-width: 575.98px) {
    .demo-step { padding: 20px 16px 22px; }
    .demo-code-input { flex-wrap: wrap; padding: 10px; }
    .demo-code-input .btn { width: 100%; justify-content: center; }
    .demo-delivery__steps { grid-template-columns: 1fr; }
    .demo-dialog__inner { padding: 30px 20px 22px; }
}
.demo-hero__code { margin: 18px 0 0; font-size: .9rem; color: rgba(255,255,255,.6); }
.demo-hero__code a, .demo-timeline__link { color: #93C5FD; font-weight: 700; text-decoration: none; }
.demo-hero__code a:hover, .demo-timeline__link:hover { text-decoration: underline; }


.demo-page-picker { border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-width: 0; }
.demo-page-picker .form-select { width: 100%; min-width: 0; }
.demo-page-picker input[readonly] { background: var(--surface); font-weight: 700; }


/* Optional design direction: eight choices in an accessible native dialog. */
.demo-design-invite { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.demo-design-invite strong { color: var(--ink); }
.demo-design-invite p { font-size: .85rem; color: var(--muted); margin: 8px 0 14px; }
.demo-design-invite [data-design-summary] { margin-bottom: 0; }
.demo-design-dialog { width: min(820px, calc(100vw - 24px)); color: var(--ink); }
.demo-design-dialog h2 { padding-right: 24px; margin-top: 8px; }
.demo-design-dialog #design-dialog-help { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.demo-design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin-top: 24px; }
.demo-design-field { min-width: 0; }
.demo-design-field .form-label { font-weight: 700; margin-bottom: 4px; }
.demo-design-field p { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.demo-design-field select { width: 100%; min-width: 0; font-size: .85rem; }
.demo-design-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border); }
.demo-design-actions .btn-link { margin-right: auto; }
@media (max-width: 575px) { .demo-design-grid { grid-template-columns: 1fr; gap: 18px; } .demo-design-actions .btn { flex: 1 1 auto; } .demo-design-actions .btn-link { flex-basis: 100%; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .demo-design-dialog[open] { animation: none; } }
