/* ------------------------------------------------------------------
   /features/sms-whatsapp

   Loaded after feature-page.css and integrations.css, which supply the
   hero, jump pills and bands (`ix-`). This file holds only the artwork,
   drawn in HTML: everything here carries an `sw-` prefix.
   ------------------------------------------------------------------ */

.sw-hero-inner {
  grid-template-columns: minmax(0, 1fr) 400px;
}

/* The bands start beige, the reverse of integrations, so the last one is white: the related-features
   block below is beige and its top margin shows white, which would leave a white strip between two beiges. */
.sw-band:nth-of-type(odd) {
  background: white;
}

.sw-band:nth-of-type(even) {
  background: var(--bg);
}

/* ---------- Shared pieces ---------- */

.sw-muted {
  color: var(--gray, #6b7b80);
  font-size: 0.82rem;
}

.sw-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.sw-channel-wa {
  background: rgba(37, 211, 102, 0.14);
  color: #128c4b;
}

.sw-channel-sms {
  background: rgba(181, 164, 203, 0.25);
  color: #6d5a8a;
}

.sw-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sw-avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

.sw-bubble {
  position: relative;
  max-width: 82%;
  padding: 9px 12px 18px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--primary);
}

.sw-in {
  align-self: flex-start;
  background: #f1f3f2;
  border-top-left-radius: 4px;
}

.sw-out {
  align-self: flex-end;
  background: #dcefc4;
  border-top-right-radius: 4px;
}

.sw-meta {
  position: absolute;
  right: 10px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  color: #6b7b80;
}

.sw-read {
  color: #34b7f1;
}

.sw-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.sw-art {
  min-width: 0;
}

.sw-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.12);
  border: 1px solid rgba(34, 54, 60, 0.06);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.sw-card-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink, #5d7230);
}

/* A point set apart across the foot of a band, under both columns (last whichever side the text is on).
   The accent edge stays square. */
.sw-note {
  grid-column: 1 / -1;
  order: 3;
  margin: -24px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent, var(--purple));
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft, rgba(181, 164, 203, 0.22));
  color: var(--primary);
}

.sw-note p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.97rem;
}

.sw-note .sw-note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
}

/* ---------- Hero phone ---------- */

.sw-hero-art {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.sw-phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 12px;
  background: #11262c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sw-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 24px 24px 0 0;
  background: #1f3a42;
  color: white;
}

.sw-phone-top strong {
  display: block;
  font-size: 0.88rem;
}

.sw-phone-top small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.sw-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 18px;
  min-height: 330px;
  border-radius: 0 0 24px 24px;
  background: #efe9df;
}

.sw-day {
  align-self: center;
  margin: 0 0 4px;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  color: #6b7b80;
}

.sw-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: white;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.sw-float-a {
  left: -18px;
  top: 46%;
}

.sw-float-b {
  right: -12px;
  bottom: 6px;
}

.sw-float-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.sw-float-icon-purple {
  background: rgba(181, 164, 203, 0.3);
  color: #6d5a8a;
}

/* ---------- Client record ---------- */

.sw-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.sw-tabs {
  display: flex;
  gap: 16px;
  margin: 14px 0 12px;
  border-bottom: 1px solid rgba(34, 54, 60, 0.1);
  font-size: 0.82rem;
  color: #6b7b80;
  overflow: hidden;
}

.sw-tabs span {
  padding-bottom: 8px;
  white-space: nowrap;
}

.sw-tab-on {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--accent, var(--green));
}

.sw-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-row-in,
.sw-row-out {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-row-in {
  align-items: flex-start;
}

.sw-row-out {
  align-items: flex-end;
}

.sw-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(34, 54, 60, 0.12);
}

.sw-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f1f3f2;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7b80;
}

.sw-toggle span {
  padding: 4px 8px;
  border-radius: 6px;
}

.sw-toggle-on {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sw-input {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: #9aa6a9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-send {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
}

/* ---------- Inbox ---------- */

.sw-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f1f3f2;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7b80;
}

.sw-switch span {
  padding: 5px 14px;
  border-radius: 8px;
}

.sw-switch-on {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sw-views {
  display: flex;
  gap: 14px;
  margin: 14px 0 6px;
  font-size: 0.8rem;
  color: #6b7b80;
}

.sw-views b {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(181, 164, 203, 0.22));
  color: var(--accent-ink, #6d5a8a);
}

.sw-view-on {
  color: var(--primary);
  font-weight: 700;
}

.sw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 6px;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
}

.sw-list-unknown {
  background: var(--accent-soft, rgba(181, 164, 203, 0.18));
  border-radius: 10px;
}

.sw-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sw-dot-on {
  background: #2f7cf6;
}

.sw-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--primary);
  font-size: 0.86rem;
}

.sw-list-main .sw-muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sw-match {
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- Message to work ---------- */

.sw-chain {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.sw-chain-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 32px rgba(34, 54, 60, 0.1);
  color: var(--primary);
}

.sw-chain-step + .sw-chain-step::before {
  content: "";
  position: absolute;
  left: 39px;
  top: -27px;
  height: 28px;
  border-left: 2px dashed var(--accent, var(--yellow));
}

.sw-chain-step strong {
  display: block;
  font-size: 0.95rem;
}

.sw-chain-icon {
  flex: none;
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, rgba(245, 204, 75, 0.22));
  color: var(--accent-ink, #8a6a07);
}

/* ---------- Templates ---------- */

.sw-template {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #f7f6f2;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--primary);
}

.sw-token {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft, rgba(162, 185, 100, 0.16));
  color: var(--accent-ink, #5d7230);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.sw-template-arrow {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  color: var(--accent-ink, #5d7230);
  transform: rotate(90deg);
}

.sw-bubble-wide {
  max-width: 100%;
  margin-left: auto;
  display: block;
}

.sw-approved {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #128c4b;
}

.sw-approved-pending {
  margin-top: 6px;
  color: #8a6a07;
}

/* ---------- Requests and chases ---------- */

.sw-wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f3f2;
  color: #128c4b;
  font-size: 0.85rem;
  font-weight: 700;
}

.sw-sent-list li {
  padding: 10px 2px;
}

.sw-mobile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sw-mobile-wa {
  color: #128c4b;
}

/* ---------- Do not text ---------- */

.sw-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.88rem;
  color: var(--primary);
}

.sw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-soft, rgba(245, 204, 75, 0.18));
  color: var(--primary);
  font-size: 0.86rem;
}

.sw-check strong {
  display: block;
  margin-bottom: 2px;
}

.sw-check-box {
  flex: none;
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
}

.sw-routes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

.sw-routes li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3f2;
  color: #6b7b80;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: line-through;
}

.sw-routes svg {
  color: #b5452f;
}

/* ---------- Number ---------- */

.sw-number-art {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.sw-number {
  margin: 0 0 14px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.sw-number-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-number-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.86rem;
  color: var(--primary);
}

.sw-number-rows li > span:nth-child(2) {
  flex: 1;
}

.sw-status {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(162, 185, 100, 0.2);
  color: #5d7230;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.sw-balance {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.sw-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1f3f2;
  overflow: hidden;
  margin-bottom: 16px;
}

.sw-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent, var(--yellow));
}

.sw-price-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-price-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.88rem;
  color: var(--primary);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .sw-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .sw-float-a {
    left: 0;
  }

  .sw-float-b {
    right: 0;
  }

  .sw-card {
    padding: 16px;
  }

  .sw-number {
    font-size: 1.4rem;
  }
}
