:root {
  --ink: #0d1534;
  --surface: #172252;
  --line: #2e3b6e;
  --field: #5d6a96;
  --paper: #ffffff;
  --text: #e4e7f1;
  --mist: #9ba4c2;
  --teal: #259993;
  --teal-bright: #34b5ae;
  --teal-hover: #4fc8c1;
  --mullion: #0c1736;
  --glass-deep: #142a4a;
  --glass: #3f7f8c;
  --glass-sky: #9cc6c9;
  --concrete: #8b8478;
  --shade: 13, 21, 52;
  --error: #ff8a80;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-bright); }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--paper);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(36px, 5vw, 48px); }
h2 { font-size: clamp(30px, 4vw, 40px); }

.rule {
  display: block;
  width: 50px;
  margin: 24px auto;
  border-bottom: 2px solid var(--teal);
}

.muted {
  color: var(--mist);
  margin: 0 0 32px;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-header.solid {
  position: sticky;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 26px;
}

.site-header nav {
  display: flex;
  gap: 12px;
  margin-right: -12px;
}

.site-header nav a {
  padding: 10px 12px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  opacity: .85;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

/* Hero: a glass curtain wall drawn in CSS, after the photo on the old site */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.facade {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 30% at 50% 50%, rgba(var(--shade), .5), transparent),
    linear-gradient(105deg, rgba(var(--shade), .65), transparent 40%, transparent 70%, rgba(var(--shade), .55)),
    repeating-linear-gradient(90deg, transparent 0 118px, var(--mullion) 118px 123px),
    linear-gradient(170deg, var(--glass-deep) 0%, var(--glass) 38%, var(--glass-sky) 55%, var(--glass) 72%, var(--glass-deep) 100%);
  transform: rotate(4deg) scale(1.05);
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both;
}

.facade::before,
.facade::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 140%;
  transform: rotate(-30deg);
}

.facade::before {
  top: 30%;
  height: 4px;
  background: var(--mullion);
}

.facade::after {
  top: 74%;
  height: 120px;
  background: linear-gradient(180deg, #a59d90, var(--concrete) 40%, #4a463f);
  box-shadow: 0 60px 0 40px rgba(var(--shade), .85);
}

@keyframes settle {
  from { transform: rotate(4deg) scale(1.15); opacity: 0; }
}

.hero-copy {
  padding: 0 24px;
  max-width: 1000px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.lede {
  margin: 24px auto 0;
  max-width: 32em;
  font-size: 20px;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

/* Sections */

.section {
  padding: 96px 24px;
  text-align: center;
}

#customers {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.section-inner {
  max-width: 560px;
  margin: 0 auto;
}

main.flow {
  padding: 72px 24px 96px;
}

main.flow > section {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

main.flow > #step-nda {
  max-width: 820px;
}

/* Forms */

form { text-align: left; }

label {
  display: block;
  font-size: 15px;
  color: var(--mist);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  font: inherit;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--field);
  border-radius: 4px;
}

textarea { resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: inset 0 0 0 1px var(--teal-bright);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 40px;
  font: 600 18px/1 var(--sans);
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--teal-bright);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

form button {
  display: flex;
  margin: 8px auto 0;
}

button:hover, .button:hover { background: var(--teal-hover); }

.button.secondary {
  color: var(--paper);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--teal-bright);
}

.button.secondary:hover {
  background: rgba(52, 181, 174, .15);
}

button:disabled {
  opacity: .6;
  cursor: default;
}

button.busy:disabled {
  opacity: 1;
  cursor: progress;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: var(--error);
  margin: 16px 0 0;
  min-height: 1.6em;
}

.error-action {
  display: flex;
  width: fit-content;
  margin: 16px auto 0;
}

.switch {
  margin: 24px 0 0;
  color: var(--mist);
  font-size: 16px;
}

.alternative {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.alternative p {
  margin: 0 0 16px;
  color: var(--mist);
}

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

/* Investor choices */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.choice {
  display: block;
  min-height: 0;
  padding: 28px 24px;
  font: inherit;
  letter-spacing: normal;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}

.choice[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
}

.choice:not([aria-disabled="true"]):hover {
  background: var(--surface);
  border-color: var(--teal-bright);
}

.choice strong {
  display: block;
  margin-bottom: 6px;
  font: 400 26px/1.2 var(--serif);
  color: var(--paper);
}

.choice span {
  color: var(--mist);
  font-size: 16px;
}

/* NDA: a sheet of paper on the black page */

#step-nda .muted strong { color: var(--paper); }

.nda {
  max-height: 60vh;
  overflow-y: auto;
  padding: 48px 56px;
  margin-bottom: 40px;
  text-align: left;
  color: #1b1b1b;
  background: var(--paper);
  border-radius: 2px;
  font: 16px/1.7 var(--serif);
}

.nda h2 {
  text-align: center;
  font-size: 22px;
  color: #1b1b1b;
  margin: 0 0 28px;
}

.nda p { margin: 0 0 14px; }

.nda hr {
  border: none;
  border-top: 1px solid #d4d4d4;
  margin: 28px 0;
}

.signatories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.signatories .label {
  font-weight: 700;
  margin-bottom: 4px;
}

.sign {
  max-width: 560px;
  margin: 0 auto;
}

.signature {
  font: 28px/1.2 "Brush Script MT", "Segoe Script", cursive;
}

.fine-print {
  color: var(--mist);
  font-size: 15px;
  margin: -4px 0 20px;
}

#step-done .spinner { vertical-align: -.15em; }

/* Video popup */

.video-dialog {
  width: min(1040px, calc(100vw - 32px));
  padding: 20px;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.video-dialog::backdrop {
  background: rgba(8, 13, 33, .88);
}

.video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.video-dialog-head h2 { font-size: 26px; }

.close {
  min-height: 0;
  padding: 4px 12px;
  font: 32px/1 var(--sans);
  color: var(--mist);
  background: none;
}

.close:hover { color: var(--paper); background: none; }

.video {
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.video iframe, .video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 20px 0 0;
  color: var(--text);
}

.video .muted {
  margin: 0;
  padding: 24px;
}

/* Footer */

.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .facade { animation: none; }
  .spinner { animation-duration: 2s; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .bar { padding: 0 16px; height: 64px; }
  .brand img { height: 22px; }
  .site-header nav { gap: 2px; margin-right: -8px; }
  .site-header nav a { padding: 10px 8px; font-size: 17px; }
  .section { padding: 72px 16px; }
  main.flow { padding: 48px 16px 72px; }
  .choices { grid-template-columns: 1fr; }
  .nda { padding: 28px 20px; }
  .signatories { grid-template-columns: 1fr; }
}
