:root { --genie: #3d97e3; --genie-deep: #1e62bd; --genie-soft: #eaf5ff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Hero */
.gm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: 1rem 5rem;
}
.gm-copy .lede { margin: 0.75rem 0 1rem; max-width: 40rem; font-size: 1.125rem; }
.gm-copy h1 { font-size: clamp(3.25rem, 6vw, 5rem); }

.call-end { display: grid; place-items: center; flex: none; width: 50px; height: 50px; margin-top: 10px; background: #ff3b30; border-radius: 50%; }
.call-end svg { width: 26px; height: 26px; fill: #fff; transform: rotate(135deg); }

/* Genie Marie and the boxes that light up with the demo */
.genie-stage { position: relative; aspect-ratio: 800 / 470; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: var(--genie); stroke-opacity: 0.45; stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; transition: stroke-opacity 0.25s; }
.wires path.is-active { stroke: var(--genie); stroke-opacity: 1; stroke-width: 3.5; animation: flow 1s linear infinite; }
.genie-art { position: absolute; left: 50%; top: 0; width: 44%; transform: translateX(-50%); }
.genie-art svg { display: block; width: 100%; height: auto; }
.org-logo-bottle { position: absolute; left: 45.83%; top: 82.8%; width: 22%; aspect-ratio: 1; border-radius: 50%; font-size: 11px; transform: translate(-50%, -50%); }
.org-logo.org-logo-bottle { overflow: visible; }
.org-logo-bottle:not(.has-image)::after {
  content: "Add your logo";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.35rem);
  padding: 0.15rem 0.45rem;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  transform: translateX(-50%);
}
.org-logo-bottle:not(.has-image):hover { background: var(--ink); color: #fff; }
.org-logo-bottle:not(.has-image):hover::after { background: var(--genie-deep); }
.spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
.spark-2 { animation-delay: 0.9s; }
.spark-3 { animation-delay: 1.7s; }
.chapter {
  position: absolute;
  width: 23.75%;
  padding: 0.65rem 0.75rem 1.2rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--genie);
  text-align: left;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.chapter strong { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; font: italic 1.2rem/1.1 var(--display); }
.chapter small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; transition: color 0.25s; }
.brand-icon { width: 24px; height: 24px; flex: none; border-radius: 22%; }
.brand-pair { display: flex; flex: none; gap: 2px; }
.brand-plate { padding: 2px; background: #fff; }
.iface-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--genie-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.chapter:hover { border-color: var(--genie); }
.chapter.is-active { background: var(--genie-soft); border-color: #9fcdf3; border-top-color: var(--genie); box-shadow: 0 0 0 4px rgba(61, 151, 227, 0.14), 0 8px 26px rgba(61, 151, 227, 0.32); }
.chapter.is-active small { color: var(--ink); }
.chapter .bar { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.5rem; height: 4px; background: rgba(61, 151, 227, 0.22); border-radius: 2px; cursor: ew-resize; touch-action: none; }
/* A larger area to grab than the slider's thin line. */
.chapter .bar::before { content: ""; position: absolute; left: -0.75rem; right: -0.75rem; top: -10px; bottom: -0.5rem; }
.chapter .bar b { position: relative; display: block; width: 0; height: 100%; background: var(--genie); border-radius: 2px; }
.chapter .bar b::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; box-sizing: border-box; background: var(--genie); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15, 45, 102, 0.3); transform: translateY(-50%) scale(0); transition: transform 0.15s; }
.chapter.is-active .bar b::after, .chapter .bar:hover b::after { transform: translateY(-50%) scale(1); }
.chapter .bar:hover { background: rgba(61, 151, 227, 0.36); }
/* Pulses until the visitor has tried it. */
body:not(.has-scrubbed) .chapter.is-active .bar b::after { animation: knob 1.8s ease-out infinite; }
@keyframes knob { 0%, 100% { box-shadow: 0 0 0 1px rgba(15, 45, 102, 0.3); } 50% { box-shadow: 0 0 0 6px rgba(61, 151, 227, 0.3); } }
.iface-0 { left: 0; top: 14.9%; }
.iface-1 { right: 0; top: 14.9%; }
.iface-2 { right: 0; top: 50%; }
.iface-3 { right: 0; top: 85.1%; }
.iface-4 { left: 0; top: 85.1%; }
.iface-5 { left: 0; top: 50%; }
.stage-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-top: 0.75rem; font-size: 0.9375rem; }
.pause { padding: 0; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.pause:hover { color: var(--red); }
.scrub-note { flex: 1; margin: 0; color: var(--muted); }
.scrub-note span { color: var(--ink); font-variant-numeric: tabular-nums; }
.scrub-note[hidden] { display: none; }
.logo-note { flex-basis: 100%; }

/* Phone */
.gm-stage { position: relative; }
.phone {
  position: relative;
  width: 316px;
  height: 660px;
  padding: 10px;
  background: #0b0b0c;
  border-radius: 54px;
  box-shadow: 0 0 0 2px #8e8e93, 0 0 0 3.5px #48484a, 0 28px 60px -22px rgba(0, 0, 0, 0.5);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #6d6d72; }
.phone::before { left: -6px; top: 148px; height: 58px; border-radius: 2px 0 0 2px; box-shadow: 0 -52px 0 -0.5px #6d6d72, 0 70px 0 #6d6d72; }
.phone::after { right: -6px; top: 176px; height: 92px; border-radius: 0 2px 2px 0; }
.screen {
  position: relative;
  will-change: opacity; /* Glass inside only samples the screen, never the black bezel around it. */
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 44px;
  font: 400 14px/1.28 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.island { position: absolute; z-index: 5; top: 9px; left: 50%; width: 84px; height: 25px; background: #000; border-radius: 14px; transform: translateX(-50%); }
.status { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 7px 24px 0 30px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.status-icons { display: flex; align-items: center; gap: 4px; }
.status-icons svg { fill: currentColor; display: block; }
/* iOS 27: no header bar. Controls float as glass over the thread, which runs full height. */
/* Liquid Glass. genie-marie.js adds edge refraction in Chromium; other browsers keep this frosted version. */
.glass-btn, .contact-name, .compose-plus, .compose-field, .tray {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(3px) saturate(1.6);
  backdrop-filter: blur(3px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.55), inset 1px 0 1px rgba(255, 255, 255, 0.45), inset -1px 0 1px rgba(255, 255, 255, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.09), 0 3px 12px rgba(0, 0, 0, 0.1);
}
/* Scroll edge: content softens and fades as it passes under the floating controls. */
.screen::before, .compose::before { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.screen::before { z-index: 3; top: 0; height: 118px; background: linear-gradient(rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0)); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.compose::before { z-index: -1; top: 0; bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 70%); -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.contact { position: absolute; z-index: 4; top: 44px; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 11px; }
.glass-btn { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; }
.nav-back { display: block; height: 15px; margin-right: 1px; }
.nav-video { display: block; height: 14px; }
.contact-mid { display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 1; padding-inline: 6px; }
.contact-name { position: relative; display: flex; align-items: center; gap: 3px; max-width: 100%; box-sizing: border-box; margin-top: -6px; padding: 3px 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: #000; }
.contact-name > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact-name svg { width: 6px; height: 9px; flex: none; fill: none; stroke: #8e8e93; stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }

/* The organization's logo slot */
.org-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1.5px dashed var(--ink);
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.org-logo:hover { border-color: var(--genie); color: var(--genie-deep); }
/* A picked logo always stays inside its slot: the inset keeps a square logo's corners inside a circle. */
.org-logo.has-image { overflow: hidden; }
.org-logo img { display: block; box-sizing: border-box; width: 100%; height: 100%; padding: 15%; object-fit: contain; }
.org-logo-small img { padding: 8%; }
.org-logo .mono { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); color: #fff; font-size: 1.6em; letter-spacing: 0; }
.org-logo.has-image { border: 1px solid #e3e3e6; border-style: solid; }
.org-logo-avatar { position: relative; overflow: visible; width: 44px; height: 44px; border-radius: 50%; font-size: 8.5px; }
.org-logo-avatar:not(.has-image)::after { content: "+"; position: absolute; right: -9px; top: -5px; width: 13px; height: 13px; background: var(--genie); border: 2px solid #f7f7f8; border-radius: 50%; box-sizing: content-box; color: #fff; font-size: 14px; line-height: 16px; }
.org-logo-small { width: 34px; height: 34px; border-radius: 7px; font-size: 7.5px; }
.org-logo-call { width: 84px; height: 84px; border-radius: 50%; font-size: 15px; }
.org-logo-light { background: transparent; border-color: #fff; color: #fff; }
.org-logo-light.has-image { background: #fff; }

.logo-note { margin: 0; color: var(--muted); }
.logo-note strong { color: var(--ink); font-weight: 500; }
.logo-note small { font-size: 0.8125rem; }

/* Thread */
.thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 112px 11px 0; overflow: hidden; }
.thread::after { content: ""; flex: none; height: 66px; }
.thread::before { content: ""; margin-top: auto; }
.stamp { flex: none; margin-bottom: 6px; color: #8e8e93; font-size: 10.5px; text-align: center; }
.stamp b { font-weight: 600; }
.msg { position: relative; flex: none; max-width: 76%; padding: 6px 11px 7px; border-radius: 17px; animation: pop 0.22s ease-out; }
.msg-g { align-self: flex-start; background: #e8e8ea; color: #000; }
.msg-u { align-self: flex-end; background: #1a99fd; color: #fff; }
.msg-u + .msg-g, .msg-g + .msg-u, .delivered + .msg-g, .msg-attach + .msg-u { margin-top: 7px; }
.msg-u:not(.msg-attach)::after, .msg-g:not(.typing):not(.msg-attach)::after { content: ""; position: absolute; bottom: 0; width: 13px; height: 17px; background-repeat: no-repeat; background-size: contain; }
.msg-u::after { right: -5px; background: var(--tail, #0188fd); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath fill='%234392f6' d='M0 0h6c0 6 2 12 7 16.500-4 .8-9-.5-13-4.500z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath fill='%234392f6' d='M0 0h6c0 6 2 12 7 16.500-4 .8-9-.5-13-4.500z'/%3E%3C/svg%3E") center / contain no-repeat; }
.msg-g::after { left: -5px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath fill='%23e8e8ea' d='M13 0H7C7 6 5 12 0 16.500c4 .8 9-.5 13-4.500z'/%3E%3C/svg%3E"); }
.msg-u:has(+ .msg-u)::after, .msg-g:has(+ .msg-g)::after { display: none; }
.msg-attach { padding: 0; background: none; border-radius: 15px; max-width: 86%; }
.msg.has-tap { margin-top: 15px; }
.typing { display: flex; gap: 4px; padding: 11px 12px; }
.typing::before, .typing::after { content: ""; position: absolute; background: #e8e8ea; border-radius: 50%; }
.typing::before { left: -1px; bottom: -1px; width: 10px; height: 10px; }
.typing::after { left: -6px; bottom: -5px; width: 5px; height: 5px; }
.typing i { width: 7px; height: 7px; background: #8e8e93; border-radius: 50%; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
.delivered { align-self: flex-end; flex: none; margin: 1px 4px 0; color: #818183; font-size: 10.5px; font-weight: 600; }
/* Reactions, as in iOS 27: a color glyph in a small thought bubble with two trailing dots. */
.tap { position: absolute; z-index: 1; top: -15px; display: grid; place-items: center; width: 27px; height: 27px; background: #e4e4e8; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; animation: tap 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tap::before, .tap::after { content: ""; position: absolute; background: #e4e4e8; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.tap::before { bottom: -2px; width: 8px; height: 8px; }
.tap::after { bottom: -6px; width: 3.5px; height: 3.5px; }
.msg-u .tap { left: -16px; top: -17px; }
.msg-u .tap::before { left: -1px; }
.msg-u .tap::after { left: -4px; }
.msg-g .tap, .msg-attach .tap { right: -16px; top: -17px; }
.msg-g .tap::before, .msg-attach .tap::before { right: -1px; }
.msg-g .tap::after, .msg-attach .tap::after { right: -4px; }
.tap img { position: relative; z-index: 1; display: block; width: 18px; height: 18px; }
/* The reaction tray that opens when you press a message. */
.tray { background: rgba(255, 255, 255, 0.86); position: absolute; z-index: 5; bottom: calc(100% + 11px); display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 268px; padding: 5px 8px; border-radius: 24px; animation: tray 0.26s cubic-bezier(0.3, 1.5, 0.5, 1); }
.tray span { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; transition: background 0.15s; }
.tray span.is-picked { background: #36aafd; }
.tray img { display: block; width: 25px; height: 25px; }
/* The bud joining the tray to the message, with the empty smiley Apple shows there. */
.tap.tap-bud, .tap.tap-bud::before, .tap.tap-bud::after { background: rgba(255, 255, 255, 0.96); box-shadow: none; }
.tap.tap-bud img { width: 19px; height: 19px; opacity: 0.42; }
/* The thread behind a pressed message blurs and greys out, the message lifts above it and grey bubbles turn white. */
.dim { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: 0; background: rgba(222, 222, 226, 0.66); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); transition: opacity 0.2s; }
.dim.is-on { opacity: 1; }
.msg.is-lifted { z-index: 6; }
.msg-g.is-lifted { background: #fff; }
.msg-g.is-lifted::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath fill='%23fff' d='M13 0H7C7 6 5 12 0 16.500c4 .8 9-.5 13-4.500z'/%3E%3C/svg%3E"); }

/* Attachments */
.att { overflow: hidden; background: #f1f1f3; border: 1px solid #e0e0e4; border-radius: 15px; }
.att-body { padding: 8px 10px; font-size: 12.5px; }
.att-body strong { display: block; font-weight: 600; }
.att-body span { color: #636366; }
.att-quote { padding: 9px 10px; }
.att-quote em { display: block; margin-bottom: 2px; color: #636366; font-size: 11px; font-style: normal; }
.letter { position: relative; height: 112px; overflow: hidden; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e0e0e4; }
.letter b { display: block; margin-bottom: 5px; font-size: 9.5px; }
.letter i { display: block; height: 3px; margin-bottom: 5px; background: #c8c8cc; }
.letter i:nth-of-type(2) { width: 88%; }
.letter i:nth-of-type(4) { width: 72%; }
.letter u { display: block; margin-top: 8px; font-size: 9.5px; font-weight: 700; text-decoration: none; color: var(--red); }
.letter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2ecc71; box-shadow: 0 0 14px 4px rgba(46, 204, 113, 0.65); animation: scan 1.8s ease-in-out 1 forwards; }
.vcard { display: flex; flex-direction: column; justify-content: space-between; width: 216px; height: 134px; padding: 12px; background: linear-gradient(135deg, #1b1b1d, #3d3d42); border-radius: 13px; color: #fff; font-size: 12px; animation: deal 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.vcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard-top span:last-child { font-size: 10px; opacity: 0.75; }
.vcard-num { font-size: 15px; letter-spacing: 0.08em; }
.vcard-meta { display: flex; justify-content: space-between; font-size: 10.5px; opacity: 0.85; }
.linkcard strong { color: #0a7cff; }

.crm { padding: 9px 10px; font-size: 12px; }
.crm strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.crm dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; }
.crm dt { color: #636366; }
.crm dd { margin: 0; }

/* Compose */
.compose { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 14px 11px 26px; }
.compose-plus { position: relative; width: 31px; height: 31px; flex: none; border-radius: 50%; }
.compose-plus img { position: absolute; left: 50%; top: 50%; width: 13px; transform: translate(-50%, -50%); }
.compose-field { display: flex; align-items: flex-end; flex: 1; min-width: 0; min-height: 31px; box-sizing: border-box; padding: 3px 3px 3px 12px; border-radius: 16px; }
.compose-text { flex: 1; min-width: 0; max-height: 72px; overflow: hidden; padding: 3px 4px 3px 0; }
.compose-hint { color: #b0b0b4; }
.caret { display: inline-block; width: 1.5px; height: 14px; margin-bottom: -2px; background: #0188fd; animation: blink 0.9s infinite; }
.send { position: relative; width: 25px; height: 25px; flex: none; border-radius: 50%; transition: transform 0.15s; background: url("assets/ios/wave.png") center / 15px auto no-repeat; }
.send.is-ready { background: #0188fd; }
.send.is-ready::after { content: ""; position: absolute; left: 8px; top: 9px; width: 9px; height: 9px; border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg); }
.send.is-ready::before { content: ""; position: absolute; left: 11.500px; top: 7px; width: 2px; height: 12px; background: #fff; }
.send.is-pressed { transform: scale(0.82); }

.home-bar { position: absolute; z-index: 6; left: 50%; bottom: 7px; width: 108px; height: 4px; background: #000; border-radius: 3px; transform: translateX(-50%); }
.call:not([hidden]) ~ .home-bar, .call:not([hidden]) + .home-bar { background: #fff; }

/* Voice call */
.call {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 24px;
  background: linear-gradient(180deg, #232326, #0e0e10);
  color: #fff;
  border-radius: 44px;
  animation: rise 0.35s ease-out;
}
.call[hidden] { display: none; }
.call.is-leaving { opacity: 0; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s; }
.call-label { margin: 12px 0 0; font-size: 12px; color: #c7c7cc; }
.call-who { margin: 2px 0 0; font-size: 21px; }
.call-state { margin: 2px 0 10px; min-height: 18px; font-size: 13px; color: #7ee2a8; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-bottom: 12px; }
.wave i { width: 3px; height: 8px; background: #7ee2a8; border-radius: 2px; animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: 0.15s; }
.wave i:nth-child(3n) { animation-delay: 0.32s; }
.wave.is-quiet i { animation: none; }
.lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 100%; min-height: 0; overflow: hidden; }
.line { flex: none; padding: 7px 10px; background: rgba(255, 255, 255, 0.1); border-radius: 11px; font-size: 12.5px; animation: pop 0.22s ease-out; }
.line b { display: block; font-size: 10px; font-weight: 600; color: #aeaeb2; }

/* Custom widget */
.widget { box-sizing: border-box; width: 244px; padding: 11px 12px 12px; background: #fff; border: 1px solid #e0e0e4; border-radius: 20px; color: #000; font-size: 12px; }
.widget-top { display: flex; align-items: center; gap: 6px; }
.widget-top .org-name { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.widget-top small { flex: none; color: #8e8e93; font-size: 10.5px; }
.widget-rent { margin: 9px 0 5px; line-height: 1.2; }
.widget-rent span { display: block; color: #636366; font-size: 10.5px; }
.widget-rent b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.widget-rent i { color: #636366; font-size: 11px; font-style: normal; }
.widget-bar { height: 6px; overflow: hidden; background: #e5e5ea; border-radius: 3px; }
.widget-bar b { display: block; height: 100%; background: #34c759; border-radius: 3px; transition: width 0.7s ease-out; }
.widget-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px; margin-top: 10px; }
.widget-stats b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.widget-stats span { display: block; color: #636366; font-size: 9.5px; white-space: nowrap; }
.widget .is-updated { color: #248a3d; animation: bump 0.5s ease-out; }
.home { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 116px 14px 16px; background: #0b1f4d url(assets/wallpaper.svg) center bottom / cover no-repeat; border-radius: 44px; animation: rise 0.35s ease-out; }
.home[hidden] { display: none; }
.home .widget { width: 100%; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.home-banner { position: absolute; left: 10px; right: 10px; top: 46px; box-sizing: border-box; padding: 8px 12px; background: rgba(255, 255, 255, 0.93); border-radius: 18px; color: #000; font-size: 11.5px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); animation: drop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.home-banner b { display: block; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-icons { display: flex; gap: 18px; width: 100%; margin-top: 22px; padding-inline: 8px; box-sizing: border-box; }
.home-dock { display: flex; justify-content: center; gap: 22px; margin-top: auto; margin-bottom: 8px; padding: 12px 22px; background: rgba(255, 255, 255, 0.24); border-radius: 26px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.home img { width: 46px; height: 46px; border-radius: 22%; }
.home img.home-plate { box-sizing: border-box; padding: 6px; background: #fff; }
.screen.is-home .status { z-index: 5; color: #fff; }
.screen.is-home .home-bar { background: #fff; }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes bump { 40% { transform: scale(1.12); } }
.widget-stats b, .widget-rent b { transform-origin: left center; }
.widget-rent b { display: inline-block; }

/* Add your company */
#logo-dialog { width: min(30rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100vh - 2rem)); padding: 1.25rem; background: #fff; border: 1px solid var(--ink); color: var(--ink); }
#logo-dialog[open] { display: flex; flex-direction: column; gap: 0.75rem; }
#logo-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 2rem; }
.dialog-close { padding: 0 0.25rem; background: none; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.company-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.company-form .button { border: 0; cursor: pointer; }
#company-name { flex: 1 1 12rem; min-width: 0; padding: 0.7rem 0.9rem; background: #fff; border: 1px solid var(--ink); border-radius: 0; font: inherit; color: inherit; }
#company-name:focus-visible { outline: 3px solid var(--genie); outline-offset: 1px; }
.dialog-foot { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.dialog-foot label { color: var(--ink); text-decoration: underline; cursor: pointer; }
.dialog-foot input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.ask h2 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
.cta-note { display: block; margin-top: 1.5rem; opacity: 0.85; }
.link-button { padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* Just ask */
.ask { border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2.5rem, 6vw, 5rem); padding-block: 6rem; }
.ask-intro p { margin: 1.5rem 0 0; color: var(--muted); font-size: 1.125rem; }
.asks { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.asks li:not(.asks-delivered) { position: relative; align-self: flex-end; max-width: 85%; margin-right: 0.4rem; padding: 0.55rem 1rem 0.6rem; background: #1a99fd; border-radius: 1.3rem; color: #fff; font: 400 1.0625rem/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.asks li:not(.asks-delivered)::after { content: ""; position: absolute; right: -0.38rem; bottom: 0; width: 1rem; height: 1.3rem; background: var(--tail, #0188fd); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath d='M0 0h6c0 6 2 12 7 16.500-4 .8-9-.5-13-4.500z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath d='M0 0h6c0 6 2 12 7 16.500-4 .8-9-.5-13-4.500z'/%3E%3C/svg%3E") center / contain no-repeat; }
.asks-delivered { align-self: flex-end; margin: -0.2rem 0.55rem 0 0; color: #818183; font: 600 0.75rem -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes tray { from { opacity: 0; transform: translateY(8px) scale(0.86); transform-origin: left bottom; } }
@keyframes tap { from { opacity: 0; transform: scale(0.3); } }
@keyframes scan { from { top: 0; } to { top: 100%; opacity: 0; } }
@keyframes deal { from { opacity: 0; transform: translateY(26px) rotate(-4deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes twinkle { 50% { opacity: 0.3; transform: scale(0.7); } }
@keyframes wave { 50% { height: 26px; } }

@media (prefers-reduced-motion: reduce) {
  .msg, .tap, .vcard, .call, .home, .home-banner, .chapter .bar b::after, .line, .letter::after, .wires path, .spark { animation: none; }
  .letter::after { display: none; }
  .typing i, .caret, .wave i { animation: none; }
}

@media (max-width: 1240px) {
  .genie-stage { aspect-ratio: auto; }
  .wires { display: none; }
  .genie-art { position: relative; left: auto; width: min(190px, 60%); margin-inline: auto; transform: none; }
  .org-logo-bottle { font-size: 8.5px; }
  .chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 0.75rem; }
  .chapter { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; }
}

@media (max-width: 820px) {
  /* A single column: title, lamp, then the tabs and phone, with the tabs staying in view above the phone. */
  .gm-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem 3.5rem; }
  .gm-copy, .genie-stage, .stage-foot { display: contents; }
  .gm-copy h1 { order: 1; }
  .gm-copy .lede { order: 2; margin-bottom: 1.5rem; }
  .genie-art { order: 3; width: 214px; }
  .logo-note { order: 4; margin: 1rem 0 2.25rem; text-align: center; color: var(--muted); font-size: 0.9375rem; }
  .logo-note small { display: block; }
  .chapters { order: 5; position: sticky; z-index: 10; top: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.3rem; margin: 0 -0.25rem; padding: 0.5rem 0.25rem; background: #fff; }
  .gm-stage { order: 6; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 0.5rem; }
  .pause { order: 7; align-self: center; min-height: 44px; margin-top: 0.75rem; padding: 0 1rem; font-size: 0.9375rem; }
  .phone { height: 660px; height: clamp(570px, calc(100svh - 92px), 660px); }
  .org-logo-bottle { font-size: 9px; }
  .org-logo-bottle:not(.has-image)::after { font-size: 10px; }
  .brand-icon { width: 20px; height: 20px; }
  .chapter { padding: 0.4rem 0.15rem 0.95rem; text-align: center; }
  .chapter .bar { left: 0.35rem; right: 0.35rem; bottom: 0.35rem; }
  .chapter .bar::before { left: -0.35rem; right: -0.35rem; top: -14px; bottom: -0.35rem; }
  .scrub-note { order: 8; text-align: center; font-size: 0.875rem; }
  .chapter strong { flex-direction: column; gap: 0.2rem; margin: 0; font: 500 0.8125rem/1.1 var(--text); }
  .chapter strong svg { width: 20px; height: 20px; }
  .chapter small { display: none; }
  .ask { grid-template-columns: minmax(0, 1fr); padding-block: 3.5rem; }
  .asks li:not(.asks-delivered) { max-width: 92%; }
  .cta { padding-block: 4rem; }
  /* The search box sits at the top so the keyboard never covers it, and at 16px iOS doesn't zoom in on focus. */
  #logo-dialog { margin-top: 0.75rem; max-height: calc(100dvh - 1.5rem); }
  #company-name { font-size: 16px; }
  .dialog-close { min-width: 44px; min-height: 44px; margin: -0.5rem -0.75rem -0.5rem 0; }
}

@media (max-width: 480px) {
  .phone { width: min(316px, 100%); }
  .chapter strong { font-size: 0.6875rem; }
  .tab-extra { display: none; }
}

@media (max-width: 350px) {
  .chapter strong { font-size: 0.625rem; }
  .status { padding-inline: 20px 16px; font-size: 13px; }
  .status-icons { gap: 2px; }
  .island { width: 72px; }
}

.is-paused * { animation-play-state: paused !important; }
