/* ============================================================
   MAROMEL — signup.css  (v6.0 "Showroom")
   ------------------------------------------------------------
   Same tokens as index.css and dashboard.css.
   Left: a calm, white four-step form.
   Right: a black stage with one phone that plays a short film
   of the AI answering on five channels.
   ============================================================ */


/* ============ 01. TOKENS ============ */
:root {
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --night: #000000;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --sky-1: #cfe6f4;
  --sky-2: #eef6fb;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-on-dark: #2997ff;
  --green: #34c759;
  --green-ink: #1f8a3c;
  --red: #ff3b30;
  --red-ink: #d70015;
  --orange-ink: #b64400;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Heebo", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Heebo", "Helvetica Neue", Arial, sans-serif;

  --r-pill: 980px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  color-scheme: light;
}


/* ============ 02. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }


/* ============ 03. LAYOUT ============ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.pane { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 52px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.topbar__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.topbar__back:hover { text-decoration: none; }
.topbar__back svg { color: var(--ink-3); margin-right: 2px; transition: transform .2s var(--ease); }
.topbar__back:hover svg { transform: translateX(-2px); }
.topbar__logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.topbar__login { font-size: 14px; }

.form-wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 36px 24px 72px; flex: 1; display: flex; flex-direction: column; justify-content: center; }


/* ============ 04. PROGRESS & HEADING ============ */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 36px; }
.progress li { display: grid; gap: 7px; }
.progress__bar { height: 4px; border-radius: 4px; background: var(--line-soft); position: relative; overflow: hidden; }
.progress__bar::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress li.is-done .progress__bar::after, .progress li.is-current .progress__bar::after { transform: scaleX(1); }
.progress__label { font-size: 12px; color: var(--ink-3); letter-spacing: -0.01em; }
.progress li.is-current .progress__label { color: var(--ink); font-weight: 600; }
.progress li.is-done .progress__label { color: var(--ink-2); }

.heading { margin-bottom: 26px; }
.heading__title { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.heading__sub { font-size: 19px; line-height: 1.32; color: var(--ink-2); margin-top: 6px; }

.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r-sm); background: #fff1f0; color: #9d0b0b; font-size: 15px; line-height: 1.4; animation: shake .4s var(--ease); }
.alert svg { flex-shrink: 0; margin-top: 1px; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }


/* ============ 05. FORM CONTROLS ============ */
.step { display: grid; gap: 18px; }
.step.is-entering { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.field { display: grid; gap: 6px; position: relative; }
.field > label { font-size: 13px; color: var(--ink-2); }
.optional { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a1a1a6; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 48, .12); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.4; }
.input--code { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }

.field--password .input { padding-right: 50px; }
.reveal { position: absolute; right: 7px; top: 28px; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.reveal[aria-pressed="true"] { color: var(--blue); }
.hint { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

.prefix-input { position: relative; }
.prefix-input span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 17px; }
.prefix-input .input { padding-left: 34px; }

/* intl-tel-input: blend into our field */
.iti { width: 100%; display: block; }
.iti__flag-container { padding: 1px; }
.iti--separate-dial-code .iti__selected-flag { background: transparent; border-radius: var(--r-sm) 0 0 var(--r-sm); padding: 0 10px 0 14px; }
.iti--separate-dial-code .iti__selected-flag:hover, .iti--separate-dial-code .iti__selected-flag:focus { background: var(--canvas); }
.iti__selected-dial-code { font-size: 17px; color: var(--ink); }
.iti__country-list { border: 0; border-radius: var(--r-sm); box-shadow: 0 20px 50px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .06); font-family: var(--font-text); font-size: 15px; z-index: 30; max-width: min(380px, 86vw); }
.iti__country { padding: 8px 12px; }
.iti__country.iti__highlight { background: rgba(0, 113, 227, .08); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 17px; line-height: 1.17; letter-spacing: -0.022em; white-space: nowrap;
  transition: background-color .2s var(--ease), opacity .2s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:not(:disabled):hover { background: var(--blue-hover); }
.btn--ghost { background: var(--line-soft); color: var(--ink); }
.btn--ghost:not(:disabled):hover { background: #dcdce1; }
.btn--sm { min-height: 34px; padding: 7px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.text-btn { color: var(--link); font-size: 15px; }
.text-btn:hover:not(:disabled) { text-decoration: underline; }
.text-btn:disabled { color: var(--ink-3); cursor: default; }
.fine { font-size: 13px; color: var(--ink-2); }

/* Step 2: code */
.verify-note { font-size: 17px; color: var(--ink-2); }
.verify-note b { color: var(--ink); font-weight: 600; word-break: break-all; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-box {
  width: 100%; height: 64px; text-align: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.otp-box:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); transform: translateY(-2px); }
.otp-box.is-filled { border-color: var(--ink); }
.otp.is-error .otp-box { border-color: var(--red); animation: shake .4s var(--ease); }

/* Step 3 helpers */
.callout { padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; line-height: 1.45; }
.callout--sky { background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); color: #0b3a5c; }
.checklist { margin-top: 6px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--canvas); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.checklist__title { color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.checklist ul { display: grid; gap: 6px; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.checklist b { color: var(--ink); font-weight: 600; }

/* Step 4: plans */
.plans { display: grid; gap: 10px; }
.plan {
  position: relative; display: grid; gap: 4px; padding: 18px 20px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.plan:hover { border-color: #a1a1a6; }
.plan:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #f7fbff; }
.plan:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 113, 227, .25); }
.plan__flag { font-size: 13px; font-weight: 600; color: var(--orange-ink); }
.plan__flag--dark { color: var(--ink); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-right: 36px; }
.plan__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.plan__price { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.plan__price small { font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan__desc { font-size: 15px; color: var(--ink-2); }
.plan__list { display: none; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.plan:has(input:checked) .plan__list { display: grid; animation: stepIn .35s var(--ease); }
.plan__list span { position: relative; padding-left: 22px; }
.plan__list span::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan__list b { font-weight: 600; }
.plan__check {
  position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); transition: background-color .2s, border-color .2s;
}
.plan:has(.plan__flag) .plan__check { top: 40px; }
.plan:has(input:checked) .plan__check { background: var(--blue); border-color: var(--blue); }
.plan:has(input:checked) .plan__check::after { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.terms { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.45; cursor: pointer; position: relative; }
.terms input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.terms__box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 1.5px solid var(--line); position: relative; transition: background-color .2s, border-color .2s; }
.terms input:checked + .terms__box { background: var(--blue); border-color: var(--blue); }
.terms input:checked + .terms__box::after { content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.terms input:focus-visible + .terms__box { box-shadow: 0 0 0 4px rgba(0, 113, 227, .25); }

.switch-account { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); text-align: center; font-size: 15px; color: var(--ink-2); }


/* ============ 06. THE SHOWCASE ============ */
.show {
  position: sticky; top: 0; height: 100dvh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 32px 28px; background: var(--night); color: var(--night-ink);
  isolation: isolate;
}
.show__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.show__glow i { position: absolute; inset: -10%; opacity: 0; transition: opacity 1.4s var(--ease); }
.show__glow i.is-on { opacity: 1; }
.show__glow [data-glow="ig"] { background: radial-gradient(40% 35% at 30% 75%, rgba(214, 41, 118, .38), transparent 70%), radial-gradient(35% 30% at 72% 35%, rgba(250, 126, 30, .26), transparent 70%); }
.show__glow [data-glow="comments"] { background: radial-gradient(40% 35% at 70% 75%, rgba(150, 47, 191, .38), transparent 70%), radial-gradient(35% 30% at 25% 35%, rgba(79, 91, 213, .28), transparent 70%); }
.show__glow [data-glow="fb"] { background: radial-gradient(45% 38% at 50% 70%, rgba(24, 119, 242, .36), transparent 70%); }
.show__glow [data-glow="messenger"] { background: radial-gradient(40% 35% at 30% 70%, rgba(0, 178, 255, .32), transparent 70%), radial-gradient(35% 30% at 70% 40%, rgba(160, 51, 255, .3), transparent 70%); }
.show__glow [data-glow="google"] { background: radial-gradient(35% 30% at 28% 70%, rgba(52, 168, 83, .28), transparent 70%), radial-gradient(35% 30% at 72% 40%, rgba(251, 188, 5, .22), transparent 70%); }
.show__glow [data-glow="pages"] { background: radial-gradient(40% 35% at 30% 72%, rgba(255, 159, 10, .34), transparent 70%), radial-gradient(35% 30% at 72% 38%, rgba(255, 55, 95, .22), transparent 70%); }
.show__glow [data-glow="crm"] { background: radial-gradient(40% 35% at 70% 72%, rgba(10, 132, 255, .36), transparent 70%), radial-gradient(35% 30% at 28% 38%, rgba(48, 209, 88, .22), transparent 70%); }
.show__glow [data-glow="voice"] { background: radial-gradient(40% 35% at 30% 72%, rgba(191, 90, 242, .38), transparent 70%), radial-gradient(35% 30% at 72% 38%, rgba(100, 210, 255, .24), transparent 70%); }

.show__head { text-align: center; }
.show__title { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.show__sub { font-size: 17px; color: var(--night-ink-2); margin-top: 6px; }
.show__sub [data-biz] { color: var(--night-ink); }

/* Chapters: a dark segmented control with a progress line in each segment */
.chapters { display: flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.chapter { position: relative; display: grid; gap: 6px; padding: 7px 12px 8px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--night-ink-2); transition: color .2s, background-color .2s; }
.chapter:hover { color: var(--night-ink); }
.chapter[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .12); }
.chapter__bar { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.chapter__fill { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.chapter.is-done .chapter__fill { width: 100%; background: rgba(255, 255, 255, .5); }
.chapter > span:first-child { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.chapter__soon { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: var(--night-ink-2); }

/* Channels inside a product (Social has five). The row keeps its height when empty so nothing jumps. */
.subchapters { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; min-height: 28px; margin-top: 10px; }
.subchapter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; color: var(--night-ink-2); transition: color .2s, background-color .2s; }
.subchapter::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .4; transition: opacity .2s; }
.subchapter:hover { color: var(--night-ink); }
.subchapter[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.subchapter[aria-selected="true"]::before { opacity: 1; }

.show__stage { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-top: 10px; }
.scene-label { text-align: center; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.scene-label.is-swapping { opacity: 0; transform: translateY(6px); }
.scene-label__channel { font-size: 14px; font-weight: 600; color: var(--channel, #fff); }
.scene-label__headline { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.17; margin-top: 2px; }

/* The phone */
.device {
  --h: min(600px, calc(100dvh - 380px));
  height: var(--h); min-height: 380px; aspect-ratio: 9 / 18.5;
  padding: calc(var(--h) * .016); border-radius: calc(var(--h) * .085);
  background: #1d1d1f; box-shadow: inset 0 0 0 2px #3a3a3c, 0 50px 100px -30px rgba(0, 0, 0, .8);
}
.device__screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; border-radius: calc(var(--h) * .072);
  background: #000; color: #fff; padding-top: 38px;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  font-size: 13px; line-height: 1.35; letter-spacing: -0.01em;
}
.device__screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.device[data-skin="fb"] .device__screen,
.device[data-skin="messenger"] .device__screen,
.device[data-skin="google"] .device__screen { background: #fff; color: #050505; }
.device[data-skin="site"] .device__screen { background: #fff; color: #1d1d1f; }
.device[data-skin="crm"] .device__screen { background: #f2f2f7; color: #1d1d1f; }
.device[data-skin="call"] .device__screen { background: linear-gradient(180deg, #1d1b3a 0%, #0c0b16 55%, #000 100%); color: #fff; }
.device__screen > * { transition: opacity .3s var(--ease); }
.device.is-swapping .device__screen > * { opacity: 0; }

.app-head { display: flex; align-items: center; gap: 9px; padding: 6px 12px 10px; border-bottom: 1px solid #262626; }
.device:not([data-skin="ig"]) .app-head { border-bottom-color: #e4e6eb; }
.app-head b { display: block; font-size: 13px; }
.app-head small { display: block; font-size: 11px; color: #8e8e93; }
.app-head .back { width: 18px; height: 18px; flex-shrink: 0; }
.app-head .grow { flex: 1; min-width: 0; }
.app-head .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.app-body[data-layout="chat"] { justify-content: flex-end; }
.app-foot { padding: 8px 10px 14px; }
.app-foot:empty { display: none; }
.composer { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 20px; font-size: 12px; color: #8e8e93; }
.device[data-skin="ig"] .composer { background: #1c1c1e; }
.device:not([data-skin="ig"]) .composer { background: #f0f2f5; }
.composer i { width: 22px; height: 22px; border-radius: 50%; background: #3797f0; flex-shrink: 0; }
.device[data-skin="messenger"] .composer i { background: #0084ff; }

.av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 12px; }
.av--sm { width: 24px; height: 24px; font-size: 10px; }
.av--ig { background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%); }
.av--biz { background: #fff; color: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.device[data-skin="ig"] .av--biz { background: #fff; }
.av--fb { background: linear-gradient(135deg, #2997ff, #0058d0); }
.av--mike { background: linear-gradient(135deg, #34c759, #0a7d32); }
.av--emily { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.av--david { background: #e37400; }

/* Items enter like they were just delivered */
.it { animation: pop .38s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.msg { display: flex; flex-direction: column; max-width: 80%; gap: 3px; }
.msg--in { align-self: flex-start; align-items: flex-start; }
.msg--out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 8px 12px; border-radius: 18px; font-size: 13px; line-height: 1.35; }
.device[data-skin="ig"] .msg--in .bubble { background: #262626; color: #fff; }
.device[data-skin="ig"] .msg--out .bubble { background: linear-gradient(160deg, #a033ff, #3797f0); color: #fff; }
.device[data-skin="messenger"] .msg--in .bubble { background: #e4e6eb; color: #050505; }
.device[data-skin="messenger"] .msg--out .bubble { background: #0084ff; color: #fff; }
.meta { font-size: 10px; color: #8e8e93; padding: 0 6px; }
.story { display: flex; gap: 8px; align-items: flex-end; }
.story__thumb { width: 44px; height: 70px; border-radius: 10px; background: linear-gradient(160deg, #ffd27a, #ff7a59 50%, #b0306a); flex-shrink: 0; }
.stamp { align-self: center; font-size: 10px; color: #8e8e93; margin: 2px 0 4px; }

.typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 18px; }
.device[data-skin="ig"] .typing { background: #262626; }
.device:not([data-skin="ig"]) .typing { background: #e4e6eb; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.typing-row { align-self: flex-end; }
.typing-row--indent { align-self: stretch; padding-left: 34px; }

/* Posts */
.post-img { height: 34%; min-height: 120px; margin: -12px -12px 0; flex-shrink: 0; background: linear-gradient(160deg, #6ee7f9, #0ea5e9 45%, #1e3a8a); position: relative; overflow: hidden; }
.post-img::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -30%; height: 70%; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .18); }
.post-img--fb { margin: 0 -12px; background: linear-gradient(160deg, #fde68a, #f59e0b 50%, #b45309); }
.post-actions { display: flex; gap: 14px; padding-top: 2px; }
.post-actions svg { width: 20px; height: 20px; }
.post-caption b, .comment b { font-weight: 600; margin-right: 4px; }
.likes { font-weight: 600; font-size: 12px; }
.comment { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; font-size: 12px; }
.comment--reply { margin-left: 32px; }
.comment small { display: block; margin-top: 2px; font-size: 10px; color: #8e8e93; }
.mention { color: #4cb5f9; }
.fb-text { font-size: 13px; }
.fb-counts { display: flex; justify-content: space-between; font-size: 11px; color: #65676b; padding-bottom: 6px; border-bottom: 1px solid #e4e6eb; }
.fb-comment { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: start; }
.fb-comment--reply { margin-left: 30px; }
.fb-comment__body { background: #f0f2f5; border-radius: 16px; padding: 6px 10px; font-size: 12px; }
.fb-comment__body b { display: block; font-size: 11px; }
.verified { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #1877f2; margin-left: 3px; vertical-align: -1px; }

/* Google */
.review { display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid #e4e6eb; }
.review__who { display: flex; gap: 8px; align-items: center; }
.review__who small { display: block; font-size: 10px; color: #70757a; }
.stars { color: #fbbc04; letter-spacing: 2px; font-size: 13px; }
.stars small { color: #70757a; letter-spacing: 0; font-size: 10px; margin-left: 6px; }
.owner { padding: 10px 12px; border-radius: 12px; background: #f1f3f4; border-left: 3px solid #1a73e8; font-size: 12px; }
.owner b { display: block; font-size: 11px; margin-bottom: 3px; }

.chip { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; background: rgba(52, 199, 89, .16); color: #30d158; }
.device:not([data-skin="ig"]) .chip { background: #eefaf1; color: var(--green-ink); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Pages: describe it, watch it build, see it live ---------- */
.device[data-skin="site"] .app-head { justify-content: center; border-bottom-color: #f0f0f2; padding-bottom: 8px; }
.urlbar { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 6px 10px; border-radius: 10px; background: #f2f2f7; font-size: 11.5px; color: #6e6e73; }
.urlbar svg { color: #86868b; flex-shrink: 0; }
.urlbar.is-live { color: #1d1d1f; animation: pop .38s var(--ease) both; }
.urlbar.is-live::after { content: "Live"; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #eefaf1; color: var(--green-ink); font-size: 10px; font-weight: 600; }

.prompt { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: #f5f5f7; }
.prompt small { font-size: 10.5px; font-weight: 600; color: #86868b; }
.stream { font-size: 14px; line-height: 1.35; font-weight: 500; }
.stream span { animation: word .3s var(--ease) both; }
@keyframes word { from { opacity: 0; } to { opacity: 1; } }

.build-step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e8e8ed; font-size: 12.5px; font-weight: 500; }
.build-step__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid #d2d2d7; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.build-step.is-done { color: #6e6e73; }
.build-step.is-done .build-step__icon { animation: none; border-color: transparent; background: #34c759; }
.build-step.is-done .build-step__icon::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.msite { display: grid; gap: 10px; }
.msite__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.msite__nav b { font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msite__btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; transition: background-color .3s; }
.msite__img { height: 112px; margin: 0 -12px; background: radial-gradient(55% 75% at 72% 28%, rgba(255, 228, 180, .95), transparent 70%), linear-gradient(150deg, #ffb36b, #e8743b 55%, #8a3b1f); }
.msite__h { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-align: center; overflow-wrap: anywhere; }
.msite__p { font-size: 12px; line-height: 1.4; color: #6e6e73; text-align: center; }
.msite__btn--lg { justify-self: center; padding: 7px 16px; font-size: 12px; }
.msite__feats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.msite__feats span { padding: 4px 9px; border-radius: var(--r-pill); background: #f5f5f7; font-size: 10.5px; }
.msite__form { display: grid; gap: 6px; margin-top: 2px; padding: 12px; border-radius: 14px; background: #f5f5f7; }
.msite__form b { font-size: 12px; }
.msite__in { padding: 7px 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #d2d2d7; font-size: 11.5px; color: #86868b; }
.msite__in.is-filled { color: #1d1d1f; animation: focusRing 1.1s var(--ease) both; }
@keyframes focusRing { 0%, 60% { box-shadow: inset 0 0 0 2px var(--blue); } 100% { box-shadow: inset 0 0 0 1px #d2d2d7; } }
.msite__btn--block { padding: 7px; font-size: 11.5px; }
.msite__btn--block.is-filled { background: #34c759; }

/* An iOS-style banner that drops in over whatever is on screen */
.notif {
  position: absolute; z-index: 4; top: 42px; left: 8px; right: 8px;
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 16px;
  background: rgba(242, 242, 247, .86); color: #1d1d1f;
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  animation: notifIn .55s var(--ease) both;
}
.notif.is-out { animation: notifOut .45s var(--ease) both; }
.notif__icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 700; }
.notif__text { flex: 1; min-width: 0; display: grid; font-size: 11.5px; line-height: 1.3; }
.notif__text b { font-size: 12px; }
.notif small { align-self: flex-start; font-size: 10px; color: #86868b; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-130%); } to { opacity: 1; transform: none; } }
@keyframes notifOut { to { opacity: 0; transform: translateY(-130%); } }

/* ---------- CRM: the same lead, moved to won ---------- */
.device[data-skin="crm"] .app-head { border-bottom: 0; padding: 4px 12px 6px; }
.crm-head { flex: 1; min-width: 0; display: grid; gap: 8px; }
.crm-head__title { display: flex; align-items: center; gap: 9px; }
.crm-head__title .grow b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.crm-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crm-totals > div { padding: 8px 11px; border-radius: 12px; background: #fff; }
.crm-totals small { font-size: 10px; color: #86868b; white-space: nowrap; }
.crm-totals b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.crm-totals b.is-won { color: var(--green-ink); }
.stages { display: flex; gap: 4px; }
.stages span { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 9px; background: #fff; font-size: 9.5px; color: #6e6e73; transition: background-color .35s var(--ease), color .35s var(--ease); }
.app-head .stages b { font-size: 13px; color: #1d1d1f; font-variant-numeric: tabular-nums; transition: color .35s; }
.stages span.is-current { background: var(--blue); color: rgba(255, 255, 255, .85); }
.stages span[data-stage="won"].is-current { background: #34c759; }
.app-head .stages span.is-current b { color: #fff; }
.is-flash { animation: flash .6s var(--ease); }
@keyframes flash { 40% { transform: scale(1.08); } }

.deal { display: grid; gap: 9px; padding: 12px; border-radius: 14px; background: #fff; transition: box-shadow .4s var(--ease); }
.deal.is-won { box-shadow: inset 0 0 0 2px #34c759; }
.deal__top { display: flex; align-items: center; gap: 9px; }
.deal__top .grow { flex: 1; min-width: 0; display: grid; }
.deal__top small { font-size: 10.5px; color: #86868b; }
.deal__value { font-size: 15px; font-variant-numeric: tabular-nums; }
.deal__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.deal__bar i { height: 4px; border-radius: 2px; background: #e8e8ed; transition: background-color .4s var(--ease); }
.deal__bar i.is-on { background: var(--blue); }
.deal.is-won .deal__bar i { background: #34c759; }
.deal__stage { font-size: 11px; font-weight: 600; color: var(--blue); }
.deal.is-won .deal__stage { color: var(--green-ink); }
.av--noa { background: linear-gradient(135deg, #ff6482, #bf5af2); }
.deal__log { display: grid; gap: 8px; }
.deal__log:not(:empty) { padding-top: 10px; border-top: 1px solid #f0f0f2; }

.tl { position: relative; display: flex; justify-content: space-between; gap: 8px; padding-left: 18px; font-size: 11.5px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
/* A thread from each dot down to the next one, whatever the row's height */
.tl:has(+ .tl)::after { content: ""; position: absolute; left: 7px; top: 11px; bottom: -12px; width: 1px; background: #c7c7cc; }
.tl small { flex-shrink: 0; font-size: 10.5px; color: #86868b; }
.tl--done { font-weight: 600; color: var(--green-ink); }
.tl--done::before { background: #34c759; }

/* ---------- Voice: the call, the transcript, the booking ---------- */
.device[data-skin="call"] .app-head { border-bottom-color: rgba(255, 255, 255, .1); padding: 6px 14px 12px; }
.device[data-skin="call"] .app-head:has(.call:not(.is-live)) { border-bottom-color: transparent; }
.call { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 26px 0 14px; text-align: center; animation: pop .4s var(--ease) both; }
.call__ring { position: relative; display: inline-flex; margin-bottom: 12px; }
.call__ring .av { width: 64px; height: 64px; font-size: 24px; }
.call__ring::before, .call__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(100, 210, 255, .6); animation: ring 1.8s var(--ease) infinite; }
.call__ring::after { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.call .call__who { font-size: 18px; font-weight: 600; }
.app-head .call__status { font-size: 12px; color: rgba(255, 255, 255, .6); }
.call.is-live { display: flex; align-items: center; gap: 10px; padding: 2px 0; text-align: left; }
.call.is-live .grow { flex: 1; min-width: 0; }
.app-head .call.is-live .call__status { font-size: 11px; color: #30d158; }
.av--caller { background: linear-gradient(135deg, #64d2ff, #5e5ce6); }
.call-actions { display: flex; justify-content: space-around; padding: 0 6px 18px; }
.call-btn { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: rgba(255, 255, 255, .8); }
.call-btn::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: #ff3b30 no-repeat center / 24px; transition: transform .2s var(--ease); }
.call-btn--decline::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 9c-1.6 0-3.1.3-4.6.8v3.1c0 .4-.2.7-.6.9-1 .5-1.9 1.1-2.7 1.8-.2.2-.4.3-.7.3s-.5-.1-.7-.3L.3 13.2c-.2-.2-.3-.4-.3-.7s.1-.5.3-.7C3.4 8.9 7.5 7 12 7s8.6 1.9 11.7 4.8c.2.2.3.4.3.7s-.1.5-.3.7l-2.4 2.4c-.2.2-.4.3-.7.3s-.5-.1-.7-.3c-.8-.7-1.7-1.3-2.7-1.8-.3-.2-.6-.5-.6-.9V9.8C15.1 9.3 13.6 9 12 9z'/%3E%3C/svg%3E"); }
.call-btn--accept::before { background-color: #34c759; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E"); animation: nudge 1s var(--ease) infinite; }
.call-btn--accept.is-pressed::before { animation: none; transform: scale(.88); }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.vwave { display: flex; align-items: center; gap: 2px; height: 22px; flex-shrink: 0; }
.vwave i { width: 2.5px; height: 30%; border-radius: 2px; background: #64d2ff; animation: wave .9s var(--ease) infinite alternate; }
.vwave i:nth-child(2n) { animation-delay: -.45s; }
.vwave i:nth-child(3n) { animation-delay: -.2s; }
.vwave i:nth-child(5n) { animation-delay: -.7s; }
@keyframes wave { from { height: 18%; } to { height: 100%; } }
.device[data-skin="call"] .msg--in .bubble { background: #2c2c2e; color: #fff; }
.device[data-skin="call"] .msg--out .bubble { background: #0a84ff; color: #fff; }
.device[data-skin="call"] .typing { background: #2c2c2e; }
.device[data-skin="call"] .chip { background: rgba(52, 199, 89, .16); color: #30d158; }
.appt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.appt__cal { display: grid; justify-items: center; width: 44px; flex-shrink: 0; padding: 4px 0 5px; border-radius: 10px; background: #fff; color: #1d1d1f; }
.appt__cal small { font-size: 8.5px; font-weight: 600; color: #ff3b30; }
.appt__cal b { font-size: 15px; font-weight: 600; line-height: 1.1; }
.appt .grow { flex: 1; min-width: 0; display: grid; font-size: 11px; color: rgba(255, 255, 255, .65); }
.appt .grow b { font-size: 12.5px; color: #fff; }

.show__play {
  position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s;
}
.show__play:hover { background: rgba(255, 255, 255, .2); }
.show__play .i-play { display: none; }
.show__play[aria-pressed="true"] .i-play { display: block; }
.show__play[aria-pressed="true"] .i-pause { display: none; }


/* ============ 07. ACCESSIBILITY WIDGET ============ */
.a11y { position: fixed; left: 20px; bottom: 20px; z-index: 95; }
.a11y__btn { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.a11y__btn:hover { transform: scale(1.06); }
.a11y__menu { position: absolute; left: 0; bottom: 58px; width: 290px; display: grid; gap: 12px; padding: 14px; background: rgba(242, 242, 247, .97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: var(--r-md); box-shadow: 0 24px 60px rgba(0, 0, 0, .2); animation: pop .2s var(--ease); }
.a11y__head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.a11y__head p { font-weight: 600; }
.a11y__head button { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .06); font-size: 12px; }
.group { background: #fff; border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; min-height: 48px; padding: 10px 16px; }
.row + .row { box-shadow: inset 0 1px 0 var(--line-soft); }
.row__title { font-size: 15px; font-weight: 500; }
.a11y__size { display: flex; gap: 6px; }
.a11y__size button { width: 36px; height: 30px; border-radius: 8px; background: var(--line-soft); font-weight: 600; font-size: 14px; }
.a11y__check { width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); opacity: 0; }
.a11y-option[aria-pressed="true"] .a11y__check { opacity: 1; }
.a11y-option[aria-pressed="true"] .row__title { color: var(--blue); }

.a11y-high-contrast { filter: contrast(125%) saturate(0); }
.a11y-highlight-links a, .a11y-highlight-links button { text-decoration: underline !important; text-decoration-color: #ffcc00 !important; text-decoration-thickness: 3px !important; text-underline-offset: 4px !important; }
.a11y-readable-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .03em !important; word-spacing: .05em !important; }
.a11y-stop-animations *, .a11y-stop-animations *::before, .a11y-stop-animations *::after { animation: none !important; transition: none !important; }


/* ============ 08. RESPONSIVE ============ */
@media (min-width: 1280px) {
  .layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .chapter { padding: 7px 9px 8px; font-size: 12px; }
  .show__title { font-size: 34px; }
}

/* Short laptop screens: a tighter header leaves more room for the phone */
@media (max-height: 820px) {
  .show { padding-top: 28px; }
  .show__title { font-size: 30px; }
  .show__sub { font-size: 15px; margin-top: 2px; }
  .chapters { margin-top: 14px; }
  .subchapters { margin-top: 6px; }
  .show__stage { gap: 10px; padding-top: 4px; }
  .scene-label__headline { font-size: 20px; }
  .device { --h: min(600px, calc(100dvh - 300px)); }
  /* The CRM screen sheds its extras so the deal stays whole */
  .crm-head__title .grow b { font-size: 18px; }
  .app-head .crm-head__title small, .tl small, .device[data-skin="crm"] .chip { display: none; }
  .crm-totals > div { padding: 6px 10px; }
  .stages span { padding: 4px 2px; }
  .deal { padding: 10px; gap: 7px; }
  .deal__log { gap: 6px; }
  .deal__log:not(:empty) { padding-top: 8px; }
  .tl:has(+ .tl)::after { bottom: -10px; }
}

/* Tablets and phones: the form gets the whole screen */
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .show { display: none; }
  .form-wrap { justify-content: flex-start; padding-top: 28px; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .form-wrap { padding: 20px 18px 96px; }
  .heading__title { font-size: 32px; }
  .heading__sub { font-size: 17px; }
  .progress { margin-bottom: 28px; }
  .otp { gap: 6px; }
  .otp-box { height: 56px; font-size: 24px; }
  .actions { grid-template-columns: 1fr 1.6fr; }
  .a11y { left: 14px; bottom: 14px; }
  .a11y__btn { width: 42px; height: 42px; }
  input, select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}