:root {
  --navy-900: #06203f;
  --navy-800: #0a2f5c;
  --blue-700: #0b4a9b;
  --blue-600: #1359b8;
  --blue-500: #1a6dd4;
  --blue-050: #eef4fc;
  --blue-100: #dbe8f8;
  --ink: #101c2c;
  --ink-soft: #3d4d63;
  --muted: #64748b;
  --line: #dde5ef;
  --line-strong: #c8d4e3;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ok: #0f7a56;
  --ok-050: #e8f6f0;
  --warn: #a45c07;
  --warn-050: #fdf3e3;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 28, 44, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 32, 63, 0.18);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-600);
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid #7fb2f0;
  outline-offset: 2px;
  border-radius: 4px;
}

.shell {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------- environment indicator */

.mode-strip {
  background: #fff4e5;
  color: #8a4b00;
  border-bottom: 1px solid #f2d9b8;
  font-size: 0.81rem;
  font-weight: 650;
  text-align: center;
  padding: 0.45rem 1rem;
  line-height: 1.35;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.mode-tag--mock {
  background: #fff4e5;
  color: #8a4b00;
  border-color: #f2d9b8;
}

.mode-tag--live {
  background: var(--ok-050);
  color: var(--ok);
  border-color: #bfe6d5;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand__tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--blue-700);
  border-bottom-color: var(--blue-600);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 74, 155, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
}

.btn--ghost {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.87rem;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 6px 16px rgba(180, 35, 24, 0.24);
}

.btn--danger:hover {
  background: #981b13;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(26, 109, 212, 0.35), transparent 60%),
    radial-gradient(600px 340px at 12% 110%, rgba(11, 74, 155, 0.4), transparent 62%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, #0c3a72);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dcebff;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: #7fc4ff;
}

.hero__lede {
  margin-top: 1rem;
  font-size: 1.06rem;
  color: #c6dcf4;
  max-width: 34rem;
}

.ticklist {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.6rem;
}

.ticklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: #e6f1ff;
}

.ticklist svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: #9dbde0;
}

/* certificate card illustration */

.cert-card {
  position: relative;
  border-radius: 20px;
  padding: 1.6rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

.cert-card__badge {
  position: absolute;
  top: -14px;
  right: 18px;
  background: #fff;
  color: var(--navy-800);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-card__shield {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.3));
}

.cert-card__rows {
  display: grid;
  gap: 0.55rem;
}

.cert-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.87rem;
}

.cert-card__row b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cert-card__row span {
  color: #b9d3ef;
}

.cert-card__total {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-sm);
  background: #0f7a56;
  font-weight: 700;
  font-size: 0.92rem;
}

.cert-card__live {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #bfe6d6;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ee0a8;
  box-shadow: 0 0 0 0 rgba(94, 224, 168, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(94, 224, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 224, 168, 0);
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__title {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.section__lede {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 42rem;
}

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.trustbar__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trustbar__item svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--blue-600);
}

.trustbar__item h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.trustbar__item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
}

.step__num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue-050);
  color: var(--blue-700);
  font-weight: 750;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 0.97rem;
  font-weight: 700;
}

.step p {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.faq {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--blue-600);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cta-band {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
  border-radius: 20px;
  padding: 2.6rem 2rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: #b9d3ef;
  margin-top: 0.35rem;
  font-size: 0.94rem;
  max-width: 34rem;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.site-footer p,
.site-footer li {
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.site-footer a {
  text-decoration: none;
}

.disclosure {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------------- chat */

.chat-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600));
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex: none;
}

.chat-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex: none;
}

.chat-bar__avatar svg {
  width: 22px;
  height: 22px;
}

.chat-bar__name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.chat-bar__sub {
  font-size: 0.76rem;
  color: #cfe2fb;
}

.chat-bar__pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.chat-bar__pill--mock {
  background: #fff4e5;
  color: #8a4b00;
  border-color: #f2d9b8;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.chat-bar__pill--live {
  background: rgba(94, 224, 168, 0.2);
  color: #d5f7e8;
  border-color: rgba(94, 224, 168, 0.5);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1rem 0.5rem;
  scroll-behavior: smooth;
}

.chat-log__inner {
  width: min(760px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
}

.msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  animation: rise 0.22s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg {
    animation: none;
  }
  .chat-log {
    scroll-behavior: auto;
  }
  .pulse {
    animation: none;
  }
}

.msg__avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-700);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}

.msg__avatar svg {
  width: 17px;
  height: 17px;
}

.msg__body {
  min-width: 0;
  max-width: min(560px, 100%);
  display: grid;
  gap: 0.55rem;
}

.msg--user {
  flex-direction: row-reverse;
}

.msg--user .msg__body {
  justify-items: end;
}

.bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 0.75rem 1rem;
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.msg--user .bubble {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.bubble p + p {
  margin-top: 0.55rem;
}

.bubble strong {
  font-weight: 700;
}

/* typing indicator */

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-sm);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb4cc;
  animation: blink 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing span {
    animation: none;
    opacity: 0.6;
  }
}

/* choices */

.choices {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.choice:hover:not(:disabled) {
  border-color: var(--blue-600);
  background: var(--blue-050);
}

.choice:active:not(:disabled) {
  transform: translateY(1px);
}

.choice--primary {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  border-color: var(--blue-700);
  color: #fff;
}

.choice--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
}

.choice--danger {
  border-color: #efc2bd;
  color: var(--danger);
}

.choice--danger:hover:not(:disabled) {
  background: #fdf1f0;
  border-color: var(--danger);
}

.choice:disabled {
  opacity: 0.55;
  cursor: default;
}

.choice__link-mark {
  margin-left: auto;
  opacity: 0.6;
  font-size: 0.8rem;
}

/* form card */

.card-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field > label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.field__control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field__control:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.14);
}

.field__prefix {
  display: grid;
  place-items: center;
  padding: 0 0.65rem;
  background: #f6f9fd;
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.68rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}

.field input:focus {
  outline: none;
}

.field--error .field__control {
  border-color: var(--danger);
}

.field__hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.field__error {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.check input {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--blue-600);
}

.check--error {
  color: var(--danger);
}

/* segmented radio group (certificate options) */

.seg-group {
  display: grid;
  gap: 0.45rem;
}

.seg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.seg:hover {
  border-color: #9dbde0;
}

.seg:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-050);
  box-shadow: 0 0 0 1px var(--blue-600) inset;
}

.seg input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--blue-600);
}

.seg__text {
  display: grid;
  gap: 0.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.seg__text small {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.field__group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* captcha image */

.captcha {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.captcha img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 150px;
  height: 50px;
}

.captcha figcaption {
  font-size: 0.78rem;
  color: var(--muted);
}

/* summary card */

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.summary__head {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--blue-050);
  color: var(--blue-700);
  border-bottom: 1px solid var(--line);
}

.summary--success .summary__head {
  background: var(--ok-050);
  color: var(--ok);
}

.summary--confirm .summary__head {
  background: var(--warn-050);
  color: var(--warn);
}

.summary__rows {
  display: grid;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid #eff3f8;
}

.summary__row:last-child {
  border-bottom: 0;
}

.summary__row dt {
  color: var(--muted);
}

.summary__row dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.summary__foot {
  padding: 0.65rem 1rem 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

/* status checklist */

.checklist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.checklist__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.checklist ul {
  display: grid;
  gap: 0.45rem;
}

.checklist li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.checklist__icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.checklist li[data-state="done"] .checklist__icon {
  background: var(--ok-050);
  color: var(--ok);
}

.checklist li[data-state="done"] {
  color: var(--ink);
}

.checklist li[data-state="current"] .checklist__icon {
  background: var(--blue-050);
  color: var(--blue-700);
}

.checklist li[data-state="pending"] .checklist__icon {
  background: #f1f4f8;
  color: #9aa9bc;
}

/* composer */

.composer {
  flex: none;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.composer__inner {
  width: min(760px, 100%);
  margin-inline: auto;
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.composer__label {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  min-height: 0;
}

.composer input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fbfdff;
}

.composer input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.14);
  background: #fff;
}

.composer input:disabled {
  background: #f4f6f9;
  color: #9aa9bc;
}

.composer__send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 74, 155, 0.26);
}

.composer__send:disabled {
  background: #c9d6e6;
  box-shadow: none;
  cursor: default;
}

.composer__send svg {
  width: 19px;
  height: 19px;
}

.chat-foot {
  width: min(760px, 100%);
  margin: 0.45rem auto 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(1120px, 100% - 1.6rem);
  }

  .hero {
    padding: 3rem 0 4.5rem;
  }

  .trustbar,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.6rem 0;
  }

  .cta-band {
    padding: 1.8rem 1.4rem;
  }

  .msg__body {
    max-width: calc(100% - 40px);
  }
}

/* ---------------------------------------------------------- staff console */

.staff-body {
  background: var(--bg);
  min-height: 100vh;
}

.staff-login {
  max-width: 26rem;
  margin: 11vh auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-md);
}

.staff-login h1 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.staff-login__lede {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 0.45rem;
}

.staff-login__lede code {
  background: var(--blue-050);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.84em;
}

.staff-login__form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.staff-login__form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.staff-login__form input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}

.staff-login__form input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.14);
}

.staff-error {
  margin-top: 0.9rem;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 650;
}

.staff-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.staff-pill {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-700);
}

.staff-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 1.2rem 4rem;
}

.staff-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.staff-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.staff-card__label {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.staff-card strong {
  font-size: 1rem;
}

.staff-card__meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.staff-ok {
  color: var(--ok);
}

.staff-idle {
  color: var(--muted);
}

.staff-heading {
  font-size: 1.12rem;
  margin-top: 2rem;
}

.staff-lede {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.3rem;
}

.staff-empty {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.staff-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 0.7rem;
  overflow: hidden;
}

.staff-row > summary {
  display: grid;
  grid-template-columns: 11rem 11rem minmax(0, 1fr) 8rem 9rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.86rem;
  list-style: none;
}

.staff-row > summary::-webkit-details-marker {
  display: none;
}

.staff-row__ref {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 650;
}

.staff-row__name,
.staff-row__mobile {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-row__order {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--muted);
  text-align: right;
}

.staff-row__body {
  padding: 0.3rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.staff-dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
}

.staff-dl > div {
  display: flex;
  gap: 1rem;
}

.staff-dl dt {
  min-width: 6rem;
  color: var(--muted);
}

.staff-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.staff-subheading {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1rem;
}

.staff-events {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.5rem;
  font-size: 0.79rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.staff-events li {
  display: grid;
  grid-template-columns: 4.5rem 13rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.22rem 0;
  border-bottom: 1px dashed #eef2f7;
}

.staff-events__time {
  color: var(--muted);
}

.staff-events__type {
  color: var(--blue-700);
  font-weight: 650;
}

.staff-events__msg {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.badge {
  justify-self: start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge--handed-off {
  background: var(--ok-050);
  color: var(--ok);
}

.badge--failed,
.badge--staff-takeover {
  background: #fdecea;
  color: var(--danger);
}

.badge--abandoned,
.badge--timeout {
  background: var(--warn-050);
  color: var(--warn);
}

.badge--session-active,
.badge--captcha-required,
.badge--otp-requested {
  background: var(--blue-050);
  color: var(--blue-700);
}

.staff-captcha {
  margin-top: 1rem;
  background: var(--card);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.staff-captcha__head {
  display: grid;
  gap: 0.2rem;
  flex: 1 1 14rem;
}

.staff-captcha img {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.staff-captcha__form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.staff-captcha__form input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  width: 9rem;
  text-transform: uppercase;
}

.staff-captcha__form input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.14);
}

@media (max-width: 860px) {
  .staff-cards {
    grid-template-columns: 1fr;
  }

  .staff-captcha {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-row > summary {
    grid-template-columns: 1fr auto;
    gap: 0.35rem;
  }

  .staff-row__order {
    grid-column: 1 / -1;
    text-align: left;
  }

  .staff-events li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    padding-bottom: 0.4rem;
  }
}
