:root {
  --navy: #00123d;
  --royal: #002e83;
  --blue: #0078f0;
  --teal: #00beaa;
  --slate: #5f6873;
  --ink: #0c1224;
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 28px 80px rgba(0, 18, 61, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --header-h: 3.5rem;
  --slide-ms: 700ms;
}

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

html,
body.kiosk {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body.kiosk {
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  background: var(--navy);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Kiosk screenshots must never use the global height:auto — it fights object-fit. */
.kiosk-screen img {
  max-width: none;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(0, 18, 61, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: min(70vw, 18rem);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 0.35rem;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--royal);
  color: #fff;
}

.btn-primary:hover {
  background: #0036a0;
}

.btn-ghost {
  background: #fff;
  color: var(--royal);
  border: 1px solid #fff;
}

.btn-ghost:hover {
  background: #eef3fb;
  color: var(--navy);
}

.btn-text {
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  padding: 0.55rem 0.85rem;
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.kiosk-stage {
  position: relative;
  height: 100svh;
  height: 100dvh;
  padding-top: var(--header-h);
  overflow: hidden;
}

.kiosk-slide {
  position: absolute;
  inset: var(--header-h) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.55rem, 1.4vh, 0.9rem);
  align-items: stretch;
  justify-items: center;
  padding: clamp(0.65rem, 1.6vh, 1.1rem) clamp(1rem, 3vw, 2.5rem) clamp(2.4rem, 4.5vh, 3.2rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(2.5%) scale(0.985);
  transition:
    opacity var(--slide-ms) ease,
    transform var(--slide-ms) cubic-bezier(0.22, 0.9, 0.25, 1),
    visibility 0s linear var(--slide-ms);
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(0, 160, 190, 0.16), transparent 55%),
    radial-gradient(700px 420px at 90% 80%, rgba(0, 46, 131, 0.35), transparent 50%),
    linear-gradient(135deg, #00123d 0%, #001a52 45%, #002e83 100%);
}

.kiosk-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
  pointer-events: auto;
  z-index: 2;
}

.kiosk-slide.is-exit {
  opacity: 0;
  visibility: visible;
  transform: translateX(-2%) scale(0.99);
  z-index: 1;
}

.kiosk-copy {
  width: min(100%, 52rem);
  min-width: 0;
  text-align: center;
  justify-self: center;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.kiosk-copy h1,
.kiosk-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kiosk-copy h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  max-width: none;
}

.kiosk-copy h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  max-width: none;
}

.lede {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
}

.kiosk-screen {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 0.4rem;
  overflow: hidden;
  /* Transparent so letterboxing matches the slide / site background */
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform calc(var(--slide-ms) + 80ms) ease, opacity calc(var(--slide-ms) + 80ms) ease;
}

.kiosk-slide.is-active .kiosk-screen {
  transform: translateY(0);
  opacity: 1;
}

/* Fit the entire browser capture inside the frame — never crop edges */
.kiosk-screen > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  flex: 0 1 auto;
}

.kiosk-chrome {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 0.85rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.kiosk-progress {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.kiosk-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform-origin: left center;
}

.kiosk-progress span.is-running {
  animation: kioskFill var(--kiosk-duration, 6s) linear forwards;
}

.kiosk-dots {
  display: flex;
  gap: 0.4rem;
  pointer-events: auto;
}

.kiosk-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.kiosk-dots button[aria-current="true"] {
  background: #fff;
  width: 1.1rem;
}

@media (max-width: 860px) {
  .kiosk-slide {
    padding-bottom: 3rem;
  }

  .brand-lockup {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .lede {
    max-width: 36ch;
  }
}

@keyframes kioskFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 61, 0.62);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  background: #fff;
  color: var(--ink);
  border-radius: 0.35rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  animation: pop 220ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.modal-panel-wide {
  width: min(100%, 30rem);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy);
}

.modal-lede {
  margin: 0.35rem 0 1.25rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.modal-panel label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2b3340;
}

.modal-panel input,
.modal-panel textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9d2e0;
  border-radius: 0.3rem;
  background: #fbfcfe;
  width: 100%;
  resize: vertical;
}

.modal-panel input:focus,
.modal-panel textarea:focus {
  outline: 2px solid rgba(0, 46, 131, 0.35);
  border-color: var(--royal);
}

.modal-panel .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 0.85rem;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.form-error[hidden],
.form-ok[hidden] {
  display: none;
}

.form-ok {
  margin: 0 0 0.85rem;
  color: #0f5c45;
  font-size: 0.95rem;
  font-weight: 500;
}

body.modal-open {
  overflow: hidden;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kiosk-slide,
  .kiosk-screen,
  .kiosk-progress span {
    transition: none !important;
    animation: none !important;
  }
}
