:root {
  --ink: #17211b;
  --muted: #5d6b63;
  --line: #dbe3dd;
  --paper: #ffffff;
  --soft: #f4f7f4;
  --green: #16794a;
  --green-dark: #105c39;
  --green-pale: #e8f5ed;
  --blue-pale: #edf4f8;
  --blue-ink: #315a6d;
  --warning: #8a5a18;
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 227, 221, .92);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
}

.header-inner,
.wide,
.content {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.content { width: min(100% - 40px, 760px); }

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.brand-accent { color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.hero {
  padding: 72px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.lede {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

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

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover { background: var(--soft); }

.proof-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-pale);
  color: var(--blue-ink);
  list-style: none;
}

.proof-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  line-height: 1.5;
}

.proof-list strong { color: var(--ink); }

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section.paper { background: var(--paper); }

.section-intro {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.preview-shell {
  overflow: hidden;
  border: 1px solid #cfd9d1;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 33, 27, .08);
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
  color: var(--muted);
  font-size: 13px;
}

.widget-preview {
  display: block;
  width: 100%;
  height: 610px;
  border: 0;
}

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

.install-panel {
  min-width: 0;
  border-top: 3px solid var(--green);
  padding-top: 18px;
}

.install-panel p,
.step p,
.faq p {
  color: var(--muted);
  line-height: 1.6;
}

.code-wrap {
  position: relative;
  margin-top: 14px;
}

.install-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.option-status {
  margin: 10px 0 0;
  color: var(--green-dark) !important;
  font-size: 13px;
  font-weight: 700;
}

.code-block {
  width: 100%;
  min-height: 154px;
  resize: vertical;
  border: 1px solid #cad4cc;
  border-radius: var(--radius);
  padding: 16px;
  background: #17211b;
  color: #dfece3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.embed-code-block { min-height: 260px; }

.copy-button {
  margin-top: 10px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.copy-button:hover { border-color: var(--green); }
.copy-button[data-copied="true"] { background: var(--green-pale); color: var(--green-dark); }

.note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--warning);
  background: #fff8ea;
  color: #6b4b1d;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.faq-list { border-top: 1px solid var(--line); }

.faq {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq p:last-child { margin-bottom: 0; }

.site-footer {
  padding: 28px 0;
  background: #17211b;
  color: #cbd6ce;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a { color: #fff; }

/* Embeddable calculator */
.embed-page { background: #fff; }

.embed-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 22px;
  background: #fff;
}

.embed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.embed-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.free-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: #3e4b43;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5ce;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 121, 74, .14);
}

.embed-error {
  margin: 12px 0 0;
  color: #a2382f;
  font-size: 13px;
}

.embed-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: #17211b;
  color: #fff;
}

.result-label {
  margin-bottom: 4px;
  color: #aebdb3;
  font-size: 11px;
}

.result-value {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.embed-cost {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.embed-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.embed-foot a {
  color: var(--green-dark);
  font-weight: 750;
}

@media (max-width: 760px) {
  .site-nav a:not(:last-child) { display: none; }
  .hero { padding: 52px 0 44px; }
  h1 { font-size: 42px; }
  .hero-grid,
  .install-grid,
  .steps { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .widget-preview { height: 840px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .header-inner,
  .wide,
  .content { width: min(100% - 28px, 1040px); }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .section { padding: 48px 0; }
  .embed-shell { padding: 18px 14px; }
  .embed-grid { grid-template-columns: 1fr; }
  .install-options { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .embed-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed-cost { grid-column: 1 / -1; }
  .embed-foot { flex-direction: column; }
}
