/* Compensario site — single stylesheet, no build step. Tokens per DESIGN.md. */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0f2849;
  --navy: #09316b;
  --blue: #066fbd;
  --teal: #02a19f;      /* decorative only on light backgrounds (3.2:1) */
  --teal-700: #00777a;  /* teal text on light backgrounds (5.4:1) */
  --ink: #1e2b3c;
  --muted: #526277;
  --surface: #f4f8fb;
  --border: #d8e2ec;
  --white: #fff;
  --radius: 12px;
  --heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible { outline-color: #8cc8f5; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .container { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--heading); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 16px; max-width: 68ch; }
.lead { font-size: 1.1875rem; color: var(--ink); }
.eyebrow { font-family: var(--body); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-700); margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e3f0fb; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: var(--heading); font-weight: 600; font-size: 1.375rem; }
.brand:hover { color: var(--navy); }
.brand img { display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--teal); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--navy); }
.bar .btn { min-height: 44px; padding: 10px 20px; }
.btn .short { display: none; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1.5px solid var(--border); color: var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 200px; box-shadow: 0 8px 24px rgba(15,40,73,0.12); display: flex; flex-direction: column; }
.menu .panel a { padding: 12px 16px; text-decoration: none; color: var(--ink); border-radius: 8px; font-weight: 500; }
.menu .panel a:hover { background: var(--surface); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .bar { gap: 12px; }
  .bar .btn { margin-left: auto; }
  .brand { font-size: 1.1875rem; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
}

/* Sections */
section { padding: 96px 0; }
section[id] { scroll-margin-top: 72px; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.surface { background: var(--surface); }
.dark { background: var(--navy-900); color: #dbe6f2; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #4fd1cf; }
.dark .lead { color: #dbe6f2; }
.dark a { color: #9fd3f7; }
.dark a.btn-light { color: var(--navy); }
.dark .muted { color: #a9bbd0; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, #eaf3f9 100%); padding: 80px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero .status { border-left: 3px solid var(--teal); padding-left: 14px; margin-top: 32px; color: var(--muted); font-size: 0.9375rem; }
.hero .audience { color: var(--muted); font-size: 0.9375rem; margin-top: 24px; margin-bottom: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 64px; } }

.hero-visual { margin: 0; }
.visual { display: grid; grid-template-columns: auto 28px 1fr; gap: 12px; align-items: center; }
.doc-stack { display: flex; flex-direction: column; gap: 10px; }
.doc-chip { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.875rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(15,40,73,0.05); }
.doc-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--teal); display: block; }
.flow-arrow { color: var(--teal); }
.summary { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: 0 8px 28px rgba(15,40,73,0.08); }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--heading); font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 12px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.875rem; line-height: 1.35; }
.summary li span:first-child { color: var(--ink); font-weight: 500; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; background: #e6f6f6; color: var(--teal-700); white-space: nowrap; }
.pill.blue { background: #e4f0fb; color: #0a5a99; }
.pill.grey { background: #eef2f6; color: var(--muted); }
.caption { font-size: 0.8125rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
@media (max-width: 520px) {
  .visual { grid-template-columns: 1fr; }
  .doc-stack { flex-direction: row; flex-wrap: wrap; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 40px; }
.problem-grid > div { border-left: 3px solid var(--teal); padding-left: 20px; }
.problem-grid h3 { margin-bottom: 6px; }
.problem-grid p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; gap: 24px; } }

/* How it works */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--heading); font-weight: 600; position: relative; z-index: 1; margin-bottom: 16px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 48px; right: -20px; height: 2px; background: var(--teal); }
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { font-size: 0.9375rem; color: var(--muted); margin: 0; }
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { padding-left: 60px; }
  .step .num { position: absolute; left: 0; top: 0; margin: 0; }
  .step:not(:last-child)::after { display: block; top: 44px; bottom: -28px; left: 19px; right: auto; width: 2px; height: auto; }
}
.note { margin-top: 40px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; max-width: none; }
.timing-detail { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.timing-detail summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.timing-detail summary:hover { color: var(--navy); }
.timing-detail p { margin: 12px 0 0; max-width: 68ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 150ms; }
.card:hover { box-shadow: 0 8px 24px rgba(15,40,73,0.08); }
.card svg.icon { color: var(--teal); margin-bottom: 14px; display: block; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* Human control */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 48px; }
.point svg.icon { color: #4fd1cf; margin-bottom: 12px; display: block; }
.point h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.point p { margin: 0; color: #c5d4e5; font-size: 0.9688rem; }
@media (max-width: 960px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Enterprise list */
.ent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.ent-item { display: flex; gap: 14px; }
.ent-item svg.icon { color: var(--teal); flex: none; margin-top: 2px; }
.ent-item h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.ent-item p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 960px) { .ent { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ent { grid-template-columns: 1fr; gap: 24px; } }
.footnote { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; max-width: none; }

/* Founder */
.founder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: center; }
.founder img { width: 280px; height: 280px; border-radius: var(--radius); object-fit: cover; display: block; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: 28px; } .founder img { width: 200px; height: 200px; } }

/* CTA band */
.cta { text-align: center; }
.cta p { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* Content pages */
.page-head { background: linear-gradient(180deg, #fff 0%, #eaf3f9 100%); padding: 72px 0 56px; }
.page-head p { font-size: 1.1875rem; }
.container.prose { max-width: 1168px; }
.prose > * { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.two-col img { width: 280px; height: 280px; border-radius: var(--radius); object-fit: cover; display: block; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 24px; } .two-col img { width: 200px; height: 200px; } }
.principles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.principles li { border-left: 3px solid var(--teal); padding-left: 18px; }
.principles strong { color: var(--navy); }

/* Form */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 40px; } }
form .field { margin-bottom: 20px; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.9688rem; }
label .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #b7c5d4; border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.aside-card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c9db; padding: 56px 0 40px; font-size: 0.9688rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #cfe3f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.875rem; color: #93a8be; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal p { margin: 0; max-width: none; }
