/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF7;
  --bg-alt: #F0EEE8;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --accent: #FF5733;
  --accent-dark: #D94A28;
  --teal: #38BDF8;
  --navy: #0F172A;
  --card-bg: #FFFFFF;
  --border: #E4E1DA;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ─── Navigation ────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 320px;
  text-align: right;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--accent-dark); }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  padding: 80px 32px 96px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}

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

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 20px;
}

.proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.10);
}

/* ─── The Gap ───────────────────────────────────────── */
.thegap {
  padding: 96px 32px;
  background: var(--navy);
  color: #F8F6F1;
}

.thegap-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.thegap-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.thegap-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 600px;
  margin-bottom: 28px;
  color: #F8F6F1;
}

.thegap-body {
  font-size: 17px;
  line-height: 1.7;
  color: #A8A49C;
  max-width: 640px;
  margin-bottom: 16px;
}

.thegap-body:last-of-type { margin-bottom: 56px; }

.thegap-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}

.stat { text-align: left; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: #F8F6F1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: #A8A49C;
  line-height: 1.4;
}

/* ─── Services ─────────────────────────────────────── */
.services {
  padding: 96px 32px;
  border-bottom: 1px solid var(--border);
}

.services-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.services-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.services-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 56px;
  color: var(--fg);
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-icon-wrap {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  height: 195px;
}

.service-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon-illustrated {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--fg);
}

.service-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.service-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Pricing ──────────────────────────────────────── */
.pricing {
  padding: 96px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.pricing-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  color: var(--fg);
}

.pricing-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.pricing-card-featured .pricing-tier {
  color: var(--accent);
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-detail {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

.pricing-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 10px;
  transition: all 0.15s;
  margin-top: auto;
}

.pricing-btn-default {
  background: var(--bg-alt);
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.pricing-btn-default:hover {
  background: var(--border);
  border-color: var(--fg-muted);
}

.pricing-btn-featured {
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--accent);
}

.pricing-btn-featured:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Comparison table */
.comparison {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
}

.comparison-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.comparison-table {
  display: flex;
  flex-direction: column;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-header {
  background: var(--bg-alt);
  padding: 12px 28px;
}

.comparison-feature {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}

.comparison-col {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.4;
}

.comparison-col-featured {
  color: var(--accent);
}

.comparison-col-sub {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--fg);
}

.comparison-check,
.comparison-val,
.comparison-dash {
  font-size: 14px;
  text-align: center;
  color: var(--fg-muted);
}

/* Guarantee row */
.guarantee-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.guarantee-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.guarantee-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* FAQ */
.faq {
  margin-top: 48px;
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── Manifesto ─────────────────────────────────────── */
.manifesto {
  padding: 96px 32px;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

.manifesto-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.manifesto-body:last-child { margin-bottom: 0; }

/* ─── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}

.footer-desc {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sep { color: var(--border); }

.footer-legal {
  font-size: 12px;
  color: var(--border);
}

/* ─── Chatbot Widget ─────────────────────────────────── */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

#chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 87, 51, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
#chat-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(255, 87, 51, 0.5); }
#chat-toggle svg { width: 24px; height: 24px; fill: white; }

#chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 520px;
}
#chat-window.open { display: flex; }

.chat-header {
  background: var(--navy);
  color: #F8F6F1;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-header-info { display: flex; flex-direction: column; gap: 2px; }
.chat-header-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #F8F6F1; }
.chat-header-status { font-size: 11px; color: #A8A49C; display: flex; align-items: center; gap: 5px; }
.chat-header-status::before { content: ''; width: 7px; height: 7px; background: #22c55e; border-radius: 50%; display: inline-block; }
.chat-close { background: none; border: none; cursor: pointer; color: #A8A49C; font-size: 22px; line-height: 1; padding: 0; transition: color 0.15s; }
.chat-close:hover { color: white; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg { display: flex; flex-direction: column; gap: 3px; }
.chat-msg.bot { align-items: flex-start; }
.chat-msg.user { align-items: flex-end; }
.chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.bot .chat-bubble { background: var(--bg-alt); color: var(--fg); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }
.chat-time { font-size: 10px; color: var(--fg-muted); padding: 0 4px; }
.chat-msg.user .chat-time { text-align: right; }

.chat-typing { font-size: 13px; color: var(--fg-muted); padding: 8px 0; display: none; }
.chat-typing::after { content: '...'; animation: typing-dots 1.2s infinite; }
@keyframes typing-dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

.chat-email-form { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-alt); display: none; flex-direction: column; gap: 8px; }
.chat-email-form label { font-size: 13px; font-weight: 600; color: var(--fg); }
.chat-email-form input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font-body); width: 100%; background: white; }
.chat-email-form input:focus { outline: none; border-color: var(--accent); }
.chat-email-form .chat-email-row { display: flex; gap: 8px; }
.chat-email-form input[type="text"] { flex: 1; }
.chat-email-form button { background: var(--accent); color: white; border: none; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background 0.15s; white-space: nowrap; }
.chat-email-form button:hover { background: var(--accent-dark); }

.chat-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-end; }
.chat-input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 24px; font-size: 14px; font-family: var(--font-body); background: white; resize: none; max-height: 80px; line-height: 1.4; min-height: 38px; }
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; }
.chat-send:hover { background: var(--accent-dark); }
.chat-send svg { width: 16px; height: 16px; fill: white; }

/* Chatbot demo callout band */
.chat-demo-callout {
  text-align: center;
  padding: 14px 32px;
  background: var(--navy);
  color: #F8F6F1;
}
.chat-demo-callout-inner { max-width: 1160px; margin: 0 auto; font-size: 14px; color: #A8A49C; }
.chat-demo-callout-inner strong { color: #F8F6F1; }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .nav-tagline { display: none; }

  .hero { padding: 56px 24px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 280px; }

  .thegap { padding: 64px 24px; }
  .thegap-stat-row { grid-template-columns: 1fr; gap: 28px; }

  .services { padding: 64px 24px; }
  .services-grid { grid-template-columns: 1fr; }

  .pricing-inner { max-width: 100%; }
  .pricing { padding: 64px 24px; }
  .pricing-grid-2 { grid-template-columns: 1fr; }

  .comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 420px; }

  .guarantee-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .manifesto { padding: 64px 24px; }
  .footer { padding: 40px 24px; }

  #chat-widget { bottom: 16px; right: 16px; }
  #chat-toggle { width: 52px; height: 52px; }
  #chat-window { width: calc(100vw - 32px); right: -16px; bottom: 60px; }
  .chat-demo-callout { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .nav-inner { padding: 14px 20px; }
  .hero, .thegap, .services, .pricing, .manifesto, .footer { padding-left: 20px; padding-right: 20px; }
}