:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #18201c;
  --muted: #657168;
  --line: #d9ded8;
  --accent: #145c4f;
  --accent-2: #b8642c;
  --danger: #9d2d28;
  --soft: #edf2ee;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f2f4f1;
  padding: 1px 5px;
  font-size: 0.92em;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #173f37;
  color: #f5f4ed;
  font-size: 13px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-weight: 650;
}

.site-shell {
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero,
.page-section,
.flash {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero {
  padding: 36px;
}

.page-section {
  margin-top: 20px;
  padding: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  font-size: 58px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

p {
  color: #3d4942;
}

.lede {
  max-width: 760px;
  color: #3a4740;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions form,
.license-form form {
  margin: 0;
}

.button,
input[type="submit"] {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 15px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary,
input[type="submit"].primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-grid > div {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.steps {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 24px;
}

.privacy-section {
  border-color: #b9c8bd;
  background: #f8fbf7;
}

.flash {
  margin-bottom: 18px;
  padding: 12px 14px;
}

.flash.notice {
  border-color: #9cc5ae;
  background: #eff8f2;
}

.flash.alert {
  border-color: #e1aaa7;
  background: #fff0ee;
}

.license-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.license-form label {
  display: grid;
  gap: 6px;
}

.license-form span {
  color: #36433b;
  font-size: 13px;
  font-weight: 700;
}

.stripe-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

input[type="email"],
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.table-wrap {
  overflow: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f3ef;
  color: #334038;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .site-shell {
    width: min(100vw - 28px, 720px);
    padding-top: 22px;
  }

  .hero,
  .page-section {
    padding: 20px;
  }

  h1 {
    font-size: 40px;
  }

  .feature-grid,
  .license-form,
  .stripe-fields {
    grid-template-columns: 1fr;
  }
}
