/* Page frame and scenario navigation */
.demo-body {
  --studio-pine: #102e23;
  --studio-paper: #fffdf6;
  --studio-champagne: #f0d9ac;
  --studio-line: #ccd9ca;
  --studio-shadow: 0 .6rem 1.7rem #1739240e;
  background: #f7f4e9;
}
.demo-header { background: #0a2017; }
.demo-header-inner { min-height: 4.25rem; }
.demo-hero {
  padding-block: clamp(.8rem, 2.4vw, 1.7rem) clamp(1.15rem, 3.7vw, 2.8rem);
  background: radial-gradient(ellipse at 91% 12%, #223e2c, transparent 62%), #0a2017;
}
.demo-hero-inner {
  min-height: clamp(26rem, 38vw, 34rem);
  border-color: #a3bc967a;
  background: #0d261b;
  box-shadow: 0 1rem 2.6rem #030e0a7d;
}
.demo-hero-art { inset-inline-start: 15%; }
.demo-hero-art img { object-position: center 54%; }
.demo-hero-inner::after {
  background: linear-gradient(90deg, #0e281c 8%, #0e281cf5 27%, #0e281cba 48%, #0e281c35 68%, transparent 83%);
}
.demo-hero-copy { width: min(62%, 46rem); padding: clamp(1.55rem, 4.25vw, 3.75rem); }
.demo-hero h1 { max-width: 15ch; color: #fff7e4; font-size: clamp(3.1rem, 6.3vw, 6.3rem); text-wrap: balance; }
.demo-hero h1 em { display: block; color: var(--studio-champagne); }
.demo-hero .demo-hero-note { color: #cfddcc; }
.demo-hero .button-outline { border-color: #a9beac8c; }
.demo-nav { background: #eaf0e5; border-color: #cbdac8; box-shadow: 0 .18rem .65rem #193b2412; }
.demo-nav .shell { gap: .22rem; padding-block: .4rem; }
.demo-nav a { min-height: 2.75rem; padding-inline: .47rem; white-space: nowrap; color: #294a36; }
.demo-nav a:is([href="#activation"], [href="#retail"], [href="#scan-go"]) { background: #dcebd7; }
.demo-nav a:hover { background: #cedfc8; }

.demo-section { padding-block: clamp(1.8rem, 4.25vw, 3.8rem); scroll-margin-top: 4.45rem; }
.demo-panel { border-color: var(--studio-line); background: var(--studio-paper); box-shadow: var(--studio-shadow); }
.demo-panel h3 { color: #204433; }
.demo-icon { background: linear-gradient(150deg, #f3f7e9, #e2edde); }
.demo-body :is(input:not([type="checkbox"]), select) { min-height: 2.9rem; }
.demo-body :is(input, select, button, summary, a):focus-visible { outline-offset: 3px; }
.demo-body .map-pin:focus-visible { outline-color: #497447; }
.demo-status:not(:empty) { padding: .42rem .58rem; border-inline-start: .18rem solid #8baa79; background: #e8f2e2; }
.demo-total output, .wallet-balances dd, #activation-card-number, #cars-total { font-variant-numeric: tabular-nums; }
.demo-body :is(h3, h4, legend, label, summary) { overflow-wrap: anywhere; }

/* Headings for activities, wallets and stores */
.studio-heading {
  position: relative;
  isolation: isolate;
  align-items: end;
  gap: .9rem 1.45rem;
  min-height: 0;
  padding: clamp(1.05rem, 2.8vw, 2.2rem);
  border: 1px solid var(--studio-line);
  border-radius: var(--demo-radius);
  background: var(--studio-paper);
}
.studio-heading .eyebrow { margin-top: .48rem; }
.studio-heading .studio-heading-icon { width: clamp(2.75rem, 4.6vw, 4rem); }
.studio-heading h2 { max-width: 20ch; font-size: clamp(1.95rem, 4vw, 3.65rem); line-height: 1.02; text-wrap: balance; }
.studio-heading > p { max-width: 36ch; }
.studio-activation {
  background: linear-gradient(90deg, #fcf7ea 19%, #fcf7eae6 46%, #fcf7ea91 80%),
    #fcf7ea url("../assets/demo-studio/activation-scene.webp") right 56% / cover no-repeat;
}
.studio-everyday {
  background: linear-gradient(90deg, #edf2e7 15%, #edf2e7dc 45%, #edf2e790 77%),
    #edf2e7 url("../assets/demo-studio/everyday-scene.webp") right 52% / cover no-repeat;
}
.studio-wallet { border-color: #d9dfca; background: #edf2e6; }
.studio-map-heading { border-color: #c5d8cb; background: #e0ece0; }
.studio-shopping-heading {
  background: linear-gradient(90deg, #f7f0dc 18%, #f7f0dce8 46%, #f7f0dc91 78%),
    #f7f0dc url("../assets/demo-studio/shopping-scene.webp") right 56% / cover no-repeat;
}
.studio-topup-heading { background: linear-gradient(115deg, #dfebe0, #f4f5e8); }
.studio-gifts-heading {
  background: linear-gradient(90deg, #faf2df 12%, #faf2dfd9 51%, #faf2df90 81%),
    #faf2df url("../assets/demo-studio/gift-scene.webp") right 55% / cover no-repeat;
}
.demo-scene {
  min-height: clamp(15rem, 24vw, 20rem);
  border-color: #5e7b65;
  box-shadow: 0 .65rem 1.55rem #132d2122;
}
.demo-scene > div { max-width: min(64%, 43rem); }
.retail-scene { --scene-photo: url("../assets/demo-studio/store-scene.webp"); }
.kso-scene { --scene-photo: url("../assets/demo-studio/terminal-scene.webp"); }
.digital-scene { --scene-photo: url("../assets/demo-studio/digital-scene.webp"); }

.activation-section { background: #eef3e8; }
.activation-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: stretch; }
.activation-controls :is(#activation-pay, #activation-car-save) { margin-top: .85rem; }
.activation-summary { background: #e4eee0; }
.activation-card {
  min-height: clamp(8.45rem, 13vw, 11rem);
  padding: clamp(.9rem, 2.3vw, 1.6rem);
  background: linear-gradient(90deg, #16372af5 15%, #16372abd 48%, #16372a30 90%),
    #16372a url("../assets/demo-studio/wallet-scene.webp") right center / cover no-repeat;
  box-shadow: 0 .44rem 1.25rem #1c412c29;
}
.activation-card p { max-width: 28ch; }
.activation-dl > div { background: #fbfdf4; box-shadow: inset 0 .18rem #94af8c35; }

#retail { background: #f2ecdd; }
.studio-case-tray {
  padding: clamp(.8rem, 2.1vw, 1.35rem);
  border: 1px solid #d8d9c1;
  border-radius: var(--demo-radius);
  background: #fffcf2;
}
.demo-cases-grid button { border-color: #cadac4; background: #edf3e6; }
.demo-cases-grid button:first-child { border-color: #decb9d; background: #f7efd9; }
.demo-cases-grid button:hover { border-color: #719671; background: #e0eed7; }
.retail-demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, .94fr); gap: .72rem; }
.retail-wallet {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-width: 0;
  background: #f0f5e8;
}
.retail-wallet > div + div { padding: .85rem; border-style: dashed; }
.retail-panel > .demo-step-head { border-bottom: 1px solid #e0e8da; padding-bottom: .78rem; }
.retail-panel dd { overflow-wrap: anywhere; }
.retail-quote, .kso-receipt {
  background: linear-gradient(90deg, #faf7e9 17%, #faf7e9d6 65%, #faf7e97a),
    #faf7e9 url("../assets/demo-studio/receipt-paper.webp") right 48% / cover no-repeat;
}
.retail-quote .button { width: 100%; }

#scan-go { background: #e0eadf; }
.kso-pilot-note { border-color: #aec6a8; background: #f3f7eb; }
#scan-go .workflow-grid { gap: .9rem; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
#demo-catalog { gap: .65rem; }
#demo-catalog > li {
  grid-template-rows: 5.05rem auto auto 1fr;
  padding: .75rem;
  background: radial-gradient(ellipse at 50% 10%, #edf4e2, #f9faf1 69%);
}
#demo-catalog > li img { align-self: center; }
#demo-catalog > li button { align-self: end; }
.studio-terminal {
  padding: clamp(1rem, 2.7vw, 1.85rem);
  background: radial-gradient(ellipse at right top, #315e49, transparent 53%), #16372b;
  border-color: #658973;
  box-shadow: 0 .85rem 1.9rem #142e2438;
}
.studio-terminal .demo-total { min-height: 3.25rem; background: #1c4635; }
.studio-terminal #send-to-kso { width: 100%; }
.studio-terminal .kso-review { background: #fbfcf0; }
.studio-terminal .demo-status:not(:empty) { border-color: #cce2ad; background: #a9d5ae1a; }
.kso-breakdown > div { align-items: baseline; }

#paid-services-demo .workflow-grid { align-items: stretch; gap: .85rem; }
.studio-cars-panel { background: #fcf7e9; }
.ai-demo { background: #eff5e8; }
.service-demos :is(.studio-cars-panel, .ai-demo) > .demo-step-head { border-bottom: 1px solid #d3decb; padding-bottom: .6rem; }
.service-demos :is(.studio-cars-panel, .ai-demo) > .demo-step-head img { width: clamp(3.25rem, 5.5vw, 4.6rem); }
.cars-total { background: #eee4cb; border: 1px solid #e1d4b6; }
.ai-example { border-color: #b6cdb0; background: #e3eedc; }

.wallet-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.wallet-savings {
  display: grid;
  align-content: center;
  min-height: clamp(13rem, 24vw, 19.5rem);
  padding: clamp(1rem, 3vw, 2.3rem);
  border-color: #5f856c;
  background: linear-gradient(90deg, #143126fc 6%, #143126cc 44%, #1431265c 83%),
    #143126 url("../assets/demo-studio/wallet-scene.webp") right 60% / cover no-repeat;
  box-shadow: var(--studio-shadow);
}
.wallet-savings p { max-width: 33ch; }
.wallet-savings > strong { color: var(--studio-champagne); }
.wallet-balances > div {
  --wallet-icon: url("../assets/demo-studio/delivery.webp");
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 7.1rem;
  padding-inline-end: clamp(2.2rem, 5vw, 4.1rem);
  box-shadow: var(--studio-shadow);
}
.wallet-balances > div::after {
  position: absolute;
  inset: .5rem .45rem auto auto;
  width: clamp(1.85rem, 5vw, 4rem);
  aspect-ratio: 1;
  background: var(--wallet-icon) center / contain no-repeat;
  content: "";
  pointer-events: none;
}
.wallet-balances > div:nth-child(2) { --wallet-icon: url("../assets/demo-studio/parking.webp"); background: #edf3e8; }
.wallet-balances > div:nth-child(3) { --wallet-icon: url("../assets/demo-studio/loyalty.webp"); background: #fbf4e2; }
.wallet-balances > div:nth-child(4) { --wallet-icon: url("../assets/demo-studio/wallet.webp"); background: #e7efde; }
.wallet-balances dd { font-size: clamp(1.5rem, 3vw, 2.55rem); }
#wallet-receipts {
  margin-top: .85rem;
  padding: .65rem .9rem;
  border: 1px solid var(--studio-line);
  border-radius: .9rem;
  background: var(--studio-paper);
}
#wallet-receipts summary { display: flex; align-items: center; gap: .58rem; min-height: 2.75rem; list-style: none; }
#wallet-receipts summary::-webkit-details-marker { display: none; }
#wallet-receipts summary::after {
  width: .55rem; height: .55rem; margin-inline-start: auto; border: solid #2b5740;
  border-width: 0 2px 2px 0; transform: rotate(45deg); content: "";
}
#wallet-receipts[open] summary::after { transform: rotate(225deg); }
.studio-disclosure-icon { width: 2.15rem; height: 2.15rem; }

#plus-map { background: #eaf1ea; }
.demo-map {
  min-height: clamp(18rem, 34vw, 27rem);
  border-radius: var(--demo-radius);
  background: #dceadf url("../assets/demo-studio/map-texture.webp") center / cover no-repeat;
  box-shadow: var(--studio-shadow);
}
.studio-map-note {
  position: absolute;
  inset: .65rem auto auto .65rem;
  padding: .3rem .56rem;
  border: 1px solid #a6c0ad;
  border-radius: .48rem;
  background: #f8fbf2ee;
  color: #2c553b;
  font-size: .81rem;
  font-weight: 680;
}
.map-pin { box-shadow: 0 .26rem .69rem #143e2738; }
.map-controls { min-height: 100%; }
.map-controls .demo-step-head { margin-bottom: 0; }
.map-place { padding: .75rem; border: 1px solid #c4d6bd; border-radius: .75rem; background: #e7f0e3; }
.map-results .place-button { padding-inline: .45rem; border-radius: .4rem; }
.map-results .place-button:hover { background: #edf5e9; }

.studio-family-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: stretch; gap: .85rem; }
.studio-family-cover {
  display: grid;
  align-content: start;
  min-height: clamp(18.5rem, 35vw, 28rem);
  padding: clamp(1rem, 3.05vw, 2.25rem);
  border: 1px solid #638872;
  border-radius: var(--demo-radius);
  background: linear-gradient(180deg, #123528fa 6%, #123528e0 37%, #12352846 83%),
    #123528 url("../assets/demo-studio/family-scene.webp") center center / cover no-repeat;
  color: #f9f4e7;
}
.studio-family-cover .demo-icon { width: clamp(3.2rem, 5vw, 4.5rem); margin-bottom: .55rem; border-color: #e1efd544; background: #e1ecd01c; }
.studio-family-cover .eyebrow { color: var(--studio-champagne); }
.studio-family-cover h2 { max-width: 12ch; margin: .48rem 0 .68rem; font-size: clamp(2.05rem, 4.4vw, 4rem); }
.studio-family-cover p:not(.eyebrow) { max-width: 34ch; color: #e3eedd; }
.studio-family-form > h3 { margin-bottom: .74rem; }
.studio-family-form .family-member { margin-block: .3rem .8rem; padding: .65rem .7rem .7rem; border: 1px solid #d6e2d0; border-radius: .7rem; background: #f2f7ef; }
#family-remaining { padding: .55rem .69rem; border-radius: .57rem; background: #e6efde; color: #31563c; }

#shopping { background: #eee9da; }
.studio-shopping-list { background: linear-gradient(90deg, #fffaf0eb 40%, #fffaf0a8), #fffaf0 url("../assets/demo-studio/receipt-paper.webp") right center / cover no-repeat; }
.chat-panel { background: #e8f1e7; }
.chat-panel .demo-step-head { border-bottom: 1px solid #d0dfd0; padding-bottom: .7rem; }
.chat-messages > li { margin-bottom: .45rem; padding: .72rem .85rem; border: 1px solid #cbdfc9; border-radius: .85rem .85rem .2rem .85rem; background: #f7fbf3; }
.chat-messages > li:last-child { border: 1px solid #cbdfc9; }
.chat-messages > .empty-row { border-style: dashed; }
.shopping-items > li { padding-inline: .28rem; }

#topup .workflow-grid { align-items: stretch; }
#topup-form .demo-total { border: 1px solid #d9dfcc; border-radius: .65rem; padding: .65rem .8rem; background: #eef3e5; }
#topup-cost { color: #214b35; font-size: 1.14rem; }
.renewal-panel {
  background: linear-gradient(90deg, #16382ef5 16%, #16382ed7 57%, #16382e69 89%),
    #16382e url("../assets/demo-studio/topup-scene.webp") right center / cover no-repeat;
  color: var(--studio-paper);
}
.renewal-panel .demo-step-head h3 { color: var(--studio-paper); }
.renewal-panel p { max-width: 45ch; color: #e2ebde; }
.renewal-panel .button-dark { background: var(--lime); color: #163528; }
.renewal-panel :focus-visible, .gift-inbox :focus-visible { outline-color: var(--lime); }

.digital-section { background: #eee8d8; }
.digital-grid li { border-color: #d5d5be; box-shadow: var(--studio-shadow); }
.digital-grid li:nth-child(2) { background: #fcf5e4; }
.digital-grid li:nth-child(3) { background: #edf3e7; }
.gift-layout { align-items: stretch; }
.gift-form { background: #fff9eb; }
.gift-inbox {
  border-color: #6b8a71;
  background: linear-gradient(90deg, #15372cfb 10%, #15372cda 48%, #15372c90 85%),
    #15372c url("../assets/demo-studio/digital-scene.webp") right center / cover no-repeat;
  color: #fdf7e5;
}
.gift-inbox .demo-step-head h3 { color: #fdf7e5; }
.gift-inbox #gift-inbox-owner { color: #e1ecdc; }
.gift-inbox .data-list > li {
  margin-top: .56rem;
  padding: .78rem;
  border: 1px solid #cadfbb52;
  border-radius: .75rem;
  background: #284e3fee;
  color: #f7f2de;
}
.gift-inbox .data-list small { color: #d7e9d2; }
.studio-footer { background: #0d281d; }
.studio-footer nav { display: flex; flex-wrap: wrap; gap: .48rem .9rem; }
.studio-footer nav a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1020px) {
  .retail-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retail-wallet { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-family-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .studio-family-form .family-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-family-form .family-fields button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 790px) {
  #scan-go .workflow-grid, .wallet-layout, .activation-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .demo-hero-inner { min-height: 0; }
  .demo-hero-copy { width: 100%; padding: 1.5rem 1.05rem 1rem; }
  .demo-hero h1 { font-size: clamp(2.6rem, 10.2vw, 4.4rem); }
  .demo-hero-art { position: relative; inset: auto; order: 1; height: clamp(10.25rem, 52vw, 17rem); }
  .demo-hero-inner::after { display: none; }
  .demo-section { scroll-margin-top: 4rem; }
  .studio-heading { grid-template-columns: minmax(0, 1fr); gap: .52rem; padding: 1rem; }
  .studio-heading > p { justify-self: start; }
  .demo-scene > div { max-width: 100%; }
  .retail-demo-grid, .retail-wallet, .studio-family-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-family-cover { min-height: 18.25rem; }
  .map-pin { min-height: 2.65rem; max-width: 43%; white-space: normal; }
}
@media (max-width: 400px) {
  .wallet-balances > div { padding-inline: .62rem; padding-block-start: 2.4rem; }
  .wallet-balances > div::after { inset: .42rem auto auto .61rem; }
  .studio-family-form .family-fields { grid-template-columns: minmax(0, 1fr); }
  .studio-family-form .family-fields button { grid-column: auto; }
  #demo-catalog > li { padding: .52rem; }
}

.activation-finance {
  margin-top: .78rem;
  padding: clamp(.78rem, 2vw, 1.15rem);
  border: 1px solid #d1be8b;
  border-radius: .85rem;
  background: linear-gradient(142deg, #fff8e6, #eee9d1);
  color: #234733;
}
.activation-finance .demo-step-head { margin-bottom: .6rem; }
.activation-finance .demo-icon { border-color: #d8c58d; background: #fcf2d5; }
.activation-finance .button { margin-top: .7rem; }
.activation-finance-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .68rem; }
.activation-finance-results > div { padding: .57rem .63rem; border: 1px solid #c5d3bd; border-radius: .55rem; background: #f2f7e9; }
.activation-finance-results dt { font-size: .9rem; color: #3d6047; }
.activation-finance-results dd { font-weight: 720; }
@media (max-width: 430px) {
  .activation-finance-results { grid-template-columns: minmax(0, 1fr); }
}
