* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  margin: 0;
  padding: 16px;
  color: #1d1d1f;
}

main {
  max-width: 540px;
  margin: 32px auto;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

h1 { margin-top: 0; }

.lede { color: #6e6e73; }

button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #0066cc;
  color: white;
  cursor: pointer;
  margin: 8px 4px;
}
button:hover { background: #0052a3; }
button:disabled { background: #d2d2d7; cursor: not-allowed; }
button.secondary { background: #e8e8ed; color: #1d1d1f; }

input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 28px;
  text-align: center;
  letter-spacing: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  margin: 8px 0 16px 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

video {
  width: 100%;
  background: black;
  border-radius: 8px;
  margin: 16px 0;
  aspect-ratio: 16 / 9;
}

.code {
  font-size: 56px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 16px;
  padding: 24px;
  background: #f5f5f7;
  border-radius: 8px;
  margin: 16px 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: #0066cc;
}

.hint { color: #6e6e73; font-size: 14px; }

.privacy {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 24px;
  padding: 12px;
  background: #f5f5f7;
  border-radius: 8px;
  line-height: 1.5;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin: 8px 4px;
  font-weight: 500;
  background: #0066cc;
  color: white;
}
.btn-secondary { background: #e8e8ed; color: #1d1d1f; }
.btn-primary:hover { background: #0052a3; }
.btn-secondary:hover { background: #d2d2d7; }

.links { margin-top: 24px; }

#status {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  word-break: break-word;
}

/* ============================================================
   Marketing pages (body.marketing) — landing, pricing, contact.
   Rep + customer pages keep the simple stylesheet above.
   ============================================================ */

body.marketing {
  padding: 0;
  background: #fff;
  line-height: 1.55;
}

body.marketing .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

body.marketing h1, body.marketing h2, body.marketing h3 {
  letter-spacing: -0.01em;
}

body.marketing h1 { font-size: 56px; line-height: 1.05; margin: 16px 0 24px; }
body.marketing h2 { font-size: 36px; margin: 0 0 16px; }
body.marketing h3 { font-size: 20px; margin: 0 0 8px; }

body.marketing .section {
  padding: 80px 0;
  border-top: 1px solid #e8e8ed;
}

body.marketing .section-lede {
  color: #6e6e73;
  font-size: 19px;
  max-width: 720px;
  margin: 0 0 32px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e8e8ed;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header .brand {
  font-weight: 700;
  font-size: 22px;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-header .brand span { color: #0066cc; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: #0066cc; }
.site-nav a.cta-link {
  background: #0066cc;
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
}
.site-nav a.cta-link:hover { background: #0052a3; color: white; }

/* hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  text-align: center;
}
.hero .lede {
  font-size: 21px;
  color: #424247;
  max-width: 680px;
  margin: 0 auto 36px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  background: #e6efff;
  color: #0052a3;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps li {
  background: #f5f5f7;
  padding: 32px;
  border-radius: 16px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0066cc;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 16px;
}
.steps p { color: #424247; margin: 0; }

/* pricing */
.pricing { background: #fafafa; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.pricing-card {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: #0066cc;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0066cc;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pricing-card .price {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 16px;
  color: #1d1d1f;
}
.pricing-card .price-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: -0.02em;
}
.pricing-card .price-unit {
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  margin-left: 6px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f3;
  color: #424247;
  font-size: 15px;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li code {
  font-size: 13px;
  background: #f5f5f7;
  padding: 2px 6px;
  border-radius: 4px;
}
.pricing-cta { text-align: center; margin-top: 40px; }

/* whitelabel two-column */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: #424247;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  background: #0066cc;
  border-radius: 50%;
  opacity: 0.15;
}
.feature-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: #0066cc;
  border-radius: 50%;
}
.feature-list li strong { color: #1d1d1f; }
.feature-list code {
  font-size: 14px;
  background: #f5f5f7;
  padding: 2px 6px;
  border-radius: 4px;
}
.feature-list.inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-top: 16px;
}
.features-aside {
  background: #f5f5f7;
  padding: 32px;
  border-radius: 16px;
}
.features-aside h3 { margin-bottom: 16px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding: 10px 0 10px 26px;
  color: #424247;
  position: relative;
  font-size: 15px;
  border-bottom: 1px solid #e8e8ed;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: #0066cc;
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 700;
}

/* contact */
.contact { background: #f5f8ff; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.contact-grid > div {
  background: white;
  padding: 24px;
  border-radius: 12px;
}
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.contact-grid a {
  color: #0066cc;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}
.contact-grid a:hover { text-decoration: underline; }

/* footer */
.site-footer {
  border-top: 1px solid #e8e8ed;
  padding: 32px 0;
  background: #fafafa;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  margin: 0;
  font-size: 13px;
  color: #6e6e73;
}
.footer-links a {
  color: #6e6e73;
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover { color: #0066cc; }

/* mobile */
@media (max-width: 800px) {
  body.marketing h1 { font-size: 38px; }
  body.marketing h2 { font-size: 28px; }
  body.marketing .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .steps, .pricing-cards, .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .feature-list.inline { grid-template-columns: 1fr; }
}
