/* Relign live call page: staff test page (index.html) and public demo (demo.html). One stylesheet, one script (call.js).
   Rewritten 2026-10-08 (UI redesign, taste-skill + redesign-skill). Design read: a live product demo of an AI phone call
   for estate-agency owners, calm product-grade language, relign.co's palette and type. Dials: variance 4, motion 4,
   density 4. Rules kept here: ONE accent (Relign blue), green only as "done", nothing visible under 13 px (except the
   iPhone's own iOS labels, drawn to scale), motion only for state changes, all of it off under reduced motion.
   The night call -> 8:30 am morning switch is the story, not a theme setting. */

:root {
  --night1: #0B1128; --night2: #16204D; --day1: #EAF0FB; --day2: #F5F7FC;
  --accent: #2F6FDB; --bright: #4A90E8; --tint: #9EC2F7; --ink: #0E1530; --muted: #6B7590;
  --text: #F4F6FB; --text2: rgba(244,246,251,.68); --text3: rgba(244,246,251,.5);
  --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.18); --surface: rgba(255,255,255,.035);
  --ok: #4CC38A; --okInk: #15804A; --okBg: #E3F5EA; --bad: #E5675A; --red: #EB4E3D;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--night1); }
html:has(body.morning) { background: var(--day1); }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--text); background: radial-gradient(120% 90% at 70% 0%, var(--night2) 0%, var(--night1) 62%); background-attachment: fixed; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.morning { color: var(--ink); background: linear-gradient(160deg, var(--day1) 0%, var(--day2) 70%); }
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

/* the honest label, always on screen */
.label { position: relative; z-index: 5; padding: 14px 20px 0; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--text2); }
body.morning .label { color: rgba(14,21,48,.66); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ================= start screen ================= */
#start { max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 40px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding: 24px 0 40px; }
#start > div:first-child { min-width: 0; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--tint); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; }
h1 em { font-style: normal; color: var(--bright); }
.lede { font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.8); margin: 0 0 22px; max-width: 560px; }
.pv { position: relative; margin: 2px 0 16px; max-width: 620px; }
.pv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pv-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; border-radius: 8px; padding: 5px 11px 5px 8px; }
.pv-badge svg { width: 14px; height: 14px; fill: var(--accent); }
.pv-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.pv-box { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, var(--night2) 0%, var(--night1) 62%); box-shadow: inset 0 0 0 1px var(--line2), 0 30px 60px -30px rgba(0,0,0,.7); }
.pv-box iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.pv-dim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,17,40,.08), rgba(11,17,40,.22)); box-shadow: inset 0 0 0 1px var(--line2); border-radius: inherit; }
.pv-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pv-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.pv-bar i { display: block; height: 100%; width: 0; background: var(--bright); border-radius: 4px; }
.pv-foot span { font-size: 14px; color: var(--text2); }
.steps { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 600; color: rgba(255,255,255,.92); }
.steps b { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: rgba(74,144,232,.18); color: var(--tint); box-shadow: inset 0 0 0 1px rgba(74,144,232,.4); }
.try { display: inline-flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 12px 16px; font-size: 15px; color: rgba(255,255,255,.85); max-width: 560px; }
.try b { color: #fff; font-weight: 700; }
#start > .right { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.ready { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; color: var(--bright); }
.ready svg { width: 24px; height: 24px; fill: var(--bright); }
.form { background: #FBFCFE; color: var(--ink); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 32px 64px -28px rgba(4,10,40,.75); }
.form label { font-size: 14px; font-weight: 500; color: #4E5875; display: block; }
.form label .small { display: inline; font-weight: 400; }
.form input[type=text], .form input[type=email], .form select { display: block; margin-top: 6px; font: inherit; font-size: 16px; border: 1px solid rgba(14,21,48,.16); border-radius: 12px; padding: 11px 12px; color: var(--ink); background: #fff; width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,219,.2); }
/* two ways in (public page): Try it now, or a private demo on your own listings */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line2); }
.paths button { font: inherit; font-size: 14.5px; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 8px; background: transparent; color: var(--text2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.paths button[aria-selected="true"] { background: #FBFCFE; color: var(--ink); }
.paths button:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.form .fhead { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: #3E4865; }
.form.built { gap: 10px; }
.form.built .b-k { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--okInk); }
.form.built h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.form.built p { margin: 0; font-size: 15px; line-height: 1.45; color: #3E4865; }
.form .link { align-self: flex-start; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* a private demo: the agency's logo, its after-hours line, its listing photos */
.agency-logo { display: flex; width: fit-content; align-items: center; padding: 9px 14px; margin-bottom: 20px; background: #FBFCFE; border-radius: 12px; }
.agency-logo.on-dark { background: none; padding: 0; }
.agency-logo img { height: 30px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.iline { font-size: 11px; color: rgba(255,255,255,.62); margin-top: 2px; }
.card .ph { margin: -22px -24px 14px; height: 150px; border-radius: 20px 20px 0 0; overflow: hidden; background: #E8EDF6; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .check a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
body.private .cards { min-height: 400px; }

/* required fields: label, (hint), input, error under it */
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .field input, .form .field select { margin-top: 0; }
.form input[type=tel], .form input[type=url] { display: block; font: inherit; font-size: 16px; border: 1px solid rgba(14,21,48,.16); border-radius: 12px; padding: 11px 12px; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
.form .hint { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: #3E4865; }
.form .phone { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.form .phone select { padding-right: 6px; }
.form ::placeholder { color: #7A839C; opacity: 1; }
.form .ferr { display: none; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #B42A18; }
.form .field.invalid .ferr { display: block; }
.form .field.invalid input { border-color: #C4321F; }
.form .field.invalid input:focus { box-shadow: 0 0 0 3px rgba(196,50,31,.18); border-color: #C4321F; }
.form .tick { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.form .tick input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.staffbar { display: flex; flex-direction: column; gap: 10px; }
/* relign.co's own primary button (the shiny pill), kept as the brand's button */
.go { position: relative; border: 0; height: 54px; border-radius: 999px; color: #fff; font-family: var(--font); font-size: 17px; font-weight: 500; letter-spacing: -.005em; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; isolation: isolate; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #5B93FF 0%, #3A78EE 48%, #2A63D6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 6px rgba(10,20,80,.2), 0 0 0 1px rgba(33,86,196,.95), 0 12px 28px -10px rgba(47,111,219,.75); transition: filter .2s ease, transform .15s ease; }
.go::before { content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0)); z-index: -1; pointer-events: none; }
.go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); animation: rgxShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes rgxShine { 0%, 62% { left: -40%; } 88%, 100% { left: 130%; } }
.go:hover { filter: brightness(1.06); }
.go:active { transform: translateY(1px); }
.go:disabled { opacity: .55; cursor: default; transform: none; }
.go svg { width: 20px; height: 20px; }
.small { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 0; }
.err { color: #C4321F; font-size: 14px; font-weight: 600; margin: 0; }
/* on relign.co the page around the frame already has the headline and intro */
body.embedded #start { padding-top: 14px; }
body.embedded #start .kicker, body.embedded #start h1, body.embedded #start .lede { display: none; }
body.embedded #start > .right { margin-top: 0; }

/* ================= busy screen ================= */
#busy { min-height: calc(100vh - 40px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
#busy .box { max-width: 520px; }
#busy h2 { font-size: 34px; margin: 0 0 12px; letter-spacing: -.5px; }
#busy p { font-size: 18px; color: rgba(255,255,255,.8); line-height: 1.5; }

/* ================= the iPhone (CSS iPhone 15 Pro, after design/mockup-device-3d) ================= */
.device { position: sticky; top: 16px; width: 300px; perspective: 1600px; padding-bottom: 40px; }
.iphone { position: relative; width: 290px; height: 596px; margin: 0 auto; border-radius: 52px; padding: 4px;
  background: linear-gradient(140deg, #4a4b52 0%, #b9bac0 18%, #6e6f76 34%, #2b2c31 52%, #8d8e95 70%, #c9cacf 86%, #55565c 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), inset 0 0 1px 1px rgba(255,255,255,.35), 0 60px 80px -34px rgba(0,0,0,.75), 0 24px 40px -22px rgba(4,10,40,.6);
  transform: rotateY(-7deg) rotateX(3deg); transform-style: flat; }
/* flat, not preserve-3d: in a 3D context Chrome hit-tested the full-screen .icall layer above the end button, so the red
   button could not be clicked on desktop (Leo, 2026-10-08). The tilt still renders; clicks now land on the controls. */
.iphone::before { content: ""; position: absolute; inset: 4px; border-radius: 48px; background: #020205; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.iphone .btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #5d5e64, #c4c5ca 50%, #6a6b71); }
.iphone .b-action { left: -3px; top: 118px; height: 28px; }
.iphone .b-volup { left: -3px; top: 168px; height: 52px; }
.iphone .b-voldn { left: -3px; top: 230px; height: 52px; }
.iphone .b-power { right: -3px; top: 196px; height: 84px; }
.iphone .glare { position: absolute; pointer-events: none; z-index: 8; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 62%); mix-blend-mode: screen; }
.iphone .g1 { top: -30px; left: -26px; width: 170px; height: 230px; transform: rotate(-22deg); }
.iphone .g2 { bottom: 70px; right: -34px; width: 120px; height: 170px; opacity: .6; }
.iphone .edge { position: absolute; inset: 11px; border-radius: 41px; pointer-events: none; z-index: 7; background: linear-gradient(115deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.04) 100%); }
.floor { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 270px; height: 50px; pointer-events: none; background: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 62%); filter: blur(2px); }
.iscreen { position: absolute; inset: 11px; border-radius: 41px; overflow: hidden; color: #fff; font-family: -apple-system, "SF Pro Text", "SF Pro Display", var(--font); background: radial-gradient(120% 70% at 50% 0%, #3a4a86 0%, #1c2756 42%, #0B1128 100%); }
.iscreen .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 98px; height: 29px; border-radius: 20px; background: #000; z-index: 6; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; gap: 2px; transition: width .35s ease; }
.iscreen .island i { display: block; width: 2.5px; height: 4px; border-radius: 2px; background: #30D158; opacity: 0; transition: height .1s linear, opacity .3s; }
.iscreen .island.on { width: 108px; }
.iscreen .island.on i { opacity: 1; }
.iscreen .isbar { position: absolute; top: 14px; left: 28px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; z-index: 5; letter-spacing: -.01em; }
.iscreen .isbar .ic { display: flex; gap: 4px; align-items: center; }
.iscreen .isbar svg { height: 9.5px; fill: #fff; }
.icall { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 74px 22px 0; text-align: center; }
.icall .iname { font-size: 25px; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.icall .isub { margin-top: 6px; font-size: 16px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; min-height: 20px; }
.icall .isub .dots::after, .found .dots::after { content: "…"; animation: dots 1.4s steps(4) infinite; display: inline-block; width: 1em; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1em; } }
.icall .ihint { margin-top: 22px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); min-height: 16px; transition: color .2s; }
.icall .ihint.ai { color: var(--tint); }
.icall .iwave { margin-top: 10px; height: 34px; width: 180px; display: flex; align-items: center; justify-content: space-between; }
.icall .iwave i { display: block; width: 4px; border-radius: 3px; background: rgba(255,255,255,.22); height: 3px; transition: height .08s linear; }
.icall .iwave.ai i { background: var(--bright); } .icall .iwave.you i { background: #fff; }
.icall .ikeys { display: contents; } .ikeys .ibtn { display: none; } .icall .itext { display: contents; }
.igrid { position: absolute; left: 24px; right: 24px; bottom: 112px; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; justify-items: center; }
.ibtn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #fff; font-size: 11.5px; font-family: inherit; }
.ibtn span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.17); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.ibtn svg { width: 26px; height: 26px; fill: currentColor; }
.ibtn.on span { background: #fff; color: var(--ink); }
.ibtn.dim { opacity: .55; cursor: default; }
.iend { position: absolute; z-index: 4; left: 50%; bottom: 32px; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 0; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(235,78,61,.6); }
.iend svg { width: 30px; height: 30px; }
.iendhint { position: absolute; z-index: 4; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); pointer-events: none; }
.ihome { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 112px; height: 4.5px; border-radius: 3px; background: rgba(255,255,255,.85); z-index: 6; }
/* the shortlist arriving on the caller's phone */
.inotif { position: absolute; z-index: 9; top: 168px; left: 10px; right: 10px; pointer-events: none; opacity: 0; transform: translateY(-24px); transition: opacity .35s ease, transform .45s var(--ease); }
.inotif.show { opacity: 1; transform: none; }
.inotif .ib { display: flex; align-items: center; gap: 8px; background: rgba(245,245,247,.96); color: #111; border-radius: 16px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.inotif .ib i { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #25D366; } .inotif .ib i.sms { background: #34C759; } .inotif .ib i.email { background: var(--accent); }
.inotif .ib div { display: flex; flex-direction: column; min-width: 0; font-size: 11px; line-height: 1.25; } .inotif .ib b { font-size: 11.5px; }
.inotif .ib span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; } .inotif .ib small { font-size: 10px; color: #777; align-self: flex-start; }
/* the morning lock screen */
.iscreen.lock { background: linear-gradient(180deg, #BFD3FF 0%, #E6EEFF 55%, #F5F7FC 100%); color: var(--ink); }
.iscreen.lock .isbar { color: var(--ink); } .iscreen.lock .isbar svg { fill: var(--ink); } .iscreen.lock .ihome { background: rgba(14,21,48,.75); }
.iscreen.lock #clock { visibility: hidden; }
.ilock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 70px; }
.lock-date { font-size: 17px; font-weight: 700; color: var(--muted); }
.lock-time { font-size: 82px; font-weight: 300; letter-spacing: -2px; line-height: 1; margin-top: 4px; color: var(--ink); }
.notif { position: relative; z-index: 9; margin-top: 30px; width: 252px; border-radius: 22px; background: rgba(255,255,255,.96); padding: 12px 14px; border: 1px solid rgba(14,21,48,.08); box-shadow: 0 14px 34px rgba(13,22,49,.2); animation: drop .6s var(--ease) .4s backwards; }
.notif .app { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.notif .app i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.notif .app span { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.notif b { display: block; font-size: 14.5px; margin-top: 6px; } .notif p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
body.morning .device { position: relative; top: 0; }

/* ================= the call ================= */
/* Three parts, each with one job: the phone (the call itself), the board (what the caller gets: homes, the list),
   the feed (what the AI is doing in the agency's systems, in plain English). Captions run along the bottom. */
#call { position: relative; min-height: calc(100vh - 40px); padding: 20px 0 176px; }
.stage { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; grid-template-areas: "phone board feed"; column-gap: 40px; align-items: start; }
.stage > .device { grid-area: phone; } .stage > .board { grid-area: board; } .stage > .feed { grid-area: feed; }

/* --- the feed: "What the AI is doing" --- */
.feed { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 18px 18px 8px; max-height: calc(100vh - 220px); min-height: 280px; overflow: hidden; }
.feed-h h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.feed-h p { margin: 4px 0 0; font-size: 14px; color: var(--text2); line-height: 1.4; }
.sysrow { list-style: none; margin: 14px 0 0; padding: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.sy { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 9px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text2); box-shadow: inset 0 0 0 1px var(--line2); transition: color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.sy svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.sy[data-state="used"] { color: var(--text); }
.sy[data-state="work"] { color: #fff; background: rgba(47,111,219,.22); box-shadow: inset 0 0 0 1.5px var(--bright); }
.sy.crm { background: #fff; padding: 0 10px; box-shadow: none; }
.sy.crm .logo { display: block; height: 18px; width: auto; max-width: 96px; }
.sy.crm b.logo { height: auto; color: var(--ink); font-size: 14px; }
.sy.crm[data-state="work"] { box-shadow: 0 0 0 2px var(--night1), 0 0 0 4px var(--bright); }
.feedlist { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.feedlist .empty { font-size: 14px; color: var(--text3); line-height: 1.45; padding: 12px 2px; }
.step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 10px 12px; margin: 0; border-radius: 12px; animation: stepIn .35s var(--ease) both; }
.step .si { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--text2); }
.step .si svg { width: 17px; height: 17px; fill: currentColor; }
.step .sb { min-width: 0; padding-top: 1px; }
.step .sb b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); }
.step .sb > span { display: block; margin-top: 2px; font-size: 14px; color: var(--text2); line-height: 1.4; }
.step .sm { display: inline-flex; align-items: center; gap: 4px; padding-top: 2px; font-size: 13px; font-weight: 500; color: var(--text3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.step .sm svg { width: 14px; height: 14px; fill: var(--ok); }
.step[data-state="work"] { background: rgba(47,111,219,.14); }
.step[data-state="work"] .si { background: var(--accent); color: #fff; }
.step[data-state="work"] .sm { color: var(--tint); }
.step[data-state="work"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--bright), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: working 1.3s ease-in-out infinite; }
.step[data-state="bad"] .si { background: rgba(229,103,90,.18); color: var(--bad); }
.step.upd { animation: stepUpd .5s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes stepUpd { from { background-color: rgba(76,195,138,.14); } }
@keyframes working { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
/* the search, drawn: one bar per listing checked, the matches in blue */
.hits { display: flex; gap: 3px; margin-top: 8px; }
.hits i { width: 10px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.14); }
.hits i.hit { background: var(--bright); }

/* --- "Try saying": the live guide, one line at a time (sits under the headline, never over the homes) --- */
.guide { max-width: 560px; margin: 0 0 18px; padding: 12px 14px 12px; border-radius: 14px; background: rgba(47,111,219,.10); box-shadow: inset 0 0 0 1px rgba(74,144,232,.32); animation: fadeUp .3s var(--ease) both; }
.g-top { display: flex; align-items: center; gap: 10px; }
.g-k { font-size: 13px; font-weight: 700; color: var(--tint); }
.g-n { font-size: 13px; color: var(--text3); font-variant-numeric: tabular-nums; }
.g-act { margin-left: auto; display: flex; gap: 4px; }
.g-act button, .g-show { border: 0; background: none; color: var(--text2); font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.g-act button:hover, .g-show:hover { background: rgba(255,255,255,.08); color: #fff; }
.g-line { margin: 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; text-wrap: pretty; }
.g-line.g-plain { font-weight: 500; color: var(--text); }
.g-why { margin: 3px 0 0; font-size: 13px; color: var(--text2); }
.guide.min { padding: 0; background: none; box-shadow: none; margin-bottom: 12px; }
.g-show { padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--tint); }
.board:has(.guide:not(.hidden):not(.min)) .msg { max-height: calc(100vh - 400px); }
.try ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.try li { color: #fff; font-weight: 600; line-height: 1.4; }
.try li::marker { color: var(--tint); font-weight: 700; }

/* --- the board: what the caller gets --- */
.board { position: relative; min-width: 0; padding-top: 4px; }
.found { margin: 0 0 12px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; min-height: 1em; }
.found em { font-style: normal; color: var(--bright); }
.found.idle { font-size: 30px; color: rgba(255,255,255,.9); }
.found.ring { color: var(--tint); }
.hint { margin: 0 0 16px; max-width: 46ch; font-size: 16px; line-height: 1.5; color: var(--text2); }
.hint b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-size: 14px; font-weight: 500; color: var(--text); border-radius: 999px; padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--line2); animation: fadeUp .35s var(--ease) both; }
.chip.lit { color: var(--ink); background: #fff; box-shadow: none; }
.cards { position: relative; min-height: 240px; padding-top: 12px; }
.card { position: absolute; left: 0; top: 12px; width: min(600px, 100%); background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 24px 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 28px 56px -28px rgba(4,10,40,.9); transition: transform .5s var(--ease), opacity .35s ease, background-color .35s ease; transform-origin: 50% 0; }
.card.enter { animation: cardIn .5s var(--ease) backwards; }
.card.back { background: #CFD8EA; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.card.back > * { opacity: 0; }
.card > * { transition: opacity .25s ease; }
.card .k { font-size: 14px; color: var(--muted); }
.card .dev { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; line-height: 1.08; }
.card .unit { font-size: 17px; color: var(--muted); margin-top: 4px; }
.card .unit b { color: var(--ink); font-weight: 600; }
.card .money { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 14px; }
.card .price { font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.card .price.tbc { font-size: 26px; letter-spacing: 0; color: var(--muted); }
.card.said .price { color: var(--accent); }
.card .spec { font-size: 19px; font-weight: 600; }
.card .feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card .feats span { font-size: 14px; font-weight: 500; border-radius: 999px; padding: 6px 12px; background: #EEF2F9; color: #26304F; transition: background-color .3s, color .3s; }
.card .feats span.lit { background: var(--accent); color: #fff; }
.card .check { font-size: 14px; color: var(--muted); margin-top: 12px; }
.card .tag { position: absolute; top: 20px; right: 20px; font-size: 13px; font-weight: 600; color: #8A5A0E; background: #FFF1DA; border-radius: 8px; padding: 4px 9px; }
/* the viewing request, on the card itself */
.card .req { display: flex; align-items: center; gap: 10px; margin: 16px -24px -20px; padding: 12px 24px; border-top: 1px solid #E3E9F4; background: #F1F5FD; border-radius: 0 0 20px 20px; color: #1E3E86; font-size: 14px; animation: fadeUp .35s var(--ease) both; }
.card .req svg { width: 20px; height: 20px; fill: var(--accent); flex: none; }
.card .req b { font-weight: 700; }
.skel { position: relative; width: min(600px, 100%); height: 210px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; overflow: hidden; }
.skel i { display: block; height: 14px; border-radius: 6px; background: rgba(255,255,255,.08); margin-bottom: 14px; }
.skel i:nth-child(1) { width: 34%; } .skel i:nth-child(2) { width: 58%; height: 26px; } .skel i:nth-child(3) { width: 44%; height: 34px; margin-top: 22px; } .skel i:nth-child(4) { width: 70%; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
/* the personalised list on the caller's phone (WhatsApp, a text or an email) */
.msg { position: relative; z-index: 4; width: min(540px, 100%); max-height: calc(100vh - 300px); min-height: 260px; display: flex; flex-direction: column; background: #EFE7DE; color: #111B21; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 36px 72px -30px rgba(0,0,0,.8); animation: msgIn .45s var(--ease) both; }
.board.msg-on .chips, .board.msg-on .cards { display: none; }
.msg-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075E54; color: #fff; }
.msg-h .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #DFE5E7; color: #54656F; font-size: 13px; font-weight: 700; }
.msg-h div { display: flex; flex-direction: column; min-width: 0; }
.msg-h b { font-size: 15px; font-weight: 600; }
.msg-h small { font-size: 13px; opacity: .8; }
.msg .bubble { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 12px 14px 8px; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 22px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.12); -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.msg .bubble p { margin: 0 0 6px; }
.msg .li { display: flex; flex-direction: column; border-left: 3px solid #25D366; padding: 2px 0 2px 10px; margin: 6px 0; animation: fadeUp .4s var(--ease) both; }
.msg .li b, .msg .li .pr { font-size: 14px; } .msg .li .pr { font-weight: 700; margin-top: 1px; }
.msg .li .loc, .msg .li .ft, .msg .li .url { font-size: 13px; } .msg .li .loc { color: #54656F; } .msg .li .ft { color: #3B4A54; }
.msg .li .url { color: #027EB5; text-decoration: underline; word-break: break-all; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 13px; color: #667781; } .msg time i { font-style: normal; color: #53BDEB; }
.msg-f { font-size: 13px; color: #54656F; padding: 0 14px 10px; }
.msg.sms { background: #F2F2F7; } .msg.sms .msg-h { background: #E5E5EA; color: #111; } .msg.sms .bubble { background: #E9E9EB; border-radius: 18px 18px 18px 6px; } .msg.sms .li { border-color: #34C759; }
.msg.email { background: #F5F7FC; } .msg.email .msg-h { background: var(--night2); } .msg.email .bubble { border-radius: 12px; } .msg.email .subj { font-weight: 700; font-size: 15px; margin-bottom: 8px; } .msg.email .li { border-color: var(--accent); }

/* --- captions (GPT-Live's own transcripts) --- */
.captions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 40px 20px 26px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, rgba(11,17,40,0) 0%, rgba(11,17,40,.94) 45%); pointer-events: none; }
.who { font-size: 14px; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.who.ai { color: var(--tint); }
.cap { max-width: 920px; min-height: 2.5em; text-align: center; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; display: flex; align-items: flex-end; justify-content: center; text-wrap: balance; }
.cap .old { color: rgba(255,255,255,.38); }
.cap.ai .new { color: var(--tint); }

/* --- messages that are not part of the story (no answer, tap to hear, recording) --- */
.toasts { position: fixed; top: 44px; right: 20px; width: 330px; z-index: 70; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: #FBFCFE; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px -12px rgba(4,10,40,.7); font-size: 15px; font-weight: 600; animation: fadeUp .35s var(--ease) both; max-width: min(330px, calc(100vw - 40px)); }
.toast small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.toast .tick { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; font-size: 13px; }
.toast.bad .tick { background: #C4321F; }
.toast.out { opacity: 0; transition: opacity .4s ease; }
.toasts .toast:nth-last-child(n+3) { display: none; }

/* ================= after the call: saved to the CRM, then 8:30 am ================= */
#after { max-width: 1180px; margin: 0 auto; padding: 24px 0 60px; }
.saved { margin: 6px 0 64px; }
.saved-h { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.tile { flex: none; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 8px 10px; }
.tile img, .tile .logo { max-width: 100%; max-height: 100%; display: block; }
.tile .txt, .wt .txt { color: var(--ink); font-size: 14px; font-weight: 700; }
.saved-h .tile.big { width: 170px; height: 70px; padding: 12px 16px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(22,32,77,.08), 0 16px 34px -18px rgba(22,32,77,.5); }
.kicker.dark { color: var(--accent); margin-bottom: 6px; }
.saved-h h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1.05; }
.saved-h h2 em { font-style: normal; color: var(--accent); display: block; font-size: .62em; letter-spacing: -.01em; margin-top: 6px; }
.crmwin { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(22,32,77,.08), 0 40px 70px -40px rgba(22,32,77,.55); animation: cardIn .5s var(--ease) both; }
.crmbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #E6EAF2; background: #FAFBFD; }
.crmbar .tile.sm { width: 84px; height: 30px; padding: 4px 8px; box-shadow: 0 0 0 1px #E6EAF2; border-radius: 8px; }
.crmbar .path { font-size: 14.5px; color: var(--muted); } .crmbar .path i { font-style: normal; margin: 0 4px; } .crmbar .path b { color: var(--ink); }
.crmtag { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--okInk); background: var(--okBg); border-radius: 999px; padding: 4px 11px; }
.crmbody { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.ccard { padding: 24px; border-right: 1px solid #E6EAF2; }
.ccard .av { width: 54px; height: 54px; border-radius: 54px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.ccard .cn { font-size: 22px; font-weight: 700; margin-top: 10px; letter-spacing: -.02em; } .ccard .cs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ccard dl { margin: 0; } .ccard dl div { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid #EEF1F6; animation: fadeUp .4s ease both; }
.ccard dt { font-size: 13px; color: var(--muted); } .ccard dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.acts { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.acts-h { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; } .acts-h span { font-size: 13px; color: var(--okInk); background: var(--okBg); border-radius: 999px; padding: 2px 9px; }
.aitem { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; align-items: start; border: 1px solid #E6EAF2; border-radius: 14px; padding: 12px 14px; animation: fadeUp .45s var(--ease) both; }
.aitem > i { width: 34px; height: 34px; border-radius: 10px; background: #EAF0FB; display: block; position: relative; }
.aitem > i::after { content: ""; position: absolute; inset: 9px; background: var(--accent); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.aitem.t-call > i { --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z"/></svg>'); }
.aitem.t-note > i { --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 3h10l4 4v14H5zM8 10h8v2H8zm0 4h8v2H8z"/></svg>'); }
.aitem.t-task > i { --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>'); background: #FFF3E0; } .aitem.t-task > i::after { background: #E07B00; }
.aitem.t-msg > i { --m: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 4h16v12H8l-4 4z"/></svg>'); background: #E3F8EC; } .aitem.t-msg > i::after { background: #12A150; }
.aitem small { font-size: 13px; font-weight: 600; color: var(--muted); }
.aitem b { display: block; font-size: 16px; margin-top: 1px; } .aitem p { margin: 3px 0 0; font-size: 14px; color: #4A5470; line-height: 1.45; }
.aitem .ok { width: 24px; height: 24px; border-radius: 24px; background: var(--okBg); color: var(--okInk); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.works { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.works > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.works .wl { display: flex; flex-wrap: wrap; gap: 8px; }
.wt { background: #fff; border-radius: 9px; height: 34px; width: 104px; display: grid; place-items: center; padding: 6px 9px; box-shadow: 0 0 0 1px rgba(22,32,77,.08); }
.wt img { max-width: 100%; max-height: 22px; display: block; }
.fine { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 80ch; }
.am { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.03em; margin: 0 0 32px; line-height: 1.05; }
.am em { font-style: normal; color: var(--accent); }
.after-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.handover { background: #fff; border-radius: 22px 22px 22px 8px; padding: 26px 30px 24px; box-shadow: 0 0 0 1px rgba(22,32,77,.07), 0 30px 60px -36px rgba(22,32,77,.45); color: var(--ink); animation: fadeUp .5s ease both; }
.handover .k { font-size: 14px; font-weight: 700; color: var(--accent); }
.handover h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0 12px; letter-spacing: -.5px; line-height: 1.12; }
.rows { display: flex; flex-direction: column; }
.hrow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid #E4E9F3; font-size: 18px; animation: fadeUp .4s ease both; }
.hrow div:first-child { color: var(--muted); }
.hrow div:last-child { font-weight: 700; }
.task { margin-top: 16px; background: linear-gradient(180deg, #5B93FF 0%, #3A78EE 48%, #2A63D6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 28px -12px rgba(47,111,219,.7); color: #fff; border-radius: 18px; padding: 14px 20px; animation: fadeUp .45s ease both; }
.task small { display: block; font-size: 14px; font-weight: 600; opacity: .9; }
.task b { display: block; font-size: 21px; margin-top: 3px; line-height: 1.25; }
.summary { margin: 14px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; align-items: center; }
.ghost { height: 54px; border: 0; background: rgba(255,255,255,.8); color: var(--night2); border-radius: 999px; padding: 0 22px; font-weight: 500; font-size: 16px; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,32,77,.1), 0 10px 24px -14px rgba(22,32,77,.35); transition: background-color .2s ease, transform .15s ease; }
.ghost:hover { background: #fff; } .ghost:active { transform: translateY(1px); }

/* ================= staff-only panels ================= */
.staff { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: var(--ink); }
.staff .panel { background: rgba(255,255,255,.95); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.staff h5 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.staff pre { white-space: pre-wrap; margin: 0; font-size: 13px; max-height: 320px; overflow: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.kv div:nth-child(odd) { color: var(--muted); }

/* ================= modes ================= */
/* inside the start screen's preview iframe */
body.preview { overflow: hidden; background: transparent; }
body.preview .label, body.preview .captions, body.preview .toasts, body.preview #start, body.preview .staff { display: none !important; }
body.preview #call { padding-bottom: 20px; }
body.preview .wrap { padding-top: 14px; }
body.preview .feed { max-height: 590px; }
body.preview .msg { max-height: 440px; }
/* the video renderer */
body.video { cursor: none; }
body.video .toasts { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) scale(.95); } to { opacity: 1; transform: none; } }

/* ================= 1060 to 1239 px: relign.co frames the demo at about 1100 px ================= */
@media (max-width: 1239px) {
  #call { padding-top: 16px; }
  .stage { grid-template-columns: 236px minmax(0, 1fr) 316px; column-gap: 28px; }
  .device { width: 236px; padding-bottom: 30px; }
  .device .iphone { zoom: .8; }
  .floor { width: 220px; }
  .feed { padding: 16px 16px 6px; }
  .found { font-size: 34px; } .found.idle { font-size: 26px; }
  .chip:nth-child(n+5) { display: none; }
  .cards { min-height: 220px; }
  .card { padding: 18px 20px 16px; }
  .card .dev { font-size: 27px; } .card .unit { font-size: 16px; } .card .price { font-size: 36px; } .card .spec { font-size: 17px; }
  .card .money { margin-top: 10px; } .card .feats { margin-top: 12px; } .card .check { display: none; }
  .card .req { margin: 14px -20px -16px; padding: 11px 20px; }
  .msg .li .ft { display: none; }
  .toasts { top: auto; bottom: 170px; }
}
/* ================= 861 to 1059 px: the feed goes above the board ================= */
@media (max-width: 1059px) {
  .stage { grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "phone feed" "phone board"; row-gap: 20px; }
  .feed { position: relative; top: 0; min-height: 0; max-height: none; }
  .feedlist .step:nth-child(n+3) { display: none; }
  .feedlist { -webkit-mask-image: none; mask-image: none; }
}
/* ================= phone ================= */
@media (max-width: 860px) {
  #start { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-top: 18px; }
  #start > div:first-child { display: contents; }
  #start .kicker, #start h1, #start .lede { order: 0; } #start .pv { order: 1; margin-top: 0; } #start > .right { order: 2; position: static; margin-top: 8px; } #start .steps { order: 3; margin: 8px 0 0; gap: 12px; } #start .try { order: 4; }
  .lede { font-size: 17px; } .steps li { font-size: 15px; } .pv-title { font-size: 16px; }
  .ready { font-size: 16px; }

  /* the call: a slim iOS-style banner instead of a phone inside a phone */
  #call { padding: 0 0 150px; }
  .stage { grid-template-columns: 1fr; grid-template-areas: "phone" "feed" "board"; row-gap: 16px; }
  .device { width: 100%; padding: 0; perspective: none; position: sticky; top: 0; z-index: 15; }
  .device .iphone { zoom: 1; width: 100%; height: auto; border-radius: 22px; padding: 2px; transform: none; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); background: linear-gradient(140deg, #6e6f76, #2b2c31 50%, #8d8e95); }
  .iphone::before, .iphone .btn-side, .iphone .glare, .iphone .edge, .floor, .iscreen .island, .iscreen .isbar, .ihome, .igrid, .icall .iwave, .inotif { display: none; }
  .iscreen { position: relative; inset: auto; border-radius: 20px; }
  .icall { position: relative; inset: auto; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; padding: 12px 12px 12px 16px; gap: 2px 12px; }
  .icall .itext { display: block; flex: 1; min-width: 0; }
  .icall .iname { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .icall .isub { margin-top: 1px; font-size: 14px; }
  .icall .ihint { margin: 0; font-size: 13px; width: 100%; order: 3; }
  .iendhint { position: static; width: 100%; order: 4; text-align: left; font-size: 12px; }
  .icall .ikeys { display: flex; gap: 10px; }
  .ikeys .ibtn { display: flex; font-size: 0; } .ikeys .ibtn span { width: 46px; height: 46px; } .ikeys .ibtn svg { width: 20px; height: 20px; }
  .iend { position: static; transform: none; width: 46px; height: 46px; } .iend svg { width: 22px; height: 22px; }
  /* the feed shrinks to its latest line: the step itself names the system (HubSpot, the website) */
  .feed { padding: 12px 14px 2px; border-radius: 16px; }
  .feed-h h2 { font-size: 15px; color: var(--text2); } .feed-h p, .sysrow { display: none; }
  .feedlist { padding-top: 4px; } .feedlist .step:nth-child(n+2) { display: none; } .feedlist .empty { padding: 6px 0 10px; }
  .found { font-size: 28px; } .found.idle { font-size: 22px; }
  .hint { font-size: 15px; }
  .chip:nth-child(n+5) { display: none; }
  .cards { min-height: 0; padding-top: 0; }
  .card { position: relative; top: 0; width: 100%; margin-bottom: 12px; padding: 18px 18px 16px; transform: none !important; }
  .card.back { display: none; }
  .card .dev { font-size: 25px; } .card .price { font-size: 32px; } .card .spec { font-size: 16px; } .card .unit { font-size: 15px; }
  .card .feats span { font-size: 13px; padding: 5px 10px; }
  .card .req { margin: 14px -18px -16px; padding: 11px 18px; }
  .msg { max-height: none; } .msg .bubble { -webkit-mask-image: none; mask-image: none; }
  .cap { font-size: 20px; }
  .captions { padding-bottom: 20px; }
  .toasts { top: auto; bottom: 150px; right: 12px; left: 12px; width: auto; align-items: stretch; }

  .after-grid { grid-template-columns: 1fr; gap: 24px; }
  body.morning .device { display: none; }
  .hrow { grid-template-columns: 92px minmax(0, 1fr); font-size: 16px; }
  .saved-h { flex-direction: column; align-items: flex-start; gap: 16px; } .saved-h .tile.big { width: 140px; height: 58px; }
  .crmbody { grid-template-columns: 1fr; } .ccard { border-right: 0; border-bottom: 1px solid #E6EAF2; }
  .crmbar .crmtag { display: none; }
  .acts, .ccard { padding: 16px; } .acts { gap: 12px; }
  .works { flex-direction: column; align-items: flex-start; }
  .staff { grid-template-columns: 1fr; }
}

/* ================= reduced motion: everything still, nothing lost ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .step[data-state="work"]::after { animation: none; background: var(--bright); background-size: 100% 100%; opacity: .6; }
  .skel::after, .go::after { display: none; }
  .pv-bar { display: none; }
}

/* listing photos follow the card's padding at each width */
@media (max-width: 1239px) { .card .ph { margin: -18px -20px 12px; height: 132px; } }
@media (max-width: 860px) { .card .ph { margin: -18px -18px 12px; height: 150px; } body.private .cards { min-height: 0; } .agency-logo { margin-bottom: 12px; } }

/* staff: private demos */
.demos { max-width: 1180px; margin: 8px auto 40px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.demos h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.demos > .small { color: var(--text2); max-width: 720px; margin-bottom: 14px; }
.demoform { max-width: 520px; }
.demolist { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.demolist li { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; color: var(--text); font-size: 14.5px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.demolist li .small { color: var(--text2); flex-basis: 100%; }
.demolist a { color: var(--tint); word-break: break-all; }
.demolist .st { font-size: 13px; font-weight: 700; color: var(--tint); }
.demolist .st-ready { color: var(--ok); } .demolist .st-ready_fallback { color: #F0B35A; }
