:root {
  --ink: #142727;
  --muted: #526563;
  --deep: #092729;
  --teal: #157f73;
  --gold: #e2b46b;
  --paper: #fffaf2;
  --cream: #f5ebdc;
  --line: rgba(20, 39, 39, 0.14);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(9, 39, 41, 0.07), transparent 38%),
    var(--cream);
}

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

[hidden] {
  display: none !important;
}

.site-nav {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 20px clamp(20px, 5vw, 72px);
  color: #fffdf7;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand-seal {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
}

.nav-actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions a,
.locale-choice,
.primary-cta,
.secondary-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  padding: 0 16px;
  font-weight: 800;
}

.locale-choice {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.locale-choice[aria-pressed="true"] {
  background: #fffdf7;
  color: var(--deep);
}

.hero-shell {
  position: relative;
  min-height: min(820px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  overflow: hidden;
  padding: 116px clamp(20px, 5vw, 72px) 56px;
  background: var(--deep);
  background-position: center;
  background-size: cover;
  color: #fffdf7;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shell::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 29, 31, 0.94) 0%, rgba(5, 29, 31, 0.76) 34%, rgba(5, 29, 31, 0.22) 66%, rgba(5, 29, 31, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 29, 31, 0.5), rgba(5, 29, 31, 0.04) 46%);
}

.hero-shell::after {
  z-index: 1;
  opacity: 0.32;
  background:
    radial-gradient(circle at 78% 24%, rgba(226, 180, 107, 0.26), transparent 24%),
    radial-gradient(circle at 10% 74%, rgba(21, 127, 115, 0.24), transparent 28%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  filter: saturate(0.98) contrast(0.98) brightness(0.9);
}

.hero-seal {
  position: absolute;
  z-index: 2;
  right: clamp(26px, 8vw, 126px);
  bottom: clamp(36px, 9vw, 122px);
  width: clamp(160px, 21vw, 336px);
  max-height: 44%;
  object-fit: contain;
  opacity: 0.18;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  user-select: none;
  animation: heroSealDrift 9s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 780px;
  animation: heroCopyIn 620ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 5vw, 5.25rem);
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.hero-lede {
  max-width: 640px;
  margin: 28px 0;
  color: rgba(255, 253, 247, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 740px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  background: rgba(5, 29, 31, 0.34);
  color: rgba(255, 253, 247, 0.82);
  line-height: 1.48;
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.hero-benefits li:hover {
  border-color: rgba(226, 180, 107, 0.7);
  background: rgba(255, 253, 247, 0.15);
  transform: translateY(-2px);
}

.hero-benefits strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-cta {
  border-color: transparent;
  background: var(--teal);
  color: white;
  box-shadow: 0 18px 42px rgba(21, 127, 115, 0.28);
}

.nav-actions a,
.locale-choice,
.primary-cta,
.secondary-cta {
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta:hover,
.secondary-cta:hover,
.nav-actions a:hover,
.locale-choice:hover {
  transform: translateY(-1px);
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.privacy-note {
  margin: 18px 0 0;
  color: rgba(255, 253, 247, 0.72);
  font-size: 0.92rem;
}

.hero-visual-space {
  position: relative;
  z-index: 2;
  min-height: min(48vh, 500px);
}

.proof-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255, 253, 247, 0.14);
  background: rgba(255, 253, 247, 0.1);
  color: #fffdf7;
  animation: proofPulse 12s ease-in-out infinite;
}

.proof-chip:nth-of-type(2) {
  animation-delay: 1.5s;
}

.proof-chip:nth-of-type(3) {
  animation-delay: 3s;
}

.proof-chip:nth-of-type(4) {
  animation-delay: 4.5s;
}

.proof-chip:nth-of-type(5) {
  animation-delay: 6s;
}

.proof-chip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-chip strong {
  font-size: 1rem;
}

.proof-chip em {
  grid-column: 1 / -1;
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.86rem;
  font-style: normal;
}

.flow-section,
.workbench-section,
.trust-section {
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.flow-section {
  padding-top: clamp(28px, 4vw, 44px);
}

.public-flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.public-flow-tabs span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.public-flow-tabs .is-active {
  background: var(--teal);
  color: #fffdf7;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow-grid article {
  min-height: 260px;
  padding: 30px;
  background: var(--paper);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.flow-grid article:hover {
  z-index: 1;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(20, 39, 39, 0.12);
  transform: translateY(-3px);
}

.flow-grid span {
  color: var(--teal);
  font-weight: 900;
}

.flow-grid h2 {
  margin-top: 48px;
  font-size: clamp(1.78rem, 3vw, 2.62rem);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.flow-grid p,
.trust-section p,
.workbench-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.flow-grid .benefit-line {
  position: relative;
  margin-top: 22px;
  padding-top: 18px;
  color: var(--ink);
}

.flow-grid .benefit-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 3px;
  background: var(--gold);
}

.benefit-line strong,
.benefit-stack strong {
  color: var(--teal);
}

.workbench-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #fff7eb;
}

.benefit-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.benefit-stack p {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 250, 242, 0.72);
}

.workbench-preview {
  border: 1px solid rgba(20, 39, 39, 0.18);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(20, 39, 39, 0.12);
  animation: panelRise 680ms ease 120ms both;
}

.preview-bar {
  height: 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--teal) 0 90px, transparent 90px),
    linear-gradient(90deg, rgba(20, 39, 39, 0.09), transparent);
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.preview-row:hover {
  background: rgba(21, 127, 115, 0.06);
  transform: translateX(3px);
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-row span {
  color: var(--muted);
}

.preview-row em {
  padding: 6px 10px;
  background: rgba(21, 127, 115, 0.12);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.trust-section {
  display: grid;
  gap: 22px;
  max-width: 960px;
}

.trust-section .primary-cta {
  width: fit-content;
  color: white;
}

@keyframes panelRise {
  from {
    translate: 0 18px;
  }
  to {
    translate: 0 0;
  }
}

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

@keyframes heroSealDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-1.2deg);
  }
  to {
    transform: translate3d(-10px, -8px, 0) rotate(1.6deg);
  }
}

@keyframes proofPulse {
  0%,
  28%,
  100% {
    background: rgba(255, 253, 247, 0.12);
    border-color: rgba(255, 253, 247, 0.2);
    transform: translateY(0);
  }
  12% {
    background: rgba(226, 180, 107, 0.18);
    border-color: rgba(226, 180, 107, 0.56);
    transform: translateY(-2px);
  }
}

.simple-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(226, 180, 107, 0.24), transparent 34%),
    var(--cream);
}

.auth-static-page {
  display: block;
  padding: 0;
  background: #f7f0e5;
}

.auth-static-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
}

.auth-static-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--deep);
  color: #fffdf7;
}

.auth-static-hero::before,
.auth-static-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.auth-static-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 29, 31, 0.88), rgba(5, 29, 31, 0.34) 70%, rgba(5, 29, 31, 0.16)),
    linear-gradient(0deg, rgba(5, 29, 31, 0.84), transparent 58%);
}

.auth-static-hero::after {
  background: radial-gradient(circle at 76% 22%, rgba(226, 180, 107, 0.2), transparent 30%);
}

.auth-static-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transform: rotateY(180deg) scale(1.03);
  filter: saturate(0.92) contrast(1.02) brightness(0.76);
  animation: authStaticImageIn 680ms ease both;
}

.auth-static-hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5vw, 76px);
  right: clamp(28px, 7vw, 104px);
  bottom: clamp(36px, 8vh, 88px);
  max-width: 720px;
}

.auth-static-hero-copy h2 {
  max-width: 600px;
  color: #fffdf7;
  font-size: clamp(2.2rem, 3.7vw, 4.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

.auth-static-hero-copy p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.auth-static-panel-shell {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: #f7f0e5;
}

.auth-static-page .simple-panel {
  min-width: 0;
  width: min(620px, 100%);
  padding: clamp(26px, 4vw, 48px);
  border-color: rgba(20, 39, 39, 0.12);
  border-radius: 4px;
  box-shadow: 0 24px 72px rgba(20, 39, 39, 0.13);
}

.auth-static-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.auth-static-page .simple-panel .brand-mark {
  margin: 0;
}

.auth-static-page .brand-seal {
  width: 52px;
  height: 52px;
}

.auth-static-locale {
  display: flex;
  gap: 6px;
}

.auth-static-locale .locale-choice {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
}

.auth-static-locale .locale-choice[aria-pressed="true"] {
  border-color: rgba(21, 127, 115, 0.28);
  background: rgba(21, 127, 115, 0.1);
  color: var(--teal);
}

.auth-static-page a:focus-visible,
.auth-static-page button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.auth-static-page .simple-panel > .eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
}

.auth-static-page .simple-panel h1 {
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  text-wrap: balance;
}

.auth-static-page .simple-panel > p:not(.eyebrow) {
  margin: 16px 0 0;
}

.auth-static-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.auth-static-actions .primary-cta,
.auth-static-actions .secondary-cta {
  width: 100%;
  min-height: 48px;
}

.auth-static-actions .secondary-cta {
  margin-top: 2px;
}

.auth-static-actions .copyable-contact {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(21, 127, 115, 0.42);
  text-underline-offset: 3px;
}

.auth-static-register .request-guidance {
  display: grid;
  gap: 8px;
  max-width: 52ch;
  margin-block: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  font-size: 0.9rem;
  line-height: 1.42;
}

.auth-static-register .request-guidance p {
  margin: 0;
  color: var(--muted);
}

.auth-static-register .request-guidance strong {
  color: var(--ink);
}

@keyframes authStaticImageIn {
  from {
    opacity: 0.82;
    transform: rotateY(180deg) scale(1.06);
  }
  to {
    opacity: 1;
    transform: rotateY(180deg) scale(1.03);
  }
}

.simple-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(20, 39, 39, 0.1);
}

.simple-panel .brand-mark {
  color: var(--ink);
  margin-bottom: 42px;
}

.simple-panel p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.simple-panel .secondary-cta {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.request-note {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: rgba(226, 180, 107, 0.12);
}

.request-note span,
.copyable-contact {
  color: var(--muted);
}

.copyable-contact {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .auth-static-shell {
    grid-template-columns: 1fr;
  }

  .auth-static-hero {
    height: 88px;
    min-height: 88px;
  }

  .auth-static-hero-image {
    object-position: 50% 58%;
    filter: saturate(0.95) contrast(1.02) brightness(0.9);
  }

  .auth-static-hero-copy {
    display: none;
  }

  .auth-static-panel-shell {
    min-height: calc(100svh - 88px);
    align-items: start;
    padding: 8px 16px 24px;
  }

  .auth-static-page .simple-panel {
    margin: 0 auto;
    padding: 24px clamp(20px, 5vw, 34px);
  }

  .auth-static-topline {
    margin-bottom: 28px;
  }

  .site-nav {
    position: relative;
    background: var(--deep);
    color: #fffdf7;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
    background-size: cover;
  }

  .hero-visual-space {
    display: none;
  }

  .hero-shell::before {
    background:
      linear-gradient(90deg, rgba(5, 29, 31, 0.92), rgba(5, 29, 31, 0.62)),
      linear-gradient(0deg, rgba(5, 29, 31, 0.66), rgba(5, 29, 31, 0) 58%);
  }

  .hero-image {
    object-position: 60% center;
  }

  .hero-seal {
    right: clamp(24px, 8vw, 82px);
    bottom: clamp(28px, 6vw, 64px);
    width: clamp(150px, 28vw, 260px);
    opacity: 0.12;
  }

  .flow-grid,
  .workbench-section {
    grid-template-columns: 1fr;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .flow-grid article {
    min-height: auto;
  }

}

@media (max-width: 560px) {
  .auth-static-panel-shell {
    position: relative;
    min-height: calc(100svh - 88px);
    overflow: hidden;
    padding: 0;
    background: var(--paper);
  }

  .auth-static-panel-shell::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: 22px;
    width: 176px;
    aspect-ratio: 1;
    background: url("/assets/paxmap-passport-seal.svg") center / contain no-repeat;
    opacity: 0.045;
    pointer-events: none;
  }

  .auth-static-page .simple-panel {
    position: relative;
    z-index: 1;
    min-height: calc(100svh - 88px);
    border: 0;
    box-shadow: none;
  }

  .auth-static-topline {
    flex-wrap: wrap;
  }

  .auth-static-locale {
    margin-left: auto;
  }

  .auth-static-page .brand-seal {
    width: 42px;
    height: 42px;
  }

  .auth-static-page .simple-panel h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .auth-static-page .simple-panel p {
    line-height: 1.48;
  }

  .auth-static-page .cta-row .secondary-cta {
    display: inline-flex;
  }

  .site-nav,
  .nav-actions,
  .cta-row {
    align-items: center;
  }

  .site-nav {
    display: flex;
    gap: 8px;
    min-height: 62px;
    padding: 9px 14px;
  }

  .brand-mark {
    gap: 9px;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
  }

  .nav-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .nav-actions a,
  .locale-choice,
  .primary-cta,
  .secondary-cta {
    flex: 1 1 auto;
    min-height: 46px;
    min-width: 0;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .hero-shell {
    gap: 16px;
    padding: 16px 18px 24px;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-seal {
    display: none;
  }

  h1 {
    font-size: clamp(1.42rem, 6.6vw, 1.92rem);
    line-height: 1.02;
  }

  .hero-lede {
    margin: 8px 0 10px;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .cta-row .secondary-cta {
    display: none;
  }

  .hero-benefits {
    display: none;
  }

  .proof-chip {
    padding: 10px 11px;
  }

  .proof-chip em {
    display: none;
  }

  .privacy-note {
    display: none;
  }

  .preview-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .public-flow-tabs {
    width: 100%;
  }

  .public-flow-tabs span {
    flex: 1 1 30%;
    min-height: 38px;
    padding-inline: 10px;
  }
}

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

  .hero-copy,
  .hero-seal,
  .auth-static-hero-image,
  .proof-chip,
  .workbench-preview {
    animation: none;
    translate: 0;
  }

  .hero-benefits li,
  .flow-grid article,
  .preview-row,
  .nav-actions a,
  .locale-choice,
  .primary-cta,
  .secondary-cta {
    transition: none;
  }

  .hero-benefits li:hover,
  .flow-grid article:hover,
  .preview-row:hover,
  .primary-cta:hover,
  .secondary-cta:hover,
  .nav-actions a:hover,
  .locale-choice:hover {
    transform: none;
  }
}
