/* CHIEMAR GROUP LLC — ESTMORIX website. No web fonts are downloaded: the system UI typeface (Segoe UI on Windows, the
   platform face elsewhere) keeps the site fast and private. Colours borrow from schedule views: blueprint blue for the
   brand, critical-path red, float blue and baseline yellow — used for meaning, not decoration. */
:root {
  --ink: #18222d;
  --muted: #4f5d6b;
  --paper: #f6f8fa;
  --white: #ffffff;
  --blue: #15407a;
  --blue-deep: #0e2e59;
  --blue-tint: #e8eef6;
  --critical: #cc2936;
  --float: #8db3e2;
  --baseline: #d9a92b;
  --rule: #d6dee7;
  --ok: #1d6b3a;
  --warn-bg: #fff6df;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5625rem; --step-3: 2rem; --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --wrap: 72rem; --gutter: clamp(1rem, 3vw, 2rem); --space: clamp(3rem, 6vw, 5.5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 var(--step-0)/1.6 var(--font); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--baseline); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li, dd { max-width: 68ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.small { font-size: var(--step--1); color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 2.75rem; padding: 0.6rem 1.15rem; border-radius: 6px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-sm { min-height: 2.4rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.btn[aria-disabled="true"], .btn:disabled { background: #cfd7e0; border-color: #cfd7e0; color: #4f5d6b; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.4) blur(6px); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-co { font-weight: 750; letter-spacing: 0.04em; font-size: 0.98rem; }
.brand-prod { font-size: 0.78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-list, .nav-actions { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-actions a:not(.btn) { white-space: nowrap; display: block; padding: 0.5rem 0.6rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; border-radius: 4px; }
.nav-list a:hover, .nav-actions a:not(.btn):hover { background: var(--paper); }
.nav-list a[aria-current="page"], .nav-actions a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-actions { gap: 0.5rem; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.5rem 0.75rem; font: 600 0.95rem var(--font); color: var(--ink); cursor: pointer; min-height: 2.75rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); padding: 0.75rem var(--gutter) 1.25rem; flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .site-nav.is-open { display: flex; }
  .nav-list, .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-list a, .nav-actions a:not(.btn) { padding: 0.75rem 0.5rem; font-size: 1.05rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.85rem; }
  .nav-actions .btn { width: 100%; }
}
@media (max-width: 460px), (min-width: 1081px) and (max-width: 1320px) { .brand-prod { display: none; } }
.brand-prod { white-space: nowrap; }

/* sections */
.section { padding: var(--space) 0; }
.section-alt { background: var(--paper); }
.section-tight { padding: calc(var(--space) * 0.6) 0; }
.section h2 { max-width: 30ch; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 22ch; }

/* home hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.hero-company { font-weight: 750; letter-spacing: 0.08em; font-size: var(--step-1); color: var(--blue); margin: 0 0 0.6rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); max-width: 18ch; margin-bottom: 0.3em; }
.hero-positioning { font-size: var(--step-2); font-weight: 600; line-height: 1.3; max-width: 30ch; margin: 0 0 1rem; color: var(--ink); }
.hero .lead { max-width: 62ch; }
.hero-strip { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); background: linear-gradient(var(--paper), var(--white)); padding: 1.5rem 0 0.5rem; }

/* CPM strip */
.cpm { margin: 0; }
.cpm svg { width: 100%; height: auto; }
.cpm-tick line { stroke: var(--rule); stroke-width: 1; }
.cpm-tick text { font: 600 12px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.cpm-label { font: 500 14px var(--font); fill: var(--ink); }
.cpm-bar { fill: var(--float); }
.cpm-bar.is-crit, .cpm-ms.is-crit { fill: var(--critical); }
.cpm-ms { fill: var(--blue); }
.cpm-base { fill: var(--baseline); }
.cpm-tie { fill: none; stroke: #7c8b99; stroke-width: 1.5; }
.cpm-tie.is-crit { stroke: var(--critical); stroke-width: 2.25; }
.cpm figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; max-width: 80ch; }
.cpm-compact .cpm-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .cpm-critical path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: cpm-draw 0.55s ease-out forwards; }
  .js .cpm-critical path:nth-child(2) { animation-delay: 0.45s; } .js .cpm-critical path:nth-child(3) { animation-delay: 0.9s; }
  .js .cpm-critical path:nth-child(4) { animation-delay: 1.35s; } .js .cpm-critical path:nth-child(5) { animation-delay: 1.8s; }
  .js .cpm-critical path:nth-child(6) { animation-delay: 2.25s; }
}
@keyframes cpm-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 720px) { .cpm-wide { overflow-x: auto; -webkit-overflow-scrolling: touch; } .cpm-wide svg { min-width: 760px; max-width: none; } .cpm-wide figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter)); } }

/* cycle (analyze → validate → update → control) */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.cycle li { padding: 1.25rem 1.25rem 0 0; border-top: 4px solid var(--float); position: relative; }
.cycle li:nth-child(4) { border-top-color: var(--critical); }
.cycle h3 { margin-top: 0.75rem; }
.cycle p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

/* two-column text layouts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split > :first-child h2 { position: sticky; top: 6rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

/* lists */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 0.45rem; border-radius: 2px; background: var(--float); }
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin-top: 2rem; }
.audience h3 { padding-left: 0.85rem; border-left: 4px solid var(--blue); }
.audience p { color: var(--muted); font-size: 1rem; }

/* feature groups (features page) */
.fgroup { padding: var(--space) 0 calc(var(--space) * 0.6); border-top: 1px solid var(--rule); }
.fgroup:first-of-type { border-top: 0; }
.fgroup-head { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1.5rem; }
.fgroup-num { font: 700 var(--step-3)/1 var(--font-display); color: var(--blue); }
.fgroup-head p { color: var(--muted); margin: 0; }
.flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2rem 3rem; margin: 0; padding-left: 5.5rem; }
.flist div { border-left: 2px solid var(--rule); padding-left: 1rem; }
.flist dt { font-weight: 650; font-size: var(--step-1); margin-bottom: 0.35rem; }
.flist dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) { .fgroup-head { grid-template-columns: 1fr; } .flist { padding-left: 0; } }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 650; }
thead th { border-bottom: 2px solid var(--ink); }

/* notices */
.notice { border-left: 4px solid var(--blue); background: var(--blue-tint); padding: 0.9rem 1.1rem; border-radius: 0 6px 6px 0; max-width: 70ch; }
.notice-warn { border-left-color: var(--baseline); background: var(--warn-bg); }

/* forms */
.form { max-width: 40rem; margin-top: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.opt, .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.hint { display: block; margin: -0.1rem 0 0.35rem; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; font: inherit; padding: 0.65rem 0.75rem; border: 1px solid #9aa8b6; border-radius: 6px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--baseline); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--critical); box-shadow: 0 0 0 1px var(--critical); }
.field-check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--blue); }
.field-check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--critical); }
.form-status.is-ok { color: var(--ok); }
.form-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 860px) { .form-split { grid-template-columns: 1fr; } }
.aside { border-top: 4px solid var(--blue); padding-top: 1rem; }

/* plans (pricing) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
.plan { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
.plan + .plan { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.plan-price { font: 650 var(--step-1) var(--font-display); color: var(--muted); margin: 0.25rem 0 1rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan + .plan { padding-left: 0; border-left: 0; } }

/* downloads */
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.dl-row h3 { margin: 0 0 0.25rem; }
.dl-row p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) { .dl-row { grid-template-columns: 1fr; } }

/* legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--step-2); margin-top: 2rem; }

/* footer */
.site-footer { background: var(--blue-deep); color: #dbe5f1; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(16rem, 2fr) repeat(4, minmax(8rem, 1fr)); gap: 2rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-prod { color: #b8c7da; }
.footer-co p { font-size: 0.95rem; }
.footer-col h2 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.footer-col a { text-decoration: none; color: #dbe5f1; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; color: #b8c7da; }
.footer-legal p { max-width: none; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-co { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-row, .nav-toggle { display: none; } }
.footer-solo { margin-top: 0; border-top: 0; padding-top: 0; }
.landing-nav { margin-left: auto; }
code { font-size: 0.95em; background: var(--paper); padding: 0.1em 0.35em; border-radius: 4px; }
