@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  --surface: #f7f9f6;
  --porcelain: #ffffff;
  --ink: #0b2a28;
  --muted: #4f625f;
  --teal: #0f5e6e;
  --teal-press: #0c5260;
  --leaf: #4fbf6e;
  --lime: #e2f27a;
  --leaf-soft: #eaf7e2;
  --line: #dde2e6;
  --placeholder: #8a9694;
  --shadow: 0 10px 30px rgba(11, 42, 40, 0.06), 0 1px 2px rgba(11, 42, 40, 0.04);
  --garden: linear-gradient(135deg, #e2f27a 0%, #4fbf6e 38%, #1a7a68 72%, #0f5e6e 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #e6eeef;
  background-image:
    radial-gradient(ellipse 78% 46% at 50% 24%, rgba(234, 247, 226, 0.98) 0%, rgba(234, 247, 226, 0.45) 42%, rgba(247, 249, 246, 0) 72%),
    radial-gradient(ellipse 110% 34% at 50% 100%, rgba(15, 94, 110, 0.07) 0%, rgba(15, 94, 110, 0) 58%),
    linear-gradient(180deg, #f7f9f6 0%, #f4f8f1 36%, #f0f4f2 70%, #e8efef 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.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 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px 22px;
}

main {
  width: 100%;
}

.nav {
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 14px 22px;
  background: var(--porcelain);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.wordmark {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  background-image: var(--garden);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 22px;
}

.eyebrow {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 10px;
  text-align: left;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.support {
  margin: 0 0 16px;
  max-width: 520px;
  text-align: left;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.signup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.form input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--porcelain);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.form button {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.form button:hover {
  background: var(--teal-press);
}

.form button:disabled {
  cursor: progress;
  opacity: 0.86;
}

.form input:focus-visible,
.form button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.form input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px var(--teal), var(--shadow);
}

.helper,
.error,
.success {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.error {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}

.success {
  margin-top: 0;
  padding: 18px 22px;
  background: var(--porcelain);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

.card {
  margin: 0;
  padding: 18px 20px 20px;
  background: var(--porcelain);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

@media (min-width: 840px) {
  html {
    background-image:
      radial-gradient(ellipse 72% 42% at 50% 28%, rgba(234, 247, 226, 0.98) 0%, rgba(234, 247, 226, 0.4) 46%, rgba(247, 249, 246, 0) 74%),
      radial-gradient(ellipse 80% 28% at 50% 100%, rgba(15, 94, 110, 0.07) 0%, rgba(15, 94, 110, 0) 62%),
      linear-gradient(180deg, #f7f9f6 0%, #f5f8f2 28%, #f1f5f3 62%, #e7eeee 100%);
  }

  .page {
    min-height: 1560px;
    align-items: center;
    padding: 36px clamp(28px, 6vw, 80px) 44px;
  }

  .brand {
    width: auto;
    min-height: 0;
    padding: 12px 22px;
  }

  .wordmark {
    font-size: 22px;
  }

  .hero {
    align-items: center;
    width: 100%;
    margin-top: 92px;
    text-align: center;
  }

  .eyebrow {
    margin: 0 0 56px;
    font-size: 14px;
  }

  h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(52px, 5.85vw, 84px);
    line-height: 1.01;
    letter-spacing: -0.03em;
  }

  .support {
    margin: 0 0 32px;
    text-align: center;
    font-size: 18px;
    line-height: 1.45;
  }

  .signup {
    width: min(520px, 100%);
    align-items: center;
  }

  .form {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 6px 6px 22px;
    background: var(--porcelain);
    border-radius: 999px;
    box-shadow: var(--shadow);
  }

  .form input {
    width: auto;
    flex: 1;
    height: 44px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .form button {
    width: auto;
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
  }

  .form input[aria-invalid="true"] {
    box-shadow: none;
  }

  .form:has(input[aria-invalid="true"]) {
    box-shadow: 0 0 0 2px var(--teal), var(--shadow);
  }

  .helper,
  .error {
    margin-top: 16px;
    font-size: 13px;
  }

  .success {
    width: 100%;
    border-radius: 999px;
    padding: 16px 24px;
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(1120px, 100%);
    margin-top: 292px;
  }

  .card {
    min-height: 148px;
    padding: 30px 28px 32px;
  }

  .card h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 16px;
  }

  .footer {
    margin-top: auto;
    padding-top: 48px;
    font-size: 14px;
  }
}
