/* Stage A landing — self-contained styling (no build step). Mirrors the look
   of the Next.js/Tailwind landing: amber accent, cards, responsive. */
:root {
  --fg: #0a0a0a;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --amber-fg: #92400e;
  --card-bg: #ffffff;
  --page-bg: #ffffff;
  --panel-bg: #f9fafb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f5;
    --muted: #d1d5db;
    --muted-2: #9ca3af;
    --line: #1f2937;
    --line-soft: #111827;
    --amber-bg: #451a03;
    --amber-fg: #fcd34d;
    --card-bg: #030712;
    --page-bg: #000000;
    --panel-bg: rgba(17, 24, 39, 0.4);
  }
}

* {
  box-sizing: border-box;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--fg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main {
  display: flex;
  flex: 1;
  flex-direction: column;
}
h1,
h2,
h3 {
  margin: 0;
}
p {
  margin: 0;
}

/* Hero */
.hero {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 1.5rem 3rem;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 6rem;
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  border-radius: 9999px;
  background: var(--amber-bg);
  color: var(--amber-fg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
}
.accent {
  color: var(--amber);
}
.lede {
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Card / form */
.card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card-label {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .row {
    flex-direction: row;
  }
}
input,
select {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: transparent;
  color: inherit;
  outline: none;
}
input {
  flex: 1;
}
input:focus,
select:focus {
  border-color: var(--fg);
}
@media (prefers-color-scheme: dark) {
  input,
  select {
    border-color: #374151;
    background: #111827;
  }
}
button {
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--page-bg);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
button:hover {
  opacity: 0.9;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.error {
  color: #dc2626;
  font-size: 0.875rem;
}
.fineprint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* Success */
.success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .success {
    border-color: #14532d;
    background: #052e16;
  }
}
.success-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #166534;
}
.success-body {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #15803d;
}
@media (prefers-color-scheme: dark) {
  .success-title {
    color: #86efac;
  }
  .success-body {
    color: #4ade80;
  }
}

/* How it works */
.how {
  border-top: 1px solid var(--line-soft);
  background: var(--panel-bg);
}
.how-inner {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.how h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  background: var(--fg);
  color: var(--page-bg);
  font-size: 0.875rem;
  font-weight: 700;
}
.steps h3 {
  font-weight: 600;
}
.steps p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pricing */
.pricing {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.price {
  font-size: 1.125rem;
  font-weight: 500;
}
.price-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-2);
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}
footer a {
  color: inherit;
}
