:root {
  --bg: #F5F2ED;
  --bg-alt: #EAE6DE;
  --fg: #1C1B18;
  --fg-muted: #6B6860;
  --accent: #C9621A;
  --accent-dark: #A3511A;
  --green: #2D6A4F;
  --green-light: #3D8A67;
  --surface: #FFFFFF;
  --border: #D6D1C8;
  --shadow: rgba(28,27,24,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  font-size: 12px;
  color: var(--accent);
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* HERO */
.hero {
  padding: 80px 48px 64px;
  max-width: 860px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  left: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201,98,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45,106,79,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  max-width: 680px;
}

.stat {
  padding: 24px 32px;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* PROBLEM */
.problem {
  padding: 80px 48px;
  background: var(--fg);
  color: var(--bg);
}

.problem-inner {
  max-width: 780px;
  margin: 0 auto;
}

.problem-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--bg);
  margin-bottom: 16px;
}

.problem-attr {
  font-size: 13px;
  color: rgba(245,242,237,0.5);
  margin-bottom: 48px;
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.tag {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid rgba(245,242,237,0.2);
  border-radius: 100px;
  color: rgba(245,242,237,0.7);
}

.problem-vs {
  display: flex;
  align-items: center;
  gap: 24px;
}

.vs-box {
  flex: 1;
  padding: 28px;
  border-radius: 4px;
}

.vs-before {
  background: rgba(245,242,237,0.06);
  border: 1px solid rgba(245,242,237,0.12);
}

.vs-after {
  background: rgba(45,106,79,0.2);
  border: 1px solid rgba(61,138,103,0.4);
}

.vs-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.5);
  margin-bottom: 16px;
}

.vs-box ul {
  list-style: none;
  font-size: 14px;
  line-height: 2;
  color: rgba(245,242,237,0.8);
}

.vs-arrow {
  font-size: 28px;
  color: rgba(245,242,237,0.3);
  flex-shrink: 0;
}

/* FEATURES */
.features {
  padding: 80px 48px;
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* PROCESS */
.process {
  padding: 80px 48px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 56px;
}

.step {
  flex: 1;
  padding: 0 40px 0 0;
}

.step:first-child {
  padding-left: 0;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  align-self: 40px;
  flex-shrink: 0;
  margin-right: 40px;
}

.process-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  max-width: 600px;
}

.process-aside p {
  font-size: 16px;
  line-height: 1.7;
}

.process-aside strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--accent);
}

.aside-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* PRICING */
.pricing {
  padding: 80px 48px;
  background: var(--fg);
  color: var(--bg);
}

.pricing .section-eyebrow {
  color: var(--accent);
}

.pricing .section-title {
  color: var(--bg);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: rgba(245,242,237,0.6);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-card {
  background: rgba(245,242,237,0.05);
  border: 1px solid rgba(245,242,237,0.12);
  border-radius: 4px;
  padding: 36px;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: rgba(201,98,26,0.08);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-tier {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.5);
  margin-bottom: 16px;
}

.pricing-price {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--bg);
  margin-bottom: 8px;
  line-height: 1;
}

.per-mo {
  font-size: 24px;
  color: rgba(245,242,237,0.5);
}

.pricing-desc {
  font-size: 14px;
  color: rgba(245,242,237,0.6);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  font-size: 14px;
  line-height: 2.2;
  color: rgba(245,242,237,0.8);
}

.pricing-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,242,237,0.12);
}

.pricing-cta .btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary-light {
  background: var(--accent);
  color: white;
}

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

.btn-outline-light {
  background: transparent;
  color: rgba(245,242,237,0.8);
  border: 1px solid rgba(245,242,237,0.2);
}

.btn-outline-light:hover {
  background: rgba(245,242,237,0.08);
  color: var(--bg);
  border-color: rgba(245,242,237,0.4);
}

/* Setup note */
.setup-note {
  margin-bottom: 48px;
}

.setup-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(45,106,79,0.15);
  border: 1px solid rgba(61,138,103,0.35);
  border-radius: 4px;
  padding: 20px 24px;
  max-width: 640px;
}

.setup-note-icon {
  font-size: 18px;
  color: var(--green-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.setup-note-inner div {
  font-size: 14px;
  color: rgba(245,242,237,0.75);
  line-height: 1.6;
}

.setup-note-inner strong {
  color: var(--green-light);
  font-weight: 600;
}

/* ROI */
.pricing-roi {
  border-top: 1px solid rgba(245,242,237,0.1);
  padding-top: 40px;
}

.roi-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(245,242,237,0.7);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.roi-item {
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(245,242,237,0.08);
  border-radius: 4px;
}

.roi-stat {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--green-light);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.roi-label {
  font-size: 13px;
  color: rgba(245,242,237,0.5);
  line-height: 1.5;
}

.roi-conclusion {
  font-size: 15px;
  color: rgba(245,242,237,0.65);
  max-width: 580px;
  line-height: 1.7;
}

.pricing-math {
  border-top: 1px solid rgba(245,242,237,0.1);
  padding-top: 40px;
}

.math-row {
  display: flex;
  gap: 32px;
}

.math-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.math-number {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 800;
  color: rgba(245,242,237,0.2);
  letter-spacing: -0.03em;
}

.math-label {
  font-size: 13px;
  color: rgba(245,242,237,0.5);
}

.math-result {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: -0.02em;
}

/* CLOSING */
.closing {
  padding: 96px 48px;
  background: var(--bg);
  text-align: center;
}

.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 40px;
}

.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.closing-vision {
  max-width: 520px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.closing-vision p:last-child {
  margin-top: 16px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--fg);
  font-weight: 600;
}

/* FOOTER */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* DASHBOARD — extends landing page design tokens */
.dashboard {
  min-height: 100vh;
  background: var(--bg);
}

.dash-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.dash-nav {
  display: flex;
  gap: 32px;
}

.dash-nav a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.dash-nav a:hover, .dash-nav a.active {
  color: var(--accent);
}

.dash-main {
  padding: 48px;
  max-width: 1100px;
}

.dash-section {
  margin-bottom: 48px;
}

.dash-section-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
}

/* Stat cards row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.stat-card .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-num.accent { color: var(--accent); }
.stat-card .stat-num.green { color: var(--green-light); }

.stat-card .stat-desc {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-alt);
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-new    { background: rgba(201,98,26,0.12); color: var(--accent); }
.badge-replied{ background: rgba(45,106,79,0.12); color: var(--green-light); }
.badge-no-reply{ background: var(--bg-alt); color: var(--fg-muted); }
.badge-contacted{ background: rgba(45,106,79,0.12); color: var(--green-light); }
.badge-converted{ background: rgba(45,106,79,0.25); color: var(--green); }

/* Forms / config */
.config-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  max-width: 640px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--bg-alt);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success { background: rgba(45,106,79,0.12); color: var(--green); border: 1px solid rgba(45,106,79,0.2); }
.alert-error   { background: rgba(201,98,26,0.12); color: var(--accent); border: 1px solid rgba(201,98,26,0.2); }

/* Setup card — shows when Twilio not configured */
.setup-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 32px;
  max-width: 600px;
}

.setup-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.setup-card p {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.setup-steps {
  list-style: none;
  counter-reset: step;
}

.setup-steps li {
  counter-increment: step;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.setup-steps li:last-child { border-bottom: none; }

.setup-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WAITLIST FORM */
.waitlist-wrap {
  margin-top: 56px;
  max-width: 720px;
}

.waitlist-cta-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.waitlist-form {
  width: 100%;
}

.waitlist-fields {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.waitlist-field {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.waitlist-field input,
.waitlist-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s;
}

.waitlist-field input::placeholder {
  color: var(--fg-muted);
}

.waitlist-field input:focus,
.waitlist-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.waitlist-btn:hover {
  background: var(--accent-dark);
}

.waitlist-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.waitlist-btn-loading {
  display: none;
}

.waitlist-btn[hidden] + .waitlist-btn-loading {
  display: inline;
}

.waitlist-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  max-width: 680px;
}

.waitlist-feedback--success {
  background: rgba(45,106,79,0.12);
  color: var(--green);
  border: 1px solid rgba(45,106,79,0.2);
}

.waitlist-feedback--error {
  background: rgba(201,98,26,0.12);
  color: var(--accent);
  border: 1px solid rgba(201,98,26,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 48px 24px 40px; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; }
  .waitlist-wrap { margin-top: 40px; }
  .waitlist-fields { flex-direction: column; }
  .waitlist-field { min-width: 0; }
  .waitlist-btn { width: 100%; }
  .problem { padding: 56px 24px; }
  .problem-vs { flex-direction: column; }
  .vs-arrow { transform: rotate(90deg); }
  .features { padding: 56px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .process { padding: 56px 24px; }
  .step-row { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .step { padding: 0; }
  .pricing { padding: 56px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .closing { padding: 64px 24px; }
}
