/* SalesAIgent — mobile-first stylesheet */
:root {
  --bg: #F5F3EE;
  --white: #FFFFFF;
  --ink: #14161C;
  --ink-2: #1E2129;
  --ink-line: #3A3D47;
  --text: #14161C;
  --muted: #4A4D57;
  --muted-2: #5C606B;
  --line: #E2DED5;
  --accent: #C8410F;       /* text/buttons on light (4.6:1 with white) */
  --accent-dark: #A93509;
  --accent-bright: #FF7A45; /* on dark backgrounds */
  --light-on-dark: #C2C5CE;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, .h3, .h4, .h5 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.75rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.h4 { font-size: 1.1rem; }
.h5 { font-size: 1rem; margin-top: 1.1em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.icon { flex: none; vertical-align: middle; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.center.btn-row { justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-lg { min-height: 54px; padding: 15px 24px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-accent { background: var(--accent-bright); color: var(--ink); }
.btn-accent:hover { background: #ff915f; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #F5F3EE; border-color: #6B6F7A; }
.btn-ghost-light:hover { border-color: #F5F3EE; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link-light { color: var(--accent-bright); }
.text-link-light:hover { color: #ffa47f; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--accent-bright); display: inline-flex; align-items: center; justify-content: center; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo-word span { color: var(--accent); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 22, 28, .08); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-cta { padding-top: 14px; }
.nav-cta .btn { width: 100%; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 16px 0 0; font-size: 14px; color: var(--muted-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: #9a9da6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding-top: 24px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #F5F3EE; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head.split > div { max-width: 700px; }
.section-head h2 { margin-bottom: 0; }
.section-foot { margin: 28px 0 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #B53A0C; margin: 0 0 12px; }
.eyebrow-light { color: var(--accent-bright); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.lead-sm { font-size: 1.05rem; color: var(--muted); }
.mini-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 24px 0 12px; }
.fine { font-size: 14px; color: var(--muted-2); }
.pill { display: inline-block; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 10px; border-radius: 99px; background: #ECE8DF; color: var(--muted); vertical-align: middle; }
.pill-dark { font-size: 12px; color: #A9ADB8; border: 1px solid var(--ink-line); border-radius: 99px; padding: 4px 10px; }

/* Hero */
.hero { padding: 48px 0 64px; }
.page-hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--muted-2); margin-top: 16px; }
.flow-card { background: var(--ink); color: #F5F3EE; border-radius: 22px; padding: 22px; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; margin-bottom: 14px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.flow-steps li { background: var(--ink-2); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.flow-steps strong { display: block; font-size: 15px; font-weight: 600; }
.flow-steps span:not(.flow-n) { display: block; font-size: 13px; color: #A9ADB8; }
.flow-n { flex: none; font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink); background: #F5F3EE; border-radius: 8px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.flow-steps li.is-done { background: var(--accent-bright); color: var(--ink); }
.flow-steps li.is-done span:not(.flow-n) { color: #3A2414; }
.flow-steps li.is-done .flow-n { background: var(--ink); color: var(--accent-bright); }
.problem-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.problem-card p { color: var(--muted); margin: 0; }

/* Cards & grids */
.card-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; color: var(--text); }
.section-white .card { background: var(--bg); }
.card p { color: var(--muted); font-size: 15px; }
.card-lg { padding: 26px; }
.card-lg h2 a { color: var(--ink); text-decoration: none; }
.card-lg h2 a:hover { color: var(--accent); }
.card-link { text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--ink); color: var(--text); transform: translateY(-2px); }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); }
.compare { display: grid; gap: 16px; }
.compare-card { border-radius: 18px; padding: 26px; }
.compare-muted { background: var(--bg); border: 1px solid var(--line); }
.compare-muted h3, .compare-muted h2 { color: var(--muted-2); }
.compare-strong { background: var(--white); border: 2px solid var(--ink); }
.split-2 { display: grid; gap: 32px; align-items: center; }
.split-2.align-start { align-items: start; }

/* Lists */
.checklist, .xlist, .numbered { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li, .xlist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: #1F7A4D; margin-top: 3px; }
.xlist .icon { color: #9A9DA6; margin-top: 3px; }
.xlist li { color: var(--muted); }
.checklist.small { font-size: 15px; gap: 8px; }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; display: flex; gap: 12px; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--accent); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-grid li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-weight: 600; text-align: center; background: var(--white); font-size: 15px; }
.section-white .tool-grid li { background: var(--bg); }
.tool-grid-sm li { padding: 10px; font-size: 14px; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.process li { border-top: 2px solid var(--ink-line); padding-top: 18px; }
.process li:first-child { border-top-color: var(--accent-bright); }
.process-n { font-family: var(--display); font-size: 14px; color: var(--accent-bright); font-weight: 600; }
.process h3 { margin: 8px 0; }
.process p { color: var(--light-on-dark); font-size: 15px; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-n { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--accent-bright); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.timeline h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.section-white .faq { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.price-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.price-card.is-featured { border: 2px solid var(--ink); }
.price-badge { position: absolute; top: -13px; left: 24px; background: var(--ink); color: var(--accent-bright); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; }
.price-desc { color: var(--muted); }
.price { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 18px; }
.price span { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.price-card .checklist { flex: 1; }

/* CTA band */
.cta-band { background: var(--ink); color: #F5F3EE; border-radius: 24px; padding: 36px 24px; display: grid; gap: 24px; align-items: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--light-on-dark); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.section-white .form-card { background: var(--bg); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid #CFCAC0; border-radius: 10px; background: var(--white); color: var(--text); width: 100%; }
.field input[type="file"] { padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 122, 69, .35); }
.field.has-error input, .field.has-error select { border-color: #B3261E; }
.form-note { font-size: 13px; color: var(--muted-2); margin: 0; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { color: #1F7A4D; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: var(--accent); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Thank you */
.thank-you { padding: 72px 0; }
.ty-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--accent-bright); align-items: center; justify-content: center; margin-bottom: 20px; }
.thank-you .lead { margin-left: auto; margin-right: auto; }

/* Legal */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; background: var(--white); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #ECE8DF; }

/* Footer */
.site-footer { background: var(--ink); color: var(--light-on-dark); padding: 56px 0 24px; margin-top: 0; }
.site-footer .logo { color: #F5F3EE; }
.site-footer .logo-mark { background: #2A2D36; }
.site-footer .logo-word span { color: var(--accent-bright); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin: 16px 0; max-width: 360px; font-size: 15px; }
.footer-h { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #F5F3EE; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer a, .site-footer .linklike { color: var(--light-on-dark); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A2D36; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 28, .6); }
.modal-box { position: relative; background: var(--bg); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 28px 20px 24px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #ECE8DF; }
.modal-title { font-size: 1.5rem; padding-right: 40px; }
.modal-sub { color: var(--muted); font-size: 15px; }
body.modal-open { overflow: hidden; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 12px; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 1100px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(20, 22, 28, .18); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cookie-inner p { margin: 0; font-size: 14px; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.cookie-inner p { flex: 1 1 auto; }
.cookie-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-opt label, .cookie-opt > div { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.cookie-opt span, .cookie-opt p { font-size: 14px; color: var(--muted); margin: 0; }
.cookie-opt input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
#cookie-modal .btn-block { margin-top: 18px; }

/* ---------- 600px+ ---------- */
@media (min-width: 600px) {
  .wrap { padding: 0 24px; }
  .card-grid.grid-2, .card-grid.grid-3, .card-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { align-items: center; padding: 24px; }
  .modal-box { border-radius: 20px; padding: 32px; }
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-actions { flex-wrap: nowrap; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- 768px+ ---------- */
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section-tight { padding-top: 24px; }
  .hero { padding: 72px 0 88px; }
  .page-hero { padding: 56px 0 64px; }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-card { padding: 32px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding: 56px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .cta-actions { justify-content: flex-end; }
  .split-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .form-card { padding: 32px; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ---------- 1024px+ : desktop nav ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 26px; padding: 0; }
  .site-nav a { padding: 8px 0; border: 0; font-size: 15px; }
  .site-nav a:hover { color: var(--accent); }
  .nav-cta { padding: 0; margin-left: 6px; }
  .nav-cta .btn { width: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .flow-card { padding: 28px; }
  .card-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
