:root {
  color-scheme: light;
  --cream: #fff5e8;
  --indigo: #2e2f6e;
  --indigo-deep: #1f2057;
  --coral: #ff7566;
  --orange: #fea357;
  --periwinkle: #7f8ef3;
  --text-soft: rgba(46, 47, 110, 0.75);
  --border-subtle: rgba(46, 47, 110, 0.08);
  --shadow-subtle: 0 2px 12px rgba(46, 47, 110, 0.04);
  --font-heading: "Poppins", sans-serif;
  --font-body:
    "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--indigo);
  font-family: var(--font-body);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.65;
}

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

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

.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;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--cream);
}

.hero__brand:focus-visible,
.toast button:focus-visible {
  outline: 3px solid rgba(127, 142, 243, 0.42);
  outline-offset: 3px;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 4rem 1rem 3rem;
}

.hero__content {
  width: min(100%, 45rem);
  margin: 0 auto;
  text-align: center;
  animation: hero-in 520ms ease-out both;
}

.hero__brand {
  display: inline-flex;
  height: 2rem;
  width: auto;
  margin: 0 auto 2rem;
}

.hero__brand img {
  width: auto;
  height: 100%;
}

.hero__pill {
  display: inline-flex;
  margin: 0 0 1.5rem;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  background: rgba(46, 47, 110, 0.08);
  color: var(--indigo);
  font-size: 0.875rem;
}

.hero__title {
  margin: 0 0 2.5rem;
  color: var(--indigo);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__gradient {
  background: linear-gradient(
    135deg,
    var(--coral) 0%,
    var(--orange) 40%,
    var(--periwinkle) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.signup-form {
  width: min(100%, 28.75rem);
  margin: 0 auto 4rem;
}

.signup-form__fields {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.38rem 0.38rem 1.25rem;
  border: 0.5px solid var(--border-subtle);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
}

.signup-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--indigo);
  font-size: 0.9375rem;
}

.signup-form input::placeholder {
  color: rgba(46, 47, 110, 0.4);
}

.signup-form button:focus {
  outline: 0;
}

.signup-form button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.signup-form button:hover:not(:disabled) {
  background: var(--indigo-deep);
  transform: translateY(-1px);
}

.signup-form__message {
  margin: -3rem 0 4rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.hero__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: min(100%, 56.25rem);
  margin: 0 auto;
}

.hero__pillar {
  text-align: center;
}

.hero__pillar h2 {
  margin: 0 0 0.5rem;
  color: var(--indigo);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero__pillar p {
  margin: 0;
  color: rgba(46, 47, 110, 0.7);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.toast-region {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(100%, 28rem);
  padding: 1rem;
}

.toast-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(46, 47, 110, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 30px rgba(46, 47, 110, 0.14);
  color: var(--indigo);
  pointer-events: auto;
}

.toast strong,
.toast p {
  margin: 0;
}

.toast p {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.toast button {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(46, 47, 110, 0.08);
  color: var(--indigo);
  line-height: 1;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .hero__brand {
    height: 2.5rem;
  }

  .hero {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-top: 6rem;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 639px) {
  .signup-form__fields {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .signup-form input,
  .signup-form button {
    width: 100%;
    border-radius: 1rem;
  }

  .signup-form input {
    padding: 0.85rem 1.25rem;
    border: 0.5px solid var(--border-subtle);
    background: #fff;
  }

  .signup-form button {
    min-height: 3.125rem;
    padding: 0.85rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
