/* Atriali — líneas convergentes, pulsos y profundidad visual inspirados en Gateway Flow. */
:root {
  --gateway-ink: #0b111b;
  --gateway-panel: #111c2e;
  --gateway-blue: #8fc1ff;
}

.gateway-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gateway-ink);
}
.gateway-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.gateway-stage::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at var(--hub, 70% 49%), #244f90aa, transparent 54%),
    linear-gradient(125deg, #10192a, #090e17 60%);
}
.gateway-hero::before {
  width: auto;
  height: auto;
  inset: 0;
  animation: none;
}
.gateway-hero::after {
  background-size: 72px 72px;
  opacity: .23;
  mask-image: linear-gradient(100deg, transparent 9%, #000 51%, #000);
}

.site-masthead, .site-masthead .header { background: #0b111b; }
.site-masthead .header { border-bottom-color: #4a628740; }
.site-masthead .button-outline { border-color: #7696c24a; }
.site-masthead .brand { width: 148px; }
.gateway-hero .hero { min-height: 690px; gap: clamp(35px, 7vw, 110px); }
.gateway-hero .hero-copy { position: relative; z-index: 1; }
.gateway-hero .hero-copy::before {
  position: absolute;
  z-index: -1;
  inset: -45px -65px;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 36% 50%, #0b111bf5, #0b111b84 48%, transparent 73%);
}
.gateway-hero h1 { font-size: clamp(44px, 5.34vw, 84px); font-weight: 580; line-height: 1.01; }
.gateway-hero .headline-line { display: block; overflow: clip; padding-bottom: .09em; }
.gateway-hero .headline-line + .headline-line { margin-top: -.035em; }
.gateway-hero h1 em {
  color: #a4ccff;
  background: linear-gradient(102deg, #e6f2ff 0%, #a6cdff 35%, #649efe 96%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gateway-hero .hero .eyebrow {
  margin-bottom: 28px;
  border-color: #91bbfd51;
  background: #14253bb3;
}
.gateway-hero .lead { color: #c5d4e9; max-width: 458px; }
.gateway-hero .button-light { box-shadow: 0 7px 35px #729ffe22; }

.gateway-hero[data-gateway-ready] .headline-line > * {
  display: inline-block;
  animation: gateway-headline .9s cubic-bezier(.14, .77, .3, 1) both;
}
.gateway-hero[data-gateway-ready] .headline-line:nth-child(2) > * { animation-delay: 90ms; }
.gateway-hero[data-gateway-ready] .headline-line:nth-child(3) > * { animation-delay: 170ms; }
@keyframes gateway-headline { from { translate: 0 115%; opacity: .35; } to { translate: 0 0; opacity: 1; } }

.gateway-hero .hero-visual { padding-top: 12px; }
.gateway-card {
  position: relative;
  background: linear-gradient(145deg, #1b2a41f0, #0d1725f8 67%);
  color: #f5f8ff;
  border-color: #6488bd73;
  border-radius: 22px;
  padding: 27px;
  max-width: 422px;
  transform: perspective(950px) rotateY(-5deg) rotateZ(-2deg);
  box-shadow: 0 25px 80px #010509b0, 0 0 45px #3476d929, inset 0 1px #97bffa26;
}
.gateway-hero .hero-visual:focus-within .gateway-card { transform: none; }
.gateway-card .paper-top, .gateway-card .balance, .gateway-card .paper-row { border-color: #87a6d039; }
.gateway-card .paper-top span:last-child, .gateway-card .unit-line > span,
.gateway-card .unit-line small, .gateway-card .paper-row div > span,
.gateway-card .balance > span:first-child, .gateway-card .receipt-line { color: #b7c9e4; }
.gateway-card .balance > strong { color: #f5f9ff; }
.gateway-card .unit-line { margin-block: 17px; }
.gateway-card .paper-row { padding-block: 13px; }
.gateway-card .statement-controls { background: #0d1725; border-color: #6b92ca56; }
.gateway-card .statement-controls button { color: #c0d4ee; }
.gateway-card .statement-controls button[aria-pressed="true"] { color: #eef6ff; background: #254978; }
.gateway-card button:focus-visible { outline-color: #a6d2ff; }
.gateway-card .paid { background: #1b3c37; color: #ace3cd; }
.gateway-card .pending { background: #463923; color: #ffdf9f; }
.gateway-card .green { color: #ace3cd; }
.gateway-card .document-icon { border-color: #93c5fd; }
.gateway-hero .visual-caption { color: #c4d7f4; margin-top: 22px; }

.gateway-links { background: #111c2c; color: #dbe9ff; border-color: #38547975; }
.gateway-links .purpose-inner p { color: #bdcdeb; }
.gateway-links .purpose-inner strong { color: #f4f8ff; }
.gateway-links .quick-links a {
  color: #d4e7ff;
  background: #15325275;
  border-color: #6b96ce5c;
}
.gateway-links .quick-links a:hover { background: #254977; }
.gateway-links .quick-links a:focus-visible { outline-color: #93c5fd; }

[data-glow] { position: relative; }
[data-glow]::after {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  inset: 0;
  padding: 1px;
  content: "";
  border-radius: inherit;
  background: radial-gradient(230px circle at var(--glow-x, 65%) var(--glow-y, 25%), #719ff6, transparent 76%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .28s ease;
}
[data-glow]:focus-within::after, [data-glow]:hover::after { opacity: .94; }
.gateway-services article {
  background: linear-gradient(150deg, #ffffff 50%, #f2f7ff);
  border-color: #d7e3f5;
  box-shadow: 0 12px 34px #1d4ed809;
}
.gateway-services .service-icon { border: 1px solid #c4d7f6; background: #e7f0ff; }
.gateway-services article:hover { box-shadow: 0 20px 44px #17448b15; }

.gateway-product {
  --hub: 55% 36%;
  color: #f3f7ff;
  border-color: #365078;
  padding-block: clamp(60px, 7vw, 108px);
}
.gateway-product .product-heading > p { color: #c4d7f5; }
.gateway-product .product-heading h2 em { color: #9cc7ff; }
.gateway-product .product-heading { margin-bottom: 37px; }
.gateway-product .product-window { color: #111820; border-color: #99b5d7; box-shadow: 0 25px 70px #0207109e, 0 0 48px #639bf722; }
.gateway-product .demo-disclaimer { color: #b7cbe8; }
.gateway-product .product-heading a:focus-visible { outline-color: #93c5fd; }
.gateway-portal { --hub: 83% 54%; }
.gateway-portal::after { display: none; }
.gateway-portal .portal-label { position: relative; }
.gateway-portal .portal-views {
  border: 1px solid #648abb6b;
  border-radius: 12px;
  background: #0b1625db;
  padding-inline: 17px;
  margin-bottom: 13px;
}
.gateway-contact { --hub: 78% 50%; }
.gateway-contact .contact-actions, .gateway-contact > p, .gateway-contact h2 { position: relative; }
.access-panel { background: linear-gradient(145deg, #f9fbff 30%, #eaf2ff); border-color: #cbdaf3; }

.walkthrough details[open] {
  border-top-color: #b3ccf3;
  background: linear-gradient(100deg, #f2f7ff, transparent 85%);
}
.faq-list details[open] { background: linear-gradient(100deg, #f5f8ff, transparent 80%); }
@media (max-width: 875px) {
  .gateway-hero .hero { gap: 42px; }
  .gateway-hero h1 { font-size: clamp(42px, 6.35vw, 62px); }
  .gateway-hero .hero-copy::before { inset: -25px; }
  .gateway-hero .gateway-card { transform: none; }
}
@media (max-width: 720px) {
  .gateway-hero h1 { font-size: clamp(35px, 9.35vw, 55px); }
  .gateway-hero .hero { min-height: auto; gap: 30px; }
  .gateway-hero .hero .eyebrow { margin-bottom: 18px; }
  .gateway-hero .hero-visual { padding-inline: 0; }
  .gateway-card { padding: 21px; }
  .gateway-product .product-heading { margin-bottom: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .gateway-hero[data-gateway-ready] .headline-line > * { animation: none; }
  .gateway-card { transform: none; }
  [data-glow]::after { transition: none; }
}

.gateway-caption { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; column-gap: 10px; }
.gateway-pause {
  background: transparent;
  color: #c4d7f4;
  border: 0;
  padding: 8px 4px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gateway-pause:focus-visible { outline-color: #93c5fd; }
@media (max-width: 460px) {
  .site-masthead .brand { width: clamp(98px, 31vw, 124px); }
  .site-masthead .header .button { white-space: nowrap; }
  .gateway-caption { align-items: center; gap: 0 7px; }
  .gateway-caption .visual-caption { margin-top: 12px; }
}
