/* LeadworksUK — brand tokens */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #0B1F33;
  --ink-2: #13304D;
  --ink-soft: #3D5166;
  --muted: #66788A;
  --accent: #FF6B2C;
  --accent-dark: #E5541A;
  --paper: #FAF8F4;
  --sand: #F1ECE3;
  --line: #E4DED3;
  --white: #FFFFFF;
  --green: #1F9D6B;
  --red: #C8453A;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 16px; }
}

/* Eyebrow */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hl { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Hero phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -10% -10% 10%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, .22), transparent);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 330px; max-width: 100%;
  background: var(--ink); border-radius: 40px; padding: 18px 16px 26px;
  box-shadow: 0 30px 60px -20px rgba(11, 31, 51, .45), inset 0 0 0 2px var(--ink-2);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; color: #9FB0C2; font-size: .8rem; font-weight: 600; padding: 2px 12px 12px; }
.phone-top .dot { width: 70px; height: 20px; border-radius: 12px; background: #06121E; }
.phone-label { color: #9FB0C2; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 4px 6px 10px; }
.lead-card { background: var(--white); border-radius: 18px; padding: 16px; margin-bottom: 10px; }
.lead-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge { background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.badge-soft { background: #FFE8DD; color: var(--accent-dark); }
.time { font-size: .75rem; color: var(--muted); }
.lead-name { font-weight: 800; margin: 0 0 10px; font-size: 1rem; }
.lead-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.lead-meta div { background: var(--paper); border-radius: 10px; padding: 7px 10px; }
.lead-meta dt { font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.lead-meta dd { margin: 0; font-weight: 700; font-size: .9rem; }
.lead-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-actions span { text-align: center; font-weight: 700; font-size: .85rem; padding: 9px; border-radius: 10px; background: var(--ink); color: var(--white); }
.lead-actions span:last-child { background: var(--green); }
.lead-card-small { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; }
.lead-card-small p { margin: 0; font-size: .85rem; font-weight: 600; }
.lead-card-small.faded { opacity: .75; transform: scale(.96); }

/* Sections */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-sub { color: #B9C6D3; }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: #FFE8DD; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg, .contact-list svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { background: var(--ink-2); border-radius: var(--radius); padding: 28px 24px; border: 1px solid rgba(255, 255, 255, .06); }
.step-num { display: inline-block; font-weight: 800; font-size: .9rem; color: var(--accent); margin-bottom: 18px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 107, 44, .12); }
.step p { color: #B9C6D3; margin: 0; font-size: .97rem; }

/* Services */
.service { padding: 28px 28px 28px 0; border-top: 2px solid var(--ink); }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--ink-soft); margin: 0; }
.services { gap: 12px 40px; }

/* Comparison */
.compare-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.compare thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.compare thead th.us { color: var(--white); background: var(--ink); border-radius: 10px 10px 0 0; }
.compare tbody th { font-weight: 600; }
.compare td.us { background: #FFF4EE; font-weight: 700; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td.yes::before, .compare td.no::before, .compare td.mid::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px;
}
.compare td.yes::before { background: var(--green); }
.compare td.no::before { background: var(--red); }
.compare td.mid::before { background: #E3A12F; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s, margin-top .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin: -4px 0 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list svg { stroke: var(--accent); }
.contact-list a { color: var(--white); }
.contact-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 44, .15); background: var(--white);
}
.hidden-field { display: none; }
.form-error { font-size: .9rem; color: var(--red); margin: 14px 0 0; text-align: center; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Footer */
.footer { background: #06121E; color: #9FB0C2; padding: 48px 0; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer-inner img { height: 29px; width: auto; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.small { font-size: .85rem; }

/* Legal / simple pages */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page p, .page li { color: var(--ink-soft); }
.page-center { min-height: 60vh; display: grid; place-content: center; text-align: center; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
