:root {
  color-scheme: light;
  --ink: #1f1b1d;
  --muted: #6f666a;
  --paper: #faf7f2;
  --field: #fffdfa;
  --line: rgba(31, 27, 29, 0.08);
  --accent-blue: #7188d8;
  --accent-rose: #d4919e;
  --accent-strong: #232022;
  --glow: rgba(113, 136, 216, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "Avenir Next Rounded",
    "Avenir Next Rounded Pro",
    "Arial Rounded MT Bold",
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, var(--glow), transparent 28rem),
    linear-gradient(135deg, #fdfbf7 0%, var(--paper) 55%, #f5f1fb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
  grid-template-rows: 1fr auto;
}

.hero {
  display: flex;
  width: min(100%, 900px);
  margin: auto;
  align-items: flex-start;
  flex-direction: column;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  margin-bottom: clamp(34px, 6vw, 68px);
}

.brand-mark {
  position: relative;
  display: block;
  width: clamp(58px, 10vw, 88px);
  aspect-ratio: 1;
}

.loop {
  position: absolute;
  width: 50%;
  height: 50%;
  border: 4px solid;
}

.loop-left-top {
  top: 0;
  left: 0;
  border-color: var(--accent-blue);
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 999px;
}

.loop-left-bottom {
  bottom: 0;
  left: 0;
  border-color: var(--accent-blue);
  border-top: 0;
  border-right: 0;
  border-bottom-left-radius: 999px;
}

.loop-right-top {
  top: 0;
  right: 0;
  border-color: var(--accent-rose);
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 999px;
}

.loop-right-bottom {
  right: 0;
  bottom: 0;
  border-color: var(--accent-rose);
  border-top: 0;
  border-left: 0;
  border-bottom-right-radius: 999px;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  font-weight: 300;
  font-stretch: expanded;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand-word {
  font-weight: 400;
  letter-spacing: 0.06em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  font-weight: 500;
  line-height: 1.18;
}

.signup {
  width: min(100%, 560px);
  margin-top: clamp(36px, 6vw, 62px);
}

.signup label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.signup-row {
  display: flex;
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--field) 88%, white);
  box-shadow: 0 20px 70px rgba(24, 35, 31, 0.08);
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 22px;
  color: var(--ink);
  background: transparent;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  outline: 0;
}

input::placeholder {
  color: rgba(98, 115, 107, 0.78);
}

button {
  border: 0;
  padding: 0 26px;
  color: #fffaf2;
  background: var(--ink);
  cursor: pointer;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.8;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 115, 88, 0.28);
  outline-offset: -3px;
}

.form-note {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-top: 48px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  .site-shell {
    padding: 24px;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .signup-row {
    border-radius: 28px;
    flex-direction: column;
  }

  input {
    min-height: 58px;
  }

  button {
    min-height: 54px;
  }

  footer {
    flex-direction: column;
  }
}
