:root {
  --bg: #ECEEF0;
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --text: #0E1116;
  --text-soft: #5A6470;
  --line: #C8CDD2;
  --line-soft: #DEE1E5;
  --accent: #B8542F;
  --accent-soft: #E8C7B5;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
nav {
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(236, 238, 240, 0.88);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-image: url('../assets/logo-mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--accent) !important; }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line-soft);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin-bottom: 28px;
}
h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 24px;
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }

.hero-trust {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  max-width: 600px;
}
.hero-trust-sep { color: var(--line); }

.live-dot {
  width: 8px;
  height: 8px;
  background: #2D8B5F;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

/* ── SECTIONS ── */
section { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }
.section-header { margin-bottom: 64px; max-width: 720px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-soft); font-size: 17px; line-height: 1.55; }

/* ── SERVICES ── */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.services-header .section-title { margin-bottom: 0; max-width: 520px; }
.services-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}

.service-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-row-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--bg);
  -webkit-text-stroke: 1px var(--text);
}
.service-row-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.service-row-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-row-desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 16px;
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  border-radius: 3px;
}

/* Featured row (04) */
.service-row-featured {
  grid-template-columns: 140px 1fr auto;
  border-bottom: none;
  padding-top: 40px;
}
.service-row-featured .service-row-num {
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-weight: 700;
}
.service-row-num-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 10px;
  font-weight: 500;
}
.pill-accent {
  color: var(--accent);
  background: rgba(184, 84, 47, 0.08);
  border-color: var(--accent-soft);
}
.service-row-cta {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  white-space: nowrap;
  transition: background 0.2s;
}
.service-row-cta:hover { background: var(--accent); }
.service-row-cta-arrow { color: var(--accent-soft); }

/* ── FAQ ── */
.faq-list { border-top: 1px solid var(--line); max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 24px;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  border-bottom: none;
}
.cta-section h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p { color: var(--text-soft); font-size: 17px; margin-bottom: 36px; }
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer address { font-style: normal; display: inline; }
footer a { color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ── CHATBOT ── */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.2s;
}
.chatbot-toggle:hover { background: var(--accent); transform: scale(1.05); }
.chatbot-toggle svg { width: 24px; height: 24px; }

.chatbot-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 360px;
  height: 530px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 64px rgba(0,0,0,0.16);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.chatbot-window.open { display: flex; }

.chatbot-head {
  background: var(--text);
  color: var(--bg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}
.chatbot-head-title { font-family: var(--display); font-weight: 600; font-size: 15px; }
.chatbot-head-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: #9BA4AE;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chatbot-close {
  background: transparent;
  border: none;
  color: #9BA4AE;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s;
}
.chatbot-close:hover { color: var(--bg); }

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.msg.bot {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.msg.user {
  background: var(--text);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.msg.thinking {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  color: var(--text-soft);
  font-style: italic;
}

.quick-replies {
  padding: 4px 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.quick-reply {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--body);
  transition: all 0.15s;
  white-space: nowrap;
}
.quick-reply:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── CHATBOT BOOKING BAR (Cal.com) ── */
.chatbot-book-bar {
  padding: 10px 16px;
  border-top: 1px dashed var(--line-soft);
  flex-shrink: 0;
}
.chatbot-book-btn {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.chatbot-book-btn:hover { background: var(--accent); color: var(--surface); }

.chatbot-input-row {
  border-top: 1px solid var(--line-soft);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.chatbot-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  background: var(--paper);
  transition: border-color 0.15s;
}
.chatbot-input-row input:focus { border-color: var(--accent); background: var(--surface); }
.chatbot-input-row button {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}
.chatbot-input-row button:hover { background: var(--accent); }
.chatbot-input-row input:disabled,
.chatbot-input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── SCOPE A BUILD PAGE ── */
.scope-topbar { border-bottom: 1px solid var(--line-soft); }
.scope-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-family: var(--mono);
  font-size: 13px;
}
.scope-back { color: var(--text-soft); text-decoration: none; transition: color 0.15s; }
.scope-back:hover { color: var(--accent); }
.scope-step { color: var(--text-soft); }

.scope-header { padding: 64px 0 40px; border-bottom: none; }
.scope-header h1 { margin-bottom: 20px; }
.scope-sub { font-size: 18px; color: var(--text-soft); max-width: 620px; line-height: 1.55; }

.scope-section { padding: 0 0 100px; border-bottom: 1px solid var(--line-soft); }
.scope-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.scope-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.scope-field { display: flex; flex-direction: column; gap: 10px; }
.scope-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scope-form input[type="text"],
.scope-form input[type="email"],
.scope-form textarea,
.scope-form select {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.scope-form input:focus,
.scope-form textarea:focus,
.scope-form select:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.scope-form textarea { resize: vertical; min-height: 96px; font-family: var(--body); line-height: 1.5; }

.scope-options { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.scope-option input { position: absolute; opacity: 0; pointer-events: none; }
.scope-option:hover { border-color: var(--text); }
.scope-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 84, 47, 0.06);
}

.scope-submit { width: 100%; justify-content: center; }

.scope-sidebar { display: flex; flex-direction: column; gap: 24px; }
.scope-founder { background: var(--text); color: var(--paper); border-radius: 8px; padding: 28px; }
.scope-founder-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.scope-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scope-founder-name { font-family: var(--display); font-weight: 600; font-size: 16px; }
.scope-founder-role { font-family: var(--mono); font-size: 11px; color: #9BA4AE; margin-top: 2px; }
.scope-founder-quote { font-size: 14px; line-height: 1.6; color: #C9CDD2; }

.scope-next { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 28px; }
.scope-next .eyebrow { margin-bottom: 18px; }
.scope-next-list { display: flex; flex-direction: column; gap: 18px; list-style: none; }
.scope-next-list li { display: flex; gap: 14px; align-items: flex-start; }
.scope-next-num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); flex-shrink: 0; }
.scope-next-list span:last-child { font-size: 14px; line-height: 1.5; color: var(--text-soft); }

/* ── SUBMISSION RECEIPT PAGE ── */
.receipt-page { padding: 56px 0; }
.receipt-container { max-width: 900px; margin: 0 auto; padding: 0 32px; }

.receipt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.receipt-head {
  background: var(--text);
  color: var(--paper);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.receipt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.receipt-logo .logo-mark { background-image: url('../assets/logo-mark-light.svg'); }
.receipt-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.receipt-head-meta { display: flex; align-items: center; gap: 20px; }
.receipt-head-label {
  font-family: var(--mono);
  font-size: 12px;
  color: #9BA4AE;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.receipt-stamp {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-6deg);
  white-space: nowrap;
}

.receipt-meta-row {
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.receipt-meta-item-right { text-align: right; }
.receipt-meta-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.receipt-meta-value { font-family: var(--mono); font-size: 15px; color: var(--text); font-weight: 500; }

.receipt-body { padding: 48px 32px; }
.receipt-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.receipt-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.receipt-sub { color: var(--text-soft); font-size: 16px; line-height: 1.6; max-width: 640px; margin-bottom: 32px; }

.receipt-details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; padding: 28px; }
.receipt-details-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.receipt-row { display: flex; gap: 24px; padding: 10px 0; font-family: var(--mono); font-size: 14px; }
.receipt-key { color: var(--text-soft); min-width: 140px; flex-shrink: 0; }
.receipt-value { color: var(--text); word-break: break-word; }
.receipt-value-accent { color: var(--accent); }

.receipt-foot {
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  border-top: 1px solid var(--line-soft);
}

.receipt-amend { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }
.receipt-amend a { color: var(--accent); text-decoration: none; }
.receipt-amend a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .chatbot-window { width: calc(100vw - 32px); right: 16px; height: 70vh; }
  .chatbot-window.open {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .chatbot-window.open .chatbot-input-row { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chatbot-toggle:has(~ .chatbot-window.open) { display: none; }
  .chatbot-head-title { font-size: 14px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-meta { text-align: left; }
  .service-row, .service-row-featured { grid-template-columns: 1fr; gap: 12px; }
  .service-row-num { font-size: 40px; }
  .service-row-cta { width: 100%; justify-content: center; margin-top: 8px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; }
  .scope-form { padding: 24px; }
  .scope-header { padding: 40px 0 32px; }
  .scope-section { padding: 0 0 64px; }
  .receipt-head, .receipt-meta-row, .receipt-body, .receipt-foot { padding-left: 20px; padding-right: 20px; }
  .receipt-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .receipt-meta-row { flex-direction: column; gap: 16px; }
  .receipt-meta-item-right { text-align: left; }
  .receipt-row { flex-direction: column; gap: 4px; }
  .receipt-key { min-width: 0; }
}
