/* ---------------- Shared ---------------- */
:root {
  --accent: #D74D27;
  --accent-light: #99A992;
  --dark: #21293A;
  --mid-dark: #434A49;
  --light: #D4CFAD;
  --gray: #99A992;
  --radius: 0.75rem;
  font-size: 16px;
}
body {
  background: #fafbff;
  color: var(--dark);
}
/* ...rest unchanged... */

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  margin: 0.4em 0 0.3em;
}

span {
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn-primary {
  display: inline-block;
  padding: 0.9em 1.7em;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-light);
}

.full {
  width: 100%;
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding: 4.5rem 1rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero .subtitle {
  max-width: 560px;
  margin: 0.5rem auto 2rem;
  color: var(--gray);
  font-size: 1.125rem;
}

/* ---------------- Features ---------------- */
.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem 2.4rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card .icon {
  font-size: 2rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0.6rem 0 1.2rem;
}

.link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------------- Contact Grid ---------------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 1rem;
}

.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-form h2 {
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.lead-form input {
  padding: 0.8em 1em;
  border: 1px solid #dfe3fa;
  border-radius: var(--radius);
  font-size: 1rem;
}

.lead-form input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.success-msg {
  font-size: 0.95rem;
  color: #09a36e;
  margin-top: 0.6rem;
}

.hidden {
  display: none !important;
}

/* ----- Modal for manual entry ----- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
}

.manual-queue {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Display URL inside manual modal */
.manual-url {
  font-size: 0.9rem;
  color: var(--gray);
  word-break: break-all;
  margin-bottom: 0.4rem;
}

#manualTitle {
  margin-bottom: 0.5rem;
}

/* ----- Tabs for manual modal ----- */
.tab-bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.tab-bar button {
  padding: 0.4em 0.8em;
  border: 1px solid #dfe3fa;
  background: #f0f2ff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}

.tab-bar button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------------- Chat (placeholder) ---------------- */
.chat-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  min-height: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bot-msg {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.bot-icon {
  font-size: 1.8rem;
}

.chat-widget input {
  border: 1px solid #dfe3fa;
  border-radius: var(--radius);
  padding: 0.8em 1em;
  font-size: 1rem;
}

/* ----- Preview styles ----- */
#previewSection ul {
  list-style: disc inside;
  padding-left: 0;
}
#previewSection li {
  margin-bottom: 0.3rem;
  cursor: move;
}
#articlesWrap .article {
  border-bottom: 1px solid #dfe3fa;
  padding: 0.5rem 0;
}

