/* Speedcheck — Dynamiq open hero; content stays in the clear center (no shard collisions) */

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/source-sans-pro-300.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-pro-600.woff2") format("woff2");
}

:root {
  --ink: #242831;
  --ink-soft: rgba(36, 40, 49, 0.72);
  --hover: rgba(16, 89, 169, 0.08);
  --active: rgba(16, 89, 169, 0.16);
  --ok: #1f6b3a;
  --danger: #8a2f2f;
  --font: "Source Sans Pro", sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #ffffff;
  background-image: url("/images/hero-background-1x.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media screen and (max-width: 736px) {
  #bg {
    background-image: url("/images/mobile-hero-1x.webp");
  }
}

/*
 * Match main-site header zone: content lives in the upper/mid clear field,
 * not jammed into the shard tips at vertical center or bottom.
 */
#wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    max(4.5rem, env(safe-area-inset-top, 0px))
    2rem
    max(5rem, env(safe-area-inset-bottom, 0px));
}

#main {
  width: min(28rem, 100%);
  text-align: center;
  /* small nudge down from top shards — Lex 2026-11-20 */
  margin-top: clamp(1.25rem, 7.5vh, 5rem);
  animation: rise 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.brand-link {
  display: inline-block;
  border-bottom: none;
  margin: 0 0 3.25rem;
}

.brand-logo {
  display: block;
  width: min(72vw, 30rem);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 978 / 198;
}

h1 {
  margin: 0 0 3.25rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.18rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 1.75rem;
  margin: 0 auto;
  width: min(20rem, 100%);
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input[type="url"],
input[type="email"],
input[type="text"] {
  appearance: none;
  width: 100%;
  height: 2.85rem;
  padding: 0 1.1rem;
  border: solid 1px var(--ink);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: 0;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="url"]:focus,
input[type="email"]:focus,
input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px var(--ink);
}

input::placeholder {
  color: rgba(36, 40, 49, 0.45);
}

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

.button {
  appearance: none;
  display: inline-block;
  width: 100%;
  height: 2.85rem;
  margin-top: 0.2rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  line-height: 2.85rem;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

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

.button:active {
  background: var(--active);
}

.button:disabled {
  opacity: 0.35;
  cursor: wait;
  pointer-events: none;
}

.status {
  min-height: 1.4em;
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}

.status.is-ok { color: var(--ok); }
.status.is-err { color: var(--danger); }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: dotted 1px rgba(36, 40, 49, 0.45);
  transition: border-bottom-color 0.2s ease-in-out;
}

a:hover {
  border-bottom-color: transparent;
}

.brand-link {
  border-bottom: none;
}

@keyframes rise {
  from { transform: translateY(0.35rem); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #main { animation: none; }
}

@media screen and (max-width: 736px) {
  #wrapper {
    padding:
      max(3rem, env(safe-area-inset-top, 0px))
      1.25rem
      max(4.5rem, env(safe-area-inset-bottom, 0px));
  }

  .brand-logo {
    width: min(64vw, 18rem);
  }

  .brand-link {
    margin-bottom: 2.5rem;
  }

  h1 {
    margin-bottom: 2.5rem;
  }

  .form {
    width: min(17.5rem, 100%);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  #wrapper {
    padding:
      max(2.25rem, env(safe-area-inset-top, 0px))
      1rem
      max(4rem, env(safe-area-inset-bottom, 0px));
  }

  .brand-logo {
    width: min(56vw, 14.5rem);
    margin-top: clamp(0.5rem, 2.5vh, 1.5rem);
  }

  h1 {
    letter-spacing: 0.1rem;
  }
}
