/* ==========================================================================
   AI Agency Managers — design tokens
   ========================================================================== */

:root{
  --ink: #0E1B2B;
  --ink-soft: #16283D;
  --paper: #F6F8FA;
  --paper-raised: #FFFFFF;
  --blue: #1E6FEA;
  --teal: #14B8A6;
  --amber: #E8963A;
  --slate: #5B6B7C;
  --slate-light: #8C9AA8;
  --line: #DEE5EC;
  --line-dark: #26374D;

  --grad: linear-gradient(115deg, var(--blue) 0%, var(--teal) 100%);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 6px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------------------------------- header ---------------------------------- */

.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.logo .mark{ width: 30px; height: 30px; flex-shrink: 0; }

.logo .name b{ color: var(--ink); font-weight: 700; }
.logo .name span{ color: var(--slate); font-weight: 400; display:block; font-size: 10px; letter-spacing: .06em; margin-top: 1px; }

nav.primary{
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.primary a.nav-link{
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a.nav-link:hover{ border-bottom-color: var(--teal); }
nav.primary a.nav-link.is-active{ color: var(--blue); border-bottom-color: var(--blue); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover{ background: var(--ink-soft); }

.btn-accent{
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn-accent:hover{ background: #185ec4; }

.btn-outline{
  border-color: var(--line-dark);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover{ border-color: var(--ink); }

.btn-outline.on-dark{
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline.on-dark:hover{ border-color: #fff; }

.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg{ width: 20px; height: 20px; }

/* ---------------------------------- hero ---------------------------------- */

.hero{
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.eyebrow{
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1{
  font-size: 52px;
  font-weight: 600;
  color: #fff;
}
.hero h1 em{
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede{
  margin-top: 22px;
  font-size: 18px;
  color: #C4D0DC;
  max-width: 46ch;
}

.hero .cta-row{
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-note{
  font-size: 13px;
  color: var(--slate-light);
}

/* map-pin visual */
.pin-panel{
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: end;
}

.pin-panel svg{ width: 100%; height: 100%; }

/* ---------------------------------- sections ---------------------------------- */

section{ padding: 88px 0; }

.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}

.section-tag{
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-head h2{
  font-size: 34px;
  font-weight: 600;
}

.section-head p{
  margin-top: 16px;
  font-size: 17px;
  color: var(--slate);
}

/* problem */
.problem{
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.problem .wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.problem h2{
  font-size: 32px;
  font-weight: 600;
  max-width: 14ch;
}
.problem .body p{ font-size: 17px; color: var(--slate); margin-bottom: 18px; }
.problem .body p:last-child{ margin-bottom: 0; }
.stat-strip{
  display: flex;
  gap: 36px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.stat-strip .stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}
.stat-strip .stat span{
  font-size: 13px;
  color: var(--slate);
}

/* fix list */
.fixes{ background: var(--paper); }
.fix-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}
.fix-item{
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fix-grid .fix-item:nth-child(4n){ border-right: none; }
.fix-item h4{ font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.fix-item p{ font-size: 14px; color: var(--slate); }
.fix-item .n{
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 10px;
}

/* process */
.process{ background: var(--ink); color: #fff; }
.process .section-head p{ color: #B7C4D1; }
.process .section-head h2{ color: #fff; }
.process .section-tag{ color: var(--teal); }

.steps{
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.step{
  padding: 28px 20px 0 0;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.steps .step:last-child{ border-right: none; padding-right: 0; }
.step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--teal);
  margin-top: -13px;
  background: var(--ink);
  width: fit-content;
  padding-right: 10px;
}
.step h4{ font-size: 16px; margin: 14px 0 8px; color: #fff; }
.step p{ font-size: 14px; color: #A9B7C4; }

/* 14 day */
.launch{
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.launch .wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.launch h2{ font-size: 32px; font-weight: 600; max-width: 12ch; }
.launch .lede{ margin-top: 16px; color: var(--slate); font-size: 17px; }
.launch ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.launch li{
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.launch li:last-child{ border-bottom: none; padding-bottom: 0; }
.launch li .chk{
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* industries */
.industries{ background: var(--paper); }
.industry-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.industry-card .ic{ width: 34px; height: 34px; margin-bottom: 18px; color: var(--blue); }
.industry-card h4{ font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.industry-card p{ font-size: 14px; color: var(--slate); }

/* track */
.track{ background: var(--ink); color: #fff; }
.track .wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.track h2{ color: #fff; font-size: 32px; font-weight: 600; max-width: 12ch; }
.track .lede{ margin-top: 16px; color: #B7C4D1; font-size: 17px; }
.metric-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.metric{
  background: var(--ink);
  padding: 24px;
}
.metric b{
  font-family: var(--font-display);
  font-size: 15px;
  display: block;
  color: var(--teal);
  margin-bottom: 6px;
}
.metric span{ font-size: 14px; color: #A9B7C4; }

/* final CTA banner */
.cta-banner{
  background: var(--grad);
  color: #06141F;
}
.cta-banner .wrap{
  padding: 64px 28px;
  text-align: center;
}
.cta-banner h2{
  font-size: 32px;
  font-weight: 600;
  color: #06141F;
  max-width: 22ch;
  margin: 0 auto;
}
.cta-banner .btn-primary{
  margin-top: 26px;
  background: #06141F;
}
.cta-banner .btn-primary:hover{ background: #0E1B2B; }

/* faq */
.faq{ background: var(--paper-raised); }
.faq-list{ border-top: 1px solid var(--line); max-width: 780px; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .plus{
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--slate);
}
.faq-item[open] summary .plus{ background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item p{ padding-bottom: 22px; color: var(--slate); font-size: 15px; max-width: 62ch; }

/* ---------------------------------- footer ---------------------------------- */

footer.site-footer{
  background: var(--ink);
  color: #A9B7C4;
  border-top: 1px solid var(--line-dark);
}
footer.site-footer .wrap{
  padding: 48px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer .logo .name span{ color: #7E8FA0; }
footer .logo{ color: #fff; }
footer p.blurb{ margin-top: 14px; font-size: 14px; max-width: 34ch; color: #8C9AA8; }
footer h5{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}
footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a{ font-size: 14px; color: #A9B7C4; }
footer a:hover{ color: #fff; }
.footer-bottom{
  border-top: 1px solid var(--line-dark);
  padding: 20px 28px;
  font-size: 13px;
  color: #6E7E8E;
  display: flex;
  justify-content: space-between;
}

/* ---------------------------------- generic page header (non-home) ---------------------------------- */

.page-hero{
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero .wrap{ padding: 64px 28px 56px; max-width: 780px; }
.page-hero h1{ font-size: 40px; font-weight: 600; }
.page-hero p{ margin-top: 16px; font-size: 17px; color: #C4D0DC; }

/* content page basics */
.prose{ max-width: 720px; }
.prose h2{ font-size: 26px; font-weight: 600; margin-top: 44px; margin-bottom: 14px; }
.prose h2:first-child{ margin-top: 0; }
.prose p{ font-size: 16px; color: var(--slate); margin-bottom: 14px; }
.prose ul{ margin: 0 0 14px; padding-left: 20px; color: var(--slate); font-size: 16px; }
.prose li{ margin-bottom: 6px; }

/* two-column list block used on local-seo page */
.checklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.checklist li{
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.checklist li .chk{
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* results placeholder */
.results-empty{
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  padding: 64px 28px;
  text-align: center;
  background: var(--paper-raised);
}
.results-empty h3{ font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.results-empty p{ color: var(--slate); max-width: 46ch; margin: 0 auto; }

/* about */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.about-grid .prose{ max-width: none; }

/* contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
.contact-side h2{ font-size: 28px; font-weight: 600; }
.contact-side p{ margin-top: 14px; color: var(--slate); font-size: 16px; }
.contact-list{ list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li{ font-size: 15px; color: var(--ink-soft); }
.contact-list li b{ display: block; font-family: var(--font-display); font-size: 13px; color: var(--slate); margin-bottom: 4px; font-weight: 500; }

form.audit-form{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus{ outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
form.audit-form .btn{ margin-top: 4px; justify-content: center; width: 100%; }
.form-note{ font-size: 12px; color: var(--slate-light); text-align: center; }
.form-success{
  display: none;
  background: var(--paper-raised);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.form-success h4{ font-size: 18px; margin-bottom: 8px; }
.form-success p{ color: var(--slate); font-size: 14px; }

/* ---------------------------------- responsive ---------------------------------- */

@media (max-width: 980px){
  .hero .wrap{ grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .pin-panel{ justify-self: start; max-width: 260px; order: -1; }
  .hero h1{ font-size: 38px; }
  .problem .wrap{ grid-template-columns: 1fr; gap: 32px; }
  .fix-grid{ grid-template-columns: repeat(2, 1fr); }
  .fix-grid .fix-item:nth-child(4n){ border-right: 1px solid var(--line); }
  .fix-grid .fix-item:nth-child(2n){ border-right: none; }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .step{ border-right: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 20px; }
  .launch .wrap, .track .wrap, .contact-grid, .about-grid{ grid-template-columns: 1fr; gap: 32px; }
  .industry-grid{ grid-template-columns: repeat(2, 1fr); }
  .metric-grid{ grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .wrap{ grid-template-columns: 1fr; }
  .checklist{ grid-template-columns: 1fr; }
  section{ padding: 56px 0; }
}

@media (max-width: 680px){
  nav.primary{ display: none; }
  .menu-toggle{ display: flex; }
  .hero h1{ font-size: 32px; }
  .section-head h2{ font-size: 26px; }
  .form-row{ grid-template-columns: 1fr; }
  .cta-row .btn{ width: 100%; justify-content: center; }
  .cta-row{ flex-direction: column; align-items: stretch; }
}

body.nav-open nav.primary{
  display: flex;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 28px 20px;
}
body.nav-open nav.primary a{ padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
body.nav-open nav.primary .btn{ margin-top: 12px; }
