:root {
  color-scheme: light dark;
  --brand: #84cc16;
  --brand-dark: #65a30d;
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --bg-card: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --hero-from: #ecfccb;
  --hero-to: #ffffff;
  --shadow: rgba(24, 24, 27, 0.08);
  --input-bg: #ffffff;
  --error: #dc2626;
}

html.dark {
  --bg: #09090b;
  --bg-muted: #18181b;
  --bg-card: #09090b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #3f3f46;
  --hero-from: #1a2e05;
  --hero-to: #09090b;
  --shadow: rgba(0, 0, 0, 0.35);
  --input-bg: #18181b;
  --error: #f87171;
}

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

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--brand-dark);
}

html.dark a {
  color: var(--brand);
}

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

.container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
}

.header-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.header-link:hover {
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.hero {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 4rem 0 3rem;
}

.badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.dark .badge {
  border-color: rgb(146 64 14 / 0.6);
  background: rgb(69 26 3 / 0.4);
  color: #fde68a;
}

.hero__inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__lead {
  margin-top: 1.75rem;
}

.hero p + p {
  margin-top: 1rem;
}

.features {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-muted) 80%, transparent);
  padding: 4rem 0;
}

.features__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card__list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-card__list li + li {
  margin-top: 0.5rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1rem;
  background: var(--bg-card);
  box-shadow: 0 1px 2px var(--shadow);
}

.feature-card h2,
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.faq__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.faq__intro {
  margin: -1rem 0 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 0.75rem;
  background: var(--bg-card);
  box-shadow: 0 1px 2px var(--shadow);
}

.faq__item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--text-muted);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.waitlist {
  padding: 4rem 0 5rem;
}

.waitlist__inner {
  width: min(100%, 36rem);
  margin-inline: auto;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
  box-shadow: 0 10px 30px var(--shadow);
}

@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

.card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.card > p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.form-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
}

html.dark .form-alert {
  border-color: rgb(127 29 29 / 0.5);
  background: rgb(69 10 10 / 0.3);
  color: #fecaca;
}

.form-alert[hidden],
.field-error[hidden],
.success-card[hidden] {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.label-muted {
  font-weight: 400;
  color: var(--text-muted);
}

input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent);
  outline-offset: 1px;
}

input.invalid {
  border-color: var(--error);
}

.field-error {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--error);
}

.hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--brand-dark);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

html.dark .btn {
  background: var(--brand);
  color: #14532d;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-card {
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-card));
  text-align: center;
}

.success-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 25%, transparent);
  font-size: 1.25rem;
}

.support {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 2.5rem 0 1.5rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-icon {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.theme-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  box-shadow: 0 10px 25px var(--shadow);
  backdrop-filter: blur(8px);
}

.theme-fab__group {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.125rem;
  border-radius: 0.5rem;
  background: var(--bg-muted);
}

.theme-fab button {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.theme-fab button.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow);
}
