/* Aivexa Technologies Limited — site styles */

:root {
  --ink: #0B2B33;
  --ink-soft: #17414B;
  --paper: #F6F7F6;
  --paper-deep: #ECEFEE;
  --line: #D5DCDA;
  --teal: #2E7D7B;
  --teal-deep: #205957;
  --signal: #E8B33A;
  --text: #26383D;
  --text-mute: #5B6D72;
  --white: #FFFFFF;

  --measure: 66ch;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(3.5rem, 8vw, 6.5rem);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.62;
  font-synthesis-weight: none;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.42rem); line-height: 1.22; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

img, svg { max-width: 100%; }

.wrap {
  width: min(1140px, 100% - (var(--gut) * 2));
  margin-inline: auto;
}

.narrow { width: min(760px, 100% - (var(--gut) * 2)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- masthead ---------- */

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

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; display: block; }
.brand span { display: block; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.7rem); }
.nav a {
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.45rem 0.6rem;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.8rem; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
}
.btn-quiet:hover { background: var(--ink); color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

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

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 0.45em; }

.lede {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-note {
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-mute);
  max-width: 42ch;
}

/* flow panel */

.flow {
  background: var(--ink);
  color: #CFE0E2;
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--display);
  box-shadow: 0 18px 40px -28px rgba(11, 43, 51, 0.9);
}

.flow-head {
  font-size: 0.88rem;
  color: #7FA3A8;
  margin: 0 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  max-width: none;
}

.flow ol { list-style: none; margin: 0; padding: 0; }

.flow li {
  position: relative;
  padding: 0 0 1.15rem 1.65rem;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #E4EDEE;
  opacity: 0;
  animation: rise 520ms ease forwards;
}
.flow li:nth-child(1) { animation-delay: 120ms; }
.flow li:nth-child(2) { animation-delay: 360ms; }
.flow li:nth-child(3) { animation-delay: 600ms; }
.flow li:nth-child(4) { animation-delay: 840ms; }
.flow li:last-child { padding-bottom: 0; }

.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}
.flow li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.42em + 13px);
  bottom: 0.35rem;
  width: 1px;
  background: rgba(232, 179, 58, 0.35);
}
.flow li:last-child::after { display: none; }

.flow li b { display: block; font-weight: 600; color: var(--white); }
.flow li em { font-style: normal; color: #8FB2B6; font-size: 0.9rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flow li { opacity: 1; transform: none; }
}

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

.band { padding: var(--rhythm) 0; border-bottom: 1px solid var(--line); }
.band-deep { background: var(--paper-deep); }
.band-ink { background: var(--ink); border-bottom: none; }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink p { color: #C6D7D9; }

.band-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head p { color: var(--text-mute); margin-bottom: 0; }

/* service list */

.services { display: grid; gap: 0; border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.3rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
}

.service h3 { margin-bottom: 0.35em; }
.service p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.tags li {
  font-family: var(--display);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.22rem 0.55rem;
}

/* steps — a real sequence, so numbered */

.steps { counter-reset: step; display: grid; gap: 1.6rem; margin-top: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.step { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--teal); }
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.step p { font-size: 0.97rem; color: var(--text-mute); margin-bottom: 0; }

/* two-column prose */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.points li { padding-left: 1.5rem; position: relative; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--signal);
}
.points strong { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* callout */

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: 3px;
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: 0.45em; }

/* cta band */

.cta-band { text-align: left; }
.cta-band .actions { justify-content: flex-start; }
.cta-band .btn-quiet { color: var(--white); border-color: rgba(255,255,255,0.55); }
.cta-band .btn-quiet:hover { background: var(--white); color: var(--ink); }
.cta-band .btn { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

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

.page-head {
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; margin-bottom: 0; }

/* ---------- prose (legal pages) ---------- */

.prose { padding: clamp(2.5rem, 5vw, 4rem) 0 var(--rhythm); }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem); margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.5rem; }
.prose .updated { font-family: var(--display); font-size: 0.9rem; color: var(--text-mute); }

/* ---------- form ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.65rem 0.7rem;
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.hint { font-size: 0.88rem; color: var(--text-mute); }
.form .btn { justify-self: start; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.detail-list dt, .detail-list .key {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 0.15rem;
}
.detail-list .val { color: var(--ink); }

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

.foot {
  background: var(--ink);
  color: #B9CDD0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  font-size: 0.95rem;
}
.foot a { color: #E4EDEE; text-decoration: none; }
.foot a:hover { color: var(--signal); text-decoration: underline; }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

.foot h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot p { color: #93AEB2; max-width: 34ch; margin-bottom: 0; }
.foot .brand { color: var(--white); margin-bottom: 0.9rem; }

.legal {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  font-size: 0.87rem;
  color: #7E989C;
}
.legal p { color: #7E989C; margin: 0; max-width: none; }

/* ================= additions: trust, sectors, pricing, FAQ ================= */

/* utility bar */

.utility {
  background: var(--ink);
  color: #9DBCC0;
  font-family: var(--display);
  font-size: 0.85rem;
}
.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.utility p { margin: 0; max-width: none; }
.utility a { color: var(--white); text-decoration: none; font-weight: 600; }
.utility a:hover { color: var(--signal); }
.utility span { color: #7FA3A8; margin-left: 0.6rem; }
@media (max-width: 620px) {
  .utility-inner { justify-content: center; text-align: center; }
  .utility-inner p:first-child { display: none; }
}

/* trust strip */

.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  transform: translateY(-1px);
}
.trust-item b { font-weight: 600; color: var(--ink); }

/* sectors */

.sectors {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
@media (min-width: 700px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sectors { grid-template-columns: repeat(3, 1fr); } }

.sector { background: var(--white); padding: 1.4rem 1.3rem; }
.sector h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.sector p { font-size: 0.95rem; color: var(--text-mute); margin-bottom: 0; }

/* pricing */

.plans { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan-lead { border-color: var(--ink); box-shadow: 0 14px 34px -26px rgba(11,43,51,0.8); }
.plan h3 { margin-bottom: 0.3em; }
.plan .price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}
.plan .price small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-mute); letter-spacing: 0; margin-top: 0.2rem; }
.plan .plan-for { font-size: 0.95rem; color: var(--text-mute); margin-bottom: 1rem; }
.plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; font-size: 0.96rem; }
.plan ul li { padding-left: 1.3rem; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: var(--teal);
}
.plan .btn { margin-top: auto; text-align: center; }

/* FAQ */

.faq-list { border-top: 1px solid var(--line); max-width: 52rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.2rem 1.05rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.45rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--teal-deep); }
.faq-body { padding: 0 0 1.2rem; }
.faq-body p { margin-bottom: 0; color: var(--text-mute); }

/* credentials */

.creds { display: grid; gap: 1.2rem; }
@media (min-width: 780px) { .creds { grid-template-columns: repeat(2, 1fr); } }

.cred {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.35rem 1.4rem;
}
.cred h3 { font-size: 1.05rem; margin-bottom: 0.45em; }
.cred p { font-size: 0.96rem; color: var(--text-mute); margin-bottom: 0; }

.status {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.7rem;
}
.status-yes { background: #DEEDE9; color: #1E5F52; }
.status-progress { background: #FBF0D3; color: #7A5A11; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: var(--measure); }
.checklist li { padding-left: 1.6rem; position: relative; font-size: 0.98rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(42deg);
}

/* misc */

.foot-contact { margin-top: 1rem; font-size: 0.92rem; line-height: 1.8; }
.note-band { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.note-band p { margin: 0; font-family: var(--display); font-size: 0.93rem; color: var(--ink-soft); max-width: none; }

/* ---- fixes from visual review ---- */

/* nav link specificity was overriding the CTA button colour */
.nav a.btn { color: var(--white); border-bottom: 1.5px solid var(--ink); }
.nav a.btn:hover { color: var(--white); border-color: var(--teal-deep); }
.nav a.btn[aria-current="page"] { border-bottom-color: var(--ink); }

/* definition lists carried the browser's default dd indent */
.detail-list dd { margin: 0; }
.detail-list dt { margin-bottom: 0.15rem; }
.detail-list > div + div { margin-top: 0; }

/* tighten the page-head stack */
.page-head h1 { margin-bottom: 0.3em; }
.hero h1 { margin-bottom: 0.38em; }
.band-head h2 { margin-bottom: 0.35em; }

/* nav links: full ink rather than the muted tone, slightly larger */
.nav a { color: var(--ink); font-size: 1rem; font-weight: 500; }
.nav a:hover { color: var(--teal-deep); }
.utility { color: #B2CCD0; }
.utility span { color: #9DBCC0; }
