/* Smart Inbox for HVAC: "five apps, one inbox". Deep wine night with a hot pink accent and a faint message grid.
   The hero is centered copy over a wide centerpiece (channel docks on the left feeding one inbox window with the
   customer card attached), so it reads differently from Leads (sunset), Ads (royal blue technician), SEO Audit
   (teal AI card right), Rank Tracker (violet dusk leaderboard right) and Review Manager (charcoal phone left).
   Below the hero it is the same road-map system as hvac-review.css: phones stack the stops along a vertical road;
   from 1280px each stop is a full-width row and hvac-inbox.js draws the winding road from measured positions. */

.rb-inbox-page {
  --rb-bg: #1a0a1f;
  background: var(--rb-bg);
  color: #fbf2f7;
}
.ib-main { min-width: 0; }
.ib-main > footer { width: auto; margin: 0; padding-inline: 24px; }
.ib :is(a, button, summary, input):focus-visible { outline: 3px solid #ff8cc0; outline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.ib {
  --ink: #1f1424;
  --ink2: #4a3d4f;
  --muted: #736678;
  --wine: #1a0a1f;
  --pink: #ff3d8b;
  --pink-soft: #ff8cc0;
  --pink-deep: #c2185b;
  --go: #10b981;
  --asphalt: #47444f;
  --road-edge: #fdf7fa;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(255, 61, 139, .1), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 64%, rgba(139, 92, 246, .1), transparent 70%),
    linear-gradient(180deg, #f8f1f5 0%, #fcf8fa 40%, #f9f3f7 72%, #f4edf2 100%);
}
.ib *, .ib *::before, .ib *::after { box-sizing: border-box; }
:where(.ib) :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote) { margin: 0; padding: 0; }
:where(.ib) :where(ul, ol) { list-style: none; }
.ib img { display: block; max-width: none; }
.ib svg { display: block; overflow: visible; }
.ib h1, .ib h2, .ib h3, .ib-pin b, .ib-brand__logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ib h1 em, .ib h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; }
.ib-i { width: 22px; height: 22px; flex: 0 0 auto; }
.ib-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ib-cap { color: var(--muted); font-size: 12px; }
.ib-dark .ib-cap { color: #95a1bb; }

.ib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff5c9e 0%, #e62d78 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 24px rgba(230, 45, 120, .35);
  color: #fff;
  font: 700 16px/1.1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ib-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 14px 30px rgba(230, 45, 120, .5); }
.ib-btn .ib-i { width: 18px; height: 18px; }
.ib-btn--ghost { border-color: rgba(255, 214, 234, .6); background: rgba(26, 10, 31, .35); box-shadow: none; color: #fff; }
.ib-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; }
.ib-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ib-note { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: .95; color: #3b1830; }
.ib-note u { color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.ib-checks { display: flex; flex-direction: column; gap: 9px; }
.ib-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.ib-checks svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ib-ok { color: var(--go); }
.ib-no { color: #b9aebd; }
.ib-try { display: flex; align-items: center; gap: 8px; color: var(--pink-deep); font-size: 15px; font-weight: 700; }
.ib-try .ib-i { width: 20px; height: 20px; }

/* Premium card treatment (Ads Step 1 style): gradient surface, fine light border, layered shadow, gentle hover lift. */
.ib-card {
  border: 1px solid rgba(31, 20, 36, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcf9fb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(31, 20, 36, .06), 0 12px 24px -8px rgba(31, 20, 36, .14), 0 30px 56px -24px rgba(31, 20, 36, .22);
}
/* Dark cards: deep navy with a fine cool hairline, pink accents inside. */
.ib-dark {
  border: 1px solid rgba(170, 186, 255, .18);
  border-radius: 20px;
  background: linear-gradient(160deg, #1d2a4d 0%, #131d3a 55%, #0d152c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 4px rgba(10, 14, 34, .18), 0 16px 30px -8px rgba(10, 14, 34, .38), 0 36px 64px -20px rgba(10, 14, 34, .5);
  color: #eaeef8;
}
.ib-visual > :is(.ib-card, .ib-dark) { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .ib-visual > .ib-dark:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 6px rgba(10, 14, 34, .2), 0 22px 38px -8px rgba(10, 14, 34, .42), 0 46px 76px -20px rgba(10, 14, 34, .55); }
  .ib-visual > .ib-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(31, 20, 36, .07), 0 18px 32px -8px rgba(31, 20, 36, .18), 0 40px 70px -24px rgba(31, 20, 36, .26); }
}
/* Letter avatars shared by every mini UI. */
.ib :is(.ib-row__av, .ib-cust__head > i, .ib-mailin__who > i, .ib-own__list i, .ib-chat i, .ib-dm i, .ib-rec__who > i) {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: 700 14px/1 "Space Grotesk", sans-serif;
  font-style: normal;
}

/* A grid cell that JS fills with hidden copies of every text it will show, so typing never shifts the layout. */
.ib-stack { display: grid; }
.ib-stack > * { grid-area: 1 / 1; }
.ib-stack > .ib-ghost { visibility: hidden; }
.ib-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.14em; background: currentColor; animation: ib-caret .8s steps(1) infinite; }
@keyframes ib-caret { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- hero */
.ib-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 44px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 61, 139, .28), transparent 70%),
    radial-gradient(ellipse 35% 35% at 8% 20%, rgba(139, 92, 246, .2), transparent 70%),
    radial-gradient(ellipse 35% 35% at 94% 30%, rgba(14, 165, 233, .12), transparent 70%),
    linear-gradient(180deg, #1a0a1f 0%, #210c26 55%, #2a0d2a 100%);
  color: #fff;
}
/* A faint grid of message dots behind everything. */
.ib-hero__grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 140, 192, .22) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.ib-hero__copy, .ib-stage { position: relative; z-index: 2; }
.ib-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: min(100% - 32px, 640px); margin: 0 auto; padding: 30px 0 0; }
.ib-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ib-brand__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.ib-brand__logo svg { width: 36px; height: 32px; }
.ib-eyebrow { color: #ffc6de; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ib h1 { margin: 0; color: #fff; font-size: clamp(34px, 8.4vw, 50px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.ib h1 em { display: block; margin-top: 6px; color: var(--pink-soft); }
.ib-hero__sub { max-width: 640px; color: #f1dfe9; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.ib-signals { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ib-signals li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.ib-signals .ib-ok { width: 22px; height: 22px; color: var(--pink-soft); }

/* Centerpiece: channel docks feed one inbox window. Phones: docks as a chip row above the window. */
.ib-stage { display: grid; gap: 16px; width: min(100% - 32px, 560px); margin: 32px auto 0; }
.ib-src { display: flex; flex-wrap: wrap; gap: 8px; }
.ib-src li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, #1a0a1f);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: box-shadow .3s ease, transform .3s ease;
}
.ib-src li > .ib-i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--c); color: #fff; }
.ib-src li.is-ping { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); transform: scale(1.05); }
.ib .ib-wires { display: none; }

.ib-win {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 192, .25);
  border-radius: 18px;
  background: #fbf7fa;
  box-shadow: 0 0 0 6px rgba(255, 61, 139, .07), 0 40px 80px -24px rgba(0, 0, 0, .75);
  color: var(--ink);
}
.ib-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #2a1330; color: #fff; font-size: 13px; }
.ib-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ib-win__bar i:nth-child(2) { background: #febc2e; }
.ib-win__bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.ib-win__bar b { font: 700 14px/1 "Space Grotesk", sans-serif; }
.ib-win__bar span { margin-left: auto; color: #d9bfd0; }
.ib-win__body { display: grid; }
.ib-win__side { display: grid; gap: 8px; padding: 12px; }
.ib-win__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-win__tabs span { padding: 5px 10px; border-radius: 999px; background: #efe5ec; color: var(--ink2); font-size: 12.5px; font-weight: 700; }
.ib-win__tabs span.is-on { background: var(--wine); color: #fff; }
.ib-win__tabs b { color: var(--pink); }
.ib-list { position: relative; display: grid; gap: 6px; }
.ib-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 20, 36, .06), 0 0 0 1px rgba(31, 20, 36, .05);
}
.ib-row__txt { display: grid; gap: 2px; min-width: 0; }
.ib-row__txt b { font-size: 14px; line-height: 1.15; }
.ib-row__txt small { overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.ib-row__ch { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.ib-row__ch .ib-i { width: 16px; height: 16px; }
.ib-row__new { position: absolute; right: 8px; top: -6px; padding: 2px 7px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ib-row { position: relative; }
.ib-row:not(:first-child) .ib-row__new { display: none; }
.ib-row.is-new { animation: ib-drop .55s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes ib-drop { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
.ib-list.is-shifting .ib-row:not(.is-new) { animation: ib-shift .45s ease both; }
@keyframes ib-shift { from { transform: translateY(-68px); } }

.ib-cust { display: grid; align-content: start; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid rgba(31, 20, 36, .08); background: #fff; }
.ib-cust__head { display: flex; align-items: center; gap: 10px; }
.ib-cust__head span { display: grid; gap: 2px; min-width: 0; }
.ib-cust__head b { font-size: 15px; }
.ib-cust__head small { color: var(--muted); font-size: 12px; }
.ib-cust__msg { min-height: 2.9em; padding: 9px 11px; border-radius: 12px 12px 12px 4px; background: #f2e9ef; font-size: 13.5px; line-height: 1.4; }
.ib-cust__rows { display: grid; gap: 6px; }
.ib-cust__rows div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.ib-cust__rows dt { color: var(--muted); font-weight: 600; }
.ib-cust__rows dd { overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ib-cust__btns { display: flex; gap: 6px; }
.ib-cust__btns span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(31, 20, 36, .15); font-size: 12.5px; font-weight: 700; }
.ib-cust__btns span.is-ai { background: var(--wine); box-shadow: none; color: #fff; }
.ib-cust__btns .ib-i { width: 14px; height: 14px; }
.ib-cust__btns .is-ai .ib-i { color: var(--pink-soft); }
.ib-cust.is-swap > * { animation: ib-fade .4s ease both; }
@keyframes ib-fade { from { opacity: 0; transform: translateY(6px); } }
.ib-win__cap { padding: 8px 14px 10px; background: #f3ebf0; color: var(--muted); font-size: 11.5px; }

/* The message that flies from a channel dock into the list (created by hvac-inbox.js). */
.ib-fly { position: absolute; z-index: 5; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--c); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.ib-fly .ib-i { width: 15px; height: 15px; }
.ib-fly span { overflow: hidden; text-overflow: ellipsis; }

.ib-note--hero {
  position: relative;
  justify-self: end;
  width: min(100%, 240px);
  padding: 12px 16px 14px;
  border: 1px solid rgba(255, 190, 220, .3);
  border-radius: 14px;
  background: rgba(38, 14, 42, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transform: rotate(-3deg);
}
.ib-note--hero u { color: var(--pink-soft); }

/* ---------------------------------------------------------------- road + steps (phones first) */
.ib-course { position: relative; }
.ib .ib-road, .ib .ib-drive { display: none; }
.ib-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; max-width: 780px; margin: 0 auto; padding: 34px 16px 34px 76px; }
.ib-step::before, .ib-finish::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 22px; background: var(--asphalt); box-shadow: 0 0 0 2.5px var(--road-edge), 0 0 0 3.5px #dccfd7; }
.ib-step::after, .ib-finish::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 2px dashed #fff; }
.ib-step > * { min-width: 0; }
.ib-pin { position: absolute; z-index: 1; left: 0; top: 20px; width: 62px; height: 78px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.ib-pin svg { width: 100%; height: 100%; color: var(--pin); }
.ib-pin b { position: absolute; left: 0; right: 0; top: 8px; color: #fff; font-size: 36px; text-align: center; }
@keyframes ib-pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ib-step.is-in .ib-pin, .ib:not(.ib-motion) .ib-pin { animation: ib-pin-bob 2.6s ease-in-out infinite; }
.ib-step:nth-of-type(even) .ib-pin { animation-delay: -1.3s; }
.ib h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.08; }
.ib-intro { display: grid; gap: 12px; align-content: start; }
.ib-aside { display: grid; gap: 14px; }
.ib-sub { color: var(--ink2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.ib-visual { display: grid; gap: 16px; min-width: 0; }

/* Pill toggles shared by stops 1, 4 and 6 */
.ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) { display: flex; flex-wrap: wrap; gap: 6px; }
.ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #e6ebf6;
  font: 700 13.5px/1.1 "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) button .ib-i { width: 16px; height: 16px; }
.ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) button:hover { border-color: var(--pink-soft); background: rgba(255, 255, 255, .09); }
.ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) button[aria-pressed="true"] { border-color: var(--pink); background: var(--pink); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 61, 139, .7); }

/* Stop 1: channel filter. A real inbox list: 64px rows, fixed-height viewport, so filtering never leaves an empty box.
   Filtering floats the matching rows to the top and dims the rest under an "Other channels" divider. */
.ib-chan { display: grid; gap: 14px; padding: 18px; }
.ib-chan__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ib-chan__title { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 19px/1 "Space Grotesk", sans-serif; }
.ib-chan__title span { padding: 5px 9px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 12px/1 "DM Sans", sans-serif; }
.ib-chan__search { display: flex; flex: 1 1 220px; align-items: center; gap: 8px; max-width: 340px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 11px; background: rgba(255, 255, 255, .05); color: #a9b4cc; font-size: 13.5px; }
.ib-chan__search .ib-i { width: 16px; height: 16px; }
.ib-chan__tabs b { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11.5px; text-align: center; }
.ib-chan__tabs button[aria-pressed="true"] b { background: #fff; color: var(--pink-deep); }
.ib-chan__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 404px;
  margin: 0 -8px;
  padding: 0 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
  mask-image: linear-gradient(180deg, #000 86%, transparent);
}
.ib-chan__list li { position: relative; display: grid; flex: 0 0 64px; grid-template-columns: 40px minmax(0, 1fr) 10px; align-items: center; gap: 12px; height: 64px; padding: 0 12px; border-radius: 12px; transition: opacity .35s ease, filter .35s ease, background-color .2s ease; }
.ib-chan__list li:hover { background: rgba(255, 255, 255, .06); }
.ib-chan__list li.is-unread { background: rgba(255, 255, 255, .045); }
.ib-chan__list li.is-dim { opacity: .3; filter: grayscale(1); }
.ib-chan__av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; font: 700 14px/1 "Space Grotesk", sans-serif; }
.ib-chan__av i { position: absolute; right: -7px; bottom: -5px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #152040; color: #fff; }
.ib-chan__av .ib-i { width: 11px; height: 11px; }
.ib-chan__list p { display: grid; gap: 3px; min-width: 0; }
.ib-chan__line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.ib-chan__line b { overflow: hidden; color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ib-chan__line time { flex: 0 0 auto; color: #95a1bb; font-size: 12px; }
.ib-chan__list li.is-unread .ib-chan__line b { font-weight: 800; }
.ib-chan__list li.is-unread .ib-chan__line time { color: var(--pink-soft); font-weight: 700; }
.ib-chan__list small { display: flex; align-items: center; gap: 8px; min-width: 0; color: #a9b4cc; font-size: 13px; }
.ib-chan__list small > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ib-chan__list li.is-unread small { color: #d5dcec; }
.ib-chan__n { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.ib-chan__back { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #10b981; color: #fff; font-size: 11.5px; font-weight: 700; }
.ib-chan__back .ib-i { width: 12px; height: 12px; }
.ib-chan__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, .22); }
.ib-chan__sep { display: none; flex: 0 0 26px; align-items: center; gap: 10px; order: 1; padding: 0 12px; color: #95a1bb; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ib-chan__sep::after { content: ""; flex: 1 1 auto; border-top: 1px dashed rgba(255, 255, 255, .16); }
.ib-chan.is-filtered .ib-chan__sep { display: flex; }

/* Stop 2: the suggested reply is waiting. The HTML is the finished state; the page JS replays the arrival
   (email slides in, "Writing a reply", then the reply, its sources and the buttons) without changing any height. */
.ib-draft { align-items: start; }
.ib-mailin { display: grid; gap: 14px; padding: 18px 20px 22px; }
.ib-mailin__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(31, 20, 36, .08); }
.ib-mailin__box { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ib-mailin__box .ib-i { width: 15px; height: 15px; color: var(--pink); }
.ib-sugg { display: grid; }
.ib-sugg > span { display: inline-flex; grid-area: 1 / 1; align-items: center; justify-self: end; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; transition: opacity .3s ease, transform .3s ease; }
.ib-sugg__ready { background: #7c3aed; box-shadow: 0 6px 14px -4px rgba(124, 58, 237, .55); color: #fff; }
.ib-sugg__ready .ib-i { width: 14px; height: 14px; }
.ib-sugg__wait { background: #efe9fb; color: #6d28d9; opacity: 0; }
.ib-sugg__wait i { width: 7px; height: 7px; border-radius: 50%; background: #8b5cf6; animation: ib-dots 1s ease-in-out infinite; }
.ib-mailin__who { display: flex; align-items: center; gap: 12px; }
.ib .ib-mailin__who > i { width: 42px; height: 42px; }
.ib-mailin__who span { display: grid; gap: 3px; }
.ib-mailin__who b { font-size: 15.5px; }
.ib-mailin__who small { color: var(--ink); font-size: 14px; font-weight: 700; }
.ib-mailin__who time { align-self: flex-start; margin-left: auto; color: var(--muted); font-size: 12.5px; }
.ib-mailin__text { color: var(--ink2); font-size: 15px; line-height: 1.55; }
.ib-reply { display: grid; gap: 14px; padding: 20px; }
.ib-reply__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ib-reply__head b { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 700 17px/1 "Space Grotesk", sans-serif; }
.ib-reply__head b .ib-i { width: 18px; height: 18px; color: #c4b5fd; }
.ib-reply__head span { color: #a3aec6; font-size: 13px; }
.ib-reply__body { position: relative; padding: 14px 16px; border: 1px solid rgba(196, 181, 253, .28); border-radius: 14px; background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(139, 92, 246, .08)); }
.ib-reply__body::after {
  content: "";
  position: absolute;
  inset: 16px 16px 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .08) 80%) 0 0 / 200% 100%;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 24px);
  mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ib-reply__text { color: #f3f5fb; font-size: 15.5px; line-height: 24px; transition: color .45s ease; }
.ib-reply__src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ib-reply__src p { display: inline-flex; align-items: center; gap: 6px; color: #a3aec6; font-size: 12.5px; font-weight: 700; }
.ib-reply__src p .ib-i { width: 15px; height: 15px; }
.ib-reply__src ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-reply__src li { padding: 5px 10px; border-radius: 999px; background: #10b981; color: #fff; font-size: 12.5px; font-weight: 700; transition: opacity .3s ease, transform .3s ease; }
.ib-reply__src li:nth-child(2) { background: #0284c7; }
.ib-reply__src li:nth-child(3) { background: #f59e0b; color: #2b1800; }
.ib-reply__btns { display: flex; flex-wrap: wrap; gap: 8px; transition: opacity .3s ease; }
.ib-reply__btns span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: rgba(255, 255, 255, .06); color: #eef1f8; font-size: 14px; font-weight: 700; }
.ib-reply__btns .ib-i { width: 16px; height: 16px; }
.ib-reply__btns .ib-reply__send { border-color: transparent; background: linear-gradient(180deg, #ff5c9e 0%, #e62d78 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 8px 18px -6px rgba(230, 45, 120, .7); color: #fff; }
.ib-reply__more { color: #a3aec6; font-size: 13.5px; }
.ib-draft:is([data-stage="in"], [data-stage="write"]) .ib-sugg__ready { opacity: 0; transform: scale(.9); }
.ib-draft[data-stage="write"] .ib-sugg__wait { opacity: 1; }
.ib-draft[data-stage="in"] .ib-mailin { animation: ib-mail-in .6s cubic-bezier(.22, .8, .24, 1) both; }
.ib-draft:is([data-stage="in"], [data-stage="write"]) .ib-reply__text { color: transparent; }
.ib-draft:is([data-stage="in"], [data-stage="write"]) .ib-reply__body::after { opacity: 1; }
.ib-draft[data-stage="write"] .ib-reply__body::after { animation: ib-shimmer 1.2s linear infinite; }
.ib-draft:is([data-stage="in"], [data-stage="write"]) .ib-reply__src li { opacity: 0; transform: translateY(6px); }
.ib-draft:is([data-stage="in"], [data-stage="write"]) .ib-reply__btns { opacity: .35; }
.ib-draft.is-ready .ib-sugg__ready { animation: ib-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.ib-draft.is-ready .ib-reply__src li { transition-delay: calc(.35s + var(--i, 0) * .15s); }
.ib-draft.is-ready .ib-reply__send { animation: ib-send 1.4s .9s ease-in-out 2; }
.ib-reply__src li:nth-child(2) { --i: 1; }
.ib-reply__src li:nth-child(3) { --i: 2; }
@keyframes ib-mail-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes ib-shimmer { to { background-position: -200% 0; } }
@keyframes ib-send { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 0 0 6px rgba(255, 61, 139, .28), 0 8px 18px -6px rgba(230, 45, 120, .7); } }

/* Stop 3: AI Assistant evening. Mode switch + a timeline of real bubbles; each row shows what that mode does. */
.ib-night { container-type: inline-size; }
.ib-night__card { display: grid; gap: 16px; padding: 20px; }
.ib-night__side { display: grid; align-content: start; gap: 16px; }
/* Wide cards: controls on the left, the evening on the right. */
@container (min-width: 760px) {
  .ib-night__card { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); column-gap: 28px; padding: 24px; }
  .ib-night__side { grid-column: 1; grid-row: 1 / span 2; padding-right: 26px; border-right: 1px solid rgba(255, 255, 255, .08); }
  .ib-night__card > .ib-tl { grid-column: 2; grid-row: 1; }
  .ib-night__card > .ib-cap { grid-column: 2; grid-row: 2; }
  .ib-night__top { flex-direction: column; align-items: stretch; }
  .ib-night__title { align-self: flex-start; }
  .ib-night .ib-seg { display: flex; }
  .ib-seg button { flex: 1 1 0; }
  .ib-night .ib-night__hours em { grid-column: 2; justify-self: start; }
}
.ib-night__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ib-night__title { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 700 18px/1.2 "Space Grotesk", sans-serif; }
.ib-night__title .ib-i { width: 19px; height: 19px; color: #c4b5fd; }
.ib-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ib-seg button { min-width: 66px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: #c3cce0; font: 700 13.5px/1 "DM Sans", sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.ib-seg button:hover { color: #fff; }
.ib-seg button[aria-pressed="true"] { background: #0284c7; box-shadow: 0 6px 14px -6px rgba(2, 132, 199, .8); color: #fff; }
.ib-seg button[data-mode="off"][aria-pressed="true"] { background: #64748b; box-shadow: none; }
.ib-seg button[data-mode="draft"][aria-pressed="true"] { background: #7c3aed; box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .8); }
.ib-night__mode { display: grid; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #d5dcec; font-size: 14.5px; line-height: 1.45; }
.ib-night__mode > span { grid-area: 1 / 1; }
.ib-night__mode b { color: #fff; }
.ib-night__hours { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #c6d3ea; font-size: 13.5px; }
.ib-night__hours .ib-i { width: 17px; height: 17px; color: #38bdf8; }
.ib-night__hours b { color: #fff; }
.ib-night__hours em { justify-self: end; padding: 4px 10px; border-radius: 999px; background: #7c3aed; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.ib-tl { display: grid; }
.ib-tl li { position: relative; display: grid; grid-template-columns: 62px 32px minmax(0, 1fr); column-gap: 12px; padding-bottom: 16px; }
.ib-tl li::before { content: ""; position: absolute; left: 89px; top: 38px; bottom: 2px; border-left: 2px dotted rgba(255, 255, 255, .2); }
.ib-tl li:last-child { padding-bottom: 0; }
.ib-tl li:last-child::before { content: none; }
.ib-tl time { padding-top: 10px; color: var(--c); font: 700 13px/1 "Space Grotesk", sans-serif; text-align: right; white-space: nowrap; }
.ib-tl__node { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); color: #fff; }
.ib-tl__node .ib-i { width: 16px; height: 16px; }
.ib-tl__body { display: grid; justify-items: start; gap: 8px; min-width: 0; padding-top: 6px; }
.ib-tl__body > b { color: #fff; font-size: 14.5px; line-height: 1.3; }
.ib-nw { white-space: nowrap; }
.ib-tl__note { color: #95a1bb; font-size: 12.5px; line-height: 1.4; }
.ib-bub { --show: grid; display: grid; gap: 3px; max-width: min(100%, 390px); padding: 9px 13px 8px; font-size: 14px; line-height: 1.42; }
.ib-bub small { justify-self: end; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 600; }
.ib-bub--in { border-radius: 17px 17px 17px 5px; background: rgba(255, 255, 255, .11); color: #eef1f8; }
.ib-bub--out { justify-self: end; border-radius: 17px 17px 5px 17px; background: #0b84ff; color: #fff; }
.ib-bub--ai { background: #7c3aed; }
.ib-bub--out[data-show="off"] { background: #475569; }
.ib-tl__out { --show: inline-flex; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.ib-tl__out .ib-i { width: 14px; height: 14px; }
.ib-tl__out--wait { background: #475569; color: #fff; }
.ib-tl__out--draft { background: #7c3aed; color: #fff; }
.ib-tl__out--auto { background: #0284c7; color: #fff; }
.ib-tl__out--hold { background: #f59e0b; color: #2b1800; }
.ib-tl__morning .ib-tl__body { justify-items: stretch; padding: 10px 14px 12px; border-radius: 12px; background: rgba(16, 185, 129, .13); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .3); }
.ib-night [data-show] { display: none; }
.ib-night[data-mode="off"] [data-show~="off"], .ib-night[data-mode="draft"] [data-show~="draft"], .ib-night[data-mode="auto"] [data-show~="auto"] { display: var(--show, block); }
.ib-night.is-switch [data-show] { animation: ib-fade .35s ease both; }

/* Stop 4: owners and due badges */
.ib-own__card { display: grid; gap: 14px; padding: 20px; }
.ib-own__views { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-own__views span { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d5dcec; font-size: 13px; font-weight: 700; }
.ib-own__views b { display: inline-block; min-width: 1ch; color: var(--pink-soft); transition: transform .3s ease; }
.ib-own__views b.is-bump { transform: scale(1.5); }
.ib-own__list { display: grid; gap: 4px; }
.ib-own__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 30px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .045); }
.ib-own__list li.is-focus { background: rgba(255, 61, 139, .12); box-shadow: inset 0 0 0 1px rgba(255, 61, 139, .45); }
.ib-own__list p { display: grid; gap: 2px; min-width: 0; }
.ib-own__list b { font-size: 14.5px; }
.ib-own__list small { overflow: hidden; color: #a9b4cc; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ib-due { padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.ib-due--soon { background: #f59e0b; color: #2b1800; }
.ib-due--over { background: #ef4444; color: #fff; }
.ib-due--ok { background: #10b981; color: #fff; }
.ib-own__who { display: grid; place-items: center; width: 30px; height: 30px; border: 2px dashed rgba(255, 255, 255, .28); border-radius: 50%; color: #fff; font: 700 11.5px/1 "Space Grotesk", sans-serif; }
.ib-own__who.is-set { border: 0; background: var(--c); }
.ib-own__who.is-new { animation: ib-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ib-pop { from { transform: scale(.3); } }
.ib-own__pick { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.ib-own__pick > p:first-child { color: #c3cce0; font-size: 13px; font-weight: 700; }
.ib-own__snooze { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #a3aec6; font-size: 13px; }
.ib-own__snooze .ib-i { width: 16px; height: 16px; }
.ib-own__snooze span { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #e3e8f4; font-weight: 600; }

/* Stop 5: team chat phone + DMs */
.ib-phone { position: relative; justify-self: center; width: min(100%, 330px); }
.ib-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 12px;
  border: 10px solid #0d0a0f;
  border-radius: 44px;
  background: linear-gradient(180deg, #fbf7fa 0%, #f1e8ee 100%);
  box-shadow: 0 0 0 2px #5a5058, 0 0 0 3px #2a2229, 0 34px 60px -20px rgba(26, 10, 31, .6);
  color: var(--ink);
}
.ib-phone__screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 88px; height: 22px; border-radius: 999px; background: #0d0a0f; transform: translateX(-50%); }
.ib-phone__status { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; }
.ib-phone__status span { display: flex; gap: 3px; }
.ib-phone__status i { width: 5px; height: 9px; border-radius: 1px; background: var(--ink); }
.ib-phone__title { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid rgba(31, 20, 36, .08); }
.ib-phone__title b { font: 700 15px/1 "Space Grotesk", sans-serif; }
.ib-phone__title small { color: var(--muted); font-size: 12px; }
.ib-chat { display: grid; gap: 10px; min-height: 300px; align-content: start; }
.ib-chat li { display: flex; align-items: flex-start; gap: 8px; }
.ib-chat li > i { width: 28px !important; height: 28px !important; font-size: 12px !important; }
.ib-chat p { padding: 8px 12px 9px; border-radius: 5px 17px 17px 17px; background: #fff; box-shadow: 0 1px 1px rgba(31, 20, 36, .06), 0 0 0 1px rgba(31, 20, 36, .05); font-size: 13.5px; line-height: 1.4; }
.ib-chat b { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; color: var(--c); font-size: 12px; }
.ib-chat time { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.ib-chat li.is-hidden { visibility: hidden; }
.ib-chat li.is-new { animation: ib-drop .5s cubic-bezier(.3, 1.3, .5, 1) both; }
.ib-phone__typing { display: flex; gap: 4px; height: 12px; padding-left: 40px; opacity: 0; transition: opacity .2s ease; }
.ib-phone__typing.is-on { opacity: 1; }
.ib-phone__typing i { width: 7px; height: 7px; border-radius: 50%; background: #a896a6; animation: ib-dots 1s ease-in-out infinite; }
.ib-phone__typing i:nth-child(2) { animation-delay: .15s; }
.ib-phone__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ib-dots { 50% { transform: translateY(-4px); opacity: .5; } }
.ib-phone__input { padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 20, 36, .1); color: var(--muted); font-size: 13px; }
.ib-phone__cap { margin-top: 12px; color: var(--muted); font-size: 11.5px; text-align: center; }
.ib-dm { display: grid; align-content: start; gap: 12px; padding: 18px 20px; }
.ib-dm__label { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ib-dm ul { display: grid; gap: 4px; }
.ib-dm li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px; border-radius: 12px; }
.ib-dm li:first-child { background: #fdf0f6; }
.ib-dm p { display: grid; gap: 1px; }
.ib-dm b { font-size: 14.5px; }
.ib-dm small { color: var(--muted); font-size: 12.5px; }
.ib-dm em { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }

/* Stop 6: customer record + reply toolbox */
.ib-rec { display: grid; align-content: start; gap: 14px; padding: 20px; }
.ib-rec__tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 11px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12.5px; font-weight: 700; }
.ib-rec__tag .ib-i { width: 15px; height: 15px; }
.ib-rec__who { display: flex; align-items: center; gap: 10px; }
.ib-rec__who span { display: grid; gap: 2px; }
.ib-rec__who b { font-size: 15px; }
.ib-rec__who small { color: var(--muted); font-size: 12.5px; }
.ib-rec__jobs { display: grid; gap: 6px; }
.ib-rec__jobs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(31, 20, 36, .06); border-radius: 11px; background: #f8f3f6; font-size: 13.5px; }
.ib-rec__jobs span { color: var(--muted); }
.ib-tool { display: grid; gap: 14px; padding: 20px; }
.ib-tool__msg { justify-self: start; max-width: 380px; padding: 9px 13px 10px; border-radius: 17px 17px 17px 5px; background: rgba(255, 255, 255, .11); font-size: 14px; line-height: 1.42; }
.ib-tool__msg b { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; color: var(--pink-soft); font-size: 12px; }
.ib-tool__msg time { color: #95a1bb; font-size: 10.5px; font-weight: 600; }
.ib-tool__reply { display: grid; align-content: start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.ib-tool__slot { display: none; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.ib-next[data-show~="booking"] [data-slot="booking"], .ib-next[data-show~="payment"] [data-slot="payment"], .ib-next[data-show~="portal"] [data-slot="portal"], .ib-next[data-show~="video"] [data-slot="video"] { display: flex; }
.ib-tool__slot.is-added { animation: ib-drop .45s cubic-bezier(.3, 1.3, .5, 1) both; }
.ib-tool__slot > span { padding: 8px 12px; border: 1.5px solid #1d4ed8; border-radius: 10px; color: #1d4ed8; font-size: 13.5px; font-weight: 700; }
.ib-tool__slot > .ib-tool__pay { border-color: #16a34a; background: #16a34a; color: #fff; }
.ib-tool__slot > .ib-tool__portal { display: inline-flex; align-items: center; gap: 6px; border-color: var(--wine); background: var(--wine); color: #fff; }
.ib-tool__portal .ib-i { width: 15px; height: 15px; }
.ib-tool__send { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-tool__send span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #e3e8f4; font-size: 13px; font-weight: 700; }
.ib-tool__send .ib-i { width: 15px; height: 15px; }
.ib-tool__send .ib-tool__go { border-color: transparent; background: linear-gradient(180deg, #ff5c9e 0%, #e62d78 100%); box-shadow: 0 8px 18px -6px rgba(230, 45, 120, .7); color: #fff; }

/* Finish band */
.ib-finish { position: relative; display: grid; gap: 16px; max-width: 780px; margin: 0 auto; padding: 30px 16px 44px 76px; }
.ib-finish > * { position: relative; z-index: 2; }
.ib-bigtray { width: 116px; height: auto; }
.ib-finish__copy { display: grid; gap: 10px; }
.ib-finish__copy h2 { font-size: clamp(24px, 5.6vw, 30px); }
.ib-finish__copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.ib-note--out { justify-self: end; transform: rotate(-5deg); }

/* ---------------------------------------------------------------- sample reviews (same design as the other road pages) */
.ib-reviews { position: relative; z-index: 3; display: grid; gap: 26px; padding: 48px 16px 56px; background: linear-gradient(180deg, #f6eef3 0%, #fcf8fa 100%); scroll-margin-top: 186px; }
.ib-reviews__head, .ib-get__head { display: grid; justify-items: center; gap: 10px; max-width: 700px; margin: 0 auto; text-align: center; }
.ib-reviews__label { padding: 4px 12px; border-radius: 999px; background: rgba(31, 20, 36, .06); color: var(--muted); font-size: 13px; font-weight: 600; }
.ib-reviews__grid { display: grid; gap: 18px; width: 100%; max-width: 1280px; margin: 0 auto; }
.ib-review { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fdfbfc 100%); box-shadow: 0 16px 34px rgba(31, 20, 36, .1), 0 2px 6px rgba(31, 20, 36, .05), 0 0 0 1px rgba(31, 20, 36, .06); }
.ib-review::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--av); opacity: .85; }
.ib-review::after { content: "\201C"; position: absolute; top: 6px; right: 18px; color: color-mix(in srgb, var(--av) 16%, transparent); font: 700 84px/1 Georgia, serif; pointer-events: none; }
.ib-review blockquote { flex: 1 1 auto; }
.ib-review blockquote p { color: var(--ink); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.ib-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(31, 20, 36, .08); }
.ib-review__av { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--av) 78%, #fff), var(--av)); box-shadow: 0 6px 14px color-mix(in srgb, var(--av) 35%, transparent), inset 0 1px rgba(255, 255, 255, .35); color: #fff; font: 700 16px/1 "Space Grotesk", sans-serif; letter-spacing: .02em; }
.ib-review figcaption b { display: block; color: var(--ink); font-size: 16px; }
.ib-review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------------------------------------------------------------- how you get it */
.ib-get { position: relative; z-index: 3; display: grid; gap: 26px; padding: 52px 16px 56px; background: #fffcfd; scroll-margin-top: 186px; }
.ib-vs { display: grid; width: 100%; max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 16px 34px rgba(31, 20, 36, .08), 0 0 0 1px rgba(31, 20, 36, .07); }
.ib-vs__head, .ib-vs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ib-vs__head span { padding: 12px 16px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ib-vs__head span:last-child { background: var(--wine); color: var(--pink-soft); }
.ib-vs__row span { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(31, 20, 36, .07); font-size: 16px; line-height: 1.4; }
.ib-vs__row span:first-child { color: var(--muted); }
.ib-vs__row span:last-child { background: #fff3f8; color: var(--ink); font-weight: 600; }
.ib-vs__row svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.ib-plan { display: grid; gap: 20px; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; border: 1px solid rgba(170, 186, 255, .18); border-radius: 20px; background: linear-gradient(160deg, #1d2a4d 0%, #131d3a 55%, #0d152c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 4px rgba(10, 14, 34, .18), 0 16px 30px -8px rgba(10, 14, 34, .38), 0 36px 64px -20px rgba(10, 14, 34, .5); color: #eaeef8; }
.ib-plan h3 { color: #fff; font-size: 24px; line-height: 1.15; }
.ib-plan__copy { display: grid; gap: 14px; }
.ib-plan__list { display: grid; gap: 10px; }
.ib-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: #d5dcec; font-size: 15.5px; line-height: 1.45; }
.ib-plan__list b { color: #fff; }
.ib-plan__list .ib-ok { width: 20px; height: 20px; margin-top: 2px; color: var(--pink-soft); }

/* ---------------------------------------------------------------- FAQ */
.ib-close { position: relative; z-index: 3; padding: 44px 16px 52px; background: linear-gradient(180deg, #211026 0%, #1a0a1f 100%); color: #fff; }
.ib-faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.ib-faq h2 { margin-bottom: 6px; color: #fff; font-size: clamp(24px, 5.4vw, 30px); }
.ib-faq details { border: 1px solid rgba(255, 190, 220, .16); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.ib-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.ib-faq summary::-webkit-details-marker { display: none; }
.ib-faq .ib-plus { flex: 0 0 auto; width: 18px; height: 18px; color: #e3b8cf; transition: transform .25s ease; }
.ib-faq details[open] .ib-plus { transform: rotate(45deg); }
.ib-faq details p { padding: 0 16px 15px; color: #e6d6e0; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- motion */
.ib-motion .ib-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22, .8, .24, 1), transform .6s cubic-bezier(.22, .8, .24, 1); }
.ib-motion .ib-reveal.is-in { opacity: 1; transform: none; }
.ib-motion .ib-pin { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .4s ease; }
.ib-motion .ib-step:not(.is-in) .ib-pin { transform: translateY(-28px) scale(.8); filter: grayscale(1) opacity(.55); }
/* Stop 3: the evening lights up in order. */
.ib-motion .ib-tl li { opacity: .25; transition: opacity .5s ease; }
.ib-motion .ib-step--3.is-in .ib-tl li { opacity: 1; transition-delay: calc(.4s + var(--i, 0) * .5s); }
.ib-motion .ib-bigtray__ok { transform-origin: 92px 22px; animation: ib-ok 3s ease-in-out infinite; }
@keyframes ib-ok { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------------------------------------------------------------- tablets */
@media (min-width: 700px) {
  .ib-hero__copy { padding-top: 40px; }
  .ib-win__body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .ib-cust { border-top: 0; border-left: 1px solid rgba(31, 20, 36, .08); }
  .ib-draft { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .ib-note--s2 { grid-column: 1 / -1; }
  .ib-team { grid-template-columns: minmax(0, 330px) minmax(0, 380px); grid-template-rows: auto 1fr; align-items: start; column-gap: 32px; }
  .ib-team .ib-phone { grid-row: 1 / span 2; }
  .ib-note--s5 { grid-column: 2; }
  .ib-next { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .ib-note--s6 { grid-column: 1 / -1; }
  .ib-finish { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .ib-note--out { grid-column: 1 / -1; }
  .ib-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 30px; }
  .ib-plan .ib-actions { flex-direction: column; }
  .ib-close { padding: 52px clamp(24px, 5vw, 64px) 60px; }
}
@media (min-width: 1100px) { .ib-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------------------------------------------------------------- desktop rows */
@media (min-width: 1280px) {
  /* Centered headline on top, wide centerpiece below: channel docks, wires, inbox window. */
  .ib-hero { padding-bottom: 56px; }
  .ib-hero__copy { align-items: center; gap: 18px; width: min(100% - 80px, 1040px); padding-top: 44px; text-align: center; }
  .ib-brand { justify-content: center; }
  .ib-brand__logo { font-size: 34px; }
  .ib-brand__logo svg { width: 40px; height: 36px; }
  .ib-eyebrow { font-size: 15px; text-align: left; }
  .ib h1 { font-size: clamp(40px, 3.2vw, 60px); }
  .ib-hero__sub { max-width: 760px; font-size: clamp(16px, 1.1vw, 19px); }
  .ib-actions, .ib-signals { justify-content: center; }
  .ib-stage { grid-template-columns: 190px 90px minmax(0, 820px); grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: 0; row-gap: 0; width: min(100% - 80px, 1180px); margin-top: 38px; }
  /* Docks spread over the window's height with space-around, so each wire (10%, 30% ... 90%) meets its dock. */
  .ib-src { grid-column: 1; grid-row: 1; align-self: stretch; flex-direction: column; flex-wrap: nowrap; justify-content: space-around; gap: 12px; padding: 0; }
  .ib-src li { justify-content: flex-start; }
  .ib .ib-wires { display: block; grid-column: 2; grid-row: 1; align-self: stretch; width: 100%; height: 100%; }
  .ib-wires path { fill: none; stroke: rgba(255, 140, 192, .35); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: ib-wire 1.4s linear infinite; }
  @keyframes ib-wire { to { stroke-dashoffset: -22; } }
  .ib-win { grid-column: 3; grid-row: 1; }
  .ib-note--hero { grid-column: 3; grid-row: 2; width: 230px; margin: -22px -30px 0 0; font-size: 32px; }

  .ib-course { --edge: 92px; max-width: 1680px; margin: 0 auto; padding: 36px var(--edge) 0; }
  .ib .ib-road { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
  .ib-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .ib-road__edge { stroke: var(--road-edge); stroke-width: 36; filter: drop-shadow(0 2px 3px rgba(40, 20, 30, .25)); }
  .ib-road__top { stroke: var(--asphalt); stroke-width: 30; }
  .ib-road__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: butt !important; }
  .ib .ib-drive { position: absolute; z-index: 4; left: 0; top: 0; display: block; width: 140px; visibility: hidden; filter: drop-shadow(0 7px 5px rgba(20, 20, 40, .28)); pointer-events: none; will-change: transform; }
  .ib .ib-drive.is-placed { visibility: visible; }
  .ib-drive img { width: 100%; height: auto; }
  .ib-drive__right, .ib-drive.is-right .ib-drive__left { display: none !important; }
  .ib-drive.is-right .ib-drive__right { display: block !important; }

  .ib-step {
    z-index: 2;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.45fr);
    grid-template-areas: "intro visual";
    align-items: start;
    column-gap: clamp(28px, 3vw, 56px);
    max-width: none;
    margin: 0;
    padding: 58px 36px 58px 104px;
  }
  .ib-intro { grid-area: intro; padding-top: 14px; }
  .ib-visual { grid-area: visual; }
  .ib-step::before, .ib-step::after, .ib-finish::before, .ib-finish::after { content: none; }
  .ib-pin { left: 17px; top: 28px; width: 80px; height: 100px; }
  .ib-pin b { top: 12px; font-size: 42px; }
  .ib h2 { font-size: clamp(27px, 1.95vw, 34px); line-height: 1.06; }
  .ib-visual > .ib-note { justify-self: end; font-size: 34px; }

  .ib-finish {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "tray copy note";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: none;
    margin: 10px 0 0 104px;
    padding: 26px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(31, 20, 36, .1), 0 0 0 1px rgba(31, 20, 36, .05);
  }
  .ib-bigtray { grid-area: tray; width: 110px; }
  .ib-finish__copy { grid-area: copy; }
  .ib-finish__copy h2 { font-size: clamp(24px, 1.7vw, 30px); }
  .ib-note--out { grid-column: auto; grid-area: note; font-size: 34px; }
  .ib-course::after { content: ""; display: block; height: 96px; }

  .ib-reviews, .ib-get { gap: 30px; padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .ib-close { padding: 60px clamp(40px, 5vw, 96px) 68px; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  /* With the side panel open the course is ~1150px wide: visuals get the full row under a two-column intro. */
  .ib-step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "visual"; row-gap: 26px; }
  .ib-step .ib-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .ib-step .ib-intro > :is(h2, .ib-sub) { grid-column: 1; }
  .ib-step .ib-intro > :is(.ib-checks, .ib-try, .ib-aside) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ib-finish { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tray copy" "tray note"; row-gap: 8px; }
  .ib-note--out { justify-self: end; }
  .ib h1 { font-size: clamp(38px, 3.2vw, 50px); }
  .ib-stage { grid-template-columns: 180px 70px minmax(0, 760px); }
}


@media (max-width: 1180px) { .ib-step, .ib-reviews, .ib-get { scroll-margin-top: 236px; } }
@media (min-width: 1181px) { .ib-step { scroll-margin-top: 186px; } }
@media (max-width: 850px) { .ib-step, .ib-reviews, .ib-get { scroll-margin-top: 218px; } }
@media (max-width: 699px) {
  .ib-vs__head span:first-child { display: none; }
  .ib-vs__head, .ib-vs__row { grid-template-columns: minmax(0, 1fr); }
  .ib-vs__row span:first-child { padding-bottom: 4px; border-top: 1px solid rgba(31, 20, 36, .07); font-size: 14px; }
  .ib-vs__row span:last-child { border-top: 0; }
}
@media (max-width: 599px) {
  /* Channel tabs scroll sideways instead of wrapping into three rows. */
  .ib .ib-chan__tabs { flex-wrap: nowrap; margin: 0 -18px; padding: 2px 18px 4px; overflow-x: auto; scrollbar-width: none; }
  .ib-chan__tabs::-webkit-scrollbar { display: none; }
  .ib-chan__search { max-width: none; }
  /* Timeline: node on the left, time above each message. */
  .ib-tl li { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; }
  .ib-tl li::before { left: 15px; }
  .ib-tl__node { grid-column: 1; grid-row: 1 / span 2; }
  .ib-tl time { grid-column: 2; grid-row: 1; padding-top: 9px; text-align: left; }
  .ib-tl__body { grid-column: 2; grid-row: 2; }
  .ib-night__hours em { grid-column: 2; justify-self: start; }
  .ib-reply, .ib-night__card, .ib-own__card, .ib-tool { padding: 16px; }
}
@media (max-width: 459px) {
  .ib-src li { padding-right: 10px; font-size: 13px; }
  .ib-src li > .ib-i { width: 24px; height: 24px; padding: 4px; }
  .ib-own__list li { grid-template-columns: auto minmax(0, 1fr) 30px; }
  .ib-own__list .ib-due { grid-column: 2; grid-row: 2; justify-self: start; }
  .ib-own__list .ib-own__who { grid-column: 3; grid-row: 1 / span 2; }
  .ib-seg { width: 100%; }
  .ib-seg button { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ib-btn, .ib-src li, .ib :is(.ib-chan__tabs, .ib-own__people, .ib-tool__bar) button, .ib-seg button, .ib-faq .ib-plus, .ib-own__views b, .ib-visual > :is(.ib-card, .ib-dark), .ib-chan__list li { transition: none !important; }
  .ib-visual > :is(.ib-card, .ib-dark):hover { transform: none !important; }
  .ib-pin, .ib-bigtray__ok, .ib-wires path, .ib-typing::after, .ib-row, .ib-cust > *, .ib-chat li, .ib-phone__typing i, .ib-own__who, .ib-night [data-show], .ib-tool__slot, .ib-chan__list li, .ib-sugg__wait i { animation: none !important; }
  .ib-motion .ib-reveal, .ib-motion .ib-pin, .ib-motion .ib-tl li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ib-motion .ib-pin { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)) !important; }
}
.ib-tl li:nth-child(2) { --i: 1; }
.ib-tl li:nth-child(3) { --i: 2; }
.ib-tl li:nth-child(5) { --i: 4; }
.ib-tl li:nth-child(4) { --i: 3; }
