/* Muse Foundry landing page.
   Brand colors sampled from the logo artwork:
     blue   #5D91CC
     orange #DF693B                                            */

:root {
  --blue:    #5D91CC;
  --blue-dk: #466D99;
  --orange:  #DF693B;
  --ink:     #111111;
  --paper:   #FFFFFF;
  --rule:    #E4E0DA;
  --muted:   #5A554E;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */

.topbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}

.topbar a { display: inline-block; line-height: 0; }
.topbar a:hover { opacity: 0.7; }

.wordmark { width: 132px; }

/* ---------- hero ---------- */

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* The PNG has a real alpha channel, so it sits straight on the page background
   with no panel behind it. No blend modes: they mute the orange. */
.hero-art {
  display: flex;
  justify-content: center;
}

/* Kept short on phones so the headline and the two buttons are not pushed
   below the fold. Grows on wider screens. */
.hero-art img {
  max-height: 250px;
  width: auto;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 500;
  color: var(--blue-dk);
  margin: 0 0 20px;
}

.body {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- branch choice ---------- */

.choice-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-choice {
  flex: 1 1 220px;
  font: inherit;
  font-weight: 600;
  padding: 18px 22px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.btn-choice:hover,
.btn-choice:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- form ---------- */

.signup { max-width: 480px; }

.back {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0 0 18px;
  cursor: pointer;
}

.back:hover { color: var(--ink); }

.form-intro { margin: 0 0 22px; font-weight: 500; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  margin-bottom: 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.btn-submit {
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 17px 22px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: filter 0.14s ease;
}

.btn-submit:hover:not(:disabled) { filter: brightness(0.92); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.consent {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
}

.error {
  margin: 14px 0 0;
  padding: 11px 13px;
  font-size: 0.9rem;
  color: #8A2B12;
  background: #FBE9E2;
  border-radius: 3px;
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- success ---------- */

.done {
  max-width: 480px;
  border-left: 4px solid var(--blue);
  padding-left: 22px;
}

.done h2 { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.done p  { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 28px 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer p { margin: 0; }

.footer-contact {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact:hover { color: var(--ink); }

/* ---------- desktop ---------- */

@media (min-width: 620px) {
  .hero-art img { max-height: 360px; }
}

@media (min-width: 900px) {
  /* auto sizes the art column to the image itself, so `gap` is the actual
     distance from the copy. With a fr unit the column was far wider than the
     artwork and the centered image drifted away from the text. */
  .hero {
    grid-template-columns: minmax(0, 520px) auto;
    gap: 56px;
    padding: 64px 24px 88px;
    justify-content: center;
  }
  .hero-art { justify-content: flex-start; }
  .hero-art img { max-height: 540px; }
}
