/* Messages pages: /whatsapp, /inbox, /automation (30 Nov 2026). Builds on site.css and page-features.css. */

/* Network marks the site's sprite does not have: WhatsApp and Messenger, drawn as plain line glyphs on their colour. */
.net--wa { background: #25d366; color: #fff; }
.net--ms { background: #0a7cff; color: #fff; }
.net--wa svg, .net--ms svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Early access marker */
.ea { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--pale); border-radius: 999px; padding: 6px 12px 6px 10px; }
.ea::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ea--dark { background: rgba(255,255,255,.1); color: var(--white); }
.fhero__note { margin-top: 14px; font-size: 15px; color: var(--slate); }
.fhero__copy .ea { margin-bottom: 18px; }

/* ---- phone chat mock ---- */
.phone { width: 100%; max-width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 10px; box-shadow: 0 24px 48px rgba(6, 15, 45, .10); }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); }
.phone__av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.phone__who { display: grid; line-height: 1.25; min-width: 0; }
.phone__who b { font-size: 15px; color: var(--ink); font-weight: 650; }
.phone__who small { font-size: 12px; color: var(--slate); }
.phone__top .net { margin-left: auto; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px 8px; min-height: 360px; }
.b { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.42; color: var(--ink); opacity: 0; transform: translateY(6px); animation: b-in .32s ease forwards; }
.b--in { align-self: flex-start; background: var(--cloud); border-bottom-left-radius: 6px; }
.b--out { align-self: flex-end; background: var(--pale); border-bottom-right-radius: 6px; }
.b--auto { position: relative; }
.b small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--slate); }
.b-btns { align-self: flex-end; display: grid; gap: 6px; width: 70%; opacity: 0; animation: b-in .32s ease forwards; }
.b-btns span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--blue-ink); background: var(--white); }
.b-btns span.is-tap { border-color: var(--blue); background: var(--pale); }
.b-sys { align-self: center; font-size: 12px; color: var(--slate); padding: 2px 0; opacity: 0; animation: b-in .32s ease forwards; }
@keyframes b-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .b, .b-btns, .b-sys { animation: none; opacity: 1; transform: none; } }

/* ---- use cases: tabs beside a phone (WhatsApp page) ---- */
.uses { padding: 112px 0; background: var(--cloud); }
.uses__in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; }
.uses__tabs { display: grid; gap: 10px; margin-top: 32px; }
.uses__tab { text-align: left; display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-mid); border: 1.5px solid transparent; background: transparent; cursor: pointer; }
.uses__tab b { font-size: 19px; color: var(--ink); font-weight: 680; letter-spacing: -0.01em; }
.uses__tab span { font-size: 15.5px; color: var(--body); display: none; }
.uses__tab[aria-selected="true"] { background: var(--white); border-color: var(--line); }
.uses__tab[aria-selected="true"] span { display: block; }
.uses__tab:hover b { color: var(--blue-ink); }
.uses__phone { display: grid; justify-items: center; }

/* ---- feature rows (photo or mock beside words) ---- */
.rows { padding: 112px 0; }
.rows__head { max-width: 760px; margin-bottom: 64px; display: grid; gap: 16px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow--flip .mrow__ui { order: -1; }
.mrow__copy { display: grid; gap: 14px; max-width: 520px; }
.mrow__copy h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.mrow__copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mrow__copy li { padding-left: 28px; position: relative; font-size: 16px; }
.mrow__copy li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='%23060f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.mrow__ui { background: var(--cloud); border-radius: var(--r-card); padding: 32px; display: grid; gap: 10px; align-content: center; min-height: 320px; }
.mrow__ui .ui-row { background: var(--white); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--ink); }
.tpl-msg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-mid); padding: 16px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink); }
.tpl-msg__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--slate); }
.tpl-msg__stop { font-size: 13px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 8px; }
.join { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-mid); padding: 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.join__qr { width: 96px; height: 96px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); padding: 4px; }
.join b { color: var(--ink); display: block; font-size: 15px; }
.join small { color: var(--slate); font-size: 13px; }

/* ---- with / without ---- */
.vs { padding: 112px 0; background: var(--white); }
.vs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.vs__col { border-radius: var(--r-card); padding: 36px; display: grid; gap: 14px; align-content: start; }
.vs__col--before { background: var(--cloud); }
.vs__col--after { background: var(--midnight); color: #c9cfe0; }
.vs__col h3 { font-size: 22px; }
.vs__col--after h3 { color: var(--white); }
.vs__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.vs__col li { padding-left: 30px; position: relative; font-size: 16px; }
.vs__col--before li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 2px; background: var(--slate); }
.vs__col--after li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---- ready-made automations ---- */
.tpls { padding: 112px 0; background: var(--cloud); }
.tpls__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.tpl { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: grid; gap: 10px; align-content: start; }
.tpl__top { display: flex; gap: 6px; align-items: center; }
.tpl__goal { margin-left: auto; font-size: 12.5px; color: var(--slate); font-weight: 600; }
.tpl h3 { font-size: 19px; letter-spacing: -0.015em; }
.tpl p { font-size: 15px; }
.tpl__steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tpl__steps span { font-size: 12.5px; color: var(--ink); background: var(--cloud); border-radius: 8px; padding: 4px 8px; }
.tpls__more { margin-top: 28px; font-size: 16px; }

/* ---- steps ---- */
.msteps { padding: 112px 0; }
.msteps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: s; }
.mstep { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; counter-increment: s; }
.mstep::before { content: counter(s); font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.mstep h3 { font-size: 21px; }

/* ---- plans table + FAQ sections ---- */
.mplans { padding: 112px 0; background: var(--cloud); }
.mplans .table-wrap { margin-top: 40px; background: var(--white); position: relative; } /* contains the .sr labels, which are absolutely placed */
.mfaq { padding: 112px 0; }

/* ---- inbox demo (blue band, /inbox) ---- */
.ibx { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 24px 48px rgba(6, 15, 45, .10); display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; overflow: hidden; min-height: 520px; }
.ibx__list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.ibx__filters { display: flex; gap: 6px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ibx__filters span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; color: var(--ink); background: var(--white); }
.ibx__filters span.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ibx__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; width: 100%; }
.ibx__row:hover { background: var(--cloud); }
.ibx__row[aria-pressed="true"] { background: var(--pale); }
.ibx__av { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--cloud); color: var(--ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.ibx__av .net { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border: 2px solid var(--white); }
.ibx__av .net svg { width: 9px; height: 9px; }
.ibx__txt { display: grid; min-width: 0; line-height: 1.3; }
.ibx__txt b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx__txt small { font-size: 12.5px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx__meta { display: grid; justify-items: end; gap: 4px; font-size: 11.5px; color: var(--slate); }
.ibx__n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.ibx__chat { display: flex; flex-direction: column; min-width: 0; }
.ibx__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ibx__head b { font-size: 14.5px; color: var(--ink); }
.ibx__head small { display: block; font-size: 12px; color: var(--slate); }
.ibx__acts { margin-left: auto; display: flex; gap: 6px; }
.ibx__acts button { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ibx__acts button:hover { border-color: var(--ink); }
.ibx__acts button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ibx__msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow: auto; }
.ibx__msgs .b { max-width: 78%; }
.b--note { align-self: stretch; max-width: none; background: #fff4e5; border-radius: 12px; font-size: 13.5px; }
.ibx__compose { border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.ibx__ctabs { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ibx__ctabs button { border: 0; background: none; padding: 6px 0 8px; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.ibx__ctabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ibx__box { display: flex; gap: 10px; align-items: center; }
.ibx__box input { flex: 1; min-width: 0; border: 0; padding: 8px 0; font-size: 14.5px; background: transparent; outline: none; }
.ibx__compose.is-note { background: #fff4e5; }
.ibx__person { border-left: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; align-content: start; font-size: 13px; }
.ibx__person h4 { font-size: 15px; }
.ibx__person dl { margin: 0; display: grid; gap: 8px; }
.ibx__person dt { color: var(--slate); font-size: 12px; }
.ibx__person dd { margin: 0; color: var(--ink); }
.ibx__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ibx__tags span { background: var(--cloud); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--ink); }
.ibx__paused { font-size: 12.5px; color: var(--ink); background: var(--pale); border-radius: 8px; padding: 6px 10px; align-self: center; }

/* ---- flow canvas + preview (/automation) ---- */
.flowdemo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.canvas { position: relative; background: var(--white) radial-gradient(circle, #d7dded 1px, transparent 1.2px) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; min-height: 520px; overflow: hidden; }
.canvas__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.canvas__lines path { fill: none; stroke: #9aa3bd; stroke-width: 1.6; }
.canvas__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; align-items: start; }
.node { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-mid); padding: 14px; display: grid; gap: 8px; box-shadow: 0 6px 16px rgba(6, 15, 45, .06); font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.node.is-live { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 86, 255, .14); }
.node__kick { font-size: 11.5px; font-weight: 650; color: var(--slate); text-transform: none; display: flex; gap: 6px; align-items: center; }
.node__kick i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.node--when .node__kick i { background: var(--ok); }
.node--cond .node__kick i { background: #8a5cf6; }
.node--act .node__kick i { background: #e08a00; }
.node b { font-size: 14.5px; color: var(--ink); }
.node__text { background: var(--cloud); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.node__btn { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; text-align: center; font-weight: 600; color: var(--blue-ink); }
.node__stat { font-size: 11.5px; color: var(--slate); }
.preview { position: sticky; top: 110px; display: grid; gap: 12px; justify-items: center; }
.preview .phone { max-width: 340px; }
.preview .chat { min-height: 380px; max-height: 420px; overflow: auto; }
.preview__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.preview__hint { font-size: 13px; color: var(--slate); text-align: center; }
.b-btns--live span { cursor: pointer; }
.b-btns--live span:hover { border-color: var(--blue); }

/* triggers and steps lists */
.kinds { padding: 112px 0; }
.kinds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.kinds__card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; display: grid; gap: 18px; align-content: start; }
.kinds__card h3 { font-size: 24px; }
.kinds__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.kinds__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kinds__list li:first-child { border-top: 0; }
.kinds__list b { color: var(--ink); font-size: 16px; display: block; }
.kinds__list small { font-size: 14.5px; color: var(--body); }
.kinds__ic { width: 28px; height: 28px; border-radius: 8px; background: var(--cloud); display: grid; place-items: center; color: var(--ink); }
.kinds__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the Messages trio (home, pricing, cross links) ---- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.trio a { display: grid; gap: 8px; padding: 26px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); text-decoration: none; align-content: start; transition: border-color .15s; }
.trio a:hover { border-color: var(--ink); }
.trio b { font-size: 19px; color: var(--ink); }
.trio span { font-size: 15px; }
.trio em { font-style: normal; font-weight: 600; color: var(--blue-ink); font-size: 15px; margin-top: 6px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ibx { grid-template-columns: 260px minmax(0, 1fr); }
  .ibx__person { display: none; }
  .flowdemo { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 900px) {
  .uses__in, .mrow, .vs__grid, .kinds__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mrow--flip .mrow__ui { order: 0; }
  .tpls__grid, .msteps__grid, .trio { grid-template-columns: minmax(0, 1fr); }
  .uses, .rows, .vs, .tpls, .msteps, .mplans, .mfaq, .kinds { padding: 80px 0; }
  .canvas__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* The cards carry their wide-screen places inline; on one column they follow the page order instead. */
  .canvas__grid > .node { grid-column: auto !important; grid-row: auto !important; }
  .flowdemo .preview { order: -1; }
  .canvas__lines { display: none; }
  .canvas { min-height: 0; padding: 18px; }
}
@media (max-width: 720px) {
  .ibx { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ibx__list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; overflow: auto; }
  .ibx__msgs { min-height: 300px; }
  .mrow__ui { padding: 20px; min-height: 0; }
  .vs__col { padding: 26px; }
  .uses__tab span { font-size: 15px; }
  .ibx__acts button { padding: 5px 8px; }
}

/* Home: the Messages section and the free account block (page-pricing.css has the same .ent__acts) */
.hmsg { background: var(--white); }
.hmsg .sec-head { align-items: end; }
.ent__acts { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
@media (max-width: 600px) { .ent__acts { width: 100%; flex-direction: column; } .ent__acts .btn { width: 100%; } }
