:root {
  --ink: #07172b;
  --navy: #0d2947;
  --blue: #2f97df;
  --sky: #85cbff;
  --cloud: #f3f7fa;
  --paper: #ffffff;
  --lime: #c6f36d;
  --orange: #ffb56b;
  --line: #d9e4ec;
  --muted: #587086;
  --display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  --sans: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

::selection {
  background: var(--sky);
  color: var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.065em;
}

.wordmark span {
  color: var(--sky);
}

.wordmark-dark {
  color: var(--ink);
}

/* Gateway */
.gateway-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.gateway-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gateway-header .wordmark {
  pointer-events: auto;
}

.gateway-header p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.gateway-header p::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.gateway-grid {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gateway-choice {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(7rem, 11vh, 9rem) clamp(2rem, 6vw, 7rem) 7rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: var(--ink);
  transition:
    color 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 500ms ease;
}

.gateway-choice-carrier {
  background: var(--navy);
}

.gateway-page[data-active="broker"] .gateway-choice-broker,
.gateway-page[data-active="carrier"] .gateway-choice-carrier {
  color: var(--ink);
  background: var(--sky);
}

.gateway-page[data-active="broker"] .gateway-choice-carrier,
.gateway-page[data-active="carrier"] .gateway-choice-broker {
  opacity: 0.72;
}

.choice-index {
  position: absolute;
  top: 7.2rem;
  right: clamp(2rem, 4vw, 4.5rem);
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.4;
}

.choice-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 37rem);
  transform: translateY(0);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gateway-page[data-active="broker"] .gateway-choice-broker .choice-copy,
.gateway-page[data-active="carrier"] .gateway-choice-carrier .choice-copy {
  transform: translateY(-0.6rem);
}

.choice-eyebrow {
  margin: 0 0 1.35rem;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.65;
}

.choice-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.2vw, 9rem);
  font-weight: 780;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.choice-headline {
  margin: 2.2rem 0 0;
  max-width: 24rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.choice-detail {
  max-width: 25rem;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.68;
}

.choice-action {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 300ms ease 100ms, transform 300ms ease 100ms;
}

.gateway-page[data-active="broker"] .gateway-choice-broker .choice-action,
.gateway-page[data-active="carrier"] .gateway-choice-carrier .choice-action {
  opacity: 1;
  transform: translateY(0);
}

.choice-glow {
  position: absolute;
  z-index: 0;
  width: 32rem;
  height: 32rem;
  right: -15rem;
  bottom: -15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.12;
}

.choice-glow::before,
.choice-glow::after {
  content: "";
  position: absolute;
  inset: 4rem;
  border: 1px solid currentColor;
  border-radius: inherit;
}

.choice-glow::after {
  inset: 8rem;
}

.gateway-divider {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.direction-badge {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 5.7rem;
  height: 5.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1.2rem 3rem rgba(3, 13, 25, 0.28);
  font-size: 2.2rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.direction-badge span {
  animation: arrow-in 380ms ease both;
}

.mobile-arrow {
  display: none;
}

@keyframes arrow-in {
  from { opacity: 0.2; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.gateway-footer {
  position: absolute;
  z-index: 8;
  right: 2rem;
  bottom: 1.8rem;
  display: flex;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.gateway-footer strong {
  color: var(--paper);
}

/* Shared role pages */
.role-page {
  min-height: 100svh;
  overflow: clip;
  background: var(--cloud);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(217, 228, 236, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.section-wrap,
.carousel-shell {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-link,
.alternate-link {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.back-link span {
  font-size: 1rem;
}

.alternate-link:hover,
.back-link:hover {
  color: var(--ink);
}

.header-rule {
  width: 1px;
  height: 1.4rem;
  background: var(--line);
}

.role-pill {
  display: inline-flex;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.role-pill-broker {
  color: #075c9d;
  background: #d9efff;
}

.role-pill-carrier {
  color: #397000;
  background: #e6f7c5;
}

.role-hero {
  padding: clamp(2.4rem, 5vw, 4.5rem) 0 1.6rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(133, 203, 255, 0.14), transparent 32%),
    var(--cloud);
}

.carousel-topline {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.carousel-topline > p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.carousel-topline > p span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.chapter-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 780;
  white-space: nowrap;
}

.chapter-tabs button span {
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.chapter-tabs button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.carousel-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--paper);
  box-shadow: 0 1.8rem 5rem rgba(7, 23, 43, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  --slide-accent: var(--sky);
  position: relative;
  min-width: 100%;
  padding: clamp(2.25rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(24rem, 0.74fr);
  gap: clamp(2.5rem, 6vw, 6.2rem);
  align-items: center;
  overflow: hidden;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.32rem;
  background: var(--slide-accent);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  right: -10rem;
  top: -10rem;
  border-radius: 50%;
  background: var(--slide-accent);
  filter: blur(2px);
  opacity: 0.12;
}

.slide-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.slide-copy h1 {
  max-width: 42rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.96;
}

.slide-body {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.hero-actions,
.closing-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  min-height: 3rem;
  padding: 0.8rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--navy);
}

.text-link {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  border-bottom: 1px solid var(--line);
}

.product-visual {
  position: relative;
  z-index: 2;
  padding: 1rem;
  border: 1px solid #27435f;
  border-radius: 1.1rem;
  background:
    linear-gradient(rgba(133, 203, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 203, 255, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: 24px 24px;
  color: var(--paper);
  box-shadow: 0 1.6rem 3rem rgba(7, 23, 43, 0.2);
  transform: rotate(1.2deg);
}

.visual-topline {
  padding: 0.2rem 0.25rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-badge {
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  color: var(--sky);
  background: rgba(133, 203, 255, 0.12);
  letter-spacing: 0.03em;
  text-transform: none;
}

.visual-route {
  padding: 1.15rem 0.35rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.visual-route p {
  margin: 0 0 0.32rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.visual-route > div > span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
}

.visual-metric {
  text-align: right;
}

.visual-metric strong,
.visual-metric span {
  display: block;
}

.visual-metric strong {
  color: var(--slide-accent);
  font-size: 1.28rem;
}

.visual-metric span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
}

.visual-items {
  display: grid;
  gap: 0.55rem;
}

.visual-item {
  padding: 0.72rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.055);
}

.visual-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(133, 203, 255, 0.1);
}

.visual-dot-lime {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 243, 109, 0.1);
}

.visual-dot-orange {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 181, 107, 0.1);
}

.visual-item div strong,
.visual-item div span {
  display: block;
}

.visual-item div strong {
  margin-bottom: 0.18rem;
  font-size: 0.7rem;
}

.visual-item div span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.59rem;
}

.state {
  padding: 0.3rem 0.42rem;
  border-radius: 999px;
  color: var(--sky);
  background: rgba(133, 203, 255, 0.11);
  font-size: 0.56rem;
  font-weight: 800;
}

.state-lime {
  color: var(--lime);
  background: rgba(198, 243, 109, 0.1);
}

.state-orange {
  color: var(--orange);
  background: rgba(255, 181, 107, 0.1);
}

.visual-signal {
  height: 1.5rem;
  margin: 0.8rem 0.3rem 0;
  display: flex;
  align-items: end;
  gap: 0.25rem;
}

.visual-signal span {
  width: 0.26rem;
  height: 38%;
  border-radius: 999px;
  background: var(--slide-accent);
  opacity: 0.4;
}

.visual-signal span:nth-child(2) { height: 62%; }
.visual-signal span:nth-child(3) { height: 100%; opacity: 0.9; }
.visual-signal span:nth-child(4) { height: 72%; }
.visual-signal span:nth-child(5) { height: 45%; }

.carousel-controls {
  padding: 1rem 0.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
}

.carousel-controls p strong {
  color: var(--ink);
}

.carousel-controls p span {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  font-weight: 750;
}

.carousel-controls > div {
  display: flex;
  gap: 0.45rem;
}

.carousel-controls button {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 1rem;
}

.carousel-controls button:hover {
  color: var(--paper);
  background: var(--ink);
}

.proof-band {
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid > div {
  min-height: 8.5rem;
  padding: 1.8rem clamp(1rem, 3vw, 2.5rem);
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid > div:first-child {
  padding-left: 0;
}

.proof-grid > div:last-child {
  border-right: 0;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 0.35rem;
  color: var(--sky);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.05em;
}

.proof-grid span {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  line-height: 1.55;
}

.story-section,
.workflow-section,
.closing-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.story-intro h2,
.workflow-title h2,
.closing-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  font-weight: 740;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.story-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-cards {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.story-card {
  position: relative;
  min-height: 21rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.story-card::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -7rem;
  bottom: -7rem;
  border: 1px solid var(--sky);
  border-radius: 50%;
  opacity: 0.42;
  transition: transform 350ms ease;
}

.story-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 1rem 2.8rem rgba(7, 23, 43, 0.1);
}

.story-card:hover::after {
  transform: scale(1.25);
}

.story-number {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 850;
}

.story-kicker {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card strong {
  max-width: 20rem;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.story-arrow {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 1.1rem;
}

.workflow-section {
  background: #e8f0f5;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.66fr) 1fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.workflow-title {
  align-self: start;
  position: sticky;
  top: 7.5rem;
}

.workflow-title h2 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #c9d7e1;
}

.workflow-list li {
  min-height: 8.5rem;
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.3rem;
  align-items: start;
  border-bottom: 1px solid #c9d7e1;
}

.workflow-list li > span {
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 850;
}

.workflow-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.workflow-list p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.closing-section {
  background: var(--paper);
}

.closing-card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 6rem);
  border-radius: 1.4rem;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 18%, rgba(133, 203, 255, 0.22), transparent 25%),
    var(--ink);
}

.closing-card h2 {
  max-width: 54rem;
}

.closing-card > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.button-sky {
  color: var(--ink);
  background: var(--sky);
}

.button-outline {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.closing-watermark {
  position: absolute;
  right: -1rem;
  bottom: -4rem;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: clamp(10rem, 25vw, 24rem);
  font-weight: 900;
  letter-spacing: -0.14em;
  line-height: 1;
  pointer-events: none;
}

.site-footer {
  color: var(--paper);
  background: var(--ink);
}

.site-footer .section-wrap {
  min-height: 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.site-footer p,
.site-footer > div > span {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.69rem;
}

.site-footer > div > span {
  justify-self: end;
  font-weight: 750;
}

.header-login,
.header-signup {
  min-height: 2.35rem;
  padding: 0.58rem 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.58rem;
  font-size: 0.71rem;
  font-weight: 820;
  white-space: nowrap;
}

.header-login {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.header-login:hover {
  border-color: #9eb5c6;
}

.header-signup {
  color: var(--paper);
  background: var(--ink);
}

.header-signup:hover {
  background: var(--navy);
}

.proof-cta {
  min-height: 5.5rem;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-cta p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.04em;
}

.proof-cta .button {
  min-height: 2.65rem;
}

.section-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.workflow-signup {
  width: fit-content;
  margin-top: 1.75rem;
}

.account-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(133, 203, 255, 0.24), transparent 28rem),
    var(--cloud);
}

.account-page-carrier {
  background:
    radial-gradient(circle at 84% 18%, rgba(198, 243, 109, 0.25), transparent 28rem),
    var(--cloud);
}

.account-page-login {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 181, 107, 0.18), transparent 28rem),
    var(--cloud);
}

.account-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.account-header-inner {
  width: min(1120px, calc(100% - 3rem));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-header nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.account-back-link {
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 780;
}

.account-back-link:hover {
  color: var(--ink);
}

.account-main {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.68fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.account-intro h1 {
  max-width: 46rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.account-lead {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.7;
}

.account-benefits {
  max-width: 40rem;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.account-benefits li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.account-benefits li span {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--sky);
  font-size: 0.65rem;
  font-weight: 900;
}

.account-page-carrier .account-benefits li span {
  background: var(--lime);
}

.account-page-login .account-benefits li span {
  background: var(--orange);
}

.account-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.8rem 5rem rgba(7, 23, 43, 0.12);
}

.account-card-kicker {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.account-card > p:not(.account-card-kicker) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.account-primary-action {
  width: 100%;
  margin-top: 1.5rem;
}

.account-divider {
  margin: 1.8rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.account-note {
  font-size: 0.78rem !important;
}

.account-secondary-link {
  margin-top: 1rem;
  display: inline-flex;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 820;
}

.account-role-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.account-role-links a {
  min-height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 820;
}

.account-role-links a:hover {
  border-color: var(--sky);
  background: #f4faff;
}

.account-footer {
  min-height: 5.5rem;
  padding: 1rem max(1.5rem, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper);
  background: var(--ink);
}

.account-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}
@media (max-width: 1000px) {
  .carousel-slide {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
    gap: 2rem;
  }

  .slide-copy h1 {
    font-size: clamp(2.7rem, 5.8vw, 4.4rem);
  }

  .chapter-tabs button {
    font-size: 0;
  }

  .chapter-tabs button span {
    font-size: 0.68rem;
  }
}

@media (max-width: 760px) {
  .gateway-page {
    min-height: 100svh;
    overflow: auto;
  }

  .gateway-header {
    padding: 1.2rem 1.25rem;
  }

  .gateway-header p {
    font-size: 0.58rem;
  }

  .gateway-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 100svh;
  }

  .gateway-choice {
    min-height: 50svh;
    padding: 5rem 1.35rem 3rem;
  }

  .gateway-choice-carrier {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .choice-index {
    top: 5.2rem;
    right: 1.4rem;
  }

  .gateway-choice-carrier .choice-index {
    top: 3.2rem;
  }

  .choice-copy h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .choice-eyebrow {
    margin-bottom: 0.8rem;
  }

  .choice-headline {
    margin-top: 1rem;
    font-size: 1.15rem;
  }

  .choice-detail {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .choice-action {
    margin-top: 0.8rem;
    font-size: 0.59rem;
  }

  .gateway-divider {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
  }

  .direction-badge {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.65rem;
  }

  .desktop-arrow {
    display: none;
  }

  .mobile-arrow {
    display: inline;
  }

  .gateway-footer {
    right: 1.25rem;
    bottom: 1rem;
    font-size: 0.58rem;
  }

  .site-header-inner,
  .section-wrap,
  .carousel-shell {
    width: min(100% - 2rem, 1240px);
  }

  .site-header-inner {
    min-height: 4.2rem;
  }

  .header-rule,
  .back-link {
    display: none;
  }

  .alternate-link {
    font-size: 0.65rem;
  }

  .carousel-topline {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .chapter-tabs {
    width: 100%;
  }

  .chapter-tabs button {
    flex: 1;
    justify-content: center;
    font-size: 0.62rem;
  }

  .chapter-tabs button span {
    display: none;
  }

  .carousel-slide {
    padding: 2rem 1.25rem 1.4rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slide-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .slide-body {
    font-size: 0.9rem;
  }

  .product-visual {
    transform: none;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }

  .proof-grid,
  .story-cards,
  .story-intro,
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .proof-grid > div,
  .proof-grid > div:first-child {
    min-height: auto;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proof-grid > div:last-child {
    border-bottom: 0;
  }

  .story-intro {
    align-items: start;
  }

  .story-card {
    min-height: 15rem;
  }

  .workflow-title {
    position: static;
  }

  .site-footer .section-wrap {
    padding: 1.5rem 0;
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 460px) {
  .gateway-header p::before {
    display: none;
  }

  .gateway-footer span {
    display: none;
  }

  .role-pill {
    display: none;
  }

  .chapter-tabs button {
    padding-inline: 0.5rem;
  }

  .visual-route {
    grid-template-columns: 1fr;
  }

  .visual-metric {
    text-align: left;
  }

  .visual-item {
    grid-template-columns: auto 1fr;
  }

  .visual-item .state {
    grid-column: 2;
    justify-self: start;
  }

  .carousel-controls p span {
    display: none;
  }

  .workflow-list li {
    grid-template-columns: 2.5rem 1fr;
  }

  .closing-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .header-cluster:last-child {
    gap: 0.45rem;
  }

  .header-cluster:last-child .alternate-link {
    display: none;
  }

  .header-login,
  .header-signup {
    min-height: 2.2rem;
    padding: 0.52rem 0.65rem;
    font-size: 0.65rem;
  }

  .proof-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem 0 1.4rem;
  }

  .account-header-inner,
  .account-main {
    width: min(100% - 2rem, 1120px);
  }

  .account-header-inner {
    min-height: 4.2rem;
  }

  .account-main {
    padding: 3.2rem 0;
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .account-intro h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .account-card {
    padding: 1.5rem;
  }

  .account-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .account-back-link {
    display: none;
  }

  .account-role-links {
    grid-template-columns: 1fr;
  }
}
@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;
  }
}
.account-form {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.account-form > label:not(.account-check) {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
}

.account-form input[type="text"],
.account-form input[type="password"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: var(--paper);
}

.account-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(133, 203, 255, 0.35);
  outline-offset: 1px;
}

.account-form .account-primary-action {
  border: 0;
  cursor: pointer;
}

.account-alert {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e0a293;
  border-radius: 0.65rem;
  color: #7b2116;
  background: #fff2ee;
  font-size: 0.8rem;
  line-height: 1.45;
}

.account-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.account-check input {
  margin-top: 0.2rem;
}

.account-check a {
  color: var(--blue);
  font-weight: 800;
}
