/* ================================================
   OTP AUTHENTICATION PAGE — Scoped Styles
   Route: /platform/sms/otp-authentication
   ================================================ */

/* ----- HERO ----- */
.otphero {
  position: relative;
  padding: calc(var(--h-head) + 44px) 0 72px;
  background: #fff;
  overflow: hidden;
}
.otphero .hero-mesh .h1b { top: -200px; right: -60px; }
.otphero .hero-mesh .h2b { bottom: -160px; left: -80px; }

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

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

/* Trust strip */
.otp-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.otp-trust .tp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 700;
  color: var(--slate);
}
.otp-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 VISUAL: OTP UI MOCKUP ----- */
.otp-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.otp-stage::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-12), transparent 66%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Floating card - the OTP verification widget */
.otp-widget {
  position: relative;
  z-index: 2;
  width: 290px;
  background: #fff;
  border: 1px solid var(--blue-12);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(24,104,251,.22), 0 0 0 7px #eef4ff;
  padding: 28px 24px 24px;
  animation: floaty 6.5s ease-in-out infinite;
}
.otp-widget-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.otp-widget-logo .wmark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid;
  place-items: center;
  color: #fff;
}
.otp-widget-logo .wmark svg { width: 16px; height: 16px; }
.otp-widget-logo span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
}
.otp-widget h5 {
  font-size: .88rem;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 4px;
}
.otp-widget .otp-to {
  font-size: .78rem;
  color: var(--slate-light);
  margin-bottom: 18px;
}
.otp-widget .otp-to strong { color: var(--ink); }

/* OTP digit boxes */
.otp-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.otp-digit {
  width: 38px;
  height: 46px;
  border-radius: 10px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  background: var(--bg-tint);
  transition: border-color .3s, background .3s, transform .3s;
}
.otp-digit.active {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px var(--blue-12);
  transform: translateY(-3px);
}
.otp-digit.done {
  border-color: var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
}

.otp-timer {
  text-align: center;
  font-size: .76rem;
  color: var(--slate-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.otp-timer .tval {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue);
}

.otp-verify-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.otp-verify-btn.verifying {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(24,104,251,.32);
}
.otp-verify-btn.success {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(22,163,74,.25);
}

/* Status pill below */
.otp-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  font-size: .74rem;
  font-weight: 600;
}
.otp-status-row.sent { color: var(--blue); }
.otp-status-row.verified { color: var(--ok); }
.otp-status-row svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Floating badges */
.otp-badge {
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--blue-12);
  border-radius: 13px;
  padding: 9px 13px;
  box-shadow: var(--shadow-blue);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: floaty 5s ease-in-out infinite;
}
.otp-badge .bi {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--blue-08);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.otp-badge .bi svg { width: 16px; height: 16px; }
.otp-badge span b { font-family: var(--font-head); font-size: .92rem; display: block; line-height: 1; }
.otp-badge span small { font-size: .66rem; color: var(--slate); }
.otp-badge.b1 {
  top: 40px;
  right: -130px;
  animation-delay: 0s;
}
.otp-badge.b2 {
  bottom: 40px;
  left: -180px;
  animation-delay: 1.5s;
}

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

/* ----- WHAT IS OTP — STAT CARDS ----- */
.otp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.otp-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;
}
.otp-stat-card:hover {
  border-color: var(--blue-25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.otp-stat-card .snum {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.otp-stat-card .slbl { font-size: .84rem; color: var(--slate); }

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

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

/* ----- HOW IT WORKS ----- */
.otp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 16px;
}
.otp-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;
}
.otp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.otp-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;
}
.otp-step h4 { font-size: 1rem; margin-bottom: 8px; }
.otp-step p { font-size: .86rem; color: var(--slate); }

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

/* Terminal — dual endpoint */
.otp-term {
  background: #0a1330;
  border-radius: 18px;
  box-shadow: var(--glow);
  overflow: hidden;
  font-family: var(--font-mono);
}
.otp-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);
}
.otp-term .th i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.otp-term .th span { margin-left: 8px; font-size: .7rem; color: #8fb2ff; letter-spacing: .06em; }
.otp-term pre {
  margin: 0;
  padding: 20px 18px;
  font-size: .78rem;
  line-height: 1.8;
  color: #dbe7ff;
  white-space: pre-wrap;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.otp-term .c-k { color: #8fb2ff; }
.otp-term .c-s { color: #7cf5a0; }
.otp-term .c-n { color: #ffd479; }
.otp-term .c-c { color: #5d719c; }
.otp-term .ok { color: #7cf5a0; font-weight: 700; }
.otp-term .err { color: #ff7b7b; font-weight: 700; }
.otp-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; } }

/* ----- SECURITY & COMPLIANCE ----- */
.otp-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.otp-sec-img { position: relative; }
.otp-sec-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;
}
.otp-sec-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.otp-sec-card h3 .sh {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
}
.otp-sec-card h3 .sh svg { width: 18px; height: 18px; }
.otp-sec-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;
}
.otp-sec-item:last-child { margin-bottom: 0; }
.otp-sec-item svg { width: 18px; height: 18px; color: #7cf5a0; flex: 0 0 auto; }
.otp-sec-copy .eyebrow { margin-bottom: 14px; }
.otp-sec-copy h2 { margin-bottom: 16px; }
.otp-sec-copy > p { color: var(--slate); font-size: 1.02rem; margin-bottom: 22px; }
.otp-sec-checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.otp-sec-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
}
.otp-sec-checks li svg { width: 18px; height: 18px; color: var(--ok); flex: 0 0 auto; }

/* ----- WHY TEXTSPEED ----- */
.otp-why { background: var(--bg-tint); }
.otp-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.otp-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;
}
.otp-why-card:hover {
  border-color: var(--blue-25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.otp-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;
}
.otp-why-card .wi svg { width: 24px; height: 24px; }
.otp-why-card h4 { font-size: 1.04rem; margin-bottom: 7px; }
.otp-why-card p { font-size: .88rem; color: var(--slate); }

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

/* Breadcrumbs */
.otp-breadcrumbs {
  margin-bottom: 20px;
}
.otp-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);
}
.otp-breadcrumbs-list a {
  color: var(--slate);
  transition: color 0.2s ease;
}
.otp-breadcrumbs-list a:hover {
  color: var(--blue);
}
.otp-breadcrumbs-list .sep {
  color: var(--slate-light);
  font-size: 0.75rem;
}
.otp-breadcrumbs-list .active {
  color: var(--blue);
  font-weight: 600;
}

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