/* ---------------------------------------------------------------------------
   Acquisition Engine — acquisitionengine.uk

   A Chivvy product, so it borrows Chivvy's type system (Bricolage display,
   Inter body, JetBrains Mono for figures) and takes its own accent. The
   restraint is deliberate: buyers of deal software are checking whether you
   are serious, not whether you can animate.
--------------------------------------------------------------------------- */
:root {
  --bg: #fcfbfa;
  --bg2: #f4f3f7;
  --surface: #ffffff;
  --ink: #171532;
  --ink2: #252246;
  --line: #e7e5ee;
  --line2: #d2cfdf;
  --fg: #171532;
  --fg2: #4d4a68;
  --fg3: #75728f;
  --acc: #c2410c;
  --acc-hi: #ea580c;
  --acc-wash: #fff5ed;
  --ok: #0f7a43;
  --r: 13px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--acc-hi); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* --- header --------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgb(252 251 250 / 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.05rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--acc); }
nav.main { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.main a {
  color: var(--fg2); text-decoration: none; font-size: 0.94rem; font-weight: 500;
}
nav.main a:hover { color: var(--ink); }
/* Below 800px the links wrap onto a second row rather than disappearing.
   Five links do not need a hamburger, but they do need to exist. */
@media (max-width: 860px) {
  .bar { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  nav.main {
    order: 3; width: 100%; margin-left: 0; gap: 16px;
    flex-wrap: wrap; row-gap: 8px;
    border-top: 1px solid var(--line); padding-top: 10px;
  }
  nav.main a.btn-primary { margin-left: auto; }
}
@media (max-width: 460px) {
  nav.main { gap: 12px; font-size: 0.9rem; }
  nav.main a.btn-primary { width: 100%; justify-content: center; margin-left: 0; }
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px; font-weight: 600; font-size: 0.96rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-hi); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 84px 0 64px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--acc); margin: 0 0 18px;
}
.lede { font-size: 1.24rem; color: var(--fg2); max-width: 58ch; margin: 20px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 0.88rem; color: var(--fg3); margin: 14px 0 0; }

/* --- stat strip ----------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin: 56px 0 0;
}
.stat { background: var(--surface); padding: 22px 20px; }
.stat b {
  display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 500;
  color: var(--ink); letter-spacing: -0.03em;
}
.stat span { display: block; font-size: 0.86rem; color: var(--fg3); margin-top: 4px; }

/* --- sections ------------------------------------------------------------- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }
.sec-head { margin-bottom: 44px; }
.sec-head p { color: var(--fg2); font-size: 1.08rem; margin-top: 12px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg2); font-size: 0.97rem; margin: 0; }
.card .num {
  font-family: var(--mono); font-size: 0.76rem; color: var(--acc);
  display: block; margin-bottom: 12px;
}

/* --- stage rail ----------------------------------------------------------- */
.rail { display: grid; gap: 0; }
.stage {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.stage:last-child { border-bottom: 0; }
.stage .n {
  font-family: var(--mono); font-size: 0.8rem; color: var(--acc);
  padding-top: 3px;
}
.stage h3 { margin-bottom: 6px; }
.stage p { color: var(--fg2); font-size: 0.97rem; margin: 0; }

/* --- feature list --------------------------------------------------------- */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  color: var(--fg2); font-size: 0.97rem; max-width: var(--measure);
}
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--acc);
}

/* --- callout -------------------------------------------------------------- */
.callout {
  background: var(--acc-wash); border: 1px solid #f6d5bd;
  border-radius: var(--r); padding: 28px 30px;
}
.callout p:last-child { margin-bottom: 0; }

/* --- dark band ------------------------------------------------------------ */
.band { background: var(--ink); color: #eceaf4; border-top: 0; }
.band h2 { color: #fff; }
.band p { color: #b9b5cf; }
.band .card { background: #211e42; border-color: #322e58; }
.band .card h3 { color: #fff; }
.band .card p { color: #b9b5cf; }
.band ul.ticks li { color: #b9b5cf; }

/* --- footer --------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--line); padding: 52px 0 40px;
  font-size: 0.92rem; color: var(--fg3);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--fg3); margin: 0 0 12px; font-weight: 600;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--fg2); text-decoration: none; }
footer.site a:hover { color: var(--acc); text-decoration: underline; }
.legal {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
}

/* --- prose pages ---------------------------------------------------------- */
.prose { padding: 56px 0 80px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--fg2); font-size: 1rem; }
.prose ul { padding-left: 22px; max-width: var(--measure); }
.prose li { margin-bottom: 8px; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 0.94rem; }
.prose th, .prose td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg2); font-weight: 600; color: var(--ink); }
.prose td { color: var(--fg2); }
.updated { font-family: var(--mono); font-size: 0.82rem; color: var(--fg3); }

/* ===========================================================================
   Product-led layout — the thing that makes a deal-software site read as one.

   Buyers of M&A software want to see the screen before they want to read the
   prose. These are the pieces that show it: a dark institutional hero, mockups
   of the real interface (drawn in markup, never a screenshot — the live
   platform is full of confidential targets), and a stage rail.
   =========================================================================== */

/* --- dark hero ------------------------------------------------------------ */
.hero-dark {
  background:
    radial-gradient(900px 420px at 78% -8%, rgb(234 88 12 / 0.16), transparent 62%),
    radial-gradient(700px 380px at 8% 8%, rgb(79 70 229 / 0.14), transparent 60%),
    #0f0e22;
  color: #eceaf4;
  border-top: 0;
  padding: 78px 0 0;
  overflow: hidden;
}
.hero-dark h1 { color: #fff; }
.hero-dark .lede { color: #b9b5cf; }
.hero-dark .eyebrow { color: #ff9a5c; }
.hero-dark .btn-ghost {
  background: transparent; border-color: rgb(255 255 255 / 0.24); color: #fff;
}
.hero-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-dark .cta-note { color: #8e89ab; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 48px; align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --- product mockup ------------------------------------------------------- */
.shot {
  background: #fcfbfa; border-radius: 12px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.3);
  font-size: 12px; line-height: 1.45; color: #171532;
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; background: #fff; border-bottom: 1px solid #e7e5ee;
}
.shot-bar i {
  width: 9px; height: 9px; border-radius: 50%; background: #dcd9e6;
  display: block; flex: none;
}
.shot-bar b {
  font: 500 11px/1 var(--mono); color: #8b88a6; margin-left: 8px;
  font-weight: 400;
}
.shot-nav {
  display: flex; gap: 14px; padding: 9px 14px;
  border-bottom: 1px solid #e7e5ee; background: #fff;
  font-size: 11.5px; color: #75728f;
}
.shot-nav span.on { color: #171532; font-weight: 600; }
.shot-body { padding: 14px; background: #f7f6fa; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col-h {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 8px;
  font-size: 11px; color: #75728f;
}
.col-h b { color: #171532; font-size: 11.5px; font-weight: 600; }
.col-h i { margin-left: auto; font-style: normal; font-family: var(--mono); }
.dcard {
  background: #fff; border: 1px solid #e7e5ee; border-radius: 8px;
  padding: 9px 10px; margin-bottom: 7px;
}
.dcard .fr { display: flex; align-items: flex-start; gap: 6px; }
.tier {
  font: 500 9.5px/14px var(--mono); width: 15px; height: 15px; flex: none;
  border-radius: 4px; text-align: center;
}
.tier.a { background: #dcf5e6; color: #0f7a43; }
.tier.b { background: #fdf0d6; color: #8a5a00; }
.dcard .nm { font-weight: 600; font-size: 11.5px; letter-spacing: -0.01em; }
.dcard .tn { color: #8b88a6; font-size: 10.5px; }
.dcard .mt {
  display: flex; gap: 9px; margin-top: 7px; padding-top: 7px;
  border-top: 1px solid #f0eef5; font-family: var(--mono);
  font-size: 10px; color: #75728f;
}
.dcard .mt .sc { margin-left: auto; color: #171532; }
.age { color: #8a5a00; }

/* --- stage rail visual ---------------------------------------------------- */
.pipe {
  display: flex; gap: 3px; margin: 0 0 26px; padding: 0; list-style: none;
  flex-wrap: wrap;
}
.pipe li {
  flex: 1 1 auto; min-width: 74px; text-align: center;
  font: 500 10.5px/1 var(--mono); color: var(--fg3);
  padding: 9px 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px;
}
.pipe li.hot { background: var(--acc-wash); border-color: #f6d5bd; color: var(--acc); }

/* --- mini panels beside features ------------------------------------------ */
.mini {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; font-size: 12.5px;
}
.mini .row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.mini .row:last-child { border-bottom: 0; }
.mini .row .k {
  font-family: var(--mono); font-size: 10.5px; color: var(--fg3);
  width: 34px; flex: none;
}
.mini .row .v { color: var(--fg2); min-width: 0; }
.mini .row .s {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  padding: 2px 7px; border-radius: 20px; white-space: nowrap;
}
.s.done { background: #dcf5e6; color: #0f7a43; }
.s.wait { background: var(--bg2); color: var(--fg3); }
.s.risk { background: #fdecec; color: #b42318; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* --- metrics band --------------------------------------------------------- */
.band .stats { border-color: #322e58; background: #322e58; margin-top: 0; }
.band .stat { background: #211e42; }
.band .stat b { color: #fff; }
.band .stat span { color: #8e89ab; }

/* --- demo form ------------------------------------------------------------ */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
}
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink);
  margin-bottom: 5px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line2);
  border-radius: 8px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--bg); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-wash);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--fg3); margin-top: 5px; }
.hp { position: absolute; left: -9999px; }

/* --- multi-page chrome ---------------------------------------------------- */
.foot-grid-5 {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px; margin-bottom: 36px;
}
@media (max-width: 900px) { .foot-grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid-5 { grid-template-columns: 1fr; } }

.page-hero { padding: 66px 0 54px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .lede { font-size: 1.16rem; }

.link-card {
  display: block; text-decoration: none; color: inherit;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.link-card:hover {
  border-color: var(--acc); transform: translateY(-2px); color: inherit;
}
.link-card h3 { color: var(--ink); }

.grid.g3 > .link-card, .grid.g2 > .link-card { margin: 0; }

.cta-band {
  background: var(--ink); color: #eceaf4; border-top: 0; padding: 68px 0;
}

/* The nav link colour out-specifies .btn-primary (nav.main a is 0,1,2 against
   0,1,0), which painted the header button orange-on-orange. */
nav.main a.btn-primary { color: #fff; }
nav.main a.btn-primary:hover { color: #fff; }
nav.main a.btn-ghost { color: var(--ink); }
