/* Agentify brand theme: navy from the logo on soft grey and white */
:root {
  --navy: #062238;
  --navy-2: #0d3352;
  --navy-3: #164a72;
  --ink: #0f1c28;
  --muted: #55636f;
  --line: #d9dde1;
  --bg: #ffffff;
  --bg-alt: #ececec;          /* matches the logo background */
  --card: #ffffff;
  --accent: #2f7fd1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 34, 56, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn.full { width: 100%; margin-top: 8px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin-bottom: .8em;
}
.fine { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 150px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); opacity: .8; white-space: nowrap; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: var(--bg-alt); padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
.hero .accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.hero-card {
  background: var(--navy); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 60px rgba(6,34,56,.25);
}
.feed { display: grid; gap: 12px; }
.feed-item {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 16px; color: #fff;
  animation: rise .6s ease both;
}
.feed-item:nth-child(2) { animation-delay: .15s; }
.feed-item:nth-child(3) { animation-delay: .3s; }
.feed-item:nth-child(4) { animation-delay: .45s; }
.feed-item:nth-child(5) { animation-delay: .6s; }
.feed-item strong { display: block; font-size: .95rem; }
.feed-item small { color: rgba(255,255,255,.65); }
.feed-item .dot { width: 10px; height: 10px; border-radius: 50%; background: #5fb0ff; flex: none; box-shadow: 0 0 0 4px rgba(95,176,255,.2); }
.feed-item.muted .dot { background: #8fd19e; box-shadow: 0 0 0 4px rgba(143,209,158,.2); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.service-card.featured { background: var(--navy); border-color: var(--navy); }
.service-card.featured h3, .service-card.featured p, .service-card.featured li { color: #fff; }
.service-card.featured p:not(.meta) { color: rgba(255,255,255,.78); }
.service-card h3 { font-size: 1.5rem; }
.service-card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--navy); margin-bottom: 20px;
}
.featured .icon { background: rgba(255,255,255,.12); color: #fff; }
.icon svg { width: 28px; height: 28px; }
.checks { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.featured .checks li::before { background-color: var(--accent); }
.meta {
  margin-top: auto; margin-bottom: 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--navy) !important;
}
.featured .meta { border-color: rgba(255,255,255,.18); color: #fff !important; }

.included { margin-top: 56px; padding: 36px; border-radius: var(--radius); background: var(--bg-alt); }
.included h3 { font-size: 1.15rem; margin-bottom: 20px; }
.included-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.included-grid strong { display: block; color: var(--navy); margin-bottom: 4px; }
.included-grid span { color: var(--muted); font-size: .92rem; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry {
  background: #fff; border-radius: var(--radius); padding: 26px 26px 20px;
  border-left: 4px solid var(--navy); box-shadow: var(--shadow);
}
.industry h4 { font-size: 1.1rem; margin-bottom: .4em; }
.industry p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); margin: 0; }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; }
.quote-copy > p { color: var(--muted); font-size: 1.05rem; }
.quote-form {
  background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.quote-form h3 { font-size: 1.35rem; margin-bottom: 4px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(6,34,56,.12);
}
.quote-form .invalid { border-color: #c0392b; }
.quote-form .btn { margin-top: 4px; }
.quote-form .fine { margin: 0; }

/* Pay online */
.pay-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.pay-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); color: #fff;
}
.pay-icon svg { width: 32px; height: 32px; }
.pay-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.pay-copy > p:not(.eyebrow):not(.fine) { color: var(--muted); max-width: 560px; }
.pay-copy .fine { margin: 0; }
.pay-action { display: grid; gap: 10px; min-width: 220px; }
.pay-action .btn[hidden] { display: none; }
.pay-methods { margin: 2px 0 0; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* CTA */
.cta { background: var(--navy); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; }
.cta p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.05rem; }
.cta-actions { display: grid; gap: 12px; }

/* Footer */
.site-footer { background: #041828; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: 32px 56px; align-items: start; }
.site-footer img { margin-bottom: 14px; }
.site-footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .service-grid, .quote-grid, .cta-inner { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .service-card, .quote-form, .included { padding: 26px; }
  .industry-grid, .included-grid, .footer-grid, .pay-card { grid-template-columns: 1fr; }
  .pay-card { padding: 26px; gap: 20px; }
  .pay-action .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Collapse the eight-link nav into the menu button before it crowds.
   It needs about 1,075px in one row, and the header is at most 1,100px wide inside its padding. */
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
}

/* ===== Consulting model (Nov 2026): RACE, method, funnel pages ===== */
.narrow { max-width: 820px; }
.mx { margin-left: auto; margin-right: auto; }
.top-gap { margin-top: 36px; }
.hero.compact { padding: 64px 0 40px; }
.section.tight { padding: 40px 0 96px; }
.site-header.slim .nav { height: 72px; }
.site-footer.slim { padding: 8px 0 24px; }
.site-footer.slim .copyright { margin-top: 0; border-top: 0; }

/* Hero RACE meter */
.card-label { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.card-foot { color: rgba(255,255,255,.75); font-size: .92rem; margin: 16px 0 0; }
.card-foot strong { color: #fff; }
.race-meter { display: grid; gap: 10px; }
.rm-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 14px; color: #fff; animation: rise .6s ease both;
}
.rm-row:nth-child(2) { animation-delay: .12s; } .rm-row:nth-child(3) { animation-delay: .24s; } .rm-row:nth-child(4) { animation-delay: .36s; }
.rm-row strong { display: block; font-size: .95rem; }
.rm-row small { color: rgba(255,255,255,.65); }
.rm-row.hot { border-color: #ffb547; background: rgba(255,181,71,.12); }
.rm-key { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.12); }
.rm-val { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.rm-val.ok { background: rgba(143,209,158,.18); color: #8fd19e; }
.rm-val.warn { background: #ffb547; color: #3a2400; }

/* Hero card, light variant */
.hero-card.plain { background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-card.plain .card-label { color: var(--accent); }
.deliver { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 14px; }
.deliver li { counter-increment: d; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.deliver li::before {
  content: counter(d); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.deliver strong { color: var(--navy); }
.deliver span { color: var(--muted); font-size: .92rem; }

/* Rules */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rule { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.rule h4 { font-size: 1.1rem; margin-bottom: .4em; }
.rule p { color: var(--muted); margin: 0; font-size: .95rem; }
.rule-x { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fdecea; color: #c0392b; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }

/* RACE cards */
.race-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.race-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.race-card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.race-card p { color: var(--muted); font-size: .94rem; }
.race-card .q { color: var(--navy); font-weight: 600; font-style: italic; }
.race-card .checks { margin-bottom: 0; }
.race-card .checks li { font-size: .9rem; }
.race-letter { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.race-letter.sm { width: 30px; height: 30px; font-size: .95rem; border-radius: 8px; margin: 0 8px 0 0; }

/* Six steps */
.steps.six { grid-template-columns: repeat(3, 1fr); }
.repeat-note { margin-top: 28px; padding: 22px 28px; border-radius: var(--radius); background: var(--bg-alt); color: var(--ink); }
.repeat-note strong { color: var(--navy); }

/* Ownership band */
.navy-band { background: var(--navy); color: #fff; }
.navy-band h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; }
.navy-band p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.eyebrow.light { color: #5fb0ff; }
.own-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.own-list li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px 20px; }
.own-list strong { display: block; color: #fff; margin-bottom: 4px; }
.own-list span { color: rgba(255,255,255,.72); font-size: .94rem; }

/* Offer ladder */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; background: #fff; }
.offer h3 { font-size: 1.4rem; }
.offer p { color: var(--muted); }
.offer .checks { flex: 1; }
.offer-tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent) !important; margin-bottom: 10px; }
.offer.featured { background: var(--navy); border-color: var(--navy); }
.offer.featured h3, .offer.featured li { color: #fff; }
.offer.featured p { color: rgba(255,255,255,.78); }
.offer.featured .offer-tag { color: #5fb0ff !important; }
.offer.featured .checks li::before { background-color: var(--accent); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Scorecard */
.score-form fieldset { border: 0; padding: 0 0 18px; margin: 0 0 6px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.score-form legend { display: flex; align-items: center; font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 14px; }
.score-form label small, .quote-form label small { font-weight: 400; color: var(--muted); }
.score-result { margin-top: 48px; }
.score-result h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.score-result .accent { color: var(--accent); }
.bars { display: grid; gap: 14px; margin: 24px 0 12px; }
.bar-row { display: grid; grid-template-columns: 1.3fr 1fr 40px; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.bar-row.hot { border-color: #ffb547; background: #fff8ec; }
.bar-label strong { display: block; color: var(--navy); }
.bar-label small { color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .6s ease; }
.bar-row.hot .bar span { background: #e8930c; }
.bar-val { font-weight: 800; color: var(--navy); text-align: right; }
.fix-box { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; margin: 24px 0 32px; }
.fix-box h3 { font-size: 1.15rem; }
.fix-box .checks { margin: 0; }
.lead a:not(.btn) { color: var(--navy); font-weight: 600; }

@media (max-width: 960px) {
  .race-grid { grid-template-columns: 1fr 1fr; }
  .rule-grid, .offer-grid, .own-grid { grid-template-columns: 1fr; }
  .steps.six { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .race-grid, .steps.six { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 40px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ERP */
.erp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.erp-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.erp-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.erp-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.erp-tag { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.erp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.erp-sub { margin: 40px 0 .3em; font-size: 1.3rem; }
.erp-sub-lead { color: var(--muted); margin: 0 0 20px; max-width: 720px; }
.erp-foot { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.erp-foot-single { grid-template-columns: 1fr; }
#industries .section-head { margin-bottom: 0; }
.erp-foot > div { background: #fff; border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); }
.erp-foot h3 { font-size: 1.1rem; margin-bottom: .4em; }
.erp-foot p { color: var(--muted); font-size: .95rem; }
.erp-foot p:last-child { margin-bottom: 0; }
.erp-foot .erp-list { color: var(--navy); font-weight: 600; }
@media (max-width: 960px) {
  .erp-grid { grid-template-columns: 1fr 1fr; }
  .erp-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .erp-grid { grid-template-columns: 1fr; }
}
