/* ZLD5 — the landing-page chat demo (coach-carl-demo.js renders into #cc-demo). Isolated: nothing here styles the
   rest of the page. Brand: deep page, glass card, amber for Carl's accents, visitor bubbles in the Telegram amber. */
.hero-demo[hidden] { display: none; }
.hero-demo { width: 100%; max-width: 400px; margin: 0 auto; }
.cc-demo-on .hero-demo[hidden] { display: block; visibility: hidden; min-height: 638px; } /* ZLD13(g): the chat's column is held from the first paint; the frame fades into it. ZDM1(B): 638 = the 26px air above the phone + the 612px phone, now that the label above it is gone */
/* ZLD10 (founder-directed 2026-11-19): WHEN THE CHAT IS PRESENT, THE CHAT IS THE HERO'S CALL TO ACTION. The hero's CTA
   stack (button, price line, Journal link) is hidden. All keyed to the activation class, so a page with the flag off is
   byte-for-byte unchanged. (ZDM1: the label above the chat and the hero video below it are gone.) */
:is(.hero--demo, .cc-demo-on .hero) .hero-text .cta-stack { display: none; }
/* ZLD11(e) (founder 2026-11-19): THE CHAT IS THE PAGE'S OWN PHONE. These values mirror index.html's PB-4 .iphone frame as the
   week section dresses it (.wk-frame): bezel #2E2620 at 42px, body #000 at 37px, the island 82×22, the screen #15110D at
   30px, Carl's bubbles #241E18 bordered #3A3028, the visitor's solid #FFB547, mono time stamps, the home bar. The zld5 pin
   reads the page's rules and holds these equal. Width = the phone INSIDE the hero video (about 78% of the video's frame: 300px on desktop, founder 2026-11-19). Every string is still text, never markup. */
.cc-demo { width: 300px; max-width: 100%; margin: 0 auto; position: relative; background: #2E2620; border-radius: 42px; padding: 5px; box-shadow: 0 24px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.6); color: #F4EADB; font-family: "IBM Plex Sans", "IBM Plex Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.cc-demo__body { background: #000; border-radius: 37px; padding: 8px 8px 16px; position: relative; }
.cc-demo__status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 14px 0 16px; color: #F4EADB; font-size: 0.72rem; font-family: "IBM Plex Mono", monospace; }
.cc-demo__island { position: absolute; left: 50%; transform: translateX(-50%); top: 1px; width: 82px; height: 22px; background: #000; border-radius: 12px; }
.cc-demo__si { display: inline-flex; align-items: center; gap: 5px; }
.cc-demo__si svg { display: block; fill: currentColor; }
.cc-demo__screen { background: #15110D; border-radius: 30px; height: 552px; display: flex; flex-direction: column; padding: 0 10px 12px; overflow: hidden; }
.cc-demo__head { display: flex; align-items: center; gap: 8px; margin: 0 -10px; padding: 9px 12px 8px; border-bottom: 1px solid #2E2620; background: #15110D; position: relative; z-index: 2; }
.cc-demo__back { display: inline-flex; align-items: center; justify-content: center; width: 20px; color: #F4EADB; flex: none; }
.cc-demo__head img { width: 26px; height: 26px; display: block; flex: none; }
.cc-demo__who { min-width: 0; }
.cc-demo__who strong { display: block; font-size: 13px; font-weight: 700; color: #F4EADB; line-height: 1.2; }
.cc-demo__who span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10px; color: #A8977F; }
.cc-demo__log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 10px 0 8px; scroll-behavior: auto; scrollbar-width: none; } /* ZLD13 (founder's screen recording, 2026-11-19): with smooth scrolling on the log, iOS Safari scrolled the PAGE when a bubble landed (the composer drifted to mid-screen before any tap); the log is a few lines tall, so it scrolls instantly and never moves the page */
.cc-demo__log::-webkit-scrollbar { display: none; } /* a phone shows no scrollbar; the log still scrolls */
.cc-demo__log > :first-child { margin-top: auto; } /* the conversation gathers from the bottom, like a phone */
.cc-demo__tstamp { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: #A8977F; text-align: center; margin: 2px 0 1px; }
.cc-demo__row { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; } /* your side right, Carl's left, like a real thread */
.cc-demo__row--carl { align-self: flex-start; }
.cc-demo__row--visitor { align-self: flex-end; position: relative; } /* ZDM3: the undo × sits on this row's corner */
.cc-demo__ava { width: 16px; height: 16px; flex: none; margin-bottom: 2px; }
.cc-demo__msg { border-radius: 12px; padding: 7px 10px; font-size: 12.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; } /* ZDM3: a bubble reads like a text message even where the page around it is centred (the phone hero) */
.cc-demo__msg--carl { background: #241E18; border: 1px solid #3A3028; color: #F4EADB; }
.cc-demo__msg--visitor { background: #FFB547; border: 1px solid #FFB547; color: #15110D; }
.cc-demo__msg--system { align-self: center; max-width: 92%; color: #A8977F; font-size: 10.5px; text-align: center; font-family: "IBM Plex Mono", monospace; }
/* ZDG10: the brief-building notice stands out — amber callout, body font, a line that fills over about twenty seconds */
.cc-demo__msg--wait { align-self: stretch; max-width: 100%; margin: 4px 2px; padding: 10px 12px 12px; background: rgba(255, 181, 71, 0.12); border: 1px solid #FFB547; border-radius: 12px; color: #FFC470; font-size: 12.5px; font-weight: 600; line-height: 1.4; text-align: center; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cc-demo__wait-bar { position: relative; height: 3px; margin-top: 9px; border-radius: 2px; background: rgba(255, 181, 71, 0.22); overflow: hidden; }
.cc-demo__wait-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8%; border-radius: 2px; background: #FFB547; animation: cc-wait-fill 20s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
@keyframes cc-wait-fill { 0% { width: 8%; } 100% { width: 94%; } }
.cc-demo__typing { display: inline-flex; gap: 4px; padding: 9px 11px; background: #241E18; border: 1px solid #3A3028; border-radius: 12px; }
.cc-demo__typing i { width: 6px; height: 6px; border-radius: 50%; background: #CDBFA9; animation: cc-bounce 1.4s infinite ease-in-out; } /* founder 2026-11-19: a quiet lift, like a real phone, not a hop */
.cc-demo__typing i:nth-child(2) { animation-delay: 0.2s; } .cc-demo__typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes cc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-1.5px); opacity: 1; } }
.cc-demo__form[hidden] { display: none; } /* the hidden attribute must beat the flex rule once identity is asked (ZLD8) */
.cc-demo__form { display: flex; align-items: center; gap: 8px; margin: 0 -10px; padding: 8px 10px 2px; border-top: 1px solid #2E2620; background: #15110D; }
.cc-demo__form textarea { flex: 1 1 auto; min-height: 34px; max-height: 100px; resize: none; padding: 7px 12px; border-radius: 18px; border: 1px solid #3A3028; background: #1E1914; color: #F4EADB; font: inherit; font-size: 12.5px; line-height: 1.4; outline: none; }
.cc-demo__form textarea:focus { border-color: var(--accent, #FFB547); }
.cc-demo__send { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: none; background: #FFB547; color: #15110D; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cc-demo__send-arrow { display: block; }
.cc-demo__send-arrow path { stroke-width: 2.8; } /* the thicker up arrow from the video */
.cc-demo__send:disabled { opacity: 0.5; cursor: default; }
.cc-demo__home { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: 96px; height: 4px; border-radius: 2px; background: rgba(244,234,219,0.35); }
.cc-demo__sticky { position: fixed; right: 16px; bottom: 16px; z-index: 60; padding: 12px 18px; border-radius: 999px; border: none; background: var(--accent, #FFB547); color: #15110D; font: inherit; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.45); cursor: pointer; }
.cc-demo__sticky[hidden] { display: none; }
/* ZLD8: the page forces the hero columns into a centred FLEX row from 768px up (index.html's inline sheet, loaded before
   this one). On activation the hero is a grid again: copy | chat. */
@media (min-width: 768px) {
  /* ZLD9(c) (founder 2026-11-19): the first row (copy | chat) is at least the viewport minus the page header, so the hero
     is one full screen. ZDM1(A): the video row it used to hold below the fold is gone; the row's height is kept. */
  :is(.hero.hero--demo, .cc-demo-on .hero) .hero-cols { display: grid !important; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(calc(100svh - 90px), auto); gap: 28px 40px; align-items: start; justify-content: stretch; }
  :is(.hero.hero--demo, .cc-demo-on .hero) .hero-text { top: 0; align-self: center; } /* the copy sits level with the chat, no empty well beneath it */
  :is(.hero.hero--demo, .cc-demo-on .hero) .hero-demo { padding-top: 26px; } /* air between the nav and the chat */
}
/* the copy then the chat, in the markup's own order (ZDM1: no order rules, so a column wrapped around the chat keeps its place) */
@media (max-width: 720px) { .cc-demo-on .hero-demo[hidden] { min-height: 600px; } :is(.hero--demo, .cc-demo-on .hero) .hero-cols { grid-template-columns: 1fr; } .cc-demo { width: min(380px, 96vw); } .cc-demo__screen { height: 540px; } .cc-demo__msg { font-size: 15px; } .cc-demo__form textarea, .cc-demo__panel input[type="text"], .cc-demo__panel input[type="email"] { font-size: 16px; } .cc-demo__form textarea { min-height: 40px; padding: 9px 14px; } .cc-demo__send { width: 36px; height: 36px; } } /* ZLD13(c) (founder 2026-11-19: "just stay in that zoomed-in state"): on a phone the chat is ALWAYS nearly the screen's width, no zoom on focus, no animated width change (the animated change also left iOS drawing the caret below the phone) */
@media (prefers-reduced-motion: reduce) { .cc-demo__typing i { animation: none; opacity: 0.7; } .cc-demo__wait-bar::after { animation: none; width: 100%; } } /* the spec: Reduce Motion means no typing animation; the dots simply sit */
.cc-demo__hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.cc-demo__panel { margin: 0 -10px; padding: 10px 12px 12px; border-top: 1px solid #2E2620; background: #15110D; display: grid; gap: 8px; }
.cc-demo__panel--quiet { padding: 6px 12px 8px; justify-items: end; }
.cc-demo__panel--actions { grid-auto-flow: row; justify-items: stretch; } /* ZDG14: the ways on from a closed chat */
.cc-demo__panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-demo__legal { font-size: 10.5px; color: #A8977F; }
.cc-demo__legal a { color: #CDBFA9; }
.cc-demo__panel label { display: grid; gap: 4px; font-size: 11.5px; color: #CDBFA9; }
.cc-demo__panel input[type="text"], .cc-demo__panel input[type="email"] { padding: 8px 10px; border-radius: 10px; border: 1px solid #3A3028; background: #1E1914; color: #F4EADB; font: inherit; font-size: 12.5px; outline: none; }
.cc-demo__check { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: #CDBFA9; }
.cc-demo__check input { margin-top: 3px; }
.cc-demo__notice { font-size: 10.5px; color: #A8977F; line-height: 1.45; margin: 0; }
.cc-demo__notice a { color: var(--accent-soft, #FFC470); }
.cc-demo__btn { padding: 10px 12px; border-radius: 10px; border: none; background: #FFB547; color: #15110D; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cc-demo__btn:disabled { opacity: 0.55; cursor: default; }
.cc-demo__btn--quiet { background: transparent; color: #CDBFA9; border: 1px solid #3A3028; }
.cc-demo__code { letter-spacing: 0.35em; font-size: 1.15rem; text-align: center; font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", monospace; }
.cc-demo__error { font-size: 11px; color: #F6B8A8; min-height: 0; }
.cc-demo__turnstile { min-height: 0; }
/* ZDM1(C): the quick replies under Carl's first question: small pills in the thread, the visitor's amber on hover */
.cc-demo__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 2px 22px; }
.cc-demo__chip { padding: 6px 11px; border-radius: 999px; border: 1px solid #FFB547; background: transparent; color: #FFC470; font: inherit; font-size: 12px; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cc-demo__chip:hover, .cc-demo__chip:active { background: #FFB547; color: #15110D; }
.cc-demo__chip--type { border-color: #3A3028; color: #CDBFA9; }
.cc-demo__chip--type:hover, .cc-demo__chip--type:active { background: #241E18; color: #F4EADB; }
/* ZDM3: the take-back: a small × on the corner of the visitor's chip bubble; the visitor's amber ring on the card's ground */
.cc-demo__undo-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid #FFB547; background: #15110D; color: #FFC470; font: 500 14px/18px "IBM Plex Sans", system-ui, sans-serif; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cc-demo__undo-x:hover, .cc-demo__undo-x:active { background: #FFB547; color: #15110D; }
.cc-demo__undo-x:disabled { opacity: 0.55; cursor: default; }
/* ZDM1(D) AND THE ZDM3 KEYBOARD FITS WERE ROLLED BACK (founder 2026-11-26: the live page's phone chat, the drawn phone with
   nothing happening to the layout on focus, typed and spaced better than three attempts at a card sized to the keyboard).
   On a phone the drawn phone stays, exactly as on the live page; only the chips and the undo × get phone-sized here. */
@media (max-width: 600px) {
  .cc-demo__chip { font-size: 14px; padding: 8px 13px; }
  .cc-demo__undo-x { width: 24px; height: 24px; font-size: 16px; line-height: 22px; top: -9px; right: -9px; }
}

