/* MyBrightBill waitlist page. Brand palette from the logo kit and spec section 3. */
/* Self-hosted brand fonts (SIL Open Font License): no third-party requests from visitors. */
@font-face {
  font-family: 'Outfit';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Outfit_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Outfit_500Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Outfit_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Outfit_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Outfit_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Mono';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/DMMono_500Medium.ttf') format('truetype');
}

:root {
  --ink: #11073d;
  --ink-soft: #4b4870;
  --purple: #6b37f1;
  --purple-deep: #4c1d95;
  --bright: #9378f9;
  --lavender: #f6f5fb;
  --rule: #e5e7eb;
  --white: #ffffff;
  --error: #b91c1c;
  --success: #15803d;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}

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

a {
  color: var(--purple);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout: one column of content, left-aligned, the same width in every band. */
.site-header,
.hero,
.features,
.site-footer {
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Logo kit (light backgrounds): "My" and "Bill" #6B37F1, "Bright" #9378F9. */
.wm-my,
.wm-bill {
  color: var(--purple);
}

.wm-bright {
  color: var(--bright);
}

/* Hero */
.hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Waitlist form */
.waitlist {
  margin-top: 2rem;
  max-width: 28rem;
}

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

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.field input {
  flex: 1 1 14rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d6d3e6;
  border-radius: 0.75rem;
}

.field input::placeholder {
  color: #6f6c8f;
}

.field input:focus-visible {
  border-color: var(--purple);
  outline-offset: 2px;
}

.field input[aria-invalid='true'] {
  border-color: var(--error);
}

.field button {
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--purple);
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
}

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

.field button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.status {
  margin: 0.5rem 0 0;
  outline: none;
  font-weight: 500;
  min-height: 1.5em;
}

.status[data-tone='error'] {
  color: var(--error);
}

.status[data-tone='success'] {
  color: var(--success);
}

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

/* Simple text pages (privacy, terms) */
.hero.page h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.hero.page .lead {
  max-width: 40rem;
}

/* Features: a full-width band; the content keeps the page column. */
.features-band {
  background: var(--lavender);
}

.features {
  display: grid;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.feature svg {
  display: block;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  max-width: 22rem;
  color: var(--ink-soft);
}

/* Footer: links first on phones, the copyright on the left on wide screens. */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--purple);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  .field button {
    flex-basis: 100%;
  }

  .note {
    text-align: center;
  }
}

@media (min-width: 52rem) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .site-footer {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
}
