/* Civinti.ai homepage, everything below the hero: "The Brief" layout (Alternate A).
   Classes are prefixed a- so they never collide with home.css, which still styles the top bar, hero and footer. */
.a-page {
  --paper: #ffffff;
  --wash: #f3f6fa;
  --ink: #13294b;
  --soft: #4a5a74;
  --rule: #d6dee9;
  --blue: #1d4ed8;
  --ocean: #1680b0;
  --serif: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans);
}
.a-page :where(a) { color: var(--blue); }
:where(.a-page) :where(h2, h3) { font-family: var(--serif); font-weight: 700; -webkit-text-stroke: 0.6px currentColor; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
:where(.a-page) :where(p) { margin: 0; }
:where(.a-page) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.a-page) :where(img) { max-width: 100%; height: auto; }
.a-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.a-page .a-btn { border-radius: 0; }
.a-page .a-btn.a-primary { color: #fff; }
.a-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.a-form .bad { border-color: #c2410c; outline: 1px solid #c2410c; }
.a-form .err { grid-column: 1 / -1; color: #b42318; }
.a-form .done { grid-column: 1 / -1; color: var(--ocean); font-weight: 600; background: var(--wash); padding: 14px 16px; }
.a-form.sent label, .a-form.sent button { display: none; }
.a-form button:disabled { opacity: 0.7; cursor: default; }

.a-btn { display: inline-flex; align-items: center; padding: 15px 24px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; }
.a-btn.a-primary { background: var(--ink); color: #fff; }
.a-btn.a-primary:hover { background: var(--blue); }
.a-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Section rows */
.a-row { border-top: 1px solid var(--rule); }
.a-row > .a-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-block: 44px; }
.a-row .a-label { position: sticky; top: 100px; align-self: start; }
.a-eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ocean); margin-bottom: 14px; }
.a-row h2 { font-size: 32px; line-height: 1.15; }
.a-row .a-label p { color: var(--soft); margin-top: 14px; font-size: 16px; }
.a-row.a-wash { background: var(--wash); }

/* Services */
.a-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.a-svc article { display: flex; flex-direction: column; gap: 14px; }
.a-svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.a-svc .a-t { font: 600 12.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.a-svc h3 { font-size: 22px; line-height: 1.2; }
.a-svc li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15.5px; color: var(--soft); }
.a-svc a { font-weight: 600; font-size: 15px; text-decoration: none; margin-top: auto; }

/* Engagement timeline, drawn to a week scale */
.a-tl { display: grid; gap: 28px; }
.a-scale { position: relative; height: 28px; border-bottom: 1px solid var(--ink); font: 500 12px/1 var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; }
.a-scale span { position: absolute; bottom: 8px; transform: translateX(-50%); }
.a-scale span::after { content: ""; position: absolute; left: 50%; top: 16px; width: 1px; height: 6px; background: var(--ink); }
.a-bars { position: relative; height: 96px; }
.a-bar { position: absolute; top: 0; height: 40px; display: flex; align-items: center; padding: 0 12px; color: #fff; font: 600 14px/1 var(--sans); white-space: nowrap; }
.a-bar.a-assess { background: var(--ink); }
.a-bar.a-build { background: var(--blue); top: 48px; }
.a-bar.a-run { background: linear-gradient(90deg, var(--ocean), rgba(22,128,176,0.15)); top: 48px; }
.a-bar.a-range { background: transparent; border: 1px dashed currentColor; }
.a-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.a-stages h3 { font-size: 21px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.a-stages h3 small { font: 600 13px/1 var(--sans); color: var(--ocean); }
.a-stages p { color: var(--soft); font-size: 15.5px; margin-top: 8px; }

/* Workflow */
.a-steps { display: grid; }
.a-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.a-steps li:last-child { border-bottom: 1px solid var(--rule); }
.a-steps .a-n { font: 700 30px/1 var(--serif); color: var(--rule); font-variant-numeric: tabular-nums; }
.a-steps h3 { font-size: 21px; }
.a-steps p { color: var(--soft); }
.a-steps li.a-you { background: var(--wash); margin-inline: -16px; padding-inline: 16px; }
.a-steps li.a-you .a-n { color: var(--ocean); }
.a-steps li.a-you h3::after { content: "Person decides"; font: 600 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: var(--ocean); color: #fff; padding: 5px 7px; margin-left: 12px; vertical-align: 4px; }

/* Time back */
.a-compare { display: grid; gap: 18px; margin-bottom: 40px; }
.a-cmp { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 16px; align-items: center; font-weight: 600; }
.a-cmp .a-track { height: 22px; background: var(--wash); }
.a-cmp .a-fill { height: 100%; background: var(--soft); }
.a-cmp.a-new .a-fill { background: var(--ocean); }
.a-cmp b { font: 700 26px/1 var(--serif); font-variant-numeric: tabular-nums; text-align: right; }
.a-note { font-size: 13.5px; color: var(--soft); }
.a-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.a-stats div { padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; }
.a-stats div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.a-stats b { font: 700 46px/1 var(--serif); color: var(--ocean); -webkit-text-stroke: 0.6px currentColor; }
.a-stats p { font-size: 15px; }
.a-stats small { font-size: 12.5px; color: var(--soft); }

/* Principles */
.a-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.a-pillars h3 { font-size: 26px; margin-bottom: 10px; }
.a-pillars div:nth-child(1) h3 { color: var(--ink); } .a-pillars div:nth-child(2) h3 { color: var(--blue); } .a-pillars div:nth-child(3) h3 { color: var(--ocean); }
.a-pillars p { color: var(--soft); font-size: 15.5px; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.a-two h3 { font-size: 21px; margin-bottom: 6px; }
.a-two .a-sub { color: var(--soft); font-size: 15.5px; margin-bottom: 14px; }
.a-checks li { padding: 9px 0 9px 28px; border-top: 1px solid var(--rule); position: relative; font-size: 15.5px; }
.a-checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2px solid var(--ocean); border-bottom: 2px solid var(--ocean); transform: rotate(-45deg); }

/* Problem, fix, result table */
.a-pso { overflow-x: auto; }
.a-pso table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
.a-pso th { font: 700 18px/1.2 var(--serif); -webkit-text-stroke: 0.4px currentColor; text-align: left; padding: 0 14px 12px; border-bottom: 2px solid var(--ink); }
.a-pso td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.a-pso tr:nth-child(even) td { background: var(--wash); }
.a-pso td:first-child { color: var(--soft); }
.a-pso td:last-child { font-weight: 600; color: var(--ocean); }
@media (max-width: 560px) {
  .a-pso table, .a-pso tbody, .a-pso tr, .a-pso td { display: block; min-width: 0; }
  .a-pso thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a-pso tr { padding: 14px 12px; border-top: 1px solid var(--rule); }
  .a-pso tr:last-child { border-bottom: 1px solid var(--rule); }
  .a-pso tr:nth-child(even) { background: var(--wash); }
  .a-pso tr:nth-child(even) td { background: none; }
  .a-pso td { padding: 2px 0; border: 0; }
  .a-pso td + td::before { content: "→ "; color: var(--ocean); }
}


/* Founder */
.a-quote { font: 500 clamp(21px, 2.4vw, 27px)/1.45 var(--serif); }
.a-quote::before { content: "“"; display: block; font-size: 80px; line-height: 0.6; color: var(--ocean); margin-bottom: 8px; font-style: normal; }
.a-who { margin-top: 22px; font-weight: 600; } .a-who span { color: var(--soft); font-weight: 400; }
.a-quote-sm { font-size: clamp(18px, 1.9vw, 21px); }
.a-quote-sm::before { font-size: 60px; }
.a-by { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.a-by img { width: 96px; height: 120px; object-fit: cover; object-position: center 20%; display: block; }
.a-by b { font-weight: 600; } .a-by span { color: var(--soft); font-size: 15px; }

/* Offer */
.a-offer { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.a-offer > div { padding: 32px; }
.a-offer > div + div { border-left: 1px solid var(--ink); background: var(--wash); }
.a-offer h3 { font-size: 28px; margin: 6px 0 12px; }
.a-offer .a-len { font: 600 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.a-offer .a-actions { margin: 24px 0 14px; }
.a-offer ol { margin: 0; padding: 0; list-style: none; counter-reset: g; }
.a-offer ol li { counter-increment: g; padding: 10px 0 10px 34px; border-top: 1px solid var(--rule); position: relative; font-size: 15.5px; }
.a-offer ol li::before { content: counter(g); position: absolute; left: 0; top: 10px; font: 700 15px/1.6 var(--serif); color: var(--ocean); }

/* FAQ */
.a-faq details { border-top: 1px solid var(--rule); }
.a-faq details:last-child { border-bottom: 1px solid var(--rule); }
.a-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 18.5px/1.3 var(--serif); position: relative; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--sans); color: var(--ocean); }
.a-faq details[open] summary::after { content: "−"; }
.a-faq details p { padding: 0 0 20px; color: var(--soft); max-width: 44em; }

/* Contact */
.a-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.a-form label.a-full { grid-column: 1 / -1; }
.a-form input, .a-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 0; }
.a-form input:focus, .a-form textarea:focus { outline: 2px solid var(--ocean); border-color: var(--ocean); }
.a-form .a-btn { justify-self: start; cursor: pointer; }
.a-form .done { grid-column: 1 / -1; color: var(--ocean); font-weight: 600; }

@media (max-width: 980px) {
  .a-row > .a-wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .a-row .a-label { position: static; }
  .a-svc, .a-stages, .a-pillars { grid-template-columns: 1fr; }
  .a-stats { grid-template-columns: 1fr 1fr; }
  .a-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .a-two, .a-offer { grid-template-columns: 1fr; }
  .a-offer > div + div { border-left: 0; border-top: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  .a-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .a-steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .a-steps li p { grid-column: 2; }
  .a-cmp { grid-template-columns: 90px minmax(0, 1fr) 70px; gap: 10px; font-size: 14px; }
  .a-stats b { font-size: 36px; }
  .a-form { grid-template-columns: 1fr; }
  .a-offer > div { padding: 22px; }
  .a-bar { font-size: 12px; padding: 0 8px; }
}
.a-cmp b { white-space: nowrap; }
@media (max-width: 560px) { .a-cmp b { font-size: 19px; } }
