/* SoYummy Platform Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #1a1a1a;
  --text-md: #555;
  --text-light: #888;
  --bg: #fff;
  --bg-alt: #f8f8f6;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --border: #e5e5e5;
  --radius: 8px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn--large { padding: 0.85rem 2rem; font-size: 1rem; }

/* --- Landing --- */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.landing__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  max-width: 600px;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.landing__sub {
  color: var(--text-md);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* --- Auth --- */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth__card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.auth__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.auth__message { color: var(--green); margin-bottom: 1rem; }
.auth__error { color: var(--red); margin-bottom: 1rem; }
.auth__form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth__input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.auth__input:focus { outline: none; border-color: var(--accent); }

/* --- Chatbot --- */
.chatbot-page { background: var(--bg-alt); }

.chat {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.chat__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.chat__step { font-size: 0.8rem; color: var(--text-light); }

.chat__messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat__msg {
  max-width: 85%;
  padding: 1rem;
  border-radius: var(--radius);
  line-height: 1.6;
}
.chat__msg p { margin-bottom: 0.5rem; }
.chat__msg p:last-child { margin-bottom: 0; }
.chat__msg--bot {
  background: var(--bg-alt);
  align-self: flex-start;
  border: 1px solid var(--border);
}
.chat__msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}
.chat__msg--building {
  background: var(--bg-alt);
  text-align: center;
  align-self: center;
  color: var(--text-md);
  font-style: italic;
}

.chat__input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.chat__input-row {
  display: flex;
  gap: 0.5rem;
}
.chat__input-row--multi {
  flex-direction: column;
}
.chat__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.chat__input:focus { outline: none; border-color: var(--accent); }
.chat__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.chat__textarea:focus { outline: none; border-color: var(--accent); }
.chat__send {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.chat__send:hover { background: var(--accent-hover); }
.chat__skip {
  padding: 0.75rem 1.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-md);
  font-size: 0.9rem;
}
.chat__upload-label {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  color: var(--text-md);
  font-size: 0.9rem;
}
.chat__file-input { display: none; }

/* --- Dashboard --- */
.dashboard-page { background: var(--bg-alt); }

.dash {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.dash__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash__title { font-size: 1.5rem; font-weight: 700; }
.dash__status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash__status--live { background: #dcfce7; color: var(--green); }
.dash__status--building { background: #fef3c7; color: var(--orange); }
.dash__status--trial { background: #dbeafe; color: var(--accent); }

.dash__alert {
  padding: 1rem 1.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  color: var(--red);
  font-size: 0.9rem;
}

.dash__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash__stat {
  background: var(--bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.dash__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.dash__stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash__section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.dash__empty { color: var(--text-light); }

.dash__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dash__table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dash__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.dash__table tr:last-child td { border-bottom: none; }
.dash__lead--new td:first-child { border-left: 3px solid var(--accent); }
.dash__lead--booked td:first-child { border-left: 3px solid var(--green); }
.dash__lead--lost td:first-child { border-left: 3px solid var(--text-light); }
.dash__lead-contact { display: block; font-size: 0.8rem; color: var(--text-light); }

.dash__status-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
}

@media (max-width: 700px) {
  .dash__stats { grid-template-columns: repeat(2, 1fr); }
  .dash__table { font-size: 0.8rem; }
}

/* --- Landing / Marketing Page --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav__brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__link { font-size: 0.9rem; color: var(--text-md); text-decoration: none; }
.nav__link:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 10rem 0 5rem; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero__inner { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.hero__badge {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 100px;
  background: #eef2ff; color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.1rem; color: var(--text-md); max-width: 540px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.hero__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn--outline {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.btn--outline:hover { border-color: var(--text); background: var(--bg-alt); text-decoration: none; }

.proof {
  padding: 2.5rem 0; border-bottom: 1px solid var(--border);
}
.proof__inner {
  max-width: 700px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.proof__item { text-align: center; }
.proof__num { display: block; font-size: 1.5rem; font-weight: 800; }
.proof__label { font-size: 0.8rem; color: var(--text-light); }

.section {
  padding: 5rem 0;
}
.section--alt { background: var(--bg-alt); }
.section__inner { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.section__label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; text-align: center;
}
.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  text-align: center; margin-bottom: 2.5rem; letter-spacing: -0.01em; line-height: 1.25;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--text-md); line-height: 1.6; }
@media (max-width: 650px) { .steps { grid-template-columns: 1fr; } }

.showcase__browser {
  max-width: 900px; margin: 0 auto 1.5rem; border-radius: 10px;
  overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.1); border: 1px solid var(--border);
}
.showcase__toolbar {
  background: #f3f4f6; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 6px;
}
.showcase__dot { width: 10px; height: 10px; border-radius: 50%; }
.showcase__dot:nth-child(1) { background: #ef4444; }
.showcase__dot:nth-child(2) { background: #f59e0b; }
.showcase__dot:nth-child(3) { background: #22c55e; }
.showcase__url {
  margin-left: 1rem; font-size: 0.8rem; color: var(--text-light);
  background: #fff; padding: 0.25rem 0.75rem; border-radius: 4px;
  border: 1px solid var(--border);
}
.showcase__frame { width: 100%; height: 500px; border: none; background: #fff; }
.showcase__caption { text-align: center; font-size: 0.85rem; color: var(--text-light); }
.showcase__caption a { color: var(--accent); font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature {
  padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--accent); }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { font-size: 0.9rem; color: var(--text-md); line-height: 1.6; }
@media (max-width: 650px) { .features { grid-template-columns: 1fr; } }

.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg); font-size: 0.9rem;
}
.compare th {
  padding: 0.85rem 1rem; text-align: left; font-weight: 700;
  background: var(--bg-alt); border-bottom: 2px solid var(--border);
}
.compare th:not(:first-child) { text-align: center; }
.compare td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; }
.compare td:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: none; }
.compare--them { color: var(--red); font-weight: 500; }
.compare--us { color: var(--green); font-weight: 700; background: rgba(22,163,74,0.04); }

.cta {
  padding: 5rem 0; background: var(--text); text-align: center; color: #fff;
}
.cta__inner { max-width: 600px; margin: 0 auto; padding: 0 1.5rem; }
.cta__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta__sub { color: #9ca3af; margin-bottom: 2rem; font-size: 1.05rem; }

.footer {
  padding: 1.5rem 0; text-align: center; font-size: 0.8rem; color: var(--text-light);
  border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
  .nav__links { gap: 1rem; }
  .nav__link { display: none; }
}
