/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #0d1b1e;
  background: #eaf2f6;
}

/* Layout */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.webp');
  background-image: image-set(
    url('assets/hero.webp') type('image/webp'),
    url('assets/hero.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
  z-index: 0;
}

/* A soft scrim for readability */
.scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 30% 30%, rgba(255,255,255,0.75), rgba(255,255,255,0.45) 35%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}

/* Content */
.content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  padding: 1.5vh 6vw 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
  padding-left: 0;
}

.logo {
  width: clamp(96px, 13vw, 160px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.inline-logo {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

.headline {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.subhead {
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.5;
  max-width: 72ch;
  margin: 0 0 1.5rem 0;
  color: #243b42;
  background: rgba(255,255,255,0.55);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  margin-left: 0;
  text-align: left;
}

.subhead * {
  text-align: left !important;
}

.cta {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.form-intro {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.subhead .form-embed {
  margin: 0 0 0 -80px !important;
  padding: 0 !important;
  text-align: left !important;
}

.form-embed .formkit-form {
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: 60% !important;
}

/* Override ConvertKit form fonts to match main body (Quicksand) */
.formkit-form,
.formkit-form *,
.formkit-input,
.formkit-submit,
.formkit-submit span,
input[type="email"],
input[type="text"],
button[data-element="submit"] {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

.formkit-input,
input[type="email"],
input[type="text"] {
  font-weight: 400 !important;
  font-size: 16px !important;
}

input[type="text"] {
  width: 220px !important;
  min-width: 220px !important;
}

input[type="email"] {
  width: 300px !important;
  min-width: 300px !important;
}

.formkit-submit,
.formkit-submit span,
button[data-element="submit"],
button[data-element="submit"] span {
  font-weight: 600 !important;
  font-size: 16px !important;
}

/* Make form fields display horizontally */
.formkit-fields {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.formkit-field:first-child {
  flex: 0 0 220px !important;
  min-width: 220px !important;
}

.formkit-field:last-of-type {
  flex: 0 0 300px !important;
  min-width: 300px !important;
}

.formkit-submit {
  flex-shrink: 0 !important;
}

.footnote {
  font-size: 12px;
  color: #29464d;
}

/* Footer */
.footer {
  position: relative;
  z-index: 3;
  padding: 1rem 6vw 2rem;
  color: #26434a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Small screens */
@media (max-width: 640px) {
  .subhead { background: rgba(255,255,255,0.7); }
}
