/* Demo player (2026-09-27): the back office, simulated, on top of our own page. Never leaves newfront.com.au. */
.dm { position: fixed; inset: 0; z-index: 260; background: radial-gradient(80% 60% at 50% 10%, rgba(46,139,154,.18), rgba(12,27,46,0) 70%), var(--ink); color: var(--sand); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .35s var(--ease); }
.dm[hidden] { display: none; }
.dm.is-open, .dm.still { opacity: 1; transition: none; }
.dm button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid rgba(244,239,230,.08); flex: 0 0 auto; }
.dm-brand b { display: block; font: 800 18px/1.1 var(--display); }
.dm-brand span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.dm-x { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.25); transition: background .2s; }
.dm-x:hover { background: rgba(244,239,230,.08); }
.dm-x svg { width: 20px; height: 20px; }
.dm-body { flex: 1; display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(18px, 3vh, 36px) var(--gutter); max-width: 1280px; width: 100%; margin: 0 auto; }
.dm-stage { display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); }
.dm-who { display: none; }

/* Phones */
.dm-ph { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .4s, transform .4s var(--ease); }
.dm-ph figcaption { font-size: 13px; font-weight: 600; color: var(--slate-2); letter-spacing: .02em; }
.dm-ph figcaption small { color: var(--slate); font-weight: 500; margin-left: 4px; }
.dm-ph.dim { opacity: .45; transform: scale(.96); }
.dm-dev { --h: min(600px, calc(100svh - 190px)); height: var(--h); aspect-ratio: 9 / 18.6; border-radius: 40px; background: #000; border: 9px solid #1b2a40; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px #2c3d58; overflow: hidden; position: relative; }
.dm-scr { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; }
.dm-pop { animation: dmpop .45s var(--ease) both; }
@keyframes dmpop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* Screen: the plumber's site */
.dm-site { position: relative; flex: 1; background: #111 center top / cover no-repeat; }
.dm-tap { position: absolute; left: 25%; bottom: 3.2%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--gold); animation: dmtap 1.4s ease-out infinite; }
@keyframes dmtap { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.dm-tip { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); white-space: nowrap; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 99px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }

/* Screen: calling */
.dm-call { flex: 1; background: linear-gradient(180deg, #2a3a55, #0b1320); display: flex; flex-direction: column; align-items: center; padding: 64px 16px 36px; text-align: center; }
.dm-call .av { width: 72px; height: 72px; border-radius: 50%; background: #F26B1D; display: grid; place-items: center; font: 800 26px/1 var(--display); color: #fff; }
.dm-call b { font: 700 18px/1.2 var(--display); margin-top: 16px; }
.dm-call .st { margin-top: 6px; color: var(--slate-2); position: relative; height: 18px; width: 100%; }
.dm-call .st span { position: absolute; inset: 0; }
.dm-call .st .a { animation: dmout 0s 2.6s forwards; }
.dm-call .st .b { opacity: 0; animation: dmin .3s 2.6s forwards; color: #ff8a80; }
@keyframes dmout { to { opacity: 0; } }
@keyframes dmin { to { opacity: 1; } }
.dm-call .end { margin-top: auto; width: 58px; height: 58px; border-radius: 50%; background: #e5484d; display: grid; place-items: center; }
.dm-call .end svg { width: 26px; height: 26px; transform: rotate(135deg); }

/* Screen: lock screen with notifications */
.dm-lock { flex: 1; background: linear-gradient(170deg, #1d3a55 0%, #0f2033 55%, #0a1422 100%); padding: 40px 10px 16px; display: flex; flex-direction: column; gap: 8px; }
.dm-lock .tm { text-align: center; font: 800 54px/1 var(--display); color: #eef3fb; }
.dm-lock .dt { text-align: center; color: var(--slate-2); font-size: 12.5px; margin: 4px 0 18px; }
.dm-note { background: rgba(244,239,230,.13); backdrop-filter: blur(10px); border-radius: 16px; padding: 10px 12px; }
.dm-note small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); margin-bottom: 2px; }
.dm-note b { font-weight: 600; }

/* Screen: text thread */
.dm-thr { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dm-thr .hd { padding: 30px 12px 10px; text-align: center; background: #0b1320; border-bottom: 1px solid #1a2436; }
.dm-thr .hd .av { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; font: 800 14px/1 var(--display); background: #F26B1D; color: #fff; }
.dm-thr .hd b { font-size: 12.5px; font-weight: 600; }
.dm-thr .ms { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.dm-m { max-width: 86%; padding: 8px 11px; border-radius: 17px; }
.dm-m.in { background: #26324a; color: #eef3fb; align-self: flex-start; border-bottom-left-radius: 5px; }
.dm-m.out { background: #2F7CF6; color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.dm-m b { display: block; }
.dm-m a { text-decoration: underline; font-weight: 700; color: inherit; }
.dm-m .num { color: #8fc1ff; text-decoration: underline; }

/* Screen: quote page */
.dm-q { flex: 1; background: #F4EFE6; color: #16202e; padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.dm-q .qb { display: flex; align-items: center; gap: 8px; font: 800 13.5px/1.1 var(--display); }
.dm-q .qb i { width: 26px; height: 26px; border-radius: 8px; background: #F26B1D; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.dm-q h4 { font: 800 19px/1.15 var(--display); margin: 2px 0 0; }
.dm-q .ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #ddd3c2; font-size: 12px; }
.dm-q .tot { display: flex; justify-content: space-between; font: 800 15px/1 var(--display); padding-top: 4px; }
.dm-q .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #6b7280; margin-top: 2px; }
.dm-q .slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dm-q .slots span { border: 1.5px solid #cfc5b3; border-radius: 10px; padding: 6px; text-align: center; font-size: 11.5px; font-weight: 600; }
.dm-q .slots .pick { border-color: #F26B1D; background: #fff1e8; animation: dmpick .3s 1.2s both; }
@keyframes dmpick { from { border-color: #cfc5b3; background: transparent; } }
.dm-q .fld { background: #fff; border: 1px solid #ddd3c2; border-radius: 10px; padding: 7px 9px; font-size: 11.5px; }
.dm-q .fld small { display: block; font-size: 9.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.dm-q .acc { margin-top: auto; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; color: #fff; background: #F26B1D; position: relative; }
.dm-q .acc .a { animation: dmout 0s 2.8s forwards; }
.dm-q .acc .b { position: absolute; inset: 0; display: grid; place-items: center; background: #1f9d55; border-radius: 12px; opacity: 0; animation: dmin .3s 2.8s forwards; }

/* Screen: calendar */
.dm-cal { flex: 1; background: #fff; color: #111; padding: 30px 0 0; display: flex; flex-direction: column; }
.dm-cal .ch { padding: 0 14px 8px; border-bottom: 1px solid #eee; }
.dm-cal .ch small { color: #e5484d; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.dm-cal .ch b { display: block; font: 800 20px/1.1 var(--display); }
.dm-cal .grid { position: relative; flex: 1; }
.dm-cal .hr { height: 44px; border-top: 1px solid #f0f0f0; font-size: 10px; color: #999; padding: 2px 0 0 8px; }
.dm-cal .ev { position: absolute; left: 44px; right: 10px; border-radius: 8px; padding: 6px 8px; font-size: 11px; line-height: 1.3; }
.dm-cal .ev b { display: block; font-size: 11.5px; }
.dm-cal .ev.old { background: #eef1f5; color: #555; border-left: 3px solid #b9c2cf; }
.dm-cal .ev.new { background: #fff1e8; border-left: 3px solid #F26B1D; }

/* Caption + controls */
.dm-cap { align-self: center; }
.dm-n { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.dm-cap h3 { font: 800 clamp(26px, 2.6vw, 38px)/1.08 var(--display); margin-top: 10px; }
.dm-d { color: var(--slate-2); font-size: 16px; line-height: 1.55; margin-top: 12px; min-height: 5em; }
.dm-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dm-cta:empty { display: none; }
.dm-ctl { display: flex; gap: 8px; margin-top: 22px; }
.dm-ctl button { min-height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.25); }
.dm-ctl button:disabled { opacity: .35; cursor: default; }
.dm-ctl .nx { background: var(--gold); color: var(--ink); box-shadow: none; margin-left: auto; }
.dm-dots { display: flex; gap: 6px; margin-top: 18px; }
.dm-dots button { flex: 1; height: 5px; border-radius: 3px; background: rgba(244,239,230,.15); padding: 0; position: relative; overflow: hidden; }
.dm-dots button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.dm-dots button.done::after { transform: none; }
.dm-dots button.on::after { transform: none; animation: dmbar var(--dur, 6s) linear both; }
.dm.paused .dm-dots button.on::after, .dm.still .dm-dots button.on::after { animation: none; transform: none; }
@keyframes dmbar { from { transform: scaleX(0); } }
.dm-fine { margin-top: 20px; font-size: 11.5px; color: var(--slate); }

/* Phone-sized screens: one phone at a time, the one where the action is */
@media (max-width: 820px) {
  .dm-top { padding: 10px 16px; }
  .dm-brand b { font-size: 16px; }
  .dm-body { grid-template-columns: 1fr; gap: 14px; padding: 10px 16px 18px; align-items: start; }
  .dm-stage { flex-direction: column; align-items: center; gap: 10px; }
  .dm-who { display: flex; gap: 6px; background: rgba(244,239,230,.07); padding: 4px; border-radius: 99px; }
  .dm-who button { padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--slate-2); }
  .dm-who button[aria-pressed="true"] { background: var(--sand); color: var(--ink); }
  .dm-ph figcaption { display: none; }
  .dm-ph.dim { display: none; }
  .dm-dev { --h: clamp(380px, calc(100svh - 360px), 560px); border-radius: 34px; border-width: 7px; }
  .dm-cap h3 { font-size: 23px; margin-top: 6px; }
  .dm-d { font-size: 14.5px; margin-top: 6px; min-height: 0; }
  .dm-ctl { margin-top: 14px; }
  .dm-dots { margin-top: 12px; }
  .dm-fine { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm, .dm * { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
}
.dm.still, .dm.still * { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
.dm-q .acc.pay { background: #111; }
