/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F8F4EE;
  --bg-2: #F0EBE2;
  --fg: #1A1914;
  --fg-2: #3D3B35;
  --fg-3: #6B6860;
  --accent: #E8A317;
  --accent-dark: #C88A0A;
  --accent-pale: rgba(232, 163, 23, 0.12);
  --border: rgba(26, 25, 20, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(248, 244, 238, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.nav__tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-pale); padding: 4px 10px; border-radius: 20px; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 23, 0.15) 0%, transparent 70%);
}
.hero__shape--amber-1 { width: 600px; height: 600px; top: -100px; right: -80px; }
.hero__shape--amber-2 { width: 400px; height: 400px; bottom: -60px; left: -60px; background: radial-gradient(circle, rgba(232, 163, 23, 0.08) 0%, transparent 70%); }
.hero__shape--amber-3 { width: 200px; height: 200px; top: 40%; right: 30%; background: radial-gradient(circle, rgba(232, 163, 23, 0.2) 0%, transparent 70%); }
.hero__shape--amber-4 { width: 150px; height: 150px; bottom: 25%; left: 35%; background: radial-gradient(circle, rgba(232, 163, 23, 0.1) 0%, transparent 70%); }
.hero__grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,25,20,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26,25,20,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 28px;
}
.hero__headline em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: 1.15rem; color: var(--fg-2); line-height: 1.65;
  max-width: 560px; margin-bottom: 52px;
}
.hero__metrics {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: white; max-width: 580px;
}
.hero__stat { padding: 22px 28px; flex: 1; }
.hero__stat-number {
  display: block; font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 900; color: var(--accent);
  letter-spacing: -0.02em; line-height: 1;
}
.hero__stat-label { font-size: 0.75rem; color: var(--fg-3); margin-top: 6px; line-height: 1.4; display: block; }
.hero__stat-divider { width: 1px; background: var(--border); flex-shrink: 0; }

/* ─── Capture / How It Works ─── */
.capture {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.capture__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.capture__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  max-width: 540px; margin-bottom: 16px;
}
.capture__sub { font-size: 1rem; color: var(--fg-3); max-width: 480px; margin-bottom: 56px; }
.capture__steps {
  display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap;
}
.capture__step {
  flex: 1; min-width: 220px;
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}
.capture__step-number {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 20px;
}
.capture__step-icon { margin-bottom: 18px; }
.capture__step-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.capture__step-body { font-size: 0.9rem; color: var(--fg-3); line-height: 1.6; }
.capture__step-arrow {
  flex-shrink: 0; display: flex; align-items: center; padding-top: 28px;
}

/* ─── The Loop ─── */
.theloop {
  padding: 100px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.theloop__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.theloop__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  max-width: 500px; margin-bottom: 60px;
}
.theloop__visual { margin-bottom: 32px; }
.theloop__track {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; padding-bottom: 12px;
}
.theloop__node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; min-width: 160px;
  flex-shrink: 0;
}
.theloop__node-icon {
  width: 44px; height: 44px;
  background: var(--accent-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.theloop__node span { font-size: 0.8rem; color: var(--fg-2); text-align: center; font-weight: 500; line-height: 1.3; }
.theloop__connector {
  width: 40px; height: 2px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 8px);
  opacity: 0.5;
}
.theloop__caption {
  font-size: 0.9rem; color: var(--fg-3); max-width: 500px; line-height: 1.65;
  font-style: italic;
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 100px 48px;
  background: var(--fg); color: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.manifesto__inner { max-width: 720px; }
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-style: italic; font-weight: 400; line-height: 1.4;
  color: var(--bg); margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.manifesto__body {
  font-size: 1rem; color: rgba(248,244,238,0.65); line-height: 1.7;
  margin-bottom: 40px;
}
.manifesto__who { display: flex; flex-direction: column; gap: 12px; }
.manifesto__who-item { display: flex; align-items: center; gap: 10px; }
.manifesto__who-item span { font-size: 0.95rem; color: rgba(248,244,238,0.8); }

/* ─── Footer ─── */
.footer {
  padding: 48px;
  background: var(--fg); color: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 12px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.footer__tagline { font-size: 0.9rem; color: rgba(248,244,238,0.5); }
.footer__copy { font-size: 0.78rem; color: rgba(248,244,238,0.3); }

/* ─── Responsive ─── */
/* ─── Chatbot Widget ─── */
#mf-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  font-family: var(--font-body);
  --cb-accent: var(--accent);
  --cb-accent-dark: var(--accent-dark);
  --cb-bg: #ffffff;
  --cb-fg: var(--fg);
  --cb-fg-2: var(--fg-2);
  --cb-fg-3: var(--fg-3);
  --cb-radius: 16px;
  --cb-shadow: 0 8px 32px rgba(26,25,20,0.18);
}
#mf-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--cb-shadow); cursor: pointer; transition: transform 0.2s, background 0.2s;
}
#mf-chat-toggle:hover { background: var(--accent-dark); transform: scale(1.06); }
#mf-chat-window {
  position: absolute; bottom: 68px; right: 0;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--cb-bg); border-radius: var(--cb-radius);
  box-shadow: var(--cb-shadow); overflow: hidden;
  display: none; flex-direction: column;
  border: 1px solid var(--border);
}
#mf-chat[aria-hidden="false"] #mf-chat-window { display: flex; }
#mf-chat[aria-hidden="false"] #mf-chat-toggle { display: none; }
.mf-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: 0.95rem;
}
#mf-chat-close { background: none; border: none; color: var(--bg); cursor: pointer; font-size: 1rem; padding: 4px; opacity: 0.7; }
#mf-chat-close:hover { opacity: 1; }
#mf-chat-body { padding: 20px; min-height: 240px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.mf-msg { border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; line-height: 1.55; }
.mf-msg--bot { background: var(--bg-2); color: var(--fg); }
.mf-msg--user { background: var(--accent); color: white; align-self: flex-end; }
.mf-msg--meta { background: var(--accent-pale); color: var(--fg-2); font-size: 0.82rem; align-self: center; text-align: center; }
.mf-chat-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: white; }
.mf-options { display: flex; flex-direction: column; gap: 8px; }
.mf-option-btn {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; color: var(--fg); cursor: pointer;
  text-align: left; transition: background 0.15s, border-color 0.15s;
  font-family: var(--font-body);
}
.mf-option-btn:hover { background: var(--bg-2); border-color: var(--accent); }
.mf-chat-form { display: flex; gap: 8px; }
#mf-chat-input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; font-family: var(--font-body); outline: none;
}
#mf-chat-input:focus { border-color: var(--accent); }
.mf-chat-form button {
  background: var(--accent); color: white; border: none; border-radius: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 1rem;
}
.mf-email-form { display: flex; flex-direction: column; gap: 8px; }
#mf-email-input {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; font-family: var(--font-body); outline: none; width: 100%;
}
#mf-email-input:focus { border-color: var(--accent); }
.mf-email-submit {
  background: var(--accent); color: white; border: none; border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; cursor: pointer; font-family: var(--font-body); font-weight: 500;
}
.mf-booking { display: flex; flex-direction: column; gap: 8px; }
.mf-btn-primary {
  display: block; text-align: center; background: var(--accent); color: white;
  border: none; border-radius: 10px; padding: 12px; font-size: 0.92rem;
  font-weight: 600; text-decoration: none; font-family: var(--font-body);
  transition: background 0.15s;
}
.mf-btn-primary:hover { background: var(--accent-dark); }
.mf-btn-ghost {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; font-size: 0.8rem; color: var(--fg-3); cursor: pointer; font-family: var(--font-body);
}
.mf-done { font-size: 0.88rem; color: var(--fg-2); text-align: center; padding: 4px; }
.mf-score-badge {
  display: inline-block; font-weight: 700; font-size: 0.85rem;
  background: var(--accent-pale); color: var(--accent-dark);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 6px;
}
.mf-processing { font-size: 0.8rem; color: var(--fg-3); text-align: center; font-style: italic; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  #mf-chat { bottom: 16px; right: 16px; }
  #mf-chat-window { width: calc(100vw - 32px); }
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero__metrics { flex-direction: column; }
  .hero__stat-divider { display: none; }
  .hero__stat { border-bottom: 1px solid var(--border); }
  .hero__stat:last-child { border-bottom: none; }
  .capture { padding: 64px 24px; }
  .capture__steps { flex-direction: column; }
  .capture__step-arrow { display: none; }
  .theloop { padding: 64px 24px; }
  .theloop__track { flex-direction: column; gap: 12px; }
  .theloop__connector { width: 2px; height: 24px; background: repeating-linear-gradient(180deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 8px); }
  .manifesto { padding: 64px 24px; }
  .footer { padding: 40px 24px; }
}