/* ==========================================================================
   Novatrunx website
   base.css: design tokens, reset, typography, buttons, utilities
   Brand values match the Novatrunx softphone (navy #0B1020, blue #1E6BFF,
   cyan #00D4FF, Inter).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --navy-950: #060914;
  --navy-900: #0b1020;
  --navy-800: #111936;
  --navy-700: #1a254d;
  --blue: #1e6bff;
  --blue-600: #1557e0;
  --blue-700: #1046bd;
  --sky: #2e9bff;
  --cyan: #00d4ff;
  --indigo: #6366f1;

  /* Neutrals */
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef4ff;

  /* On dark surfaces */
  --on-dark-body: #cbd5e1;
  --on-dark-muted: #94a3b8;
  --on-dark-line: rgba(255, 255, 255, 0.1);

  /* Status colours used in the product illustrations */
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --grad: linear-gradient(135deg, #1e6bff 0%, #2e9bff 55%, #00d4ff 100%);
  /* Text gradients are tuned so every stop keeps at least 3:1 contrast. */
  --grad-text: linear-gradient(100deg, #1557e0 0%, #1e6bff 45%, #2b8cff 100%);
  --grad-text-dark: linear-gradient(100deg, #6aa9ff 0%, #2e9bff 40%, #00d4ff 100%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 18px 44px -10px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 40px 80px -20px rgba(15, 23, 42, 0.28);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
pre {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(30, 107, 255, 0.2);
}

[hidden] {
  display: none !important;
}

/* ---- Typography ----------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.display {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.h1 {
  font-size: clamp(2.375rem, 4.8vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.h2 {
  font-size: clamp(1.875rem, 3.3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--body);
}

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* The darker blue keeps small text above 4.5:1 on white and on tinted backgrounds. */
  color: var(--blue-600);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Keeps descenders from being clipped by the tight display line-height. */
  padding-bottom: 0.08em;
}

.muted {
  color: var(--muted);
}

/* ---- Icons ---------------------------------------------------------------- */

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-tint);
  color: var(--blue);
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary:hover {
  --btn-bg: var(--blue-600);
  --btn-bd: var(--blue-600);
  box-shadow: 0 12px 26px -10px rgba(30, 107, 255, 0.7);
  transform: translateY(-1px);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(30, 107, 255, 0.5);
}

.btn--outline:hover {
  --btn-bg: var(--bg-tint);
  --btn-bd: var(--blue);
  --btn-fg: var(--blue-700);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}

.btn--light:hover {
  --btn-bg: #e6efff;
  --btn-bd: #e6efff;
  transform: translateY(-1px);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.13);
  --btn-bd: rgba(255, 255, 255, 0.55);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* On phones, buttons in a row become full-width tap targets. */
@media (max-width: 480px) {
  .btn-row > .btn {
    flex: 1 1 100%;
  }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: rgba(30, 107, 255, 0.3);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s var(--ease);
}

.arrow-link:hover {
  text-decoration-color: currentColor;
}

.arrow-link .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover .icon {
  transform: translateX(4px);
}

/* ---- Utilities ------------------------------------------------------------ */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Scroll reveal: the class is added by main.js only to elements below the fold,
   so nothing is ever hidden without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   layout.css: header, navigation, mobile drawer, footer, sections
   ========================================================================== */

/* ---- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border-radius: 10px;
}

.brand__name {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__name b {
  font-weight: inherit;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 0.9688rem;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.nav__link:hover,
.nav__item.is-open > .nav__link {
  background: var(--bg-soft);
  color: var(--blue);
}

.nav__link.is-active {
  color: var(--blue);
}

.nav__link .icon {
  width: 1em;
  height: 1em;
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}

.nav__item.is-open > .nav__link .icon {
  transform: rotate(180deg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle .icon {
  width: 22px;
  height: 22px;
}

.nav__toggle .icon:last-child,
.nav-open .nav__toggle .icon:first-child {
  display: none;
}

.nav-open .nav__toggle .icon:last-child {
  display: block;
}

/* ---- Mega menu ------------------------------------------------------------ */

.mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}

/* Invisible bridge so the pointer can travel from the button to the panel. */
.mega::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}

.nav__item.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.mega__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.mega__group {
  padding: 14px 8px 8px;
}

.mega__label {
  display: block;
  padding: 0 12px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 14px;
  transition: background-color 0.15s var(--ease);
}

.mega__link:hover {
  background: var(--bg-soft);
}

.mega__link .icon-tile {
  width: 42px;
  height: 42px;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.mega__link:hover .icon-tile {
  background: var(--blue);
  color: #fff;
}

.mega__text strong {
  display: block;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.mega__text small {
  display: block;
  margin-top: 2px;
  font-size: 0.8438rem;
  line-height: 1.4;
  color: var(--muted);
}

.mega__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(260px 200px at 0% 0%, rgba(30, 107, 255, 0.55), transparent 70%),
    radial-gradient(240px 200px at 100% 100%, rgba(99, 102, 241, 0.4), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-body);
}

.mega__feature strong {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.mega__feature p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.mega__feature .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---- Mobile drawer -------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  display: none;
  padding: 8px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav-open .drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drawer details,
.drawer__link {
  border-bottom: 1px solid var(--line);
}

.drawer summary,
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.drawer summary {
  cursor: pointer;
  list-style: none;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer summary .icon {
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.drawer details[open] summary .icon {
  transform: rotate(180deg);
}

.drawer__sub {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
}

.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--body);
}

.drawer__sub .icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.drawer__sub .icon-tile .icon {
  width: 19px;
  height: 19px;
}

.drawer__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1020px) {
  .nav__links {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .drawer {
    display: block;
  }

  .nav-open,
  .nav-open body {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .nav__actions .btn {
    display: none;
  }
}

/* ---- Sections ------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
}

.section--tight {
  padding-block: clamp(56px, 6vw, 88px);
}

.section--flush-top {
  padding-top: 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark-body);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 480px at 4% 0%, rgba(30, 107, 255, 0.34), transparent 70%),
    radial-gradient(560px 460px at 100% 42%, rgba(0, 212, 255, 0.1), transparent 70%),
    radial-gradient(680px 520px at 96% 100%, rgba(99, 102, 241, 0.26), transparent 70%);
}

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.6;
}

.section--dark :is(h1, h2, h3, h4) {
  color: #fff;
}

.section--dark .lead,
.section--dark p {
  color: var(--on-dark-body);
}

.section--dark .eyebrow {
  color: var(--cyan);
}

.section--dark .grad-text {
  background-image: var(--grad-text-dark);
}

.section--dark .arrow-link {
  color: var(--cyan);
  text-decoration-color: rgba(0, 212, 255, 0.35);
}

.section--dark .icon-tile {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
  color: var(--cyan);
}

.section--dark :focus-visible {
  outline-color: var(--cyan);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head .lead {
  margin-top: 18px;
}

/* Text beside a visual. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.split + .split {
  margin-top: clamp(72px, 9vw, 136px);
}

.split--flip > .split__visual {
  order: -1;
}

.split__text > * + * {
  margin-top: 20px;
}

.split__text > .eyebrow + * {
  margin-top: 14px;
}

.split__text > .btn-row,
.split__text > .checks {
  margin-top: 28px;
}

.split__visual {
  position: relative;
  min-width: 0;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--flip > .split__visual {
    order: 0;
  }
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 360px at 0% 0%, rgba(30, 107, 255, 0.2), transparent 70%),
    radial-gradient(560px 360px at 100% 100%, rgba(99, 102, 241, 0.16), transparent 70%);
}

.site-footer :focus-visible {
  outline-color: var(--cyan);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer__brand .brand__name {
  color: #fff;
}

.footer__brand .brand__name b {
  background-image: var(--grad-text-dark);
}

.footer__tagline {
  margin-top: 20px;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
}

.footer__blurb {
  max-width: 34ch;
  margin-top: 12px;
  line-height: 1.6;
}

.footer__brand .btn-row {
  margin-top: 24px;
}

.footer__col h2 {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col ul {
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--on-dark-muted);
  transition: color 0.15s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__col .icon {
  width: 0.95em;
  height: 0.95em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 28px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.875rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__legal a:hover {
  color: #fff;
}

@media (max-width: 1020px) {
  .footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   components.css: reusable content blocks
   ========================================================================== */

/* ---- Announcement pill ---------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(30, 107, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-xs);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.pill:hover {
  border-color: rgba(30, 107, 255, 0.55);
  box-shadow: var(--shadow-sm);
}

.pill__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.pill__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.pill .icon {
  width: 1em;
  height: 1em;
  color: var(--blue);
  transition: transform 0.2s var(--ease);
}

.pill:hover .icon {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .pill {
    padding-left: 14px;
    font-size: 0.8438rem;
  }

  .pill__tag {
    display: none;
  }
}

/* ---- Feature cards -------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.features--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.features--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.feature h3 {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 10px;
  font-size: 0.9844rem;
  line-height: 1.6;
}

.feature .arrow-link {
  margin-top: 18px;
  font-size: 0.9688rem;
}

/* Makes the whole card the link target. */
.feature .arrow-link::after,
.usecase .arrow-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.section--dark .feature {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.04);
}

.section--dark .feature:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

@media (max-width: 1000px) {
  .features,
  .features--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features,
  .features--2,
  .features--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Check list ----------------------------------------------------------- */

.checks {
  display: grid;
  gap: 14px;
}

.checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.checks .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.checks strong {
  font-weight: 600;
  color: var(--ink);
}

.section--dark .checks .icon {
  color: var(--cyan);
}

.section--dark .checks strong {
  color: #fff;
}

/* ---- Use-case cards (illustration on top) -------------------------------- */

.usecases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.usecase {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.usecase:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.usecase__art {
  display: grid;
  place-items: center;
  height: 216px;
  padding: 20px;
  background: linear-gradient(160deg, #e3eeff 0%, #f4f8ff 55%, #e6faff 100%);
}

.usecase:nth-child(2) .usecase__art {
  background: linear-gradient(160deg, #eae9ff 0%, #f6f5ff 55%, #e6f0ff 100%);
}

.usecase:nth-child(3) .usecase__art {
  background: linear-gradient(160deg, #dff5ff 0%, #f3fbff 55%, #e6eeff 100%);
}

.usecase:nth-child(4) .usecase__art {
  background: linear-gradient(160deg, #e6eeff 0%, #f6f8ff 55%, #eae9ff 100%);
}

.usecase__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.usecase__body h3 {
  font-size: 1.1875rem;
}

.usecase__body p {
  font-size: 0.9688rem;
  line-height: 1.55;
}

.usecase__body .arrow-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.9688rem;
}

@media (max-width: 1100px) {
  .usecases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .usecases {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Numbered steps ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 12px 22px -12px rgba(30, 107, 255, 0.9);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.step h3 {
  margin-top: 22px;
  font-size: 1.25rem;
}

.step p {
  margin-top: 10px;
  font-size: 0.9844rem;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Big-figure row ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  width: fit-content;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  max-width: 24ch;
  margin-top: 10px;
  font-size: 0.9688rem;
  line-height: 1.5;
}

.section--dark .stats {
  border-top-color: var(--on-dark-line);
}

.section--dark .stat strong {
  background-image: var(--grad-text-dark);
}

@media (max-width: 820px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- FAQ ------------------------------------------------------------------ */

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--blue);
}

.faq__item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary .icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 52px 26px 4px;
}

.faq__answer p + p {
  margin-top: 12px;
}

.faq__answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .faq__answer {
    padding-right: 4px;
  }
}

/* ---- Closing call to action ---------------------------------------------- */

.cta {
  padding-block: clamp(56px, 7vw, 104px);
}

.cta__box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 420px at 0% 0%, rgba(30, 107, 255, 0.6), transparent 70%),
    radial-gradient(520px 420px at 100% 100%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(420px 320px at 70% 0%, rgba(0, 212, 255, 0.18), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-body);
}

.cta__box h2 {
  max-width: 17ch;
  color: #fff;
}

.cta__box .lead {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--on-dark-body);
}

.cta__box .btn-row {
  margin-top: 32px;
}

.cta__box :focus-visible {
  outline-color: var(--cyan);
}

.cta__mark {
  position: absolute;
  right: -3%;
  bottom: -22%;
  z-index: -1;
  width: min(44%, 400px);
  height: auto;
  opacity: 0.2;
}

/* ---- Forms ---------------------------------------------------------------- */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  margin-left: 2px;
  color: #b91c1c;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

textarea.input {
  min-height: 148px;
  resize: vertical;
}

select.input {
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input:hover {
  border-color: #a9b4c6;
}

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.16);
}

.field.has-error .input {
  border-color: var(--red);
}

.field.has-error .input:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.field__error {
  font-size: 0.8438rem;
  font-weight: 500;
  color: #b91c1c;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: 16px 20px;
}

.form__note {
  flex: 1;
  min-width: 220px;
  font-size: 0.8438rem;
  line-height: 1.5;
  color: var(--muted);
}

.form__note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__status {
  display: none;
  align-items: flex-start;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9688rem;
  font-weight: 500;
  line-height: 1.5;
}

.form__status.is-ok {
  display: flex;
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.form__status.is-error {
  display: flex;
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* Honeypot field: off-screen for people, visible to naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 620px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Inner-page hero ------------------------------------------------------ */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 112px);
  background: linear-gradient(180deg, #f1f6ff 0%, #fff 82%);
}

.page-hero.section--dark {
  background: var(--navy-900);
}

.page-hero:not(.section--dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 400px at 8% -10%, rgba(46, 155, 255, 0.26), transparent 70%),
    radial-gradient(560px 400px at 96% 0%, rgba(99, 102, 241, 0.14), transparent 70%);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.page-hero__text > * + * {
  margin-top: 22px;
}

.page-hero__text > .eyebrow + * {
  margin-top: 16px;
}

.page-hero__text > .btn-row {
  margin-top: 32px;
}

.page-hero--center .page-hero__text {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.page-hero--center .lead {
  max-width: 62ch;
  margin-inline: auto;
}

.page-hero--center .btn-row {
  justify-content: center;
}

@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Illustration frame --------------------------------------------------- */

.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: clamp(20px, 3.4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #e3eeff 0%, #f5f9ff 55%, #e6faff 100%);
}

.scene::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -22%;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 155, 255, 0.32), transparent);
}

.section--dark .scene {
  border-color: var(--on-dark-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

.section--dark .scene::before {
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.26), transparent);
}

.scene__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* The second card tucks behind the edge of the first for depth, and is the one
   that gives way when space is tight. */
.scene__row > :nth-child(2) {
  position: relative;
  z-index: 1;
  flex: 0 1 244px;
  min-width: 0;
  margin-top: 84px;
  margin-left: -52px;
}

.scene__stack {
  display: grid;
  width: 100%;
}

.scene__stack > :first-child {
  justify-self: start;
  width: 88%;
}

.scene__stack > :last-child {
  position: relative;
  justify-self: end;
  width: 86%;
  margin-top: -34px;
}

@media (max-width: 560px) {
  .scene {
    min-height: 0;
  }

  .scene__row {
    flex-direction: column;
  }

  .scene__row > :nth-child(2) {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin-top: 0;
    margin-left: 0;
  }

  .scene__stack > :first-child,
  .scene__stack > :last-child {
    width: 100%;
  }

  .scene__stack > :last-child {
    margin-top: 16px;
  }
}

/* ---- Long-form text (legal pages) ---------------------------------------- */

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.1875rem;
}

.prose ul {
  display: grid;
  gap: 0.5em;
  padding-left: 1.3em;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--ink);
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-md);
}

.plan .h3 {
  margin-top: 20px;
  font-size: 1.375rem;
}

.plan__for {
  margin-top: 8px;
  font-size: 0.9688rem;
  color: var(--muted);
}

.plan__price {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.plan__price small {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
}

.plan .checks {
  flex: 1;
  align-content: start;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.9688rem;
}

.plan .btn {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Contact -------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.contact__card {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact__card > h2 {
  font-size: 1.5rem;
}

.contact__card > p {
  margin: 8px 0 28px;
  color: var(--muted);
}

.contact__aside {
  display: grid;
  gap: 20px;
}

.aside-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}

.aside-card h2 {
  font-size: 1.1875rem;
}

.aside-card > p {
  margin-top: 10px;
  font-size: 0.9688rem;
}

.aside-card .checks,
.aside-card .btn {
  margin-top: 20px;
}

.aside-card .checks {
  font-size: 0.9688rem;
}

.aside-card--dark {
  border-color: transparent;
  background:
    radial-gradient(320px 240px at 0% 0%, rgba(30, 107, 255, 0.5), transparent 70%),
    radial-gradient(280px 240px at 100% 100%, rgba(99, 102, 241, 0.4), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-body);
}

.aside-card--dark h2 {
  color: #fff;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Legal pages: contents list and notices ------------------------------ */

.toc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.prose .toc h2 {
  margin-top: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose .toc ol {
  display: block;
  margin-top: 14px;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 40px;
  font-size: 0.9688rem;
}

.prose .toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.callout {
  padding: 20px 22px;
  border: 1px solid #f3d6a0;
  border-left: 4px solid var(--amber);
  border-radius: var(--r);
  background: #fffaf0;
  color: var(--ink);
}

.callout > * + * {
  margin-top: 0.7em;
}

.callout--info {
  border-color: #cfdfff;
  border-left-color: var(--blue);
  background: var(--bg-tint);
}

.prose h2[id],
.prose h3[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.3em;
}

@media (max-width: 620px) {
  .prose .toc ol {
    columns: 1;
  }
}

/* ---- Safety notices ------------------------------------------------------- */

.callout--danger {
  border-color: #f6c5c5;
  border-left-color: var(--red);
  background: #fff5f5;
}

.callout a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   mocks.css: product illustrations built from HTML and CSS (no images).
   Everything here is decorative; wrappers carry role="img" with a label.
   ========================================================================== */

/* ---- Shared primitives ---------------------------------------------------- */

.ui-app,
.ui-card,
.ui-phone,
.ui-float,
.ui-mini {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.ui-app .icon,
.ui-card .icon,
.ui-phone .icon,
.ui-float .icon,
.ui-mini .icon {
  width: 16px;
  height: 16px;
}

.ui-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.ui-dot--green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.ui-dots {
  display: flex;
  gap: 7px;
}

.ui-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dfe5ee;
}

.ui-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ui-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.ui-avatar--xl {
  width: 84px;
  height: 84px;
  font-size: 26px;
}

.av-1 { background: linear-gradient(135deg, #bfdbfe, #93c5fd); color: #1e3a8a; }
.av-2 { background: linear-gradient(135deg, #bbf7d0, #86efac); color: #14532d; }
.av-3 { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); color: #4c1d95; }
.av-4 { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #7c2d12; }
.av-5 { background: linear-gradient(135deg, #a5f3fc, #67e8f9); color: #164e63; }
.av-6 { background: linear-gradient(135deg, #fbcfe8, #f9a8d4); color: #831843; }

.ui-chips {
  display: flex;
  gap: 6px;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}

.ui-chip.is-on {
  background: var(--ink);
  color: #fff;
}

.ui-chip--blue {
  background: rgba(30, 107, 255, 0.1);
  color: var(--blue-600);
}

.ui-chip--green {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.ui-chip--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.ui-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
}

.ui-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.ui-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.ui-wave i {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--grad);
  animation: ui-wave 1.2s ease-in-out infinite;
}

.ui-wave i:nth-child(2n) { animation-delay: -0.4s; }
.ui-wave i:nth-child(3n) { animation-delay: -0.8s; }
.ui-wave i:nth-child(5n) { animation-delay: -0.2s; }
.ui-wave i:nth-child(7n) { animation-delay: -1s; }

.ui-wave--static i {
  animation: none;
}

@keyframes ui-wave {
  0%,
  100% {
    height: 22%;
  }
  50% {
    height: 100%;
  }
}

@keyframes ui-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ui-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ---- Generic card --------------------------------------------------------- */

.ui-card {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.ui-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ui-card__head > strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ui-card__head > :last-child:not(:first-child) {
  margin-left: auto;
}

.ui-card__who {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ui-card__who strong {
  font-size: 13.5px;
  font-weight: 650;
}

.ui-card__who small {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---- Hero: softphone window ---------------------------------------------- */

.stage {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 10% 4% -4%;
  z-index: -1;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(72px);
  opacity: 0.3;
}

.ui-app {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.ui-app__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.ui-app__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.ui-app__status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.ui-app__body {
  display: grid;
  grid-template-columns: 60px 292px minmax(0, 1fr) 272px;
  min-height: 476px;
}

.ui-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  background: var(--navy-900);
}

.ui-rail__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #94a3b8;
}

.ui-rail__btn.is-active {
  background: rgba(46, 155, 255, 0.2);
  color: #fff;
}

.ui-rail__btn .icon {
  width: 18px;
  height: 18px;
}

.ui-rail__btn b {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--blue);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.ui-rail__gap {
  flex: 1;
}

.ui-list {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.ui-list__head {
  display: grid;
  gap: 12px;
  padding: 16px 16px 12px;
}

.ui-list__head strong {
  font-size: 15px;
  font-weight: 650;
}

.ui-rows {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
}

.ui-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  border-radius: 12px;
}

.ui-row.is-active {
  background: var(--bg-tint);
}

.ui-row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ui-row__main strong,
.ui-row__main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-row__main strong {
  font-size: 13px;
  font-weight: 600;
}

.ui-row__main span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.ui-row__main .icon {
  width: 12px;
  height: 12px;
}

.ui-row__meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.ui-row__meta b {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
}

.ui-app__main {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(420px 300px at 50% 0%, rgba(46, 155, 255, 0.16), transparent 70%),
    #fbfcfe;
}

.ui-call {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.ui-call__avatar {
  position: relative;
  margin-top: 16px;
}

.ui-call__avatar::before,
.ui-call__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sky);
  animation: ui-ring 2.4s ease-out infinite;
}

.ui-call__avatar::after {
  animation-delay: 1.2s;
}

.ui-call__name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ui-call__num {
  font-size: 13px;
  color: var(--muted);
}

.ui-call__timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}

.ui-call .ui-wave {
  margin: 14px 0 6px;
}

.ui-call__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.ui-ctl {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.ui-ctl span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: var(--ink);
}

.ui-ctl--end span {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.9);
  color: #fff;
}

.ui-ctl--end .icon {
  transform: rotate(135deg);
}

.ui-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border-left: 1px solid var(--line);
}

.ui-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ui-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ui-kpis strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ui-kpis small {
  font-size: 11px;
  color: var(--muted);
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}

.ui-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 2px 2px;
  background: #dbe7ff;
}

.ui-bars i.is-hi {
  background: var(--grad);
}

.ui-team {
  display: grid;
  gap: 10px;
}

.ui-team div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
}

.ui-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.ui-st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.ui-st--call::before {
  background: var(--blue);
}

.ui-st--away::before {
  background: var(--amber);
}

/* Cards that float over the edges of the window. */
.ui-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: ui-float 7s ease-in-out infinite;
}

.ui-float--call {
  bottom: -22px;
  left: -34px;
}

.ui-float--vm {
  top: -26px;
  right: -34px;
  animation-delay: -3.5s;
}

.ui-float strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.ui-float small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.ui-float__btns {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}

.ui-float__btns span,
.ui-round {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.ui-float__btns span:first-child {
  background: var(--red);
}

.ui-float__btns span:first-child .icon {
  transform: rotate(135deg);
}

.ui-round--blue {
  background: var(--blue);
}

.ui-round .icon {
  width: 14px;
  height: 14px;
}

.ui-float .ui-wave {
  height: 22px;
}

.ui-float em {
  font-size: 11.5px;
  font-style: normal;
  color: var(--muted);
}

@media (max-width: 1240px) {
  .ui-float--call {
    left: -12px;
  }

  .ui-float--vm {
    right: -12px;
  }
}

@media (max-width: 1100px) {
  .ui-app__body {
    grid-template-columns: 60px 280px minmax(0, 1fr);
  }

  .ui-side {
    display: none;
  }
}

@media (max-width: 800px) {
  .ui-app__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ui-rail,
  .ui-list,
  .ui-float {
    display: none;
  }

  .ui-app__status {
    display: none;
  }

  .ui-app__bar {
    grid-template-columns: 1fr auto;
  }
}

/* ---- Dialer --------------------------------------------------------------- */

.ui-phone {
  flex: none;
  width: 264px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.ui-phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui-phone__display {
  display: grid;
  gap: 4px;
  padding: 22px 0 18px;
  text-align: center;
}

.ui-phone__display small {
  font-size: 11.5px;
  color: var(--muted);
}

.ui-phone__display strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ui-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.ui-keys span {
  display: grid;
  place-content: center;
  justify-items: center;
  height: 50px;
  border-radius: 16px;
  background: #f3f6fb;
}

.ui-keys b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.ui-keys i {
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ui-phone__call {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 16px auto 2px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.9);
  color: #fff;
}

.ui-phone__call .icon {
  width: 22px;
  height: 22px;
}

/* ---- Voicemail list ------------------------------------------------------- */

.ui-vm {
  display: grid;
  gap: 10px;
}

.ui-vm > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.ui-vm > div > span:nth-child(2) {
  min-width: 0;
}

.ui-vm strong,
.ui-vm small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-vm strong {
  font-size: 12.5px;
  font-weight: 600;
}

.ui-vm small {
  font-size: 11px;
  color: var(--muted);
}

.ui-vm em {
  font-size: 11.5px;
  font-style: normal;
  color: var(--muted);
}

/* ---- SMS thread ----------------------------------------------------------- */

.ui-thread {
  display: grid;
  gap: 8px;
  padding: 4px 0 14px;
}

.ui-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #f1f5f9;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.ui-bubble--out {
  justify-self: end;
  border-radius: 16px 16px 5px 16px;
  background: var(--blue);
  color: #fff;
}

.ui-thread__meta {
  justify-self: end;
  font-size: 10.5px;
  color: var(--muted);
}

.ui-thread__event {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-600);
}

.ui-thread__event .icon {
  width: 12px;
  height: 12px;
}

.ui-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: #94a3b8;
}

/* ---- Phone numbers -------------------------------------------------------- */

.ui-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: #94a3b8;
}

.ui-search .icon {
  width: 12px;
  height: 12px;
}

.ui-numbers {
  display: grid;
  gap: 2px;
}

.ui-numbers > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-top: 1px solid var(--line-soft);
}

.ui-numbers > div:first-child {
  border-top: 0;
}

.ui-numbers strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.ui-numbers small {
  font-size: 11px;
  color: var(--muted);
}

.ui-cc {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg-tint);
  color: var(--blue);
}

.ui-cc .icon {
  width: 14px;
  height: 14px;
}

/* ---- Trunk status --------------------------------------------------------- */

.ui-meter__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.ui-meter__top strong {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ui-meter__top small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.ui-meter__bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eef8;
}

.ui-meter__bar i {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.ui-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ui-trio div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.ui-trio small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.ui-trio strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* ---- Analytics dashboard -------------------------------------------------- */

.ui-card--dash {
  padding: 20px;
}

.ui-card--dash .ui-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ui-card--dash .ui-kpis > div {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.ui-card--dash .ui-kpis strong {
  font-size: 20px;
}

.ui-chart {
  width: 100%;
  height: auto;
  margin: 16px 0 6px;
}

.ui-chart__days {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.ui-leader {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.ui-leader > div {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
}

.ui-leader .ui-meter__bar {
  margin-top: 0;
}

.ui-leader em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

@media (max-width: 520px) {
  .ui-card--dash .ui-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Small illustrations in the use-case cards --------------------------- */

.ui-mini {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 228px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ui-mini__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-mini__row strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.ui-mini__row small {
  font-size: 11px;
  color: var(--muted);
}

.ui-mini__num {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ui-mini__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.ui-mini__btn .icon {
  width: 13px;
  height: 13px;
}

.ui-mini .ui-bubble {
  max-width: 88%;
  padding: 7px 11px;
  font-size: 12px;
}

.ui-mini .ui-bars {
  height: 52px;
}

.ui-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.ui-device {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--blue);
}

.ui-device .icon {
  width: 24px;
  height: 24px;
}

.ui-device::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.ui-device:nth-child(2)::after {
  animation-delay: -0.5s;
}

.ui-device:nth-child(3)::after {
  animation-delay: -1s;
}

.ui-mini__caption {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* ---- Live call card ------------------------------------------------------- */

.ui-card--call {
  max-width: 400px;
  padding: 28px 20px 26px;
}

.ui-card--call .ui-call {
  margin-inline: auto;
}

.ui-card--sms {
  max-width: 420px;
}

/* ---- Team line ------------------------------------------------------------ */

.ui-team--lg {
  gap: 4px;
}

.ui-team--lg > div {
  gap: 11px;
  padding: 9px 8px;
  border-radius: 12px;
}

.ui-team--lg > div:first-child {
  background: var(--bg-tint);
}

.ui-team--lg .ui-card__who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Devices -------------------------------------------------------------- */

.ui-devgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ui-devgrid > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 18px 8px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: center;
}

.ui-devgrid strong {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 650;
}

.ui-devgrid small {
  font-size: 11px;
  color: var(--muted);
}

.ui-devgrid .ui-device {
  background: #fff;
  box-shadow: var(--shadow-xs);
}

/* Cards inside an illustration frame never stretch wider than they read well. */
.scene > .ui-card {
  max-width: 460px;
}

.scene > .ui-card--dash {
  max-width: 520px;
}

/* ---- Taller bar chart and number routing --------------------------------- */

.ui-bars--tall {
  height: 124px;
  margin-bottom: 8px;
}

.ui-route {
  display: grid;
  gap: 8px;
}

.ui-route > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.ui-route strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.ui-route small {
  font-size: 11px;
  color: var(--muted);
}

.ui-route .icon {
  color: var(--muted);
}

/* ---- Carrier choice (built-in trunking or your own carrier) -------------- */

.ui-options {
  display: grid;
  gap: 10px;
}

.ui-options > div {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.ui-options > div.is-on {
  border-color: var(--blue);
  background: var(--bg-tint);
}

.ui-options strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.ui-options small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.ui-options .ui-cc {
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.ui-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #c3ccd9;
  border-radius: 50%;
  background: #fff;
}

.ui-options > .is-on .ui-radio {
  border-color: var(--blue);
  background: radial-gradient(circle, var(--blue) 0 4px, #fff 5px);
}

/* ---- Bring your own carrier: connection form ----------------------------- */

.ui-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ui-form > div {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
}

.ui-form > .ui-form__half {
  grid-column: auto;
}

.ui-form small {
  font-size: 11px;
  color: var(--muted);
}

.ui-form span {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   pages.css: page-specific layout (home hero, solutions, error page)
   ========================================================================== */

/* ---- Home hero ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
  background: linear-gradient(180deg, #f1f6ff 0%, #fff 72%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 440px at 10% -8%, rgba(46, 155, 255, 0.3), transparent 70%),
    radial-gradient(640px 440px at 94% 2%, rgba(99, 102, 241, 0.17), transparent 70%),
    radial-gradient(520px 320px at 52% 0%, rgba(0, 212, 255, 0.12), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 72% 56% at 50% 0%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 56% at 50% 0%, #000, transparent 76%);
}

.hero__inner {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.hero__inner > * {
  animation: rise 0.8s var(--ease) both;
}

.hero__inner > :nth-child(2) { animation-delay: 0.06s; }
.hero__inner > :nth-child(3) { animation-delay: 0.12s; }
.hero__inner > :nth-child(4) { animation-delay: 0.18s; }
.hero__inner > :nth-child(5) { animation-delay: 0.24s; }

.hero .display {
  margin-top: 26px;
}

.hero .display .grad-text {
  display: inline-block;
}

.hero .lead {
  max-width: 660px;
  margin: 26px auto 0;
}

.hero .btn-row {
  justify-content: center;
  margin-top: 36px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--body);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.hero__points .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--blue);
}

.hero .stage {
  isolation: isolate;
  animation: rise 1s var(--ease) 0.3s both;
}

/* ---- Solutions page ------------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.subnav__inner {
  display: flex;
  gap: 8px;
  padding-block: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9063rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  transition:
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.subnav a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.subnav .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* Sections reached from the sticky sub-navigation need extra offset. */
.anchor {
  scroll-margin-top: calc(var(--header-h) + 64px);
}

/* ---- Error page ----------------------------------------------------------- */

.notfound {
  padding-block: clamp(72px, 12vw, 160px);
  text-align: center;
}

.notfound__code {
  display: block;
  width: fit-content;
  margin-inline: auto;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
}

.notfound .h2 {
  margin-top: 8px;
}

.notfound .lead {
  max-width: 46ch;
  margin: 16px auto 32px;
}

.notfound .btn-row {
  justify-content: center;
}

/* ---- Small helpers used by a few pages ----------------------------------- */

.center {
  text-align: center;
}

.note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}

.section--dark .note {
  color: var(--on-dark-muted);
}

.ui-ctl .icon {
  width: 18px;
  height: 18px;
}

.note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note a:hover {
  color: var(--blue-600);
}

.section--dark .note a:hover {
  color: #fff;
}
