/* App demonstrations share the marketing palette and the app's controls. */
.ad-app-demo-intro { padding-block: clamp(48px, 7vw, 100px) 24px; color: var(--ad-brown, #463921); }
.ad-page .ad-app-demo-intro h1 { max-width: 850px; font-size: clamp(42px, 4.5vw, 60px); line-height: 1.08; text-wrap: balance; margin: 0 auto 24px; text-align: center; color: inherit; }
.ad-app-demo-intro p { max-width: 620px; margin: 0 auto; font-size: 21px; line-height: 1.6; text-align: center; }
.cde-app-demonstration { padding-block: clamp(40px, 5vw, 72px); color: var(--ad-brown, #463921); }
.cde-app-demonstration > .container { width: min(calc(100% - 48px), 1200px); padding-inline: 0; }
.ad-demo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.ad-demo-copy { max-width: 480px; }
.ad-demo-copy h2 { font-family: var(--ad-font-display); color: inherit; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.13; text-wrap: balance; margin: 0 0 24px; }
.ad-demo-copy p { font-size: 20px; line-height: 1.65; margin: 0; max-width: 40ch; }
.ad-demo-row--left .ad-demo { grid-column: 1; grid-row: 1; }
.ad-demo-row--left .ad-demo-copy { grid-column: 2; grid-row: 1; justify-self: end; }
.ad-demo { --demo-line: #e3ded8; --demo-mint: #afd3c4; --demo-cream: #f5f1ed; --demo-muted: #756b5a; min-width: 0; color: #463921; font-family: var(--ad-font-body); }
.ad-demo ::selection { background: var(--demo-mint); color: #463921; }
.ad-demo__stage { display: flex; justify-content: center; padding: 32px 24px; background: #eee8e1; border-radius: 12px; }
[data-app-demo="journal"] .ad-demo__stage { background: #e6ece9; }
[data-app-demo="order"] .ad-demo__stage { background: #e8ecef; }
.ad-demo__phone { width: min(100%, 320px); background: var(--demo-cream); border: 2px solid #463921; border-radius: 32px; padding: 0 7px; overflow: hidden; box-shadow: 0 18px 32px #4639211a; }
.ad-demo__statusbar { height: 37px; display: flex; align-items: center; justify-content: space-between; padding-inline: 17px; font-size: 11px; font-weight: 600; position: relative; }
.ad-demo__statusbar > svg { width: 32px; height: 12px; }
.ad-demo__speaker { position: absolute; width: 48px; height: 4px; background: #463921; border-radius: 4px; left: calc(50% - 24px); top: 15px; }
.ad-demo__viewport { position: relative; min-height: 510px; overflow: hidden; }
.ad-demo__scene { position: absolute; inset: 0; display: flex; flex-direction: column; will-change: transform, opacity; }
.ad-demo [hidden] { display: none; }
.ad-demo__bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 4px; padding: 8px 10px 13px; border-bottom: 1px solid var(--demo-line); text-align: center; font-family: var(--ad-font-display); font-size: 20px; font-weight: 400; line-height: 1.25; }
.ad-demo svg { display: inline-block; width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.ad-demo__body { padding: 18px 14px 8px; font-size: 14px; line-height: 1.4; min-height: 0; }
.ad-demo__screen-title { font-family: var(--ad-font-display); font-size: 25px; line-height: 1.15; margin-bottom: 13px; }
.ad-demo .ad-demo__hint { display: block; font-size: 13px; color: var(--demo-muted); line-height: 1.5; margin: 10px 0 16px; }
.ad-demo__label { display: block; font-size: 12px; line-height: 1.4; font-weight: 600; margin-bottom: 5px; }
.ad-demo__field { margin-bottom: 12px; }
.ad-demo__input { display: block; background: #fff; border: 1px solid var(--demo-line); border-radius: 8px; min-height: 36px; padding: 8px 10px; font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.ad-demo__field--prose .ad-demo__input { min-height: 145px; line-height: 1.7; }
.ad-demo__date-time { float: right; font-variant-numeric: tabular-nums; }
.ad-demo__media-row { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; font-size: 13px; }
.ad-demo__media-row small { display: block; font-size: 11px; color: var(--demo-muted); margin-top: 3px; }
.ad-demo__image { position: relative; display: block; overflow: hidden; background: #e3ded8; }
.ad-demo__image img { position: relative; z-index: 1; display: block; width: 100%; object-fit: cover; }
.ad-demo__image-fallback { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; padding: 8px; color: #463921; font-size: 12px; }
.ad-demo .ad-demo__media-row .ad-demo__image { width: 46px; height: 54px; flex: 0 0 46px; border-radius: 5px; }
.ad-demo .ad-demo__media-row img { height: 54px; }
.ad-demo__selection { position: relative; margin-bottom: 12px; }
.ad-demo .ad-demo__chosen-image { width: 164px; height: 230px; margin: 20px auto 14px; }
.ad-demo .ad-demo__chosen-image img { height: 230px; }
.ad-demo__selected { position: absolute; bottom: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--demo-mint); border-radius: 50%; }
[data-scene="choose"] .ad-demo__selected { right: calc(50% - 72px); }
.ad-demo__centred { text-align: center; }
.ad-demo__segments { display: flex; gap: 6px; font-size: 13px; }
.ad-demo__segments > span { position: relative; flex: 1; text-align: center; padding: 8px 4px; border: 1px solid var(--demo-line); background: #fff; border-radius: 7px; }
.ad-demo__segments .is-selected { background: #463921; border-color: #463921; color: #fff; }
.ad-demo__action { position: relative; display: block; text-align: center; padding: 13px 8px; border-radius: 24px; background: #eec272; font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 15px; }
.ad-demo__tap { position: absolute; width: 32px; height: 32px; border: 2px solid #463921; background: #ffffff80; border-radius: 50%; left: calc(50% - 16px); top: calc(50% - 16px); opacity: 0; pointer-events: none; }
.ad-demo .ad-demo__saving { text-align: center; margin: 8px 0 0; font-size: 11px; }
.ad-demo__art-card { overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid var(--demo-line); }
.ad-demo .ad-demo__art-card .ad-demo__image, .ad-demo .ad-demo__art-card img { height: 260px; object-position: center 43%; }
.ad-demo__art-card > div { padding: 12px; }
.ad-demo__art-card strong { font-size: 16px; display: block; font-weight: 600; }
.ad-demo__art-card > div > span:not(.ad-demo__badge) { display: block; font-size: 12px; margin-top: 3px; color: var(--demo-muted); }
.ad-demo__badge { display: inline-block; padding: 3px 8px; margin-top: 8px; background: var(--demo-cream); border-radius: 12px; font-size: 11px; }
.ad-demo__badge--gold { background: #f7d39e; }
.ad-demo .ad-demo__journal-image, .ad-demo .ad-demo__journal-image img { height: 230px; object-position: center 35%; }
.ad-demo__journal-card { border-top: 1px solid var(--demo-line); padding-top: 8px; }
.ad-demo__journal-card small { display: block; font-size: 11px; margin: 13px 0 5px; color: var(--demo-muted); }
.ad-demo__journal-card strong { font-family: var(--ad-font-display); font-size: 23px; font-weight: 400; }
.ad-demo .ad-demo__journal-card p { font-size: 13px; margin: 8px 0; line-height: 1.5; }
.ad-demo__order-line { display: flex; position: relative; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-block: 1px solid var(--demo-line); }
.ad-demo__order-line strong, .ad-demo__order-line > div > span:not(.ad-demo__badge) { display: block; margin-bottom: 6px; }
.ad-demo__confirmation { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 16px 0; }
.ad-demo__confirmation svg { width: 18px; height: 18px; }
.ad-demo__tracking-summary { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--demo-line); font-size: 13px; }
.ad-demo__tracking-summary strong, .ad-demo__tracking-summary > span { display: block; margin-bottom: 4px; }
.ad-demo__nav { display: flex; align-items: flex-end; justify-content: space-around; border-top: 1px solid #4639211a; padding: 8px 4px; margin-inline: -7px; background: #fbf8f4; }
.ad-demo__nav > span { width: 20%; min-height: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; line-height: 1.3; color: var(--demo-muted); font-weight: 500; }
.ad-demo__nav .is-active { color: #463921; font-weight: 700; }
.ad-demo__nav-icon { width: 28px; height: 28px; display: grid; place-items: center; }
.ad-demo__nav svg { width: 20px; height: 20px; }
.ad-demo__add-circle { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--demo-mint); color: #463921; }
.ad-demo__add-circle > svg { width: 22px; height: 22px; }
.is-new-menu-open .ad-demo__add-circle > svg { transform: rotate(45deg); }
.ad-demo__active-rule { width: 26px; height: 2px; border-radius: 1px; background: transparent; }
.is-active > .ad-demo__active-rule { background: #d3afaf; }
.ad-demo__overview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-demo__overview > div { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 14px; border-radius: 14px; min-height: 118px; }
.ad-demo__overview strong { font-family: var(--ad-font-display); font-size: 30px; font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
.ad-demo__overview span { font-weight: 600; font-size: 14px; }
.ad-demo__overview small { font-size: 10px; margin-top: 4px; }
.ad-demo__overview-art { background: #f7d39e; }
.ad-demo__overview-views { background: #afd3c4; }
.ad-demo__overview-orders { background: #d3afaf; }
.ad-demo__overview-sales { background: #afc2d3; }
.ad-demo__new-overlay { position: absolute; inset: 0; background: #4639217a; visibility: hidden; }
.ad-demo__new-options { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ad-demo__new-option { position: relative; display: flex; align-items: center; gap: 10px; min-width: 176px; min-height: 48px; padding: 12px 18px; border-radius: 24px; background: #afd3c4; color: #463921; font-size: 15px; font-weight: 700; box-shadow: 0 3px 6px #4639212e; }
.ad-demo__new-option svg { width: 20px; height: 20px; }
[data-app-demo="order"] .ad-demo__action { background: #afd3c4; border-radius: 8px; }
[data-app-demo="order"] .ad-demo__order-line { background: #fff; border: 1px solid var(--demo-line); border-radius: 8px; padding: 14px; }
[data-app-demo="order"] .ad-demo__tracking-summary { background: #fff; border: 1px solid var(--demo-line); border-radius: 8px; padding: 12px; }
[data-app-demo="journal"] [data-scene="image"] .ad-demo__selection { padding: 10px; border: 1px solid var(--demo-line); border-radius: 8px; background: #fbf8f4; }
.ad-demo__home-indicator { height: 4px; width: 88px; border-radius: 4px; background: #463921; margin: 7px auto 9px; }
.ad-demo__playback { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
.ad-demo .ad-demo__control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 92px; padding: 8px 10px; background: transparent; border: 0; border-radius: 4px; color: #463921; font: inherit; font-size: 14px; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
.ad-demo .ad-demo__control:hover { background: #e3ded8; }
.ad-demo .ad-demo__control:focus-visible { outline: 2px solid #463921; outline-offset: 3px; }
.ad-demo__control svg { width: 16px; height: 16px; }
.ad-demo .ad-demo__example-note { margin: 4px 0 0; font-size: 12px; text-align: center; color: var(--demo-muted); }
@media (max-width: 1100px) {
 .ad-demo-row { gap: 40px; }
 .ad-demo__stage { padding-inline: 18px; }
}
@media (max-width: 799px) {
 .ad-demo-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .ad-demo-row--left .ad-demo, .ad-demo-row--left .ad-demo-copy { grid-column: auto; grid-row: auto; justify-self: stretch; }
 .ad-demo-copy { max-width: 560px; }
 .ad-demo-copy p { font-size: 18px; }
 .ad-demo-copy h2 { margin-bottom: 18px; }
 .ad-demo { width: 100%; max-width: 560px; margin-inline: auto; }
 .ad-app-demo-intro h1, .ad-app-demo-intro p { text-align: left; }
 .ad-app-demo-intro p { font-size: 19px; }
}
@media (max-width: 380px) {
 .cde-app-demonstration > .container { width: calc(100% - 32px); }
 .ad-demo__stage { padding: 20px 6px; }
 .ad-demo__phone { padding-inline: 4px; }
 .ad-demo__body { padding-inline: 12px; }
 .ad-demo__bar { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
 .ad-demo__scene { will-change: auto; }
 .ad-demo__tap { display: none; }
}

/* Silent dictation: real app controls with a waveform as an illustrative speech cue. */
.ad-demo .ad-demo__field--dictation .ad-demo__input { min-height: 100px; }
.ad-demo__voice { border-top: 1px solid var(--demo-line); padding-top: 10px; margin-top: 8px; }
.ad-demo__voice-actions { display: flex; gap: 8px; align-items: center; }
.ad-demo__voice-button, .ad-demo__voice-cancel { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border-radius: 6px; background: var(--demo-mint); font-size: 12px; font-weight: 600; }
.ad-demo__voice-button svg { width: 16px; height: 16px; }
.ad-demo__voice-feedback { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-top: 5px; font-size: 12px; }
.ad-demo__wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.ad-demo__wave i { display: block; width: 3px; height: 22px; border-radius: 2px; background: #4f8a74; transform-origin: center; }

@media (max-width: 540px) {
 .ad-page .ad-app-demo-intro h1 { font-size: 38px; }
}
