:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --sand: #f8f5f0;
  --sand-dark: #ebe4d8;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --text: #111827;
  --muted: #64748b;
  --white: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sand);
  color: var(--text);
}

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

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); font-weight: 600; }
.nav-cta { background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 78px auto 42px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; color: var(--emerald-dark); font-weight: 800; font-size: 12px; }
h1 { font-size: clamp(46px, 8vw, 82px); line-height: 0.94; letter-spacing: -0.07em; margin: 18px 0; color: var(--navy); }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -0.05em; margin: 12px 0 16px; color: var(--navy); }
h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.hero-subtitle, .section-heading p, .muted, .waitlist-copy p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 18px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; padding: 15px 22px; border-radius: 999px; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; }
.button.primary { background: var(--emerald); color: var(--navy); }
.button.primary:hover { background: #34d399; }
.button.secondary { background: var(--white); color: var(--navy); border: 1px solid var(--border); }
.full { width: 100%; }
.trust-line { color: var(--muted); font-size: 14px; font-weight: 600; }

.phone-card {
  background: var(--navy);
  color: white;
  border-radius: 38px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.phone-top { display: flex; align-items: center; gap: 12px; padding: 6px 6px 18px; }
.phone-top span { display: block; font-size: 13px; color: #94a3b8; margin-top: 2px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); color: var(--navy); display: grid; place-items: center; font-weight: 900; }
.chat { display: flex; flex-direction: column; gap: 14px; background: #172033; border-radius: 28px; padding: 18px; }
.bubble { max-width: 85%; padding: 13px 15px; border-radius: 18px; line-height: 1.45; font-size: 15px; }
.bubble.assistant { background: #263348; color: #f8fafc; align-self: flex-start; }
.bubble.user { background: var(--emerald); color: var(--navy); align-self: flex-end; font-weight: 600; }

.logo-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  color: var(--muted);
  font-weight: 800;
}

.section { width: min(1120px, calc(100% - 32px)); margin: 82px auto; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.steps, .feature-grid, .audience-grid, .demo-grid { display: grid; gap: 18px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step-card, .feature-grid article, .demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.06);
}
.step-card span { color: var(--emerald-dark); font-weight: 900; margin-bottom: 28px; display: inline-block; }
.step-card p, .feature-grid p, .demo-card p { color: var(--muted); line-height: 1.62; }

.split-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 42px; align-items: start; }
.feature-grid { grid-template-columns: repeat(2, 1fr); }

.demo-section { background: var(--navy); padding: 56px; border-radius: 38px; color: white; }
.demo-section h2 { color: white; }
.demo-grid { grid-template-columns: 0.85fr 1.15fr; }
.demo-card { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.demo-card p { color: #dbeafe; }
.demo-card.highlighted { background: white; }
.demo-card.highlighted p { color: var(--muted); }
.demo-label { color: var(--emerald) !important; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mini-actions span { background: var(--sand); color: var(--navy); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px; }

.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-grid div { background: var(--sand-dark); border-radius: 18px; padding: 18px; font-weight: 800; color: var(--navy); }

.waitlist-section {
  width: min(1120px, calc(100% - 32px));
  margin: 82px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 44px;
  box-shadow: var(--shadow);
}
label { font-size: 13px; font-weight: 800; color: var(--navy); display: grid; gap: 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fbfaf8;
  outline: none;
}
textarea { min-height: 106px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,0.12); }

/* ---- Brevo embedded form, restyled to match Nomi ---- */
.sib-form-message-panel { display: none; }
.brevo-form { background: transparent; padding: 0; text-align: left; }
.brevo-form .sib-form-container { max-width: none; }
.brevo-form #sib-container {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: none;
  text-align: left;
}
.brevo-form #sib-form { display: grid; gap: 14px; padding: 0; }
.brevo-form .sib-form-block { padding: 0; }
.brevo-form .form__entry, .brevo-form .entry_block { margin: 0; }
.brevo-form .form__label-row { display: grid; gap: 8px; }
.brevo-form .entry__label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  padding: 0;
}
.sib-form .entry__field { border: 0; }
.brevo-form .input {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fbfaf8;
  color: var(--text);
  box-shadow: none;
}
.brevo-form .input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  outline: none;
}
/* WhatsApp number: Brevo's JS rebuilds this as a segmented widget — restyle it
   into one cohesive Nomi field (flag picker + calling code + number). */
.brevo-form .sib-sms-input-wrapper { display: flex; align-items: center; gap: 8px; }
.brevo-form .sib-sms-select {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 68px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfaf8;
  overflow: hidden;
}
.brevo-form .sib-sms-select:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.brevo-form .sib-sms-select__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin: 0;
  height: auto;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  white-space: nowrap;
}
.brevo-form .sib-sms-select__title::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}
.brevo-form .sib-sms-select__label-text { display: none; }
.brevo-form .sib-sms-select__number-input {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.brevo-form .sib-sms-select__calling-code,
.brevo-form .sib-sms-select__phone-number {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  box-shadow: none;
}
.brevo-form .sib-sms-select__calling-code { width: 52px; padding: 0 4px 0 14px; }
.brevo-form .sib-sms-select__phone-number { flex: 1; width: 100%; padding: 14px 15px 14px 6px; }
.brevo-form .sib-sms-select__calling-code:focus,
.brevo-form .sib-sms-select__phone-number:focus { outline: none; box-shadow: none; }
.brevo-form .sib-sms-tooltip { display: none; }
.brevo-form .entry__error {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #dc2626;
  margin: 0;
  padding: 0;
}
.brevo-form .entry__error:empty { display: none; }
/* Submit button inherits .button.primary.full; just neutralise Brevo defaults */
.brevo-form .sib-form-block__button {
  font-family: inherit;
  font-size: 16px;
  text-align: center;
  gap: 8px;
}
.brevo-form .sib-form-block__button .sib-hide-loader-icon { width: 18px; height: 18px; }
/* Success / error notification panels */
.brevo-form .sib-form-message-panel {
  font-family: inherit;
  border: 1px solid;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  max-width: none;
}
.brevo-form #success-message {
  color: var(--emerald-dark);
  background: #e7faf0;
  border-color: rgba(16, 185, 129, 0.4);
}
.brevo-form #error-message {
  color: #b91c1c;
  background: #ffeded;
  border-color: rgba(220, 38, 38, 0.35);
}
.brevo-form .sib-notification__icon { width: 20px; height: 20px; }

.footer { width: min(1120px, calc(100% - 32px)); margin: 34px auto; padding: 22px 0 46px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); align-items: center; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero, .split-section, .demo-grid, .waitlist-section { grid-template-columns: 1fr; }
  .steps, .feature-grid, .audience-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 54px; }
  .phone-card { transform: none; }
  .demo-section, .waitlist-section { padding: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
