:root {
  --ink: #101512;
  --muted: #66716a;
  --paper: #f6f0e6;
  --panel: #fffaf1;
  --line: rgba(16, 21, 18, 0.14);
  --green: #0d5f45;
  --green-dark: #073a2b;
  --clay: #c66f4a;
  --gold: #efb94a;
  --shadow: 0 24px 80px rgba(31, 43, 35, 0.18);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 185, 74, 0.25), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(13, 95, 69, 0.18), transparent 24rem),
    linear-gradient(135deg, #fbf5e9 0%, #efe2cd 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(13, 95, 69, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav-cta {
  color: var(--green);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: 58px clamp(20px, 5vw, 72px) 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  margin-bottom: 28px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.hero-text,
.register-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 38px rgba(13, 95, 69, 0.24);
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span,
.setup-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(255, 250, 241, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 410px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 42px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(16, 21, 18, 0.78), rgba(8, 28, 21, 0.94)),
    var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.call-state {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.caller-number {
  margin-top: 46px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.call-note {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.call-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 58px;
}

.pill {
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.pill.decline {
  background: #914333;
}

.pill.answer {
  background: #1f8a62;
}

.pill.forward {
  background: #2f29a7;
}

.pill.ai {
  grid-column: 1 / -1;
  background: var(--gold);
  color: var(--green-dark);
}

.ai-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #77f0a6;
  box-shadow: 0 0 0 0 rgba(119, 240, 166, 0.65);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(119, 240, 166, 0);
  }
}

.section {
  padding: 80px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.steps-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.price-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 14px 50px rgba(31, 43, 35, 0.08);
}

.step-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 950;
}

.step-card p,
.price-card p {
  color: var(--muted);
  line-height: 1.55;
}

.price-card.featured {
  background: #113d2f;
  color: #fff;
  transform: translateY(-12px);
}

.price-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.price {
  color: var(--ink) !important;
  font-size: 44px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.featured .price {
  color: #fff !important;
}

.price span {
  font-size: 16px;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

.register-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 520px);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: 56px clamp(20px, 5vw, 72px) 80px;
}

.setup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.form-card h2 {
  font-size: 30px;
  letter-spacing: -0.045em;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 95, 69, 0.12);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.settings-meta {
  color: var(--muted);
  font-size: 14px;
}

.settings-gate {
  margin-top: 16px;
}

.routing-shell {
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 0.9fr);
}

.routing-panel {
  max-width: 860px;
}

.routing-groups {
  display: grid;
  gap: 20px;
}

.routing-group {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.74);
}

.routing-group-header,
.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 16px;
  align-items: start;
}

.routing-group-header h3,
.member-main strong {
  margin: 0 0 6px;
}

.strategy-field {
  min-width: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.checkbox-label input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.members-list {
  display: grid;
  gap: 12px;
}

.member-row {
  grid-template-columns: minmax(0, 1fr) 110px 120px auto;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.member-main {
  min-width: 0;
}

.member-main strong,
.member-main span {
  display: block;
  overflow-wrap: anywhere;
}

.member-main span {
  color: var(--muted);
  font-size: 13px;
}

.member-actions {
  display: flex;
  gap: 8px;
}

.member-actions .button {
  min-height: 42px;
  padding: 0 14px;
}

.checkbox-label.compact {
  min-height: 42px;
}

.empty-members {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.integrations-panel {
  display: grid;
  gap: 16px;
}

.integrations-list {
  display: grid;
  gap: 16px;
}

.integration-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.integration-tabs button.active {
  border-color: var(--green);
  color: var(--green-dark);
  background: rgba(62, 180, 120, 0.14);
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.integration-row.disabled {
  opacity: 0.72;
}

.integration-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.integration-main h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.integration-main p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.integration-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.integration-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}

.integration-credentials {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.82);
}

.integration-credentials h3 {
  margin-bottom: 6px;
}

.integration-credentials .form-note {
  margin-bottom: 4px;
}

.status-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--green-dark);
  background: rgba(255, 250, 241, 0.82);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.success {
  color: #0a4d36;
  background: rgba(62, 180, 120, 0.16);
}

.status-badge.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-message {
  display: none;
  border-radius: 16px;
  padding: 14px;
  font-weight: 800;
}

.form-message.success {
  display: block;
  color: #0a4d36;
  background: rgba(62, 180, 120, 0.16);
}

.form-message.error {
  display: block;
  color: #7d2b1d;
  background: rgba(198, 111, 74, 0.16);
}

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero,
  .register-shell,
  .routing-shell {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .site-footer {
    flex-direction: column;
  }

  .integration-row,
  .integration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-actions .button {
    width: 100%;
  }

  .routing-group-header,
  .field-grid,
  .member-row {
    grid-template-columns: 1fr;
  }

  .member-actions {
    flex-direction: column;
  }

  .member-actions .button {
    width: 100%;
  }
}
