/* Mapshore gateway — hierarchy: markets > deck > trust > logo/contact */

:root {
  --gw-cream: #f8e9d8;
  --gw-surface: #faf9f7;
  --gw-white: #ffffff;
  --gw-text: #263140;
  --gw-deep: #0d4659;
  --gw-teal: #1c82a5;
  --gw-teal-deep: #125a73;
  --gw-muted: #5a6472;
  --gw-gold: #f6c645;
  --gw-radius-shell: 1.85rem;
  --gw-radius-field: 1.15rem;
  --gw-radius-pill: 999px;
  --gw-shadow-soft:
    0 1px 2px rgba(38, 49, 64, 0.04),
    0 14px 36px rgba(38, 49, 64, 0.08);
}

.gateway-page {
  margin: 0;
  min-height: 100vh;
  color: var(--gw-text);
  font-family: Manrope, system-ui, sans-serif;
  background: var(--gw-cream);
  -webkit-font-smoothing: antialiased;
}

.gateway-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--gw-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.gateway-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Progress */
.gateway-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.65rem 1rem 0.5rem;
  pointer-events: none;
}

.gateway-progress[hidden] {
  display: none !important;
}

.gateway-progress__track {
  height: 4px;
  border-radius: var(--gw-radius-pill);
  background: rgba(38, 49, 64, 0.1);
  overflow: hidden;
}

.gateway-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gw-teal), var(--gw-teal-deep));
}

.gateway-progress__label {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gw-teal-deep);
}

/* Stage */
.gateway {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.gateway__stage {
  width: min(22.5rem, 100%);
  text-align: center;
}

/* 4. Logo — quiet */
.gateway__brand {
  margin-bottom: 1.1rem;
}

.gateway__logo {
  height: clamp(2.1rem, 5.5vw, 2.65rem);
  width: auto;
  margin: 0 auto;
  display: block;
  opacity: 0.92;
}

/* 2. Compact deck */
.gateway-deck {
  margin: 0 0 1.5rem;
}

.gateway-deck__stack {
  position: relative;
  width: min(15.5rem, 72%);
  margin: 0 auto 0.85rem;
  aspect-ratio: 4 / 5;
}

.gateway-deck__peek {
  position: absolute;
  inset: 8% 0 12%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--gw-white);
  box-shadow: 0 8px 20px rgba(38, 49, 64, 0.08);
  opacity: 0.55;
}

.gateway-deck__peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gateway-deck__peek--left {
  transform: translateX(-14%) rotate(-7deg) scale(0.92);
  z-index: 1;
}

.gateway-deck__peek--right {
  transform: translateX(14%) rotate(7deg) scale(0.92);
  z-index: 1;
}

.gateway-deck__card {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.55rem 0.7rem;
  background: var(--gw-white);
  border-radius: 1.65rem;
  box-shadow: var(--gw-shadow-soft);
  text-align: left;
}

.gateway-deck__card.is-swap .gateway-deck__media img {
  animation: gateway-deck-fade 0.45s ease;
}

.gateway-deck__media {
  flex: 1;
  min-height: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #e8dfd4;
}

.gateway-deck__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gateway-deck__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.35rem 0.15rem;
}

.gateway-deck__place {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gw-deep);
}

.gateway-deck__note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--gw-muted);
}

.gateway-deck__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.gateway-deck__dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: none;
  border-radius: var(--gw-radius-pill);
  background: rgba(38, 49, 64, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.gateway-deck__dot.is-active {
  width: 1.35rem;
  background: var(--gw-teal);
}

.gateway-deck__dot:focus-visible {
  outline: 2px solid var(--gw-teal);
  outline-offset: 2px;
}

@keyframes gateway-deck-fade {
  from { opacity: 0.35; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* 1. Market pick — primary */
.gateway__choose {
  margin: 0 0 1.35rem;
}

.gateway__title {
  margin: 0 0 0.35rem;
  font-family: "Bowlby One SC", sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gw-deep);
  text-wrap: balance;
}

.gateway__subtitle {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gw-muted);
}

.gateway__markets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
  text-align: left;
}

/* Plan-selector style (image 3 → brand teal) */
.gateway__panel {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: var(--gw-deep);
  background: rgba(28, 130, 165, 0.05);
  border: 1.5px solid rgba(28, 130, 165, 0.22);
  border-radius: var(--gw-radius-field);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gateway__panel:hover,
.gateway__panel:focus-visible {
  background: rgba(28, 130, 165, 0.1);
  border-color: rgba(28, 130, 165, 0.55);
  outline: none;
  transform: translateY(-1px);
}

.gateway__panel.is-suggested {
  background: rgba(28, 130, 165, 0.12);
  border-color: var(--gw-teal-deep);
  box-shadow: 0 0 0 1px rgba(18, 90, 115, 0.15);
}

.gateway__panel-radio {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(38, 49, 64, 0.25);
  background: var(--gw-white);
  box-shadow: inset 0 0 0 0 var(--gw-teal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gateway__panel.is-suggested .gateway__panel-radio,
.gateway__panel:hover .gateway__panel-radio,
.gateway__panel:focus-visible .gateway__panel-radio {
  border-color: var(--gw-teal-deep);
  box-shadow: inset 0 0 0 0.28rem var(--gw-teal);
}

.gateway__panel-flag {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gw-cream);
  font-size: 1.2rem;
  line-height: 1;
}

.gateway__panel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.gateway__panel-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gw-deep);
}

.gateway__panel-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gw-teal-deep);
}

/* 3. Trust pills (image 2) */
.gateway-trust {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.gateway-trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem 0.85rem 1.05rem;
  background: var(--gw-white);
  border-radius: var(--gw-radius-pill);
  box-shadow: none;
}

.gateway-trust__copy {
  flex: 1;
  min-width: 0;
}

.gateway-trust__title {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gw-deep);
}

.gateway-trust__body {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--gw-muted);
}

.gateway-trust__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8dfd4;
  color: var(--gw-deep);
}

.gateway-trust__icon .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* 4. Contact */
.gateway__footer {
  font-size: 0.85rem;
}

.gateway__footer a {
  color: var(--gw-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 100, 114, 0.35);
  padding-bottom: 1px;
}

.gateway__footer a:hover {
  color: var(--gw-teal);
  border-bottom-color: var(--gw-teal);
}

/* Shared form language (image 3 → brand) — ready for lead/contact forms */
.gw-input {
  display: block;
  width: 100%;
  padding: 0.95rem 1.35rem;
  border: 1.5px solid rgba(38, 49, 64, 0.1);
  border-radius: var(--gw-radius-pill);
  background: var(--gw-white);
  color: var(--gw-deep);
  font: inherit;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(38, 49, 64, 0.05);
}

.gw-input::placeholder {
  color: rgba(90, 100, 114, 0.75);
}

.gw-input:focus {
  outline: none;
  border-color: rgba(28, 130, 165, 0.55);
  box-shadow: 0 0 0 3px rgba(28, 130, 165, 0.15);
}

.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--gw-radius-pill);
  background: linear-gradient(180deg, #1c82a5 0%, #125a73 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 90, 115, 0.28);
}

.gw-btn:hover,
.gw-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.gw-btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(28, 130, 165, 0.25),
    0 8px 20px rgba(18, 90, 115, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .gateway__panel,
  .gateway-progress__bar,
  .gateway-deck__dot,
  .gateway-deck__card.is-swap .gateway-deck__media img {
    transition: none !important;
    animation: none !important;
  }

  .gateway__panel:hover,
  .gateway__panel:focus-visible {
    transform: none;
  }
}
