:root {
  color-scheme: light;
  --ink: #1a1a2e;
  --muted: #667085;
  --primary: #2d6a4f;
  --accent: #52b788;
  --paper: #ffffff;
  --wash: #f8faf9;
  --line: #dfe7e2;
  --warning: #d97706;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 13px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero,
.workspace,
.pricing,
.login {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--primary);
}

.hero-panel,
.output,
.plans article,
.login-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(45, 106, 79, 0.1);
}

.hero-panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.panel-header strong {
  color: var(--warning);
}

dl,
dd {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 650;
}

.band {
  background: #eaf5ef;
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.steps article {
  padding: 10px 0;
}

.steps span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.workspace,
.pricing,
.login {
  padding: 72px 0;
}

.workspace-copy {
  max-width: 620px;
  margin-bottom: 28px;
}

.tool {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

#grant-form,
.login-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

#grant-form {
  padding: 0;
}

label,
legend {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 280px;
  padding: 14px;
  resize: vertical;
}

input {
  height: 44px;
  padding: 0 12px;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

fieldset label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

fieldset input {
  width: auto;
  height: auto;
}

.output {
  min-height: 430px;
  padding: 18px;
}

#copy-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #24352d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.pricing {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.plans article {
  padding: 20px;
}

.plans .featured {
  border-color: var(--primary);
}

.price {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.login {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.login-form {
  padding: 20px;
}

@media (max-width: 820px) {
  .topbar,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .tool,
  .pricing,
  .login,
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
  }
}
