:root {
  --ink: #0e1116;
  --ink-2: #161b22;
  --ink-3: #232a33;
  --paper: #f7f5f0;
  --white: #ffffff;
  --text: #1b2029;
  --muted: #545b66;
  --line: #e3dfd6;
  --accent: #ff6b2c;          /* fills and buttons, with ink text on top */
  --accent-text: #b13d0b;     /* accent when it is the words, on light */
  --accent-on-dark: #ff9466;  /* accent words on dark surfaces */
  --on-dark: #eef0f3;
  --on-dark-muted: #a9b0bb;
  --ok: #1f9d55;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 8px 24px rgba(14, 17, 22, .06);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ff7f47; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--accent); font: 700 16px/1 var(--head); letter-spacing: -.03em;
}
.logo-word { font: 700 20px/1 var(--head); letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Eyebrows and section heads */
.eyebrow {
  font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--accent-on-dark); }
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section h2 { font-size: clamp(30px, 5vw, 46px); max-width: 18ch; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .section-lead { color: var(--on-dark-muted); }
.section-tint { background: #efe9df; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(38px, 7vw, 66px); max-width: 14ch; }
.lead { margin-top: 22px; font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 46ch; }

.hero-visual { position: relative; min-height: 360px; }
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mock-dash { position: relative; z-index: 1; margin-right: 8%; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar em { margin-left: 8px; font: 500 13px/1 var(--body); font-style: normal; color: var(--muted); }
.mock-body { padding: 18px 18px 26px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { background: var(--paper); border-radius: 12px; padding: 12px; }
.kpis b { display: block; font: 700 24px/1 var(--head); color: var(--ink); }
.kpis small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rows li {
  display: flex; align-items: center; gap: 10px; padding: 11px 2px; font-size: 14px;
  border-top: 1px solid var(--line);
}
.rows li:first-child { border-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.wait { background: var(--accent); }
.tag {
  margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #e5f4ea; color: #146c3a; white-space: nowrap;
}
.tag-wait { background: #ffe6da; color: #9a3307; }
.mock-chat {
  position: relative; z-index: 2; width: min(300px, 82%); margin: -14px 0 0 auto;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.chat-label { font-size: 12px; font-weight: 600; color: var(--muted); }

.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; max-width: 88%; }
.bubble.them { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.us { background: var(--ink); color: var(--on-dark); align-self: flex-end; border-bottom-right-radius: 4px; }

/* Who */
.who { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.who p { padding: 22px 0; text-align: center; font-weight: 500; color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin-top: 18px; }
.card > p, .card > div > p { margin-top: 10px; color: var(--muted); }
.card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; border-top: 1px solid var(--line); }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ink); display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-wide { display: grid; gap: 0; }
.card-wide h3 { margin-top: 18px; }
@media (min-width: 720px) {
  .card-wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
  .card-wide h3 { margin-top: 0; }
}

/* Example */
.example-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .example-grid { grid-template-columns: 1.3fr .7fr; } }
.compare { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px; background: var(--ink-2); }
.compare-col h3 { font-size: 18px; color: var(--on-dark-muted); }
.compare-after { border-color: var(--accent); }
.compare-after h3 { color: var(--accent-on-dark); }
.compare ul { list-style: none; margin: 12px 0 0; padding: 0; }
.compare li { padding: 8px 0; border-top: 1px solid var(--ink-3); font-size: 15px; }
.compare li:first-child { border-top: 0; }

.phone {
  justify-self: center; width: 260px; padding: 12px; border-radius: 40px;
  background: #050608; border: 1px solid var(--ink-3); box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.phone-screen { background: var(--paper); color: var(--text); border-radius: 30px; padding: 30px 18px 22px; }
.phone-title { font: 700 20px/1.1 var(--head); }
.phone-barbers { display: flex; gap: 6px; margin-top: 16px; }
.phone-barbers span, .phone-slots span {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--white); border: 1px solid var(--line);
}
.phone-barbers .on, .phone-slots .on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.phone-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.phone-slots .off { color: #9aa0a8; text-decoration: line-through; }
.phone-btn {
  margin-top: 18px; padding: 12px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--ink);
}
.phone-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step-num { font: 700 14px/1 var(--head); color: var(--accent-text); }
.steps h3 { font-size: 22px; margin-top: 18px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* AI */
.ai-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.chat {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chat .bubble { font-size: 15px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b2c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks-dark li { color: var(--on-dark); }
.checks-dark li::before { background-color: var(--ink-3); }

/* Why */
.why { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why > div { border-top: 3px solid var(--ink); padding-top: 20px; }
.why h3 { font-size: 20px; }
.why p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Quote form */
.quote-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.form {
  background: var(--white); color: var(--text); border-radius: 22px; padding: 24px;
}
@media (min-width: 640px) { .form { padding: 36px; } }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #cfcac0; background: var(--white); color: var(--text);
  font: 400 16px/1.4 var(--body);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 107, 44, .35); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c4320a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #cfcac0; font-size: 15px; font-weight: 500; cursor: pointer; user-select: none;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fde8e1; color: #8a2405; font-weight: 500; font-size: 15px;
}
.form-fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form button[disabled] { opacity: .65; cursor: progress; }
.form-done { text-align: center; padding: 40px 8px; outline: none; }
.done-ring {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--ink); display: grid; place-items: center;
}
.done-ring svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 26px; margin-top: 20px; }
.form-done p { margin-top: 10px; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--ink-3); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-top: 36px; padding-bottom: 36px; }
.logo-footer .logo-word { color: var(--white); }
.logo-footer .logo-mark { background: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; font-size: 15px; padding: 6px 0; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 14px; }
@media (min-width: 860px) { .footer-copy { margin-left: auto; } }

/* Legal page */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
