/* Civinti.ai public site */

:root {
  --ink: #13294b;
  --ink-soft: #3c4d68;
  --muted: #5b6b82;
  --paper: #f6f8f7;
  --white: #ffffff;
  --blue: #1d4ed8;
  --blue-dark: #1739a8;
  --sky: #60a5fa;
  --teal: #0f8b99;
  --mint: #2dd4bf;
  --rule: #cfd8e3;
  --rule-soft: #e3e9f0;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */

.site-head { background: var(--ink); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand svg { width: 26px; height: 40px; }
.brand b { font-weight: 800; }
.brand span { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #d7e2f2; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .signin { color: var(--white); border: 1px solid #4a6189; padding: 7px 14px; border-radius: 6px; }
.nav .signin:hover { border-color: var(--white); }

@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  font-size: 15.5px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 7px;
  font: 700 16px/1.2 var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-quiet { color: var(--ink); border-color: var(--rule); background: var(--white); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-quiet { background: transparent; color: var(--white); border-color: #4a6189; }
.on-dark .btn-quiet:hover { border-color: var(--white); color: var(--white); }

/* ---------- Hero ---------- */

.hero { background: var(--ink); color: var(--white); padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero-lede { margin: 0 0 30px; font-size: 19px; line-height: 1.55; color: #d7e2f2; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { white-space: nowrap; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: #a9bad3; }

/* The sample briefing: a sheet of paper rising from the bottom of the hero */
.briefing {
  background: var(--white);
  color: var(--ink);
  border-radius: 10px 10px 0 0;
  padding: 30px 34px 34px;
  box-shadow: 0 -2px 0 var(--teal) inset, 0 30px 60px rgba(4, 14, 32, 0.35);
  font-family: var(--serif);
}
.briefing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 6px; }
.briefing-head h2 { margin: 0; font: 700 22px/1.2 var(--serif); }
.briefing-head p { margin: 0; font: 500 13px/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.briefing-intro { margin: 14px 0 6px; font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.briefing ol { list-style: none; margin: 0; padding: 0; }
.briefing li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule-soft); }
.briefing li:first-child { border-top: 0; }
.tag { align-self: start; font: 700 12px/1 var(--sans); padding: 6px 0; border-radius: 4px; text-align: center; }
.tag-due { background: #fdecec; color: #a5202a; }
.tag-decide { background: #e6f4f6; color: #0b6a75; }
.tag-watch { background: #edf2fb; color: var(--blue-dark); }
.briefing li strong { display: block; font: 700 15.5px/1.35 var(--sans); }
.briefing li span { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-top: 2px; }
.briefing-foot { margin: 12px 0 0; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section h2 { margin: 0 0 16px; font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; }
.section .lede { margin: 0 0 40px; font-size: 18.5px; color: var(--ink-soft); max-width: 40em; }

/* Problem statement in the leader's own terms */
.problem { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.problem blockquote { margin: 0; font: 400 clamp(24px, 2.6vw, 30px)/1.35 var(--serif); color: var(--ink); border-left: 4px solid var(--teal); padding-left: 24px; }
.problem ul { margin: 0; padding: 0; list-style: none; }
.problem li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.problem li:last-child { border-bottom: 1px solid var(--rule); }

/* What it does: two columns of plain statements */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feature { padding: 26px 0; border-top: 1px solid var(--rule); }
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.feature p { margin: 0; color: var(--ink-soft); }

/* How an engagement works: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 800 17px/40px var(--sans);
  text-align: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -16px; height: 2px; background: var(--rule); }
.steps h3 { margin: 0 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps .when { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--teal); }

/* Security commitments */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* Who it serves */
.serve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.serve h3 { margin: 0 0 8px; font-size: 19px; padding-top: 18px; border-top: 3px solid var(--ink); }
.serve p { margin: 0; color: var(--ink-soft); }

/* Founder note */
.founder { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.founder p { margin: 0 0 16px; font: 400 19px/1.65 var(--serif); color: var(--ink); max-width: 36em; }
.founder .sig { font: 700 16px/1.4 var(--sans); margin-top: 22px; }
.founder .sig span { display: block; font-weight: 500; color: var(--muted); }

/* Closing call to action */
.cta { background: var(--ink); color: var(--white); padding: 80px 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: center; }
.cta h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
.cta p { margin: 0; color: #d7e2f2; font-size: 18px; max-width: 36em; }
.cta .hero-actions { justify-content: flex-end; }

/* ---------- Document pages (security, privacy) ---------- */

.doc-head { background: var(--ink); color: var(--white); padding: 56px 0 48px; }
.doc-head h1 { margin: 0 0 12px; font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.doc-head p { margin: 0; color: #d7e2f2; font-size: 18px; max-width: 40em; }
.doc { padding: 56px 0 88px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 24px; font-size: 14.5px; }
.doc-toc p { margin: 0 0 10px; font-weight: 700; }
.doc-toc ol { margin: 0; padding: 0 0 0 18px; color: var(--muted); }
.doc-toc li { margin: 0 0 8px; }
.doc-toc a { color: var(--ink-soft); text-decoration: none; }
.doc-toc a:hover { color: var(--blue); text-decoration: underline; }
.doc-body { max-width: 44em; }
.doc-body h2 { margin: 44px 0 12px; font-size: 25px; font-weight: 800; letter-spacing: -0.01em; scroll-margin-top: 20px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 26px 0 8px; font-size: 18px; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15.5px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc-body th { background: var(--white); color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.note { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 6px; padding: 16px 18px; margin: 20px 0; }
.note p { margin: 0; }
.status { display: inline-block; font: 700 12.5px/1 var(--sans); padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.status-live { background: #e6f4f6; color: #0b6a75; }
.status-planned { background: #edf2fb; color: var(--blue-dark); }

/* ---------- Footer ---------- */

.site-foot { background: #0e1f3a; color: #a9bad3; padding: 40px 0; font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.site-foot a { color: #d7e2f2; text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-tag { color: var(--white); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .problem, .trust, .founder, .cta .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .cta .hero-actions { justify-content: flex-start; }
  .steps, .serve { grid-template-columns: 1fr; gap: 32px; }
  .steps li:not(:last-child)::after { display: none; }
  .doc .wrap { grid-template-columns: 1fr; gap: 28px; }
  .doc-toc { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .briefing { padding: 22px 18px 26px; }
  .briefing-head { flex-direction: column; gap: 4px; }
  .briefing li { grid-template-columns: 1fr; gap: 6px; }
  .tag { justify-self: start; padding: 6px 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* 404 */
#notfound { min-height: 60vh; }
#notfound a { color: var(--white); }

/* ---------- v2: brand prominence and new sections ---------- */

.brand { gap: 12px; }
.brand svg { width: 30px; height: 46px; }
.brand b { font-size: 23px; }
.brand-tag { margin-left: 6px; padding-left: 14px; border-left: 1px solid #3c5480; color: #a9bad3; font: 600 13.5px/1.2 var(--sans); letter-spacing: 0.01em; }
@media (max-width: 1080px) { .brand-tag { display: none; } }
.site-head .wrap { min-height: 80px; }

.pillar-words { margin: 0 0 18px; font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--sans); letter-spacing: -0.01em; }
.pillar-words .w1 { color: var(--white); }
.pillar-words .w2 { color: var(--sky); }
.pillar-words .w3 { color: var(--mint); }
.hero h1 { max-width: 14ch; }

/* Pillars echo the three bars of the logo */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.pillar { padding-left: 22px; border-left: 6px solid var(--ink); }
.pillar.p2 { border-left-color: var(--blue); }
.pillar.p3 { border-left-color: var(--teal); }
.pillar h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--ink-soft); }

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.phases h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.phases h3 span { display: block; font-size: 15px; color: var(--teal); margin-bottom: 4px; }
.phases p { margin: 0; color: var(--ink-soft); }

.offers { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-top: 32px; }
.offer { border-top: 3px solid var(--ink); padding-top: 20px; }
.offer h3 { margin: 0 0 6px; font-size: 21px; }
.offer-lede { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.offer p { color: var(--ink-soft); margin: 0 0 12px; }
.offer ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.offer li { margin-bottom: 8px; }

.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.lane { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 26px 28px; }
.lane h3 { margin: 0 0 6px; font-size: 22px; }
.lane-who { margin: 0 0 14px; font-weight: 600; color: var(--ink-soft); }
.lane ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.lane li { margin-bottom: 6px; }

.steps-note { margin: 36px 0 0; padding: 16px 20px; border-left: 4px solid var(--teal); background: var(--white); color: var(--ink-soft); max-width: 46em; border-radius: 0 6px 6px 0; }

.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.limits ul { list-style: none; margin: 0; padding: 0; }
.limits li { padding: 14px 0 14px 32px; border-top: 1px solid var(--rule); position: relative; font-weight: 600; }
.limits li:last-child { border-bottom: 1px solid var(--rule); }
.limits li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 3px; background: var(--ink); }

.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand svg { width: 34px; height: 52px; }
.foot-brand p { margin: 0; }
.foot-name { color: var(--white); font-weight: 800; font-size: 22px; }
.foot-name span { color: var(--sky); }
.site-foot .foot-tag { font-size: 15px; color: #d7e2f2; font-weight: 600; }
.foot-copy { margin: 0; }

@media (max-width: 960px) {
  .pillars, .phases, .offers, .lanes, .limits { grid-template-columns: 1fr; gap: 32px; }
}
