/* ================================================
   TRANSACTIONAL SMS PAGE — Scoped Styles
   Route: /platform/sms/transactional-sms
   ================================================ */

/* ----- HERO ----- */
.tsmshero {
  position: relative;
  padding: calc(var(--h-head) + 44px) 0 72px;
  background: #fff;
  overflow: hidden;
}
.tsmshero .hero-mesh .h1b { top: -220px; right: -40px; }
.tsmshero .hero-mesh .h2b { bottom: -180px; left: -70px; }

.tsms-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.tsms-copy .eyebrow { margin-bottom: 14px; }
.tsms-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.tsms-copy .sub {
  color: var(--slate);
  font-size: 1.06rem;
  max-width: 510px;
  margin-bottom: 24px;
}
.tsms-cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* Trust strip */
.tsms-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tsms-trust .tp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 700;
  color: var(--slate);
}
.tsms-trust .tp .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
  flex: 0 0 auto;
}

/* Hero phone mockup */
.tsms-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tsms-stage::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-12), transparent 66%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.tsms-phone {
  position: relative;
  z-index: 2;
  width: 260px;
  border-radius: 42px;
  background: #fff;
  border: 1px solid var(--blue-12);
  box-shadow: 0 30px 70px rgba(24,104,251,.22), 0 0 0 7px #eef4ff;
  padding: 10px;
  animation: floaty 6.5s ease-in-out infinite;
}
.tsms-phone .notch {
  display: block;
  width: 82px;
  height: 22px;
  background: #0a1330;
  border-radius: 999px;
  margin: 0 auto 6px;
}
.tsms-screen {
  border-radius: 32px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.tsms-sbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.tsms-sbar b { font-family: var(--font-head); font-size: .88rem; color: var(--ink); }
.tsms-sbar span { font-size: .68rem; color: var(--slate); margin-left: auto; }
.tsms-thread { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.tsms-time { align-self: center; font-size: .62rem; color: var(--slate-light); background: rgba(148,163,184,.15); padding: 3px 10px; border-radius: 999px; }
.tsms-bubble {
  max-width: 88%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 10px 12px;
  font-size: .78rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}
.tsms-bubble.show { opacity: 1; transform: none; }
.tsms-bubble.dim { opacity: .4; }
.tsms-bubble b { font-family: var(--font-head); font-size: .8rem; color: var(--blue); display: block; margin-bottom: 3px; }
.tsms-bubble .lnk { color: var(--blue); text-decoration: underline; }
.tsms-deliv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 700;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  transition: .3s;
}
.tsms-deliv .di { width: 14px; height: 14px; flex: 0 0 auto; }
.tsms-deliv.done { color: var(--ok); }

.tsms-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tsms-badge {
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--blue-12);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 10px 25px rgba(24, 104, 251, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.tsms-badge .bi {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--blue-08);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tsms-badge .bi svg { width: 15px; height: 15px; }
.tsms-badge span b { font-family: var(--font-head); font-size: .86rem; display: block; line-height: 1; }
.tsms-badge span small { font-size: .64rem; color: var(--slate); }
.tsms-badge.b1 {
  top: 40px;
  right: -130px;
  animation-delay: 0s;
}
.tsms-badge.b2 {
  bottom: 50px;
  left: -180px;
  animation-delay: 1.3s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----- STATS GRID ----- */
.tsms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tsms-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: .25s;
}
.tsms-stat-card:hover {
  border-color: var(--blue-25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.tsms-stat-card .snum {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.tsms-stat-card .slbl { font-size: .84rem; color: var(--slate); }

/* ----- FEATURES GRID ----- */
.tsms-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 0;
}
.tsms-feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 22px;
  transition: .28s;
}
.tsms-feat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
  border-color: var(--blue-18);
}
.tsms-feat .ic {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--blue-08);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.tsms-feat .ic svg { width: 25px; height: 25px; }
.tsms-feat h4 { font-size: 1.04rem; margin-bottom: 8px; }
.tsms-feat p { font-size: .88rem; color: var(--slate); }

/* ----- USE CASES TABLE ----- */
.tsms-uc {
  background: var(--bg-tint);
}
.tsms-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.tsms-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .93rem;
}
.tsms-table thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .84rem;
  padding: 14px 22px;
  text-align: left;
  letter-spacing: .04em;
}
.tsms-table thead th:first-child { border-radius: var(--r-card) 0 0 0; }
.tsms-table thead th:last-child { border-radius: 0 var(--r-card) 0 0; }
.tsms-table tbody tr { border-bottom: 1px solid var(--line); transition: .15s; }
.tsms-table tbody tr:last-child { border-bottom: none; }
.tsms-table tbody tr:hover { background: var(--blue-04); }
.tsms-table tbody td { padding: 14px 22px; color: var(--slate); }
.tsms-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.tsms-table tbody td .uc-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tsms-table tbody td .uc-icon svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }

/* ----- HOW IT WORKS ----- */
.tsms-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 16px;
}
.tsms-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-25));
  z-index: 0;
}
.tsms-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.tsms-step .sn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(24,104,251,.35);
  margin-bottom: 20px;
  flex: 0 0 auto;
}
.tsms-step h4 { font-size: 1rem; margin-bottom: 8px; }
.tsms-step p { font-size: .86rem; color: var(--slate); }

/* ----- API / INTEGRATION ----- */
.tsms-int {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.tsms-int-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tsms-int-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: .22s;
}
.tsms-int-opt:hover { border-color: var(--blue-25); box-shadow: var(--shadow-soft); }
.tsms-int-opt .oi {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-08);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tsms-int-opt .oi svg { width: 22px; height: 22px; }
.tsms-int-opt h5 { font-size: 1rem; margin-bottom: 4px; }
.tsms-int-opt p { font-size: .85rem; color: var(--slate); }

/* Terminal */
.tsms-term {
  background: #0a1330;
  border-radius: 18px;
  box-shadow: var(--glow);
  overflow: hidden;
  font-family: var(--font-mono);
}
.tsms-term .th {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tsms-term .th i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.tsms-term .th span { margin-left: 8px; font-size: .7rem; color: #8fb2ff; letter-spacing: .06em; }
.tsms-term pre {
  margin: 0;
  padding: 20px 18px;
  font-size: .78rem;
  line-height: 1.8;
  color: #dbe7ff;
  white-space: pre-wrap;
  min-height: 230px;
}
.tsms-term .c-k { color: #8fb2ff; }
.tsms-term .c-s { color: #7cf5a0; }
.tsms-term .c-n { color: #ffd479; }
.tsms-term .c-c { color: #5d719c; }
.tsms-term .ok { color: #7cf5a0; font-weight: 700; }
.tsms-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #8fb2ff;
  vertical-align: -2px;
  animation: emC .8s step-end infinite;
}
@keyframes emC { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ----- DLT COMPLIANCE ----- */
.tsms-dlt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.tsms-dlt-img {
  position: relative;
}
.tsms-dlt-card {
  background: linear-gradient(150deg, var(--navy), #0d3080);
  border-radius: 22px;
  padding: 32px;
  color: #fff;
  box-shadow: 0 30px 70px rgba(10,19,48,.35);
  animation: floaty 7s ease-in-out infinite;
}
.tsms-dlt-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tsms-dlt-card h3 .sh {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
}
.tsms-dlt-card h3 .sh svg { width: 18px; height: 18px; }
.tsms-dlt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: .88rem;
}
.tsms-dlt-item:last-child { margin-bottom: 0; }
.tsms-dlt-item svg { width: 18px; height: 18px; color: #7cf5a0; flex: 0 0 auto; }
.tsms-dlt-copy .eyebrow { margin-bottom: 14px; }
.tsms-dlt-copy h2 { margin-bottom: 16px; }
.tsms-dlt-copy > p { color: var(--slate); font-size: 1.02rem; margin-bottom: 22px; }
.tsms-dlt-checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.tsms-dlt-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
}
.tsms-dlt-checks li svg { width: 18px; height: 18px; color: var(--ok); flex: 0 0 auto; }

/* ----- WHY TEXTSPEED ----- */
.tsms-why { background: var(--bg-tint); }
.tsms-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tsms-why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: .25s;
}
.tsms-why-card:hover {
  border-color: var(--blue-25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.tsms-why-card .wi {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--blue-08);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tsms-why-card .wi svg { width: 24px; height: 24px; }
.tsms-why-card h4 { font-size: 1.04rem; margin-bottom: 7px; }
.tsms-why-card p { font-size: .88rem; color: var(--slate); }

/* ----- PRICE TEASER ----- */
.tsms-price { background: #fff; }

/* Breadcrumbs */
.tsms-breadcrumbs {
  margin-bottom: 20px;
}
.tsms-breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
}
.tsms-breadcrumbs-list a {
  color: var(--slate);
  transition: color 0.2s ease;
}
.tsms-breadcrumbs-list a:hover {
  color: var(--blue);
}
.tsms-breadcrumbs-list .sep {
  color: var(--slate-light);
  font-size: 0.75rem;
}
.tsms-breadcrumbs-list .active {
  color: var(--blue);
  font-weight: 600;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .tsms-grid { grid-template-columns: 1fr; text-align: center; }
  .tsms-copy .sub { margin: 0 auto 24px; }
  .tsms-cta { justify-content: center; }
  .tsms-trust { justify-content: center; }
  .tsms-breadcrumbs-list { justify-content: center; }
  .tsms-stage {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    z-index: 1;
  }
  .tsms-feats { grid-template-columns: repeat(2, 1fr); }
  .tsms-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .tsms-steps::before { display: none; }
  .tsms-step { align-items: flex-start; text-align: left; flex-direction: row; gap: 16px; }
  .tsms-step .sn { width: 46px; height: 46px; font-size: 1rem; flex: 0 0 46px; margin-bottom: 0; }
  .tsms-int { grid-template-columns: 1fr; gap: 32px; }
  .tsms-term-img { width: 100% !important; margin-top: 10px; }
  .tsms-dlt-grid { grid-template-columns: 1fr; }
  .tsms-dlt-img { display: none; }
  .tsms-why-grid { grid-template-columns: 1fr; }
  .tsms-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tsms-feats { grid-template-columns: 1fr; }
  .tsms-stats-grid { grid-template-columns: 1fr; }
  .tsms-steps { grid-template-columns: 1fr; }
  .tsms-why-grid { grid-template-columns: 1fr; }
  .tsms-why-card { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .tsms-trust { gap: 14px; }
  .tsms-table { min-width: 500px; }
  .tsms-int-opt { padding: 14px; gap: 12px; }
  .tsms-int-opt h5 { font-size: 0.95rem; }
  .tsms-int-opt p { font-size: 0.82rem; }
  .tsms-term-img { margin-top: 6px; padding: 4px; }
}
