:root {
  --ink: #111927;
  --muted: #65707c;
  --green: #315e4b;
  --green-dark: #244838;
  --green-soft: #eaf1ed;
  --line: #dde4e0;
  --paper: #fbfaf8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(42, 70, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% 15%, rgba(49, 94, 75, 0.08), transparent 26rem),
    linear-gradient(180deg, #fffdfa 0%, #fbfaf8 46%, #f8faf8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-radial-gradient(ellipse at 78% 24%, transparent 0 17px, rgba(49, 94, 75, 0.08) 18px 19px),
    repeating-radial-gradient(ellipse at 20% 82%, transparent 0 22px, rgba(49, 94, 75, 0.04) 23px 24px);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 clamp(28px, 5vw, 78px);
  border-bottom: 1px solid rgba(17, 25, 39, 0.1);
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--green);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.brand-mark circle {
  fill: var(--green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:not(.nav-button):hover {
  color: var(--green);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 9px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-button {
  min-height: 46px;
  padding: 0 22px;
}

.nav-button,
.button.primary {
  color: white;
  background: linear-gradient(145deg, #3b6f58, #244838);
  box-shadow: 0 14px 28px rgba(36, 72, 56, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button.secondary {
  color: #47515d;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cfd7d2;
}

.nav-button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(36, 72, 56, 0.18);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: clamp(58px, 7vw, 92px) clamp(24px, 7vw, 98px);
  border-bottom: 1px solid rgba(17, 25, 39, 0.1);
}

.hero-copy {
  max-width: 1320px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--green-soft);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

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

h1 {
  max-width: 1320px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.headline-line,
.price-line {
  display: block;
}

.price-line {
  color: var(--green);
}

.hero-text {
  max-width: 650px;
  color: #59636f;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.button.secondary span {
  margin-left: 16px;
  font-size: 28px;
  line-height: 0;
}

.works-with {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.works-with ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-with li {
  position: relative;
}

.features,
.steps {
  padding: 76px clamp(24px, 7vw, 98px);
  text-align: center;
}

.section-kicker {
  margin-bottom: 18px;
}

.features h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.04em;
}

.divider {
  width: 48px;
  height: 3px;
  margin: 0 auto 50px;
  border-radius: 999px;
  background: var(--green);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1140px;
  margin: 0 auto;
  text-align: left;
}

.feature-card {
  padding: 6px 48px 0;
  border-left: 1px solid var(--line);
}

.feature-card:first-child {
  border-left: 0;
  padding-left: 4px;
}

.icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--green);
  border-radius: 11px;
  background: linear-gradient(145deg, #edf4f0, #f8faf8);
  font-size: 26px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: #59636f;
  line-height: 1.65;
}

.steps {
  padding-top: 42px;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 78px);
  max-width: 1100px;
  margin: 28px auto 0;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: center;
  gap: 22px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: #2f251d;
  border: 1px solid #e1e5e2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  font-size: 38px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step h3 span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
}

.step p {
  color: #59636f;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 25, 39, 0.48);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.waitlist-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(760px, calc(100svh - 48px));
  overflow-y: auto;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid #dbe2de;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 28px 90px rgba(17, 25, 39, 0.24);
}

.waitlist-dialog .eyebrow {
  margin-bottom: 20px;
}

.waitlist-dialog h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.waitlist-dialog p {
  color: #59636f;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe2de;
  border-radius: 999px;
  color: #47515d;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--green);
  border-color: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 42px;
  color: #6a737d;
}

@media (max-width: 980px) {
  .main-nav a:not(.nav-button) {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .step-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .feature-card {
    padding-bottom: 34px;
  }

  .step-row .step:last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 76px;
  }

  .nav-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

  .hero-actions,
  .button,
  .nav-button {
    width: 100%;
  }

  .button,
  .nav-button {
    min-height: 52px;
  }

  .feature-grid,
  .step-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:first-child {
    padding: 0 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .step,
  .step-row .step:last-child {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .waitlist-dialog {
    padding: 28px 22px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(240px, 360px) auto;
  gap: 12px;
  align-items: start;
}

.waitlist-form input,
.auth-card input {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid #cfd7d2;
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  outline: none;
}

.waitlist-form input:focus,
.auth-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 94, 75, 0.12);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.form-status[data-error=true] {
  color: #9f2d2d;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.docs-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 54px);
}

.docs-hero {
  margin-bottom: 24px;
}

.docs-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 58px);
}

.docs-hero p {
  max-width: 640px;
  color: #59636f;
  line-height: 1.6;
}

.docs-card {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #dbe2de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 42px rgba(49, 94, 75, 0.06);
}

.docs-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.docs-card h2:not(:first-child) {
  margin-top: 26px;
}

.docs-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe2de;
  border-radius: 12px;
  background: #101820;
  color: #ecf5ef;
  font-size: 14px;
  line-height: 1.55;
}

.docs-card code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.docs-card li {
  margin: 8px 0;
  color: #59636f;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 64px);
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #dbe2de;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 10px;
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: #59636f;
  line-height: 1.68;
}

.legal-card a {
  color: var(--green);
  font-weight: 800;
}

.legal-updated {
  font-weight: 800;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 64px);
}

.app-intro {
  max-width: 820px;
  margin-bottom: 36px;
}

.app-intro h1 {
  font-size: clamp(44px, 6vw, 72px);
}

.auth-grid,
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auth-card {
  padding: 28px;
  border: 1px solid #dbe2de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(49, 94, 75, 0.07);
}

.auth-card h2 {
  margin-bottom: 22px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #47515d;
  font-weight: 800;
}

.auth-card .button {
  margin-top: 6px;
}

.wide-card {
  grid-column: 1 / -1;
}

.dashboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.muted {
  color: #59636f;
  line-height: 1.55;
}

.key-panel,
.setup-card {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.setup-card {
  margin-top: 24px;
}

.setup-card code,
.secret-output {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #dbe2de;
  border-radius: 12px;
  background: #f5f8f6;
  color: var(--green-dark);
  font: 700 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.secret-output {
  white-space: pre-wrap;
  word-break: break-all;
}

.compact-actions {
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-row p {
  margin: 4px 0 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  .waitlist-form,
  .auth-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .admin-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-status a {
  display: inline-block;
  margin-top: 6px;
  color: var(--green-dark);
  text-decoration: underline;
}

.confirm-shell {
  min-height: calc(100svh - 84px);
  display: grid;
  place-items: center;
}

.confirm-card {
  max-width: 820px;
}

.confirm-card h1 {
  font-size: clamp(42px, 5.4vw, 72px);
}

#confirm-message[data-error=true] {
  color: #9f2d2d;
}

.admin-subheading {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-text {
  color: #9f2d2d;
}

.single-auth-grid {
  grid-template-columns: minmax(0, 520px);
}

.nav-button-plain {
  border: 0;
  cursor: pointer;
  font: inherit;
}

#api-key-panel[data-disabled=true] {
  opacity: 0.76;
}

.auth-link-row {
  margin: 14px 0 0;
  font-weight: 700;
}

.auth-link-row a {
  color: var(--green-dark);
  text-decoration: underline;
}

.turnstile-field:empty {
  display: none;
}

.turnstile-field {
  margin: 0 0 16px;
}

.waitlist-form .turnstile-field {
  grid-column: 1 / -1;
  margin: 0;
}

.compact-header {
  margin-bottom: 16px;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.session-row p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .session-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-filter-row input,
.admin-filter-row select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd7d2;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.audit-row code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  color: var(--green-dark);
  font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-load-more {
  justify-self: start;
}

@media (max-width: 760px) {
  .admin-filter-row {
    grid-template-columns: 1fr;
  }
}
