:root {
  --ink: #17211c;
  --muted: #5d6b62;
  --line: #d9e0db;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --moss: #2f6f53;
  --moss-dark: #204f3c;
  --clay: #b96345;
  --sky: #d7e8ed;
  --gold: #e7b85d;
  --shadow: 0 20px 60px rgba(28, 39, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  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;
}

input,
select,
textarea,
button {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 64px) 72px;
  background:
    linear-gradient(115deg, rgba(247, 244, 237, 0.96) 0%, rgba(247, 244, 237, 0.84) 48%, rgba(215, 232, 237, 0.74) 100%),
    radial-gradient(circle at 78% 18%, rgba(231, 184, 93, 0.38), transparent 28%),
    linear-gradient(145deg, #f6efe1, #d7e8ed);
}

.topbar,
.hero-grid,
.section,
.legal-shell,
.admin-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding-top: clamp(52px, 9vw, 120px);
}

.eyebrow {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
}

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

.lede {
  max-width: 680px;
  color: #39463f;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--moss);
  color: white;
  box-shadow: 0 12px 24px rgba(47, 111, 83, 0.22);
}

.button-primary:hover {
  background: var(--moss-dark);
}

.button-wide {
  width: 100%;
}

.microcopy {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.panel-header span,
.insight span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px;
}

.check-row > span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--moss);
  border-radius: 6px;
  margin-top: 2px;
}

.check-row.complete > span {
  background: linear-gradient(135deg, var(--moss) 50%, var(--gold) 50%);
}

.check-row p,
.insight p,
.feature-grid p,
.form-copy p,
.legal-shell p {
  color: var(--muted);
  margin-bottom: 0;
}

.insight {
  margin-top: 18px;
  border-left: 4px solid var(--clay);
  background: #fff7ed;
  border-radius: 8px;
  padding: 16px;
}

.section {
  padding: 76px clamp(18px, 4vw, 32px);
}

.section-heading {
  max-width: 680px;
}

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

.feature-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.waitlist-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(28, 39, 33, 0.08);
  padding: clamp(18px, 4vw, 32px);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label,
.checkbox-field {
  color: #2d3832;
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(47, 111, 83, 0.14);
  outline: none;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 8px 0 18px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.trap {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.form-errors {
  border: 1px solid #d49a86;
  border-radius: 8px;
  background: #fff2ed;
  color: #73351f;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.flash-wrap {
  left: 50%;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  z-index: 10;
}

.flash {
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 750;
  margin: 0;
  padding: 14px 16px;
}

.flash-notice {
  background: #eef8f1;
  border: 1px solid #b7d9c1;
  color: #1f5c38;
}

.flash-alert {
  background: #fff2ed;
  border: 1px solid #e4b09e;
  color: #7b351c;
}

.legal-shell,
.admin-shell {
  padding: 40px clamp(18px, 4vw, 32px) 72px;
}

.legal-shell {
  max-width: 760px;
}

.legal-shell .brand {
  display: inline-block;
  margin-bottom: 54px;
}

.legal-shell h1,
.admin-shell h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

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

.admin-table th {
  background: #eef3ef;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.empty-state {
  color: var(--muted);
  padding: 22px;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-grid,
  .form-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 38px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
